/* =========================================================================
   TALENRY — Landing page styles (hero, features, proof, steps, vision, cta)
   Syphon Labs light editorial system. Hero is the dark `ink` interlude;
   everything below alternates white <-> paper.
   ========================================================================= */

/* faint grid texture — only used inside the dark hero / dark cards */
.grid-faint {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(80% 70% at 50% 25%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 25%, #000 0%, transparent 78%);
}

/* ============================ HERO (dark ink) ============================ */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; background: var(--ink); color: #EEF2FB; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 82% 6%, rgba(37,99,235,0.22) 0%, transparent 55%),
    radial-gradient(60% 55% at 2% 96%, rgba(37,99,235,0.12) 0%, transparent 55%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center;
}
.hero-copy .badge { margin-bottom: 28px; }
.hero-copy h1 {
  font-size: clamp(2.7rem, 4.7vw, 4.1rem); font-weight: 700;
  letter-spacing: var(--tracking-tighter); line-height: 1.04; margin: 0; color: #F6F8FE;
}
.hero-copy h1 .accent { --accent-color: var(--brand-sky); }
.hero-copy .sub { color: #AEB6CC; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 490px; margin: 24px 0 32px; }
.hero-copy .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 12px; color: #8A94AC; font-size: 13.5px; margin-top: 34px; }
.avatars { display: flex; }
.avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -9px; background: var(--brand); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: #3b82f6; }
.avatars span:nth-child(3) { background: #1d4ed8; }
.avatars span:nth-child(4) { background: #60a5fa; }

/* floating 3d stack (dark cards on the ink hero) */
.stack3d { position: relative; height: 460px; perspective: 1600px; }
.card3d {
  position: absolute; left: 50%; top: 50%;
  width: 326px; padding: 18px;
  background: #0E1424;
  border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); transform-style: preserve-3d;
  transition: transform 0.75s var(--ease-out), opacity 0.75s var(--ease-out), box-shadow 0.75s var(--ease-out);
}
.card3d .c-h { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.card3d .c-h .ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.30); display: grid; place-items: center; color: var(--brand-dark); flex: none; }
.card3d .c-h .ic svg { width: 16px; height: 16px; }
.card3d .c-h .t { font-size: 14px; font-weight: 600; color: #EEF2FB; }
.card3d .c-h .t small { display: block; font-weight: 400; font-size: 11.5px; color: #8A94AC; margin-top: 2px; }
.card3d .c-h .step-no { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: #8A94AC; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 2px 7px; flex: none; }
.card3d .line { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.06); margin: 9px 0; }
.card3d .line.s { width: 58%; }
.card3d .line.grad { background: var(--brand); opacity: 0.55; }
.card3d .c-foot { display: flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 11.5px; color: #34D399; font-family: var(--font-mono); }
.card3d .c-foot svg { width: 13px; height: 13px; }

/* hero platform strip */
.hero-platforms {
  display: flex; align-items: center; gap: 10px;
  margin-top: 28px; flex-wrap: wrap;
}
.hp-label {
  font-size: 12px; color: rgba(255,255,255,0.35);
  font-family: var(--font-mono); letter-spacing: 0.04em; white-space: nowrap;
}
.hp-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.hp-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: rgba(255,255,255,0.45);
  font-weight: 500; white-space: nowrap; transition: color 0.2s;
}
.hp-item svg { flex-shrink: 0; opacity: 0.6; }
.hp-item:hover { color: rgba(255,255,255,0.7); }

/* logo strip (light) */
.logo-strip { padding: 40px 0; border-bottom: 1px solid var(--border); background: var(--background); }
.logo-strip .lbl { text-align: center; color: var(--neutral-500); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); margin-bottom: 24px; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 52px; flex-wrap: wrap; }
.logo-row .pl { display: flex; align-items: center; gap: 9px; color: var(--neutral-500); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; transition: color var(--dur-fast); }
.logo-row .pl:hover { color: var(--neutral-800); }
.logo-row .pl svg { width: 19px; height: 19px; color: var(--neutral-400); }

/* ============================ FEATURE STACK (no-click, all visible) ===== */
.fstack { display: flex; flex-direction: column; gap: 88px; }
.frow { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.frow:nth-child(even) { grid-template-columns: 7fr 5fr; }
.frow:nth-child(even) .fr-copy { order: 2; }
.frow:nth-child(even) .fr-demo { order: 1; }
.fr-copy { align-self: center; }
.fr-copy .eyebrow.step { color: var(--brand); margin-bottom: 16px; }
.fr-copy .eyebrow.step::before { width: 28px; opacity: 1; }
.fr-copy h3 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 10px; }
.fr-sub { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--foreground); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.3; margin: 0 0 16px; max-width: 420px; }
.fr-copy p { color: var(--neutral-600); font-size: 16px; line-height: 1.62; margin: 0; max-width: 420px; }
.fr-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fr-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--neutral-700); background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-pill); padding: 9px 16px; transition: border-color var(--dur-med), box-shadow var(--dur-med); }
.fr-pill:hover { border-color: var(--neutral-300); box-shadow: var(--shadow-sm); }
.fr-pill svg { width: 15px; height: 15px; color: var(--neutral-500); }
.fr-demo { background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); padding: 26px; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.fr-demo:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

