/* =========================================================
   BACKIN THEME TOKENS
   Deep navy + warm coral: bold, but warm enough to feel welcoming.
   ========================================================= */
:root {
  --bg: #0d1324;
  --surface: #131a2f;
  --surface-2: #1b2440;
  --line: rgba(246, 241, 231, 0.1);
  --text: #f6f1e7;
  --muted: #a3abbf;
  --accent: #ff6b45;
  --accent-soft: rgba(255, 107, 69, 0.14);
  --accent-ink: #1f0e07;
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.03em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.accent-text { color: var(--accent); font-style: normal; }
.muted-text { color: var(--muted); }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Light purple aura that follows the mouse (position set by script.js).
   z-index -1 keeps it behind all content but above the page background. */
.cursor-aura {
  position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none;
  width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 172, 255, 0.45) 0%, rgba(167, 139, 250, 0.2) 35%, transparent 68%);
  opacity: 0; transition: opacity 0.6s ease;
  will-change: transform;
}
.cursor-aura.on { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.95em 1.6em; border-radius: 999px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; font-family: inherit; font-size: 1rem; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255, 107, 69, 0.6); }
.btn-primary:hover { background: #ff8463; box-shadow: 0 14px 40px -10px rgba(255, 107, 69, 0.75); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 0.6em 1.25em; font-size: 0.92rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(13, 19, 36, 0.65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: 1.05rem;
}
.nav-links { display: flex; gap: 34px; font-size: 0.95rem; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; padding: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow-x: clip;
  min-height: 100dvh; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px);
  padding: 120px var(--gutter) 72px;
}
.hero-grid {
  position: absolute; inset: auto -10% 0 -10%; height: 50%; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 107, 69, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 69, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, black 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, black 10%, transparent 85%);
  animation: grid-move 3.5s linear infinite;
}
@keyframes grid-move { to { background-position: 0 64px; } }
.hero-glow {
  position: absolute; z-index: -2; width: 620px; height: 620px; right: 5%; top: 12%;
  border-radius: 50%; filter: blur(110px); opacity: 0.35;
  background: radial-gradient(circle, var(--accent), #7a3cff 70%, transparent);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.15); } }

.eyebrow {
  margin-bottom: 22px; font-family: var(--font-mono); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent);
}
.hero-title { font-size: clamp(2.7rem, 5.2vw, 4.7rem); font-weight: 700; line-height: 1; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { from { transform: translateY(110%); } }

.hero-rotator { margin-top: 22px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 500; color: var(--muted); }
.rotator { display: inline-flex; overflow: hidden; vertical-align: bottom; height: 1.3em; }
.rotator-word { display: inline-block; color: var(--text); border-bottom: 2px solid var(--accent); line-height: 1.25; }
.rotator-word.out { animation: word-out 0.35s var(--ease) forwards; }
.rotator-word.in { animation: word-in 0.5s var(--ease) both; }
@keyframes word-out { to { transform: translateY(-110%); opacity: 0; } }
@keyframes word-in { from { transform: translateY(110%); opacity: 0; } }

.hero-sub { max-width: 42ch; margin: 18px 0 36px; font-size: 1.12rem; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; perspective: 1000px; }
.hero-photo {
  border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 19, 36, 0.55));
}

