/* ============================================================
   AI-ASSISTED PRODUCT FLOW — Case Study
   Tokens and base components shared with the portfolio system.
   Page-specific rules prefixed  af-
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --bg:          #0c0d16;
  --surface:     #11121f;
  --surface-2:   #181928;
  --surface-3:   #1f2033;

  --border:      rgba(255,255,255,.07);
  --border-hi:   rgba(255,255,255,.14);

  --text:        #eeeeff;
  --muted:       #7c80a8;
  --dim:         rgba(255,255,255,.28);

  /* Blue-indigo accent — distinct from portfolio purple */
  --accent:      #6366f1;
  --accent-2:    #818cf8;
  --accent-glow: rgba(99,102,241,.22);
  --accent-dim:  rgba(99,102,241,.09);

  --r:           12px;
  --r-lg:        20px;
  --r-xl:        24px;
  --nav-h:       72px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --f-head:      'Inter', system-ui, -apple-system, sans-serif;
  --f-body:      'Inter', system-ui, -apple-system, sans-serif;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; cursor: none; }
img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }
ul, ol   { list-style: none; }
button   { cursor: none; border: none; background: none; font-family: inherit; color: inherit; }

/* ── CURSOR ──────────────────────────────────────────────────── */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease), height .2s var(--ease);
  mix-blend-mode: exclusion; will-change: transform;
}
.cursor-follower {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .2s;
  will-change: transform;
}
body.c-hover .cursor          { width: 0; height: 0; }
body.c-hover .cursor-follower { width: 64px; height: 64px; border-color: var(--accent); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 48px;
}

/* ── NAVIGATION ──────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto;
  height: var(--nav-h); padding: 0 48px;
  display: flex; align-items: center;
  z-index: 900;
  transition: background .4s, backdrop-filter .4s, transform .45s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12,13,22,.94);
  backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-color: rgba(255,255,255,.07);
}
.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--f-head); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-link  { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .01em; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border-hi);
  padding: 8px 22px; border-radius: 100px;
  transition: border-color .2s, color .2s, background .2s !important;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; background: var(--accent-dim); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: transform .3s, opacity .3s; }

.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-link {
  font-family: var(--f-head); font-size: clamp(36px, 8vw, 60px);
  font-weight: 700; letter-spacing: -.02em;
  color: var(--dim); display: block; padding: 8px;
  transition: color .2s;
}
.mobile-link:hover { color: var(--text); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 34px; border-radius: 100px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #4f52d3 0%, #6366f1 100%);
  color: #fff; font-weight: 600;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #5f62e0 0%, #7577f5 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}
.btn-ghost   { border: 1px solid rgba(255,255,255,.11); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.05); }
.btn-full    { width: 100%; }

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── MAGNETIC ────────────────────────────────────────────────── */
/* (no CSS needed — handled in JS via transform) */

/* ── SECTION BASE ────────────────────────────────────────────── */
.af-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.af-section--surface {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,.05) 0%, transparent 65%),
    var(--surface);
}

/* ── SHARED SECTION TYPOGRAPHY ───────────────────────────────── */
.af-section-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.af-section-title {
  font-family: var(--f-head);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  color: var(--text); margin-bottom: 20px;
}
.af-body {
  font-size: 16px; color: var(--muted);
  line-height: 1.82; margin-bottom: 18px;
}
.af-body:last-child { margin-bottom: 0; }
.af-body--wide { max-width: 580px; }

/* ── CONTACT + FOOTER (shared with portfolio) ────────────────── */
.contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(99,102,241,.06) 0%, transparent 65%),
    var(--surface);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 140px 0;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.contact-title { font-family: var(--f-head); font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 24px; margin-bottom: 18px; }