/* directional scroll-in: copy slides from its side, demo from the other */
.frow .fr-copy, .frow .fr-demo { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.frow.reveal:not(.in) .fr-copy { opacity: 0; transform: translateX(-30px); }
.frow.reveal:not(.in) .fr-demo { opacity: 0; transform: translateX(30px); }
.frow:nth-child(even).reveal:not(.in) .fr-copy { transform: translateX(30px); }
.frow:nth-child(even).reveal:not(.in) .fr-demo { transform: translateX(-30px); }
.frow.reveal.in .fr-demo { transition-delay: .12s; }
@media (max-width: 980px) {
  .fstack { gap: 56px; }
  .frow, .frow:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .frow:nth-child(even) .fr-copy { order: 0; }
  .frow:nth-child(even) .fr-demo { order: 0; }
  .fr-copy p { max-width: none; }
  /* stacked layout: avoid horizontal slide (prevents x-overflow) */
  .frow.reveal:not(.in) .fr-copy,
  .frow.reveal:not(.in) .fr-demo,
  .frow:nth-child(even).reveal:not(.in) .fr-copy,
  .frow:nth-child(even).reveal:not(.in) .fr-demo { transform: translateY(24px); }
}

/* ============================ FEATURES (legacy tab layout — unused) ===== */
.features-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.feat-tabs { display: flex; flex-direction: column; gap: 12px; }
.feat-tab {
  text-align: left; cursor: pointer; font-family: inherit;
  background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-xl);
  padding: 20px 22px; color: var(--foreground); transition: border-color var(--dur-med), box-shadow var(--dur-med), background var(--dur-med);
  display: flex; gap: 16px; align-items: flex-start;
}
.feat-tab:hover { border-color: var(--neutral-300); box-shadow: var(--shadow-sm); }
.feat-tab.active { border-color: var(--brand-ring); box-shadow: 0 0 0 1px var(--brand-ring), var(--shadow-md); }
.feat-tab .ti { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--neutral-100); border: 1px solid var(--neutral-200); color: var(--neutral-500); transition: all var(--dur-med); }
.feat-tab.active .ti { background: var(--brand); border-color: transparent; color: #fff; }
.feat-tab .ti svg { width: 20px; height: 20px; }
.feat-tab .tt { font-size: 16px; font-weight: 600; margin: 0 0 5px; letter-spacing: -0.01em; }
.feat-tab .td { font-size: 13.5px; color: var(--neutral-600); line-height: 1.5; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--dur-med), opacity var(--dur-med), margin var(--dur-med); }
.feat-tab.active .td { max-height: 120px; opacity: 1; margin-top: 2px; }

.feat-stage {
  position: relative; min-height: 470px;
  background: #fff;
  border: 1px solid var(--neutral-200); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg); overflow: hidden; padding: 28px;
}
.feat-stage .glow-floor { display: none; }
.feat-panel { display: none; position: relative; z-index: 2; }
.feat-panel.active { display: block; animation: panelIn 0.5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fr-demo .ph, .feat-panel .ph { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--neutral-500); margin-bottom: 20px; }
.fr-demo .ph .dotbar, .feat-panel .ph .dotbar { display: flex; gap: 6px; margin-right: 6px; }
.fr-demo .ph .dotbar i, .feat-panel .ph .dotbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--neutral-300); }
/* traffic-light dots for the "app window" header feel — consistent across all demos */
.fr-demo .ph .dotbar i:nth-child(1) { background: #ff5f57; }
.fr-demo .ph .dotbar i:nth-child(2) { background: #febc2e; }
.fr-demo .ph .dotbar i:nth-child(3) { background: #28c840; }

/* workflow stepper (AI Apply) */
.flow { display: flex; align-items: stretch; gap: 0; margin-top: 14px; }
.flow .node { flex: 1; text-align: center; position: relative; }
.flow .node .chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 16px 10px; border-radius: var(--radius-md); width: 100%;
  background: var(--neutral-50); border: 1px solid var(--neutral-200); transition: all var(--dur-med);
}
.flow .node.on .chip { background: var(--brand-soft); border-color: var(--brand-ring); }
.flow .node.done .chip { border-color: var(--success-border); background: var(--success-bg); }
.flow .node .ci { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--neutral-200); color: var(--neutral-500); transition: all var(--dur-med); }
.flow .node.on .ci { background: var(--brand); border-color: transparent; color: #fff; }
.flow .node.done .ci { background: var(--success); border-color: transparent; color: #fff; }
.flow .node .ci svg { width: 18px; height: 18px; }
.flow .node .nlab { font-size: 12px; font-weight: 600; color: var(--neutral-700); }
.flow .arr { display: flex; align-items: center; color: var(--neutral-300); padding: 0 4px; align-self: center; margin-top: -24px; }
.flow .arr svg { width: 18px; height: 18px; }
.flow-detail { margin-top: 24px; background: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); padding: 18px; min-height: 92px; }
.flow-detail .fd-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.flow-detail .fd-h .ttl { font-size: 14px; font-weight: 600; }
.flow-detail .fd-h .pct { font-family: var(--font-mono); font-size: 13px; color: var(--brand); font-variant-numeric: tabular-nums; }
.flow-detail .pbar { height: 6px; border-radius: 5px; background: var(--neutral-200); overflow: hidden; }
.flow-detail .pbar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 5px; transition: width 0.3s linear; }
.flow-detail .fd-sub { font-size: 12.5px; color: var(--neutral-600); margin-top: 12px; }

/* interview chat */
.chat { display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 78%; padding: 13px 16px; border-radius: var(--radius-lg); font-size: 14px; line-height: 1.5; }
.bubble.ai { background: var(--neutral-100); border: 1px solid var(--neutral-200); border-top-left-radius: 5px; color: var(--neutral-700); }
.bubble.me { align-self: flex-end; background: var(--brand-soft); border: 1px solid var(--brand-ring); border-top-right-radius: 5px; color: var(--brand-accent); }
.bubble strong { color: var(--brand-accent); }
.bubble .who { font-size: 11px; font-weight: 600; color: var(--neutral-500); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.bubble .who .av { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); }
.score-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.score-card { background: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); padding: 15px; }
.score-card .sc-lab { font-size: 11.5px; color: var(--neutral-500); margin-bottom: 8px; }
.score-card .sc-val { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.score-card .sc-val small { font-size: 14px; color: var(--neutral-500); font-weight: 500; }
.score-card .sc-bar { height: 5px; border-radius: 4px; background: var(--neutral-200); margin-top: 9px; overflow: hidden; }
.score-card .sc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }

