/* ============================================================
   Workflo Landing Page — Design System
   ============================================================ */

/* ── Design tokens ── */
:root {
  --bg:           #09090C;
  --surface:      #0D0D11;
  --surface-2:    #16161C;
  --surface-3:    #202028;
  --border:       rgba(38, 38, 48, 0.8);
  --border-glow:  rgba(0, 155, 142, 0.15);

  --cyan:   #009B8E;
  --blue:   #006B8A;
  --green:  #00C4B8;
  --amber:  #F59E0B;
  --danger: #F87171;

  --phase-30: #006B8A;
  --phase-60: #009B8E;
  --phase-90: #00C4B8;

  --text-1: #F2F2F6;
  --text-2: #AAAAB9;
  --text-3: #87879B;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-2xl: 36px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="right"] {
  transform: translateX(40px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(9, 9, 12, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-1); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

/* Watermark */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -50%);
  width: clamp(480px, 60vw, 720px);
  aspect-ratio: 1;
  background: url('watermark-light.png') center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

/* Glow background */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.glow-1 {
  width: 500px; height: 500px;
  background: var(--cyan);
  top: -120px; left: -100px;
  opacity: 0.12;
}
.glow-2 {
  width: 400px; height: 400px;
  background: var(--blue);
  top: 100px; right: -80px;
  opacity: 0.10;
}
.glow-3 {
  width: 600px; height: 300px;
  background: var(--green);
  bottom: -60px; right: 20%;
  opacity: 0.08;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Copy */
.hero-copy { max-width: 520px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--phase-90) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-cta { margin-bottom: 40px; }
.appstore-badge { height: 44px; width: auto; }
.appstore-badge-link { display: inline-block; }
.appstore-badge-link:hover { opacity: 0.85; transition: opacity 0.2s; }

/* Phase mini indicators */
.hero-phases-mini {
  display: flex;
  align-items: center;
  gap: 0;
}
.mini-phase {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}
.mini-phase-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phase-30 .mini-phase-dot { background: var(--phase-30); }
.phase-60 .mini-phase-dot { background: var(--phase-60); }
.phase-90 .mini-phase-dot { background: var(--phase-90); }
.mini-phase-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--phase-30), var(--phase-60));
  margin: 0 8px;
}
.mini-phase-line:last-of-type {
  background: linear-gradient(90deg, var(--phase-60), var(--phase-90));
}

/* Hero phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-wrap {
  position: relative;
  display: inline-block;
}
.phone-frame {
  position: relative;
  width: 260px;
  background: #111115;
  border-radius: 44px;
  border: 1.5px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(0, 155, 142, 0.10);
  overflow: hidden;
  padding-top: 14px;
}
.phone-notch {
  width: 90px; height: 28px;
  background: #111115;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 0;
  position: relative;
  z-index: 1;
}
.phone-screen {
  position: relative;
  overflow: hidden;
}
.phone-screenshot {
  width: 100%;
  display: block;
  border-radius: 0 0 42px 42px;
}

/* Floating badges */
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 16, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.float-1 { bottom: 80px; left: -80px; }
.float-2 { top: 120px; right: -70px; }
.float-icon { font-size: 20px; line-height: 1; }
.float-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.float-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 100px 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

/* ── Section header ── */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 64px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 18px;
}
.section-header p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ============================================================
   PHASE ARC
   ============================================================ */
.phase-arc {
  position: relative;
  max-width: 500px;
  margin: 0 auto 64px;
}
.arc-line {
  height: 3px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin: 28px 0 0;
}
.arc-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--phase-30), var(--phase-60), var(--phase-90));
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.arc-fill.arc-animate { width: 100%; }