.contact-sub   { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 40px; }
.socials       { display: flex; flex-direction: column; gap: 12px; }
.social-link   { font-size: 15px; color: var(--muted); display: inline-block; transition: color .2s; }
.social-link:hover { color: var(--accent); }
.section-num   { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.af-cta-right  { display: flex; flex-direction: column; gap: 14px; justify-content: center; }

.footer       { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-inner p  { font-size: 14px; color: var(--muted); }
.footer-top { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-top:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.af-hero {
  min-height: max(90vh, 640px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
  background: var(--bg);
}

.af-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Ambient glows */
.af-glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.45;
}
.af-glow--1 {
  width: 680px; height: 480px;
  background: radial-gradient(ellipse, rgba(99,102,241,.35) 0%, transparent 70%);
  top: -60px; left: -100px;
}
.af-glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(129,140,248,.18) 0%, transparent 70%);
  bottom: -80px; right: -60px;
}

/* Subtle grid overlay */
.af-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

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

/* Left: text */
.af-hero-content { max-width: 560px; }

.af-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 7px 16px 7px 12px; border-radius: 100px;
  margin-bottom: 28px; opacity: 0;
}
.af-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: af-blink 2.6s ease-in-out infinite;
}
@keyframes af-blink { 0%,100% { opacity:1; } 50% { opacity:.2; } }

.af-title {
  font-family: var(--f-head);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
  margin-bottom: 20px;
}
.af-tl { display: block; opacity: 0; }
.af-tl--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.af-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255,255,255,.55);
  line-height: 1.65; margin-bottom: 16px;
  opacity: 0;
}
.af-intro {
  font-size: 14px; color: rgba(255,255,255,.38);
  line-height: 1.8; margin-bottom: 28px;
  opacity: 0; max-width: 480px;
}

.af-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px; opacity: 0;
}
.af-tags span {
  font-size: 12px; font-weight: 500;
  padding: 5px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 100px; color: var(--muted);
}

.af-ctas { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }

/* Scroll hint */
.af-scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; animation: af-fadeUp 1s 2.4s forwards; z-index: 1;
}
.af-scroll-bar {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: af-pulse 2.4s ease-in-out infinite;
}
@keyframes af-fadeUp { to { opacity: 1; } }
@keyframes af-pulse  { 0%,100% { opacity: .4; } 50% { opacity: .9; } }

/* ── Hero: flow pipeline visual ──────────────────────────────── */
.af-hero-visual {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  opacity: 0;
}
.af-flow-pipeline {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; width: 100%; max-width: 340px;
}
.af-fp-node {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 16px 24px;
  width: 100%;
  transition: border-color .3s;
}
.af-fp-node:hover { border-color: rgba(99,102,241,.3); }
.af-fp-node--start { border-color: rgba(99,102,241,.22); }
.af-fp-node--end {
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.08);
}
.af-fp-num {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); min-width: 20px;
}
.af-fp-label {
  font-size: 14px; font-weight: 600;
  color: var(--text); letter-spacing: -.01em;
}
.af-fp-connector {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 0; position: relative;
}
.af-fp-line {
  width: 1px; height: 24px;
  background: linear-gradient(to bottom, rgba(99,102,241,.4), rgba(99,102,241,.15));
}
.af-fp-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
  animation: af-pulse-dot 2.4s ease-in-out infinite;
}
@keyframes af-pulse-dot { 0%,100% { opacity:.3; transform:scale(1); } 50% { opacity:.9; transform:scale(1.3); } }

.af-flow-caption {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.2); text-align: center;
}

/* ============================================================
   OVERVIEW — snapshot card
   ============================================================ */
.af-snapshot {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.af-snapshot-meta {
  border-right: 1px solid var(--border);
  padding: 48px 40px;
  display: flex; flex-direction: column; gap: 32px;
  background: var(--surface-2);
}
.af-meta-item { display: flex; flex-direction: column; gap: 6px; }
.af-meta-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.af-meta-value { font-size: 14px; font-weight: 500; color: var(--text); }
.af-meta-live {
  display: inline-flex; align-items: center; gap: 7px;
  color: #34d399;
}
.af-meta-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  animation: af-blink 2s ease-in-out infinite;
}
.af-snapshot-body {
  padding: 48px 56px;
}

/* ============================================================
   WHY AI — 2-col: copy + 2x2 grid
   ============================================================ */