.float-card {
  position: absolute; z-index: 2;
  background: rgba(19, 26, 47, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(246, 241, 231, 0.14);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}
.match-card {
  left: -40px; bottom: 56px; width: 250px; padding: 18px 20px;
  animation: pop 0.9s 0.9s var(--ease) both, bob 6s 2s ease-in-out infinite;
}
.match-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.match-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.match-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.match-role { font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.match-co { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.match-meter { height: 6px; border-radius: 6px; background: rgba(246, 241, 231, 0.08); overflow: hidden; }
.match-meter span {
  display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, #ffb199, var(--accent));
  transform-origin: left; animation: fill 1.4s 1.5s var(--ease) both;
}
@keyframes fill { from { transform: scaleX(0); } }
.match-score { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.match-score b { color: var(--text); }

.chip-card {
  right: -24px; top: 48px; padding: 12px 18px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500;
  animation: pop 0.9s 1.4s var(--ease) both, bob 7s 2.5s ease-in-out infinite reverse;
}
.chip-card i { color: #6ee7a8; font-size: 1.15rem; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.92); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat { padding: 40px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat-num span { font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Statement ---------- */
.statement-wrap { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--gutter); }
.statement {
  font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.15; font-weight: 600;
  letter-spacing: -0.025em; max-width: 22ch;
}
.statement .word { color: #2b3452; transition: color 0.6s var(--ease); }
.statement .word.lit { color: var(--text); }
.statement .word.hl.lit { color: var(--accent); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section-title { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 56px; max-width: 18ch; }

/* ---------- Comeback Archive ---------- */
.archive { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.archive-tabs { display: flex; flex-direction: column; gap: 6px; }
.archive-tab {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 18px; border-radius: 14px; border: 1px solid transparent;
  background: none; color: var(--muted); font: inherit; font-size: 1.02rem; font-weight: 500;
  text-align: left; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.archive-tab i { font-size: 1.25rem; }
.archive-tab:hover { color: var(--text); background: var(--surface); transform: translateX(4px); }
.archive-tab[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: rgba(255, 107, 69, 0.4); }
.archive-tab[aria-selected="true"] i { color: var(--accent); }

.archive-panel {
  position: relative; overflow: hidden; min-height: 400px;
  padding: clamp(28px, 4vw, 52px); border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 107, 69, 0.18), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
}
.archive-panel.swap > *:not(.stamp) { animation: panel-in 0.6s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.file-no { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
.file-title { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 20ch; margin-bottom: 36px; }
.file-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.file-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.file-head i { color: var(--accent); font-size: 1.15rem; }
.file-reframe, .file-help { color: var(--muted); }
.stamp {
  position: absolute; right: 32px; bottom: 26px;
  padding: 6px 16px; border: 2px solid var(--accent); border-radius: 8px;
  font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); opacity: 0.85; transform: rotate(-9deg);
}
.archive-panel.swap .stamp { animation: stamp 0.55s 0.25s var(--ease) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-16deg) scale(1.8); } 100% { opacity: 0.85; transform: rotate(-9deg) scale(1); } }

/* ---------- How it works ---------- */
.how { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { position: relative; }
.step-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 26px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); font-size: 1.8rem;
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s;
}
.step:hover .step-icon { transform: translateY(-6px) rotate(-6deg); background: var(--accent); color: var(--accent-ink); }
.step h3 { font-size: 1.6rem; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 32ch; }
.steps-line { height: 2px; margin-top: 56px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-line span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffb199);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease);
}
.steps-line.in span { transform: scaleX(1); }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 320px 320px; gap: 16px; }
.bento .tile:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.bento .tile:nth-child(2) { grid-column: 2; grid-row: 1; }
.bento .tile:nth-child(3) { grid-column: 3; grid-row: 1; }
.bento .tile:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  border-radius: 24px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.3s;
}
.tile img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.75); transition: transform 0.9s var(--ease);
}
.tile-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(13, 19, 36, 0.95) 10%, transparent 70%);
}
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 107, 69, 0.16), transparent 60%);
}
.tile:hover::after { opacity: 1; }
.tile:hover { border-color: rgba(255, 107, 69, 0.45); }
.tile:hover img { transform: scale(1.05); }
.tile-accent { background: linear-gradient(150deg, #ff7b55, #e2492a); color: var(--accent-ink); }
.tile-accent p { color: rgba(31, 14, 7, 0.78) !important; }
.tile-accent i { color: var(--accent-ink) !important; }
.tile-body { padding: 28px; }
.tile-body i { font-size: 1.8rem; color: var(--accent); margin-bottom: 14px; display: block; }
.tile-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.tile-body p { color: #c6ccdb; max-width: 38ch; font-size: 0.98rem; }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.story {
  margin: 0; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.story:nth-child(2) { margin-top: 48px; }
.story:hover { transform: translateY(-6px); border-color: rgba(255, 107, 69, 0.4); }
.story img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 22px; border: 2px solid var(--accent); }
.story blockquote { margin: 0 0 22px; font-size: 1.15rem; line-height: 1.5; font-weight: 500; }
.story figcaption { display: flex; flex-direction: column; font-size: 0.9rem; }
.story figcaption span { color: var(--muted); }

/* ---------- Employers ---------- */
.employers { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.employers .section-title { margin-bottom: 22px; }
.emp-sub { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin-bottom: 28px; }
.emp-list { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 14px; }
.emp-list li { display: flex; align-items: center; gap: 12px; }
.emp-list i {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 0.85rem;
}
.emp-stats { display: grid; gap: 16px; }
.emp-stat {
  padding: 28px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 20px;
}
.emp-stat p { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1; min-width: 3.2ch; }
.emp-stat > span { color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 26px 0; }
.marquee-track {
  display: flex; width: max-content; gap: 64px; animation: marquee 36s linear infinite;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; color: #c6ccdb;
}
.marquee-track span { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee-track i { color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s; }
.faq details[open] { border-color: rgba(255, 107, 69, 0.4); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--accent); font-size: 1.3rem; transition: transform 0.4s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); max-width: 64ch; }

/* ---------- Final CTA ---------- */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: var(--max); margin: 0 auto 64px; padding: clamp(64px, 8vw, 110px) clamp(24px, 6vw, 88px);
  border-radius: 36px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(40px, 6vw, 96px);
}
.final-glow {
  position: absolute; z-index: -1; left: 50%; bottom: -260px; width: 900px; height: 500px; transform: translateX(-50%);
  border-radius: 50%; filter: blur(100px); opacity: 0.45; background: var(--accent);
  animation: breathe 6s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: 0.25; transform: translateX(-50%) scale(1.15); } }