.arc-nodes {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.arc-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arc-node-ring {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.3;
  position: absolute;
}
.arc-node-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.arc-node-30 { color: var(--phase-30); }
.arc-node-60 { color: var(--phase-60); }
.arc-node-90 { color: var(--phase-90); }

.arc-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.arc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.label-30 { color: var(--phase-30); }
.label-60 { color: var(--phase-60); }
.label-90 { color: var(--phase-90); }

/* ============================================================
   PHASE CARDS
   ============================================================ */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.phase-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.phase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.phase-card-30::before { background: var(--phase-30); }
.phase-card-60::before { background: linear-gradient(90deg, var(--phase-30), var(--phase-60)); }
.phase-card-90::before { background: linear-gradient(90deg, var(--phase-30), var(--phase-60), var(--phase-90)); }

.phase-card-30 { box-shadow: 0 0 40px rgba(0, 107, 138, 0.08); }
.phase-card-60 { box-shadow: 0 0 40px rgba(0, 155, 142, 0.08); }
.phase-card-90 { box-shadow: 0 0 40px rgba(0, 196, 184, 0.08); }

.phase-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.phase-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phase-icon-30 { background: rgba(0,107,138,0.15); color: var(--phase-30); }
.phase-icon-60 { background: rgba(0,155,142,0.15); color: var(--phase-60); }
.phase-icon-90 { background: rgba(0,196,184,0.15); color: var(--phase-90); }

.phase-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.phase-card-30 .phase-num { color: var(--phase-30); }
.phase-card-60 .phase-num { color: var(--phase-60); }
.phase-card-90 .phase-num { color: var(--phase-90); }

.phase-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 4px;
}
.phase-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.phase-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 20px;
}
.phase-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.phase-list li {
  font-size: 13px;
  color: var(--text-3);
  padding-left: 16px;
  position: relative;
}
.phase-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 14px;
}
.phase-card-30 .phase-list li::before { color: var(--phase-30); }
.phase-card-60 .phase-list li::before { color: var(--phase-60); }
.phase-card-90 .phase-list li::before { color: var(--phase-90); }

/* ============================================================
   FEATURES SHOWCASE
   ============================================================ */
.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-row-reverse {
  direction: rtl;
}
.feature-row-reverse > * {
  direction: ltr;
}

.feature-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.phase-30-text { color: var(--phase-30); }
.phase-60-text { color: var(--phase-60); }
.phase-90-text { color: var(--phase-90); }

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 16px;
}
.feature-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 24px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.feature-check {
  font-size: 12px;
  font-weight: 700;
  color: var(--phase-30);
  background: rgba(0,107,138,0.14);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-check-60 { color: var(--phase-60); background: rgba(0,155,142,0.14); }
.feature-check-90 { color: var(--phase-90); background: rgba(0,196,184,0.14); }

/* Small phone frame for features */
.feature-phone {
  display: flex;
  justify-content: center;
}
.phone-frame-sm {
  width: 220px;
}
.phone-frame-sm .phone-frame {
  width: 220px;
  border-radius: 38px;
}
.phone-frame-sm .phone-screenshot {
  border-radius: 0 0 36px 36px;
}
.phone-notch-sm {
  width: 75px; height: 24px;
  background: #111115;
  border-radius: 0 0 15px 15px;
  margin: 0 auto 0;
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,155,142,0.25);
}
.bento-card-wide {
  grid-column: span 2;
}

.bento-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.bento-icon-30 { background: rgba(0,107,138,0.14); color: var(--phase-30); }
.bento-icon-60 { background: rgba(0,155,142,0.14); color: var(--phase-60); }
.bento-icon-90 { background: rgba(0,196,184,0.14); color: var(--phase-90); }

.bento-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.bento-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.bento-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid currentColor;
}
.tag-30 { color: var(--phase-30); background: rgba(0,107,138,0.10); }
.tag-60 { color: var(--phase-60); background: rgba(0,155,142,0.10); }
.tag-90 { color: var(--phase-90); background: rgba(0,196,184,0.10); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(400px, 50vw, 600px);
  aspect-ratio: 1;
  background: url('watermark-light.png') center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,155,142,0.10), transparent);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  margin: 0 auto 28px;
  box-shadow: 0 16px 48px rgba(0,155,142,0.25);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 16px;
}
.cta-section h2 em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--phase-90) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-section p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}
.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-1); }
.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-copy { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-phases-mini { justify-content: center; }
  .hero-cta { display: flex; justify-content: center; }
  .hero-visual { display: none; }

  .phases-grid { grid-template-columns: 1fr; gap: 12px; }

  .feature-row,
  .feature-row-reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  .feature-row-reverse > * { direction: ltr; }
  .feature-phone { order: -1; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-card-wide { grid-column: span 1; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 72px; }
  .phases-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .float-1, .float-2 { display: none; }
}