.af-why {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}
.af-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.af-why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color .3s, background .3s;
}
.af-why-card:hover {
  border-color: rgba(99,102,241,.25);
  background: rgba(99,102,241,.04);
}
.af-why-icon-wrap {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--r);
  color: var(--accent);
  margin-bottom: 16px;
}
.af-why-card h3 {
  font-size: 14px; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
  margin-bottom: 8px;
}
.af-why-card p {
  font-size: 13px; color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   PROCESS — vertical stepped timeline
   ============================================================ */
.af-process-head { margin-bottom: 72px; }

.af-steps { display: flex; flex-direction: column; }

.af-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  padding-bottom: 0;
}
.af-step-left {
  display: flex; flex-direction: column; align-items: center;
}
.af-step-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 50%;
  flex-shrink: 0; z-index: 1;
}
.af-step-num--final {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.af-step-line {
  width: 1px; flex: 1;
  background: linear-gradient(to bottom, rgba(99,102,241,.3), rgba(99,102,241,.05));
  margin-top: 8px; min-height: 40px;
}
.af-step-content {
  padding: 10px 0 52px;
}
.af-step--last .af-step-content { padding-bottom: 0; }

.af-step-content h3 {
  font-family: var(--f-head);
  font-size: 18px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.25;
  color: var(--text); margin-bottom: 12px;
}
.af-step-content p {
  font-size: 15px; color: var(--muted);
  line-height: 1.75; margin-bottom: 18px;
}
.af-step-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.af-step-chips span {
  font-size: 11px; font-weight: 500;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,.18);
  color: var(--accent); border-radius: 100px;
}

/* ============================================================
   MY ROLE — copy + split columns
   ============================================================ */
.af-role {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.af-role-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: center;
}
.af-role-col {
  border-radius: var(--r-lg);
  padding: 28px;
}
.af-role-col--ai {
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.af-role-col--me {
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.2);
}
.af-role-col-label {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.af-role-col--ai  .af-role-col-label { color: rgba(255,255,255,.3); }
.af-role-col--me  .af-role-col-label { color: var(--accent); }

.af-role-list { display: flex; flex-direction: column; gap: 10px; }
.af-role-list li {
  font-size: 13px; line-height: 1.55;
  padding-left: 16px; position: relative;
}
.af-role-list li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: 0.5;
}
.af-role-col--ai .af-role-list li { color: var(--muted); }
.af-role-col--me .af-role-list li { color: rgba(240,238,255,.8); }

/* ============================================================
   OUTCOME — head + 2x2 grid + quote
   ============================================================ */
.af-outcome-head { margin-bottom: 56px; }

.af-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
.af-outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color .3s, background .3s;
}
.af-outcome-card:hover {
  border-color: rgba(99,102,241,.22);
  background: rgba(99,102,241,.03);
}
.af-outcome-num {
  font-size: 9px; font-weight: 800; letter-spacing: .14em;
  color: var(--accent); opacity: 0.6;
  margin-bottom: 16px;
}
.af-outcome-card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
  margin-bottom: 10px;
}
.af-outcome-card p {
  font-size: 14px; color: var(--muted); line-height: 1.7;
}

.af-quote {
  display: block;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500; font-style: italic;
  letter-spacing: -.025em; line-height: 1.4;
  color: var(--text);
  padding: 52px 0 0;
  border-top: 1px solid rgba(255,255,255,.07);
  max-width: 720px; margin: 0 auto;
}

/* ============================================================
   WALKTHROUGH VIDEO — full-width product demo
   ============================================================ */
.af-section--walkthrough {
  border-top: 1px solid var(--border);
  padding: 100px 0;
}
.af-walk-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.af-walk-head .af-body {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}
.af-walk-video {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.af-walk-video video,
.af-walk-video img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   GUIDED APPLICATION EXPERIENCE — 2-column feature block
   ============================================================ */
.af-feature-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 72px;
  align-items: start;
}

.af-feature-video-wrap {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(99,102,241,.1),
    0 8px 32px rgba(99,102,241,.16),
    0 24px 64px rgba(0,0,0,.42);
}

.af-feature-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.af-feature-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 6px;
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.af-feature-bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.af-feature-bullets li {
  font-size: 15px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}