.final-title { font-size: clamp(2.2rem, 4.4vw, 3.9rem); max-width: 16ch; margin-bottom: 22px; }
.final-sub { color: var(--muted); font-size: 1.12rem; max-width: 40ch; margin-bottom: 34px; }
.store-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.rating { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.stars { display: flex; gap: 2px; color: #ffc24a; font-size: 1.05rem; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px 12px 20px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 1.1rem; line-height: 1.1;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.store:hover { background: #fff; }
.store i { font-size: 1.9rem; }
.store span { display: flex; flex-direction: column; text-align: left; }
.store small { font-size: 0.72rem; font-weight: 500; opacity: 0.75; }

/* ---------- iPhone app preview ---------- */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  --app-bg: #f6f1e7; --app-card: #ffffff; --app-ink: #0d1324; --app-muted: #6b7280; --app-line: #e8e1d3;
  position: relative; width: 304px; height: 628px; padding: 11px; border-radius: 54px;
  background: linear-gradient(145deg, #2a2f3d, #0b0d14 40%, #1c202b);
  box-shadow:
    0 0 0 1.5px #3b4152, inset 0 0 0 1.5px #050608,
    0 50px 100px -30px rgba(0, 0, 0, 0.75), 0 0 80px -20px rgba(255, 107, 69, 0.35);
  animation: phone-float 7s ease-in-out infinite;
}
@keyframes phone-float { 50% { transform: translateY(-12px) rotate(0.6deg); } }
/* side buttons */
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2a2f3d; }
.phone::before { left: -4px; top: 132px; height: 62px; box-shadow: 0 78px 0 #2a2f3d; }
.phone::after { right: -4px; top: 168px; height: 92px; }

.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 44px;
  background: var(--app-bg); color: var(--app-ink); font-size: 14px; line-height: 1.4;
  text-align: left;
  clip-path: inset(0 round 44px); /* keeps the blurred tab bar inside the rounded corners */
}
.island { position: absolute; z-index: 4; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #050608; }
.statusbar {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 48px; padding: 14px 26px 0;
  display: flex; justify-content: space-between; font-weight: 600; font-size: 14px;
  background: linear-gradient(var(--app-bg) 70%, rgba(246, 241, 231, 0));
}
.status-icons { display: flex; gap: 5px; align-items: center; font-size: 14px; }

.app-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 58px 16px 0; scrollbar-width: none; scroll-behavior: smooth;
}
.app-scroll::-webkit-scrollbar { display: none; }
.app-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 44px; }
.app-scroll p { margin: 0; }
.app-scroll button { font-family: inherit; cursor: pointer; }