/* job match */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius-lg); background: var(--neutral-50); border: 1px solid var(--neutral-200); transition: all var(--dur-med); }
.match-card.top { border-color: var(--brand-ring); background: var(--brand-soft); }
.match-card .mlogo { width: 46px; height: 46px; border-radius: var(--radius-md); display: grid; place-items: center; font-weight: 700; font-size: 16px; color: var(--neutral-700); background: #fff; border: 1px solid var(--neutral-200); flex: none; }
.match-card .minfo { flex: 1; min-width: 0; }
.match-card .minfo .role { font-size: 15px; font-weight: 600; }
.match-card .minfo .meta { font-size: 12.5px; color: var(--neutral-600); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.match-card .minfo .meta .pip { display: inline-flex; align-items: center; gap: 5px; }
.match-card .minfo .meta .pip svg { width: 13px; height: 13px; color: var(--neutral-400); }
.match-card .mscore { text-align: right; flex: none; }
.match-card .mscore .pc { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.match-card.top .mscore .pc { color: var(--brand); }
.match-card .mscore .pl { font-size: 11px; color: var(--neutral-500); }
.skill-gap { margin-top: 18px; padding: 16px; border-radius: var(--radius-lg); background: var(--neutral-50); border: 1px solid var(--neutral-200); }
.skill-gap .sg-h { font-size: 12.5px; color: var(--neutral-500); margin-bottom: 12px; font-weight: 600; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip-skill { font-size: 12.5px; padding: 6px 12px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--neutral-200); color: var(--neutral-700); }
.chip-skill.gap { color: var(--warning); border-color: var(--warning-border); background: var(--warning-bg); }
.chip-skill.have { color: var(--success); border-color: var(--success-border); background: var(--success-bg); }

/* resume before/after */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 20px; }
.ba .doc { background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); padding: 22px 18px 16px; position: relative; display: flex; flex-direction: column; }
.ba .doc.after { border: 2px solid var(--brand); background: #f8faff; }
.ba .doc .doc-tag { position: absolute; top: -13px; left: 14px; font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill); letter-spacing: -0.01em; }
.ba .doc.before .doc-tag { background: #fff; color: var(--neutral-700); border: 1px solid var(--neutral-300); box-shadow: 0 1px 3px rgba(0,0,0,0.07); }
.ba .doc.after .doc-tag { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,0.35); }
.ba .rline { height: 10px; border-radius: 5px; background: var(--neutral-200); margin: 7px 0; flex-shrink: 0; }
.ba .rline.s { width: 55%; }
.ba .rline.hl { background: #93c5fd; opacity: 1; }
.ba .rline.miss { background: repeating-linear-gradient(45deg, rgba(220,38,38,0.2), rgba(220,38,38,0.2) 5px, rgba(254,202,202,0.45) 5px, rgba(254,202,202,0.45) 10px); }
.ba .doc .ats { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--neutral-100); font-size: 13px; }
.ba .doc .ats-lbl { color: var(--neutral-500); font-weight: 500; }
.ba .doc .ats .v { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.ba .doc.before .ats .v { color: #dc2626; }
.ba .doc.after .ats .v { color: #16a34a; }
.ba-mid { display: flex; align-items: center; justify-content: center; }
.ba-arrow { width: 36px; height: 36px; background: var(--brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.ba-caption { font-size: 13.5px; color: var(--neutral-500); margin: 18px 0 0; text-align: center; }

/* ============================ STATS / PROOF (dark ink-2 interlude) ====== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { padding: 30px 26px; border-radius: var(--radius-xl); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.stat-card .num { font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; color: #F4F6FC; font-variant-numeric: tabular-nums; }
.stat-card .lbl { color: #8A94AC; font-size: 14px; margin-top: 8px; line-height: 1.4; }

.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.testi { padding: 28px; border-radius: var(--radius-xl); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.testi .stars { display: flex; gap: 3px; color: #FBBF24; margin-bottom: 16px; }
.testi .stars svg { width: 16px; height: 16px; fill: currentColor; }
.testi .quote { font-size: 18px; line-height: 1.55; color: #EEF2FB; letter-spacing: -0.01em; font-weight: 500; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); flex: none; }
.testi .who .nm { font-size: 14px; font-weight: 600; color: #EEF2FB; }
.testi .who .rl { font-size: 12.5px; color: #8A94AC; }

/* ============================ HOW IT WORKS ============================ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.step-line { position: absolute; top: 38px; left: 16%; right: 16%; height: 2px; background: var(--neutral-200); z-index: 0; }
.step-line i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 1.2s var(--ease-out); }
.step-item { position: relative; z-index: 1; text-align: center; }
.step-num { width: 76px; height: 76px; border-radius: var(--radius-2xl); margin: 0 auto 24px; display: grid; place-items: center; background: #fff; border: 1px solid var(--neutral-200); position: relative; transition: all var(--dur-slow); }
.step-item.lit .step-num { border-color: var(--brand-ring); box-shadow: 0 0 0 1px var(--brand-ring), var(--shadow-md); }
.step-num .n { font-size: 26px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.step-num .ic { position: absolute; bottom: -10px; right: -10px; width: 34px; height: 34px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.step-num .ic svg { width: 17px; height: 17px; color: #fff; }
.step-item h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.step-item p { color: var(--neutral-600); font-size: 14.5px; line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ============================ COMING SOON ============================ */
.cs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 4px;
}
.cs-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl); padding: 28px;
  transition: transform var(--dur-med), box-shadow var(--dur-med), border-color var(--dur-med);
}
.cs-card:hover { transform: translateY(-4px); border-color: var(--neutral-300); box-shadow: var(--shadow-md); }
.cs-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--neutral-500); background: var(--neutral-100);
  border: 1px solid var(--neutral-200); padding: 4px 10px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 6px;
}
.cs-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--neutral-400);
  animation: csPulse 2s ease-in-out infinite;
}
@keyframes csPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.cs-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: grid; place-items: center; flex-shrink: 0;
}
.cs-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--foreground); }
.cs-card p { font-size: 14.5px; color: var(--neutral-600); line-height: 1.62; margin: 0; flex: 1; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.cs-tags span {
  font-family: var(--font-mono); font-size: 11px; color: var(--neutral-600);
  background: var(--neutral-50); border: 1px solid var(--neutral-200);
  padding: 4px 10px; border-radius: var(--radius-pill);
}
@media (max-width: 980px) { .cs-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ============================ VISION ============================ */
.vision { position: relative; overflow: hidden; }
.vision-inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.vision h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: 1.1; margin: 18px 0 0; color: #F6F8FE; }
.vision p { color: #AEB6CC; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; margin: 28px auto 0; max-width: 640px; }
.vision p + p { color: #8A94AC; font-size: 17px; margin-top: 18px; }
.vision .accent { --accent-color: var(--brand-sky); }
.vision-orb { display: none; }

/* ============================ FINAL CTA (dark ink card) ============================ */
.final-cta { position: relative; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-3xl); padding: 80px 40px;
  background: var(--ink); color: #EEF2FB;
  border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-xl);
  --accent-color: var(--brand-sky);
}
.cta-card .glow-top { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 90%; height: 100%; background: radial-gradient(60% 60% at 50% 40%, rgba(37,99,235,0.22) 0%, transparent 70%); pointer-events: none; }
.cta-card h2 { position: relative; z-index: 2; font-size: clamp(2.1rem, 3.8vw, 2.9rem); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: 1.08; margin: 0; color: #F6F8FE; }
.cta-card p { position: relative; z-index: 2; color: #AEB6CC; font-size: 18px; line-height: 1.6; margin: 18px auto 32px; max-width: 480px; }
.cta-form { position: relative; z-index: 2; display: flex; gap: 12px; justify-content: center; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 220px; padding: 12px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #EEF2FB;
  font-family: inherit; font-size: 15px; outline: none; transition: border-color var(--dur-fast);
}
.cta-form input::placeholder { color: #8A94AC; }
.cta-form input:focus { border-color: var(--brand-sky); }
.cta-form .btn-primary { background: #fff; color: var(--ink); }
.cta-form .btn-primary:hover { background: var(--neutral-100); }
.cta-note { position: relative; z-index: 2; color: #8A94AC; font-size: 13px; margin-top: 18px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .features-wrap { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 44px; }
  .step-line { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero-copy h1 { font-size: 2.4rem; }
  .flow { flex-wrap: wrap; }
  .ba { grid-template-columns: 1fr; }
  .ba-mid { transform: rotate(90deg); }
  .score-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 54px 22px; }
}

/* ========================= WHO IT'S FOR ========================== */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.who-card { background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-2xl); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.who-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.who-ic { width: 60px; height: 60px; border-radius: var(--radius-lg); display: grid; place-items: center; flex: none; }
.who-ic svg { width: 26px; height: 26px; }
.who-card h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.who-card p { color: var(--neutral-600); font-size: 15px; line-height: 1.65; margin: 0; }

/* staggered slide-up on reveal */
.who-grid.reveal:not(.in) .who-card { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.who-grid.reveal.in .who-card { opacity: 1; transform: none; }
.who-grid.reveal.in .who-card:nth-child(1) { transition-delay: .05s; }
.who-grid.reveal.in .who-card:nth-child(2) { transition-delay: .13s; }
.who-grid.reveal.in .who-card:nth-child(3) { transition-delay: .21s; }
.who-grid.reveal.in .who-card:nth-child(4) { transition-delay: .29s; }
@media (prefers-reduced-motion: reduce) {
  .who-grid.reveal:not(.in) .who-card { opacity: 1; transform: none; }
}
@media (max-width: 1024px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .who-grid { grid-template-columns: 1fr; } }

/* ===================== RESUME BEFORE / AFTER ===================== */
.ba-head { max-width: 820px; margin: 0 0 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ba-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: 1.08; margin: 0; }
.ba-head p { color: var(--neutral-600); font-size: 18px; line-height: 1.6; margin: 0; max-width: 640px; }

/* score banner */
.ba-score { display: flex; align-items: center; justify-content: center; gap: 64px; background: var(--brand-soft); border: 1px solid var(--brand-ring); border-radius: var(--radius-2xl); padding: 34px 40px; margin-bottom: 30px; }
.ba-score .bs-col { text-align: center; }
.ba-score .bs-pct { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ba-score .bs-pct.bad { color: var(--danger); }
.ba-score .bs-pct.good { color: var(--success); }
.ba-score .bs-lab { font-size: 14px; color: var(--neutral-600); margin-top: 8px; }
.ba-score .bs-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--brand); }
.ba-score .bs-mid svg { width: 22px; height: 22px; }
.ba-score .bs-delta { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--brand); background: #fff; border: 1px solid var(--brand-ring); padding: 4px 11px; border-radius: var(--radius-pill); }

/* comparison cards */
.ba2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ba2-arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 3; }
.ba2-arrow svg { width: 22px; height: 22px; }

.rcard { position: relative; border-radius: var(--radius-2xl); padding: 28px; }
.rcard.before { background: var(--danger-bg); border: 1px solid var(--danger-border); border-left: 4px solid var(--danger); box-shadow: var(--shadow-md); }
.rcard.after { background: #fff; border: 1px solid var(--brand-ring); border-left: 4px solid var(--brand); box-shadow: var(--shadow-lg); }
.rc-tag { position: absolute; top: -13px; left: 24px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); }
.rcard.before .rc-tag { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.rcard.after .rc-tag { background: var(--ink); color: #fff; }

.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid; }
.rcard.before .rc-head { border-color: var(--danger-border); }
.rcard.after .rc-head { border-color: var(--neutral-200); }
.rc-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.rc-role { font-family: var(--font-mono); font-size: 13px; color: var(--neutral-500); margin-top: 5px; }
.rc-ats { font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.rc-ats svg { width: 14px; height: 14px; }
.rc-ats.bad { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.rc-ats.good { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }

.rc-lab { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--neutral-500); margin: 18px 0 9px; }
.rc-text { font-size: 15px; line-height: 1.62; color: var(--neutral-700); margin: 0; }
.rc-text .strike { color: var(--danger); text-decoration: line-through; text-decoration-color: var(--danger); background: rgba(190,18,60,0.08); border-radius: 3px; padding: 0 2px; }
.rc-text mark { background: var(--brand-soft); color: var(--brand-accent); border-radius: 3px; padding: 1px 4px; font-weight: 500; }

.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-skill { font-family: var(--font-mono); font-size: 12.5px; padding: 6px 12px; border-radius: var(--radius-pill); }
.rcard.before .rc-skill { background: #fff; border: 1px solid var(--neutral-200); color: var(--neutral-500); }
.rcard.after .rc-skill { background: var(--brand); color: #fff; }
.rcard.after .rc-skill.muted { background: #fff; color: var(--neutral-600); border: 1px solid var(--neutral-200); }

/* directional reveal: before slides from left, after from right */
.ba2 .rcard { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.ba2.reveal:not(.in) .rcard.before { opacity: 0; transform: translateX(-26px); }
.ba2.reveal:not(.in) .rcard.after { opacity: 0; transform: translateX(26px); }
.ba2.reveal.in .rcard.after { transition-delay: .1s; }

@media (max-width: 860px) {
  .ba-score { flex-direction: column; gap: 16px; padding: 28px 18px; }
  .ba-score .bs-mid { flex-direction: row; }
  .ba-score .bs-mid svg { transform: rotate(90deg); }
  .ba2 { grid-template-columns: 1fr; gap: 44px; }
  .ba2-arrow { top: 50%; }
  .ba2-arrow svg { transform: rotate(90deg); }
  .ba2.reveal:not(.in) .rcard.before { transform: translateY(22px); }
  .ba2.reveal:not(.in) .rcard.after { transform: translateY(22px); }
}
@media (prefers-reduced-motion: reduce) {
  .ba2 .rcard { opacity: 1 !important; transform: none !important; }
}

/* ============================ HERO INTERACTIVE DEMO (v2 — light app style) === */
.hero-demo {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.40), 0 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 510px;
}

/* ── browser chrome bar ── */
.demo-chrome {
  display: flex; align-items: center;
  padding: 0 14px; height: 34px;
  background: #ededf2;
  border-bottom: 1px solid rgba(0,0,0,0.09);
  flex-shrink: 0; position: relative;
}
.demo-dots { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #c8c8d0; }
.demo-addr {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; color: #999; white-space: nowrap;
}
.demo-live-badge {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: #555; flex-shrink: 0;
}
.demo-live-badge span { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: block; }

/* ── shared app bar ── */
.demo-app-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 46px;
  background: #fff; border-bottom: 1px solid #f0f0f5;
  flex-shrink: 0;
}
.demo-brand-mark { display: flex; align-items: center; flex-shrink: 0; }
.demo-brand-logo { height: 19px; width: auto; display: block; }

/* Phase 1 nav links (push right with margin-left: auto) */
.demo-ph1-links {
  display: flex; align-items: center; gap: 5px; margin-left: auto;
}
.demo-ph1-links span {
  font-size: 10.5px; color: #555; padding: 4px 9px;
  border: 1px solid #e0e0ea; border-radius: 20px; cursor: default; white-space: nowrap;
}

/* Phase 2 app bar: brand | center job ctx | right ats + avatar */
.demo-app-bar-ph2 { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; }
.demo-job-ctx {
  text-align: center; font-family: var(--font-mono);
  font-size: 11px; color: #888; white-space: nowrap;
}
.demo-ats-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(34,197,94,0.4); background: rgba(34,197,94,0.09);
  font-size: 11px; font-weight: 600; color: #333; white-space: nowrap; flex-shrink: 0;
}
.demo-ats-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: block; flex-shrink: 0; }
.demo-ats-pill.is-low { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.09); }
.demo-ats-pill.is-low .demo-ats-dot { background: #ef4444; }

.demo-avatar {
  width: 27px; height: 27px; border-radius: 50%;
  background: #3730A3; color: #fff;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; flex-shrink: 0;
}

/* ── Phase 1: landing ── */
.demo-landing { flex: 1; display: flex; flex-direction: column; background: #fff; }
.demo-landing-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 24px 8px; text-align: center;
}
.demo-landing-h {
  font-size: 20px; font-weight: 800; color: #0f0f1a;
  letter-spacing: -0.025em; line-height: 1.18; margin: 0 0 10px;
}
.demo-landing-sub { font-size: 12px; color: #999; line-height: 1.55; margin: 0; }
.demo-accent { color: #4F46E5; font-weight: 600; }
.demo-landing-foot {
  padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid #f0f0f5;
}
.demo-jd-box {
  position: relative; background: #fff;
  border: 1.5px solid #dde0f5; border-radius: 9px;
  padding: 10px 14px; min-height: 42px;
  font-size: 12.5px; line-height: 1.5; color: #222;
  transition: border-color 0.25s;
}
.demo-jd-box.has-text { border-color: #6366f1; }
.demo-jd-ph {
  position: absolute; top: 10px; left: 14px;
  font-size: 12.5px; color: #c0c0d0; transition: opacity 0.25s; pointer-events: none;
}
.demo-go-btn {
  width: 100%; padding: 11px; border-radius: 9px;
  background: #3B3770; color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600;
  border: none; cursor: default;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s, background 0.15s;
}
.demo-go-btn.is-active { background: #2e2a5a; box-shadow: 0 0 0 3px rgba(99,102,241,0.22); }
.demo-go-btn.is-pressed { transform: scale(0.98); }

/* ── Phase 2: chat + resume ── */
.demo-app { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.demo-split { flex: 1; display: flex; overflow: hidden; }

/* chat pane (left) */
.demo-chat-pane {
  flex: 0 0 45%; display: flex; flex-direction: column;
  background: #f3f3f8; border-right: 1px solid rgba(0,0,0,0.07); overflow: hidden;
}
.demo-chat-msgs {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 9px;
}
.demo-chat-msgs::-webkit-scrollbar { width: 0; }
.demo-chat-msg {
  font-size: 12px; line-height: 1.5; border-radius: 12px; padding: 9px 13px;
  animation: msgIn 0.3s var(--ease-out) both; max-width: 92%;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
.demo-chat-msg.user {
  align-self: flex-end; background: #17172D; color: #fff;
  border-bottom-right-radius: 3px;
}
.demo-chat-msg.bot {
  align-self: flex-start; background: #fff; color: #444;
  border: 1px solid #e8e8f0; border-bottom-left-radius: 3px;
}
.demo-chat-compose {
  flex-shrink: 0; display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-top: 1px solid rgba(0,0,0,0.06); background: #f3f3f8;
}
.demo-chat-input {
  flex: 1; font-family: inherit; font-size: 12px; color: #333;
  background: #fff; border: 1px solid #e0e0ea; border-radius: 8px;
  padding: 7px 10px; min-height: 30px; line-height: 1.4; word-break: break-word;
}
.demo-chat-send-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: #3B3770; color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}

/* resume pane (right) */
.demo-rez {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 16px 18px; background: #fff; position: relative;
}
.demo-rez::-webkit-scrollbar { width: 3px; }
.demo-rez::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }

.demo-rez-top { margin-bottom: 12px; }
.demo-rez-name { font-size: 17px; font-weight: 700; color: #0a0a18; letter-spacing: -0.02em; }
.demo-rez-title { font-size: 12px; color: #4F46E5; font-weight: 600; margin-top: 2px; }
.demo-rez-contact { font-size: 10px; color: #bbb; margin-top: 3px; }
.demo-rez-rule { border: none; border-top: 1px solid #eeeef5; margin: 9px 0 0; }

.demo-rez-sec { margin-bottom: 11px; }
.demo-rez-lbl {
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #4F46E5; margin-bottom: 6px;
}
.demo-rez-sec > p { margin: 0; font-size: 11px; line-height: 1.55; color: #333; border-radius: 3px; }

.demo-rez-job { margin-bottom: 8px; }
.demo-rez-job-row {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px;
}
.demo-rez-co { font-size: 11.5px; font-weight: 700; color: #111; }
.demo-rez-date { font-size: 10px; color: #bbb; }
.demo-rez-bul {
  font-size: 10.5px; color: #555; line-height: 1.5;
  padding-left: 11px; position: relative; margin-bottom: 2px; border-radius: 3px;
}
.demo-rez-bul::before {
  content: ""; position: absolute; left: 3px; top: 6px;
  width: 3px; height: 3px; border-radius: 50%; background: #bbb;
}

.demo-rez-skills { display: flex; flex-wrap: wrap; gap: 5px; border-radius: 3px; padding: 2px 0; }
.demo-skill {
  font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 20px;
  background: #fff; color: #555; border: 1px solid #ddd;
}
.demo-skill.is-new {
  animation: skillPop 0.38s var(--ease-out) both;
  background: #17172D; color: #fff; border-color: #17172D;
}
@keyframes skillPop {
  from { opacity: 0; transform: scale(0.72); }
  to   { opacity: 1; transform: scale(1); }
}

/* flash on changed resume elements */
.rez-flash { animation: rezFlash 0.9s var(--ease-out) both; }
@keyframes rezFlash {
  0%   { background-color: rgba(99,102,241,0.13); }
  100% { background-color: transparent; }
}

/* callout badges */
.demo-callout {
  position: absolute; right: 12px;
  background: #17172D; color: #fff;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  transition: opacity 0.5s var(--ease-out); pointer-events: none; white-space: nowrap;
}
#calloutA  { bottom: 50px; }
.demo-callout-b { bottom: 24px; }

/* ── Phase 0: AI Apply sequence ── */
.demo-apply { flex: 1; display: flex; flex-direction: column; background: #fff; overflow: hidden; }
.demo-apply-bar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; }
.demo-apply-ctx { font-family: var(--font-mono); font-size: 11px; color: #888; align-self: center; }
.demo-head-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: #fff; text-decoration: none;
  background: #3B3770; padding: 5px 11px; border-radius: 20px; white-space: nowrap;
  opacity: 0; transform: translateX(6px); pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.6s;
}
.demo-head-cta.is-on { opacity: 1; transform: none; pointer-events: auto; animation: ctaGlow 1.8s ease-in-out infinite; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(99,102,241,0); }
}

.demo-apply-body { flex: 1; position: relative; overflow: hidden; }
.af-frame {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px 22px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.af-frame.is-active { opacity: 1; transform: none; pointer-events: auto; }

.af-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; color: #555; align-self: flex-start;
}
.af-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; animation: afPulse 1.4s ease-in-out infinite; }
.af-pulse-dot.green { background: #22c55e; }
@keyframes afPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
}
.af-spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #ddd; border-top-color: #6366f1;
  animation: afSpin 0.7s linear infinite;
}
@keyframes afSpin { to { transform: rotate(360deg); } }

.af-card {
  width: 100%; background: #fff;
  border: 1px solid #ececf3; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(20,20,50,0.07);
  padding: 18px;
}
.af-card.af-glow { animation: afCardGlow 2.2s ease-in-out infinite; }
@keyframes afCardGlow {
  0%, 100% { box-shadow: 0 8px 30px rgba(20,20,50,0.07); }
  50%      { box-shadow: 0 8px 36px rgba(99,102,241,0.22); }
}

/* Frame 1 job list */
.af-joblist { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.af-job-best { position: relative; padding: 16px; }
.af-best-tag {
  position: absolute; top: -9px; left: 16px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: #4F46E5; padding: 3px 9px; border-radius: 20px;
}
.af-job-best.pop { animation: afBestPop 0.5s var(--ease-out) both; }
@keyframes afBestPop {
  from { opacity: 0; transform: scale(0.93) translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.af-job-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; background: #fafafc;
  border: 1px solid #f0f0f6; border-radius: 11px;
  opacity: 0; transform: translateY(8px);
}
.af-job-row.show { opacity: 1; transform: none; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.af-row-logo {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #888;
}
.af-row-logo.li { background: #5E6AD2; }
.af-row-logo.no { background: #111; }
.af-row-logo.ra { background: #f59e0b; }
.af-row-info { flex: 1; min-width: 0; }
.af-row-role { font-size: 12px; font-weight: 600; color: #222; }
.af-row-co { font-size: 10.5px; color: #aaa; }
.af-row-bar { width: 58px; height: 5px; border-radius: 4px; background: #ececf2; overflow: hidden; flex-shrink: 0; }
.af-row-bar i { display: block; height: 100%; border-radius: 4px; background: #c7c9e8; }
.af-row-pct { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #999; width: 30px; text-align: right; flex-shrink: 0; }

/* Frame 1 job card */
.af-job-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.af-job-logo {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #635BFF, #4F46E5);
}
.af-job-info { flex: 1; min-width: 0; }
.af-job-role { font-size: 15px; font-weight: 700; color: #111; }
.af-job-co { font-size: 11.5px; color: #999; margin-top: 1px; }
.af-job-match { text-align: right; flex-shrink: 0; }
.af-match-pct { font-size: 22px; font-weight: 800; color: #4F46E5; letter-spacing: -0.02em; line-height: 1; }
.af-match-lbl { font-size: 10px; color: #aaa; margin-top: 2px; }

.af-reasons { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px; }
.af-reasons-stack { flex-direction: column; gap: 9px; }
.af-reason { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #555; }
.af-reason i { color: #22c55e; font-style: normal; font-weight: 700; font-size: 12px; }
.af-reason.pending { opacity: 0; transform: translateX(-6px); }
.af-reason.show { opacity: 1; transform: none; transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }

.af-cta {
  width: 100%; padding: 11px; border-radius: 10px; border: none; cursor: default;
  background: #3B3770; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s;
}
.af-cta.is-pressed { transform: scale(0.98); }
.af-cta-glow { animation: ctaGlow 1.8s ease-in-out infinite; }

/* Frame 2 tailoring */
.af-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.af-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #bbb; transition: color 0.3s; }
.af-step-ic {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #ddd; background: #fff; position: relative; transition: all 0.3s;
}
.af-step.done { color: #333; }
.af-step.done .af-step-ic { background: #22c55e; border-color: #22c55e; }
.af-step.done .af-step-ic::after {
  content: ""; position: absolute; left: 4.5px; top: 2px;
  width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.af-prog { margin-bottom: 16px; }
.af-prog-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.af-prog-head span:first-child { font-size: 11px; color: #888; }
.af-prog-pct { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #4F46E5; font-variant-numeric: tabular-nums; }
.af-prog-bar { height: 7px; border-radius: 5px; background: #eee; overflow: hidden; }
.af-prog-bar i { display: block; height: 100%; width: 72%; border-radius: 5px; background: linear-gradient(90deg, #6366f1, #4F46E5); transition: width 0.5s var(--ease-out); }
.af-mini-rez { display: flex; flex-direction: column; gap: 7px; padding-top: 14px; border-top: 1px solid #f1f1f6; }
.af-mini-line { height: 6px; border-radius: 4px; background: #ececf2; }
.af-mini-line.grad { background: linear-gradient(90deg, rgba(99,102,241,0.45), rgba(99,102,241,0.15)); }
.af-mini-line.w55 { width: 55%; } .af-mini-line.w65 { width: 65%; }
.af-mini-line.w70 { width: 70%; } .af-mini-line.w80 { width: 80%; } .af-mini-line.w90 { width: 90%; }

/* Frame 3 cover letter */
.af-cover {
  font-size: 11.5px; line-height: 1.7; color: #444; min-height: 78px;
  padding: 12px 14px; background: #fafaff; border: 1px solid #f0f0f8; border-radius: 10px; margin-bottom: 14px;
}
.af-cover .af-cursor { display: inline-block; width: 1px; background: #6366f1; animation: afBlink 0.8s step-end infinite; }
@keyframes afBlink { 50% { opacity: 0; } }

/* Frame 4 autofill form */
.af-form-card { padding: 0; overflow: hidden; }
.af-form-head { font-family: var(--font-mono); font-size: 11px; color: #888; padding: 11px 16px; border-bottom: 1px solid #f1f1f6; background: #fafafc; }
.af-form-src { color: #22c55e; font-weight: 600; }
.af-fields { display: flex; flex-direction: column; }
.af-field { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #f5f5fa; font-size: 12px; }
.af-field:last-child { border-bottom: none; }
.af-field-lbl { color: #888; flex: 1; min-width: 0; }
.af-field-val { color: #222; font-weight: 600; }
.af-field-tick { width: 17px; height: 17px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.af-field.filled .af-field-tick { opacity: 1; transform: none; }
.af-field.filled .af-field-val { animation: afFieldIn 0.3s var(--ease-out) both; }
@keyframes afFieldIn { from { opacity: 0; } to { opacity: 1; } }
.af-field-low { flex-wrap: wrap; background: #fffbeb; }
.af-field-low .af-field-lbl { flex-basis: 100%; color: #92670c; font-weight: 600; margin-bottom: 4px; }
.af-field-suggest { flex-basis: 100%; font-size: 11px; line-height: 1.5; color: #555; min-height: 16px; }
.af-field-flag { font-size: 9.5px; color: #b45309; background: #fef3c7; border: 1px solid #fde68a; padding: 2px 7px; border-radius: 20px; margin-top: 6px; }

/* Frame 6 success */
.af-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.af-success-ic { width: 52px; height: 52px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; margin-bottom: 8px; animation: afPop 0.5s var(--ease-out) both; }
@keyframes afPop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.af-success-h { font-size: 18px; font-weight: 800; color: #0f0f1a; letter-spacing: -0.02em; }
.af-success-saved { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #4F46E5; margin-bottom: 14px; }
.af-stats { display: flex; gap: 12px; width: 100%; }
.af-stat { flex: 1; background: #f6f6fb; border: 1px solid #eeeef6; border-radius: 12px; padding: 14px 10px; }
.af-stat-num { font-size: 24px; font-weight: 800; color: #111; letter-spacing: -0.02em; }
.af-stat-lbl { font-size: 10.5px; color: #999; margin-top: 3px; line-height: 1.3; }

@media (max-width: 980px) {
  .hero-demo { height: 450px; }
  .demo-ph1-links span:last-child { display: none; }
}
@media (max-width: 620px) {
  .hero-demo { height: 390px; }
  .demo-ph1-links { display: none; }
  .demo-chat-pane { flex: 0 0 43%; }
  .demo-landing-h { font-size: 17px; }
  .demo-head-cta { font-size: 9.5px; padding: 4px 9px; }
}