.af-feature-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.af-feature-quote {
  border-left: 2px solid var(--accent);
  padding: 14px 20px;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 4px 0 0;
}

/* ============================================================
   AI WORKFLOW — 4-column step cards
   ============================================================ */
.af-wf-head { margin-bottom: 48px; }

.af-wf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.af-wf-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color .3s, background .3s;
}
.af-wf-step:hover {
  border-color: rgba(99,102,241,.25);
  background: rgba(99,102,241,.03);
}
.af-wf-num {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 16px;
}
.af-wf-step h3 {
  font-size: 14px; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
  line-height: 1.35; margin-bottom: 10px;
}
.af-wf-step p {
  font-size: 13px; color: var(--muted); line-height: 1.65;
}

/* ============================================================
   DASHBOARD DEMO — centered video
   ============================================================ */
.af-demo {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.af-demo .af-section-label { display: block; }
.af-demo .af-body { max-width: 480px; margin-left: auto; margin-right: auto; }

.af-demo-frame {
  margin-top: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  padding: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.07),
    0 8px 48px rgba(0,0,0,.5),
    0 0 80px rgba(99,102,241,.08);
}
.af-demo-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
}

/* ============================================================
   KEY DECISIONS — 2x2 card grid
   ============================================================ */
.af-dec-head { margin-bottom: 48px; }

.af-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.af-decision-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color .3s, background .3s;
}
.af-decision-card:hover {
  border-color: rgba(99,102,241,.25);
  background: rgba(99,102,241,.03);
}
.af-decision-card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
  margin-bottom: 10px;
}
.af-decision-card p {
  font-size: 14px; color: var(--muted); line-height: 1.7;
}

/* ============================================================
   OUTCOME — accent border list
   ============================================================ */
.af-outcome-simple { max-width: 680px; }

.af-outcome-list {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 12px;
}
.af-outcome-item {
  font-size: 16px; color: var(--text);
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--r) var(--r) 0;
  line-height: 1.55;
}

/* Outcome: 2-col layout — text left, tool combo right */
.af-outcome-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

/* Tool icon composition: Figma + AI */
.af-tool-combo {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
}
.af-tool-combo::before {
  content: '';
  position: absolute;
  inset: -28px -36px;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(99,102,241,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.af-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 49px 56px;
  box-shadow: 0 2px 20px rgba(0,0,0,.22);
  transition: border-color .25s, box-shadow .25s;
}
.af-tool-card:hover {
  border-color: rgba(99,102,241,.2);
  box-shadow: 0 4px 32px rgba(99,102,241,.09);
}
.af-tool-card-icons {
  display: flex;
  align-items: center;
  gap: 32px;
}
.af-tool-card-plus {
  font-size: 38px; font-weight: 300;
  color: rgba(255,255,255,.22);
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
.af-tool-card-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   REFLECTION — centered italic paragraph
   ============================================================ */
.af-section--reflect {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(99,102,241,.06) 0%, transparent 70%),
    var(--surface);
}
.af-reflection {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.af-reflection p {
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  font-style: italic;
  letter-spacing: -.015em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .af-hero-inner    { gap: 52px; }
  .af-snapshot      { grid-template-columns: 240px 1fr; }
  .af-wf-grid       { grid-template-columns: repeat(2, 1fr); }
  .af-feature-layout { grid-template-columns: 1fr; gap: 48px; }
  .af-feature-content { position: static; }
}

@media (max-width: 860px) {
  .container { padding: 0 28px; }
  .af-section { padding: 88px 0; }
  .contact    { padding: 88px 0; }

  .af-hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .af-hero-content { max-width: 100%; }

  .af-snapshot {
    grid-template-columns: 1fr;
  }
  .af-snapshot-meta {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 32px;
    flex-direction: row; flex-wrap: wrap; gap: 24px;
  }
  .af-snapshot-body { padding: 36px 32px; }

  .af-decision-grid  { grid-template-columns: 1fr; }
  .af-wf-grid        { grid-template-columns: 1fr; }
  .af-outcome-layout { grid-template-columns: 1fr; gap: 48px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .af-hero-inner { padding-top: 20px; }
  .af-snapshot-meta { flex-direction: column; }
}