.app-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 16px; }
.app-hello { color: var(--app-muted); font-size: 13px; }
.app-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.app-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--app-line);
  background: var(--app-card); color: var(--app-ink); font-size: 18px; display: grid; place-items: center;
}
.app-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  transition: transform 0.3s var(--ease);
}
.app-badge.cleared { transform: scale(0); }

.app-progress {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; margin-bottom: 20px;
  background: linear-gradient(140deg, #ff7b55, #e2492a); color: #fff;
}
.ring {
  --p: 0; flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, 0.28) 0);
  position: relative; font-weight: 700; font-size: 14px;
}
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #ee5e3a; }
.ring span { position: relative; }
.app-progress-title { font-weight: 700; font-size: 16px; }
.app-progress-sub { font-size: 12.5px; opacity: 0.9; }

.app-section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 10px; }
.app-section-head h4 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.app-section-head span { color: var(--accent); font-size: 12.5px; font-weight: 600; }

.app-match {
  background: var(--app-card); border: 1px solid var(--app-line); border-radius: 18px; padding: 14px; margin-bottom: 10px;
}
.app-match-top { display: flex; gap: 10px; align-items: center; }
.app-match-top > div { flex: 1; min-width: 0; }
.co-logo {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 700; font-size: 16px;
}
.app-role { font-weight: 600; font-size: 14px; line-height: 1.25; }
.app-co { color: var(--app-muted); font-size: 12.5px; }
.app-save { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f6f1e7; color: var(--app-ink); font-size: 16px; display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.app-save.saved { color: #e2492a; }
.app-save.saved i { animation: heart 0.45s var(--ease); }
@keyframes heart { 40% { transform: scale(1.4); } }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.app-tags span { padding: 3px 9px; border-radius: 999px; background: #f6f1e7; font-size: 11.5px; color: #4b5263; }
.app-match-foot { display: flex; justify-content: space-between; align-items: center; }
.app-score { font-size: 12.5px; color: var(--app-muted); }
.app-score b { color: #1f9d6b; }
.app-apply {
  padding: 7px 16px; border-radius: 999px; border: 0; background: var(--app-ink); color: #fff;
  font-weight: 600; font-size: 12.5px; transition: background 0.3s, transform 0.2s;
}
.app-apply:active { transform: scale(0.95); }
.app-apply.applied { background: #1f9d6b; }

.app-coach {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; margin-bottom: 20px;
  background: var(--app-ink); color: #fff;
}
.app-coach img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.app-coach > div { flex: 1; }
.app-coach .app-co { color: #a3abbf; }
.app-coach i { font-size: 20px; color: var(--accent); }

.app-course { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 14px; padding: 11px 13px; margin-bottom: 8px; }
.app-course-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.app-course-row span { display: flex; align-items: center; gap: 6px; }
.app-course-row i { color: var(--accent); }
.app-course-row b { font-weight: 600; color: var(--app-muted); }
.app-bar { height: 5px; border-radius: 5px; background: #efe8da; overflow: hidden; }
.app-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb199, var(--accent)); }

.app-quote { margin: 16px 0 0; padding: 18px; border-radius: 18px; background: #ece4f9; color: #3b2a63; }
.app-quote i { font-size: 22px; color: #8b5cf6; }
.app-quote p { font-weight: 600; font-size: 15px; margin: 4px 0 6px; }
.app-quote span { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.app-spacer { height: 96px; }

.app-tabs {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 82px; padding: 8px 10px 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--app-line);
}
.app-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none;
  font-family: inherit; font-size: 10.5px; font-weight: 500; color: #8a8f9c; cursor: pointer;
}
.app-tabs i { font-size: 22px; }
.app-tabs button.active { color: var(--accent); }
.home-indicator { position: absolute; z-index: 4; bottom: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 3px; background: var(--app-ink); }

.phone-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.phone-hint i { font-size: 1.2rem; color: var(--accent); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-5px); } }

/* ---------- Footer ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover, .footer-legal a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: var(--muted); font-size: 0.88rem; }
.footer-legal { display: flex; gap: 22px; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav > .btn { display: none; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(13, 19, 36, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; font-size: 1.15rem;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }

  .hero { grid-template-columns: 1fr; padding-top: 108px; }
  .hero-visual { max-width: 420px; margin: 24px auto 0; width: 100%; }
  .match-card { left: -8px; bottom: 28px; width: 220px; }
  .chip-card { right: -8px; top: 24px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat { padding: 28px 16px; }

  .archive { grid-template-columns: 1fr; }
  .archive-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .archive-tab { width: auto; white-space: nowrap; scroll-snap-align: start; border-color: var(--line); }
  .archive-tab:hover { transform: none; }
  .file-cols { grid-template-columns: 1fr; gap: 20px; }
  .archive-panel { padding-bottom: 88px; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps-line { display: none; }

  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 300px; }
  .bento .tile:nth-child(n) { grid-column: auto; grid-row: auto; }

  .stories { grid-template-columns: 1fr; }
  .story:nth-child(2) { margin-top: 0; }

  .employers { grid-template-columns: 1fr; }
  .final { margin: 0 var(--gutter) 48px; border-radius: 28px; grid-template-columns: 1fr; text-align: center; }
  .final-title, .final-sub { margin-left: auto; margin-right: auto; }
  .store-btns, .rating { justify-content: center; }
}

/* ---------- Modal + forms ---------- */
button.store { border: 0; font-family: inherit; cursor: pointer; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover { color: var(--accent); }

.modal {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: clamp(28px, 4vw, 40px); border-radius: 26px;
  background: var(--surface); color: var(--text); border: 1px solid rgba(246, 241, 231, 0.14);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
}
.modal::backdrop { background: rgba(6, 9, 18, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.5s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.4s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font-size: 1.1rem; cursor: pointer; transition: border-color 0.3s, transform 0.4s var(--ease);
}
.modal-close:hover { border-color: var(--accent); transform: rotate(90deg); }
.modal h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 10px; padding-right: 40px; }
.modal .eyebrow { margin-bottom: 12px; }
.modal-sub { color: var(--muted); margin-bottom: 26px; }

.modal form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 1rem;
  background: var(--bg); color: var(--text); border: 1px solid rgba(246, 241, 231, 0.18);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23a3abbf' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 69, 0.25);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff8a8a; }
.error { color: #ff9b9b; font-size: 0.85rem; min-height: 0; }
.error:empty { display: none; }
.hint { color: var(--muted); font-size: 0.85rem; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-block { width: 100%; margin-top: 6px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fineprint { color: var(--muted); font-size: 0.82rem; text-align: center; }

.policy { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 16px; }
.policy li { display: flex; gap: 14px; color: var(--muted); }
.policy i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; }
.policy b { color: var(--text); font-weight: 600; }
.modal .fineprint + .btn { margin-top: 18px; }

.success { text-align: center; padding: 12px 0 4px; }
.success-icon {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 2.4rem;
  box-shadow: 0 0 0 0 rgba(255, 107, 69, 0.5);
  animation: pop-check 0.7s var(--ease) both, ring 1.6s 0.4s ease-out;
}
@keyframes pop-check { from { transform: scale(0) rotate(-30deg); } }
@keyframes ring { to { box-shadow: 0 0 0 28px rgba(255, 107, 69, 0); } }
.success h2 { padding-right: 0; }
.success p { color: var(--muted); max-width: 40ch; margin: 0 auto 10px; }
.success .summary {
  margin: 22px 0 26px; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  text-align: left; font-size: 0.92rem; display: grid; gap: 6px;
}
.success .summary span { color: var(--muted); }
.success .summary b { color: var(--text); font-weight: 500; }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .statement .word { color: var(--text); }
  .statement .word.hl { color: var(--accent); }
  .steps-line span { transform: none; }
}
