/* ============================================
   Open Contest — v6 Mobile-First Futuristic
   Linear × Cursor inspired. Type hierarchy with
   focus words. Accessible, tap-friendly, no-JS safe.
   Plain CSS. No frameworks. No build step.
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

:root {
  --bg: #08090A;
  --bg-2: #0C0D0F;
  --surface: #101113;
  --surface-2: #141619;
  --surface-3: #1A1D21;
  --border: #1E2024;
  --border-2: #2A2D32;
  --border-3: #3A3E44;
  --text: #FFFFFF;
  --text-2: #E4E5E9;
  --text-3: #9C9DA1;
  --text-4: #62666D;
  --text-5: #3E4248;
  --violet: #8B7CF6;
  --violet-2: #A89BFF;
  --violet-glow: rgba(139, 124, 246, 0.10);
  --mint: #00E5A0;
  --mint-2: #4FF0C4;
  --amber: #FFB84D;
  --green: #89D196;
  --grad-edge: linear-gradient(90deg, transparent, var(--border-3), transparent);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms var(--ease);
  --t: 300ms var(--ease);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --header-h: 56px;
}

/* ---------- Light theme (html[data-theme="light"]) ---------- */
html[data-theme="light"] {
  --bg: #FAFAF8;
  --bg-2: #F2F2EF;
  --surface: #FFFFFF;
  --surface-2: #F5F5F2;
  --surface-3: #EBEBE7;
  --border: #E4E4E0;
  --border-2: #D8D8D3;
  --border-3: #C8C8C2;
  --text: #101114;
  --text-2: #3A3C40;
  --text-3: #6E7178;
  --text-4: #9A9DA3;
  --text-5: #C4C6CB;
  --violet-glow: rgba(139, 124, 246, 0.07);
}
html[data-theme="light"] .btn-primary {
  color: #fff;
  background: var(--text);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.15);
}
html[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.15);
}
html[data-theme="light"] .site-header {
  background: rgba(250, 250, 248, 0.82);
  border-color: var(--border-2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}
html[data-theme="light"] .site-header.scrolled {
  background: rgba(250, 250, 248, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.6);
}
html[data-theme="light"] .nav-links.open { background: rgba(250, 250, 248, 0.97); }
html[data-theme="light"] .grain { opacity: 0.04; }
html[data-theme="light"] .email-card input { color: var(--text); }
/* Logo + favicon swap handled by JS; slit lines on light logo are bg-colored */
html[data-theme="light"] .logo-mark-img { filter: drop-shadow(0 0 10px rgba(139, 124, 246, 0.25)); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;          /* mobile base */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1, 'ss03' 1;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input { font-family: inherit; font-size: inherit; }
ul { list-style: none; }
::selection { background: rgba(139, 124, 246, 0.3); color: #fff; }

/* Focus words — larger, bolder emphasis inside headings */
.focus {
  font-size: 1.12em;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ---------- Layout — mobile first ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 640px; margin: 0 auto; padding: 0 18px; }

/* ---------- Edge shine ---------- */
.edge-shine {
  position: relative; height: 1px;
  background: var(--grad-edge);
  max-width: 1080px; margin: 0 auto;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' /%3E%3C/svg%3E");
}

header, main, footer { position: relative; z-index: 2; }

/* ---------- Header — floating pill ---------- */
.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 20px);
  max-width: 880px;
  height: 52px;
  display: flex;
  align-items: center;
  background: rgba(12, 13, 15, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.scrolled {
  background: rgba(10, 11, 13, 0.94);
  border-color: var(--border-3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.site-header .container-wide {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 100%;
  padding: 0 6px 0 18px;
}

.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.92rem; letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-mark-img {
  height: 17px; width: auto; flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(139, 124, 246, 0.18));
  transition: filter var(--t);
}
.logo:hover .logo-mark-img {
  filter: drop-shadow(0 0 14px rgba(139, 124, 246, 0.35));
}

/* Mobile: hamburger only */
.nav-links { display: none; }
.nav-toggle {
  display: flex;
  width: 40px; height: 40px;              /* 44px+ tap target w/ padding */
  background: transparent; border: none;
  border-radius: var(--r-sm); cursor: pointer;
  color: var(--text); font-size: 1.05rem;
  align-items: center; justify-content: center;
}
.nav-links.open {
  display: flex; position: fixed;
  top: 72px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 20px); max-width: 880px;
  flex-direction: column; background: rgba(12, 13, 15, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  padding: 10px; gap: 2px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.nav-links a {
  padding: 13px 14px; border-radius: var(--r-sm);   /* 44px+ tap target */
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-3); transition: all var(--t-fast);
}
.nav-links.open a { display: block; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.header-cta { display: flex; align-items: center; gap: 6px; }
.header-cta .btn-glass { display: none; }
.header-cta .btn-primary {
  padding: 8px 6px;
  font-size: 0.84rem;
  flex-shrink: 0;
  border-radius: var(--r-full);
  box-shadow: none;
}
.header-cta .btn-primary:hover { transform: none; box-shadow: none; }

/* Desktop: primary CTA becomes an inset dark pill inside the navbar */
@media (min-width: 720px) {
  .header-cta .btn-primary {
    padding: 9px 18px;
    background: var(--text);
    border-radius: var(--r-full);
  }
  html[data-theme="light"] .header-cta .btn-primary { background: #101114; color: #fff; }
}

/* Theme toggle */
.theme-toggle {
  width: 34px; height: 34px;
  background: transparent; border: none; cursor: pointer;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); flex-shrink: 0;
  transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 10px 18px; border: none; border-radius: var(--r-sm);
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s var(--ease); white-space: nowrap; line-height: 1.4;
}
.btn-primary {
  color: var(--bg); background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 4px 16px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 8px 24px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-glass {
  color: var(--text-2); background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(255,255,255,0.08);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.07); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ---------- Hero — mobile-first ---------- */
.hero {
  padding: 88px 0 56px;
  text-align: center;
  position: relative;
}
.hero-glow {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(420px, 120vw); height: 300px;
  background: radial-gradient(ellipse at center, var(--violet-glow) 0%, transparent 60%);
  filter: blur(60px); pointer-events: none; z-index: 0; opacity: 0.5;
}
.hero > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 11px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 500; color: var(--text-3);
  margin-bottom: 22px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
  animation: blurIn 0.8s var(--ease) both;
  max-width: 100%;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: clamp(2.35rem, 9.5vw, 4rem);
  font-weight: 600; line-height: 106%; letter-spacing: -0.035em;
  color: var(--text); max-width: 600px;
  margin: 0 auto 18px; text-wrap: balance;
  animation: blurIn 0.9s var(--ease) 0.1s both;
}
.hero-title .focus { font-size: 1.1em; }

.hero-sub {
  font-size: 1rem; font-weight: 400; line-height: 1.65;
  color: var(--text-3); max-width: 480px;
  margin: 0 auto 30px; text-wrap: pretty;
  animation: blurIn 0.9s var(--ease) 0.2s both;
}

/* Email card — mobile: stacked, 16px input (no iOS zoom) */
.email-card {
  display: flex; flex-direction: column;
  align-items: stretch; gap: 10px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 12px;
  max-width: 460px; width: 100%; margin: 0 auto;
  transition: border-color var(--t), box-shadow var(--t);
  animation: blurIn 0.9s var(--ease) 0.3s both;
}
.email-card:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.08);
}
.email-card input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 16px;   /* 16px prevents iOS auto-zoom */
  padding: 12px 0; min-width: 0; text-align: center;
  border-radius: var(--r-sm);
}
.email-card input::placeholder { color: var(--text-4); }
.email-card .btn { width: 100%; flex-shrink: 0; padding: 13px 18px; font-size: 0.95rem; }

.email-hint {
  margin-top: 12px; font-size: 0.8rem;
  display: flex; align-items: center; gap: 6px; justify-content: center;
  animation: blurIn 0.9s var(--ease) 0.4s both;
  font-family: var(--mono);
  color: var(--text-4);
}
html[data-theme="light"] .email-hint { color: #7A7D84; }
.email-hint svg { width: 14px; height: 14px; flex-shrink: 0; }

.email-success {
  display: none; align-items: center; gap: 10px;
  padding: 13px 16px;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 200, 140, 0.35);
  border-radius: var(--r-md);
  color: var(--mint-2); font-size: 0.9rem; font-weight: 600;
  max-width: 460px; margin: 12px auto 0; text-align: left;
  box-shadow: 0 4px 16px rgba(0, 200, 140, 0.12);
}
html[data-theme="light"] .email-success {
  background: #E6F9F2;
  border-color: #00A87B;
  color: #00795A;
  box-shadow: 0 4px 16px rgba(0, 168, 123, 0.15);
}
.email-success.show { display: flex; animation: blurIn 0.4s var(--ease); }
.email-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.email-error {
  display: none; margin: 10px auto 0; font-size: 0.84rem; font-weight: 600;
  max-width: 460px; text-align: center;
  color: #FF6B7A;
  padding: 8px 14px;
  background: rgba(255, 90, 105, 0.08);
  border: 1px solid rgba(255, 90, 105, 0.3);
  border-radius: var(--r-sm);
  animation: blurIn 0.3s var(--ease);
}
html[data-theme="light"] .email-error {
  color: #C81E33;
  background: #FDECEE;
  border-color: #E85D6E;
}
.email-error.show { display: block; }

/* Input invalid state — red border pulse + shake */
.email-card.input-invalid {
  border-color: #FF5A69;
  animation: shake 0.4s var(--ease);
}
html[data-theme="light"] .email-card.input-invalid { border-color: #C81E33; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Hero dots */
.hero-dots {
  display: flex; justify-content: center; gap: 4px;
  margin-top: 44px; animation: blurIn 1s var(--ease) 0.5s both;
}
.hero-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-5); animation: dotPulse 2.5s var(--ease) infinite;
}
.hero-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.hero-dots .dot:nth-child(3) { animation-delay: 0.4s; }
.hero-dots .dot:nth-child(4) { animation-delay: 0.6s; }
.hero-dots .dot:nth-child(5) { animation-delay: 0.8s; }
.hero-dots .dot:nth-child(6) { animation-delay: 1s; }
.hero-dots .dot:nth-child(7) { animation-delay: 1.2s; }
@keyframes dotPulse {
  0%,100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.6; transform: scale(1); background: var(--violet); }
}

/* ---------- Sections — mobile first ---------- */
.section { padding: 56px 0; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 12px;
}
.section-eyebrow .accent { color: var(--text-3); }
html[data-theme="light"] .section-eyebrow .accent { color: #6E7178; }
.section-eyebrow .accent-mint { color: var(--mint-2); }
.section-eyebrow .accent-amber { color: var(--amber); }
.section-eyebrow.center { justify-content: center; }

.section-title {
  font-size: clamp(1.7rem, 6.5vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 114%;
  margin-bottom: 12px; text-wrap: balance;
}
.section-title .focus { font-size: 1.06em; }

.section-sub {
  font-size: 1rem; color: var(--text-3);
  max-width: 500px; line-height: 1.65; text-wrap: pretty;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Bento — mobile: single column ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 10px; }
.bento > * {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 20px;
  transition: all var(--t); position: relative; overflow: hidden;
}
.bento > *:hover { border-color: var(--border-2); transform: translateY(-2px); }
.col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 1; }

.feature-card .card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border-2);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature-card .card-icon svg,
.step-card .card-icon svg {
  width: 21px; height: 21px;
  color: var(--text);
}
html[data-theme="light"] .feature-card .card-icon svg,
html[data-theme="light"] .step-card .card-icon svg {
  color: #101114;
}
.feature-card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 7px; letter-spacing: -0.02em; }
.feature-card p { font-size: 0.95rem; color: var(--text-3); line-height: 1.65; }

.feature-card-lg {
  display: flex; flex-direction: column; justify-content: space-between;
}
.feature-card-lg .card-visual {
  margin: -22px -20px 20px; padding: 18px 12px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
}

/* ---------- Compare — mobile: stacked ---------- */
.compare-card {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); overflow: hidden;
}
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.compare-col { padding: 22px 20px; }
.compare-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
.compare-col h4 {
  font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600; color: var(--text-4);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.compare-tag { padding: 2px 8px; border-radius: 5px; font-size: 0.68rem; font-weight: 600; }
.compare-tag.yc { background: var(--surface-3); color: var(--text-3); }
.compare-tag.oc { background: var(--surface-3); color: var(--text); }
html[data-theme="light"] .compare-tag.oc { background: var(--surface-3); color: #101114; }
.compare-list li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.92rem; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 10px;
}
.compare-list li:last-child { border-bottom: none; }
.compare-list .check {
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(137, 209, 150, 0.1);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
  color: var(--green); font-size: 0.65rem;
}

/* ---------- Steps — mobile: single column ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 20px;
  transition: all var(--t); position: relative; overflow: hidden;
}
.step-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.step-card .step-num {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--text-5); letter-spacing: 0.08em; margin-bottom: 10px;
}
.step-card .card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border-2);
  display: grid; place-items: center; margin-bottom: 12px;
}
.step-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.step-card p { font-size: 0.92rem; color: var(--text-3); line-height: 1.6; }

/* ---------- Perks — mobile: single column ---------- */
.perks-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.perk-card {
  display: flex; gap: 14px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); transition: all var(--t-fast);
}
.perk-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-1px); }
.perk-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.perk-icon svg {
  width: 19px; height: 19px;
  color: var(--text);
}
html[data-theme="light"] .perk-icon svg { color: #101114; }
.perk-card h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.perk-card p { font-size: 0.88rem; color: var(--text-3); line-height: 1.6; }

/* ---------- Timeline — mobile ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ''; position: absolute;
  left: 11px; top: 6px; bottom: 6px; width: 1px;
  background: var(--border-2);
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -34px; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 600; color: var(--text-4); z-index: 1;
}
.tl-item.active .tl-dot {
  border-color: var(--violet); background: var(--violet); color: #fff;
  box-shadow: 0 0 0 4px rgba(139, 124, 246, 0.08), 0 0 16px var(--violet-glow);
}
.tl-item.done .tl-dot { border-color: var(--green); background: var(--green); color: var(--bg); }
.tl-date { font-family: var(--mono); font-size: 0.74rem; color: var(--text-4); font-weight: 600; margin-bottom: 4px; letter-spacing: 0.03em; }
.tl-title { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.tl-desc { font-size: 0.88rem; color: var(--text-3); line-height: 1.6; }

.cohort-card {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 22px 18px;
}
.cohort-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 10px; flex-wrap: wrap; }
.cohort-head h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.cohort-head .sub { font-size: 0.78rem; color: var(--text-4); margin-top: 3px; font-family: var(--mono); }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 0.74rem; font-weight: 600; white-space: nowrap;
}
.status-pill.live { background: rgba(137, 209, 150, 0.08); color: var(--green); border: 1px solid rgba(137, 209, 150, 0.15); }
.status-pill.live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.status-pill.upcoming { background: var(--surface-3); color: var(--text-4); border: 1px solid var(--border-2); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  padding: 16px 18px; cursor: pointer;
  font-weight: 600; font-size: 0.96rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  width: 22px; height: 22px; display: grid; place-items: center;
  color: var(--text-4); font-size: 1.3rem; font-weight: 300;
  transition: transform var(--t), color var(--t); flex-shrink: 0;
}
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--text); }
.faq-item .answer { padding: 0 18px 16px; color: var(--text-3); font-size: 0.92rem; line-height: 1.65; }

/* ---------- Final CTA — mobile ---------- */
.cta-section { padding: 56px 0 48px; }
.cta-card {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-xl); padding: 40px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: min(420px, 100%); height: 250px;
  background: radial-gradient(ellipse at center, var(--violet-glow) 0%, transparent 60%);
  filter: blur(50px); pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 {
  font-size: clamp(1.55rem, 6.5vw, 2.2rem);
  font-weight: 600; letter-spacing: -0.03em; margin-bottom: 12px; text-wrap: balance;
}
.cta-card h2 .focus { font-size: 1.06em; }
.cta-card p { font-size: 0.98rem; color: var(--text-3); max-width: 460px; margin: 0 auto 24px; text-wrap: pretty; }

/* ---------- Join Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 5, 6, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; animation: modalFade 0.25s var(--ease); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 32px 24px 24px;
  width: 100%; max-width: 420px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: modalPop 0.35s var(--ease);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer;
  color: var(--text-3); font-size: 1.3rem; font-weight: 300;
  display: grid; place-items: center; line-height: 1;
  transition: all var(--t-fast);
}
.modal-close:hover { color: var(--text); border-color: var(--border-2); }

.modal-eyebrow {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mint-2); margin-bottom: 10px;
}
.modal h3 {
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.modal p {
  font-size: 0.92rem; color: var(--text-3); line-height: 1.6;
  margin-bottom: 20px; text-wrap: pretty;
}
.modal .email-card { animation: none; max-width: 100%; }
.modal-hint {
  margin-top: 14px; font-size: 0.74rem; color: var(--text-4);
  font-family: var(--mono);
}

/* Sign-in modal variants */
.signin-eyebrow { color: var(--amber); }

.btn-github {
  color: var(--text); background: #1A1D21;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.1);
  font-size: 0.95rem; padding: 13px 18px; gap: 10px;
}
.btn-github:hover {
  background: #22262B; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(255,255,255,0.16), 0 8px 24px rgba(0,0,0,0.4);
}
.btn-github svg { flex-shrink: 0; }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--text-4);
  font-family: var(--mono); font-size: 0.74rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Footer link-button (for Join early in footer) */
.link-btn {
  display: block; background: none; border: none; padding: 2px 0;
  font-size: 0.92rem; color: var(--text-3); cursor: pointer;
  margin-bottom: 10px; text-align: left;
  transition: color var(--t-fast); font-family: inherit;
}
.link-btn:hover { color: var(--text); }

/* ---------- Footer — mobile: stacked ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-bottom: 26px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-3); max-width: 280px; margin-top: 10px; line-height: 1.6; }
.footer-col h5 { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-4); font-weight: 600; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--text-3); margin-bottom: 10px; padding: 2px 0; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; font-size: 0.84rem; color: var(--text-4); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-3);
  transition: all var(--t-fast);
}
.footer-social a:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Terminal mock ---------- */
.terminal-mock {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-md); overflow: hidden;
  font-family: var(--mono); font-size: 0.8rem;
  width: 100%;
}
.terminal-head { display: flex; align-items: center; gap: 6px; padding: 10px 13px; background: var(--surface); border-bottom: 1px solid var(--border); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.terminal-dot.r { background: #FF5C5C; } .terminal-dot.y { background: #FFB945; } .terminal-dot.g { background: #00D96A; }
.terminal-title { margin-left: 8px; font-size: 0.76rem; color: var(--text-4); }
.terminal-body { padding: 13px 14px; line-height: 1.75; color: var(--text-3); overflow-x: auto; }
.terminal-body .prompt { color: var(--text); }
.terminal-body .out { color: var(--text-4); }
.terminal-body .ok { color: var(--green); }
.terminal-body .key { color: var(--amber); }

/* Flow visual — mobile: vertical */
.flow-visual { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow-node {
  padding: 8px 14px; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); font-size: 0.86rem; font-weight: 500; color: var(--text-3); white-space: nowrap;
}
.flow-node.active { background: var(--surface-3); border-color: var(--border-3); color: var(--text); }
html[data-theme="light"] .flow-node.active { background: var(--surface-3); border-color: var(--border-3); color: #101114; }
.flow-arrow { color: var(--text-5); font-size: 0.85rem; transform: rotate(90deg); line-height: 1; }

/* ---------- Animations ---------- */
@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); transform: translateY(16px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* Reveal only when JS is active — content always visible without JS */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }

/* Reduced motion — show everything immediately */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); } .text-4 { color: var(--text-4); }
.text-sm { font-size: 0.9rem; } .text-xs { font-size: 0.8rem; }
.mono { font-family: var(--mono); }
.full-w { width: 100%; }

/* ============================================
   STORY — Your hero journey (scroll-driven)
   ============================================ */
.story-section { padding: 80px 0; }

.story-layout {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: visual first, then steps */
  gap: 24px;
}

/* --- Sticky visual stage --- */
.story-visual {
  position: relative;
}
.story-stage {
  position: relative;
  min-height: 340px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px 18px 60px;
}
.story-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: min(380px, 90%);
  height: 240px;
  background: radial-gradient(ellipse at center, var(--violet-glow) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.story-stage[data-glow="mint"] .story-glow {
  background: radial-gradient(ellipse at center, var(--mint-glow, rgba(0,229,160,0.25)) 0%, transparent 60%);
}

/* Scenes crossfade */
.scene {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
  width: 100%;
  display: flex;
  justify-content: center;
}
.scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Scene 1 — repo card */
.repo-card {
  width: 100%; max-width: 340px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 0.9rem;
}
.repo-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.repo-icon { font-size: 1.15rem; }
.repo-name { font-family: var(--mono); font-size: 0.86rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-user { color: var(--text-4); }
.repo-repo { color: var(--text); font-weight: 600; }
.repo-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.66rem; font-weight: 600; color: var(--text-4);
  border: 1px solid var(--border-2); border-radius: var(--r-full);
  padding: 2px 8px;
}
.repo-meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-3); margin-bottom: 14px; flex-wrap: wrap; }
.meta-num { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.repo-bars { display: flex; height: 8px; border-radius: var(--r-full); overflow: hidden; gap: 3px; }
.repo-bars .bar { height: 100%; border-radius: 2px; transition: width 0.8s var(--ease); }

/* Scene 2 — review */
.review-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.review-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.scene.active .review-chip:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.1s; }
.scene.active .review-chip:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.35s; }
.review-verdict {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0, 229, 160, 0.07);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: var(--r-sm); padding: 13px 14px;
  font-size: 0.9rem; font-weight: 600; color: var(--mint-2);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s var(--ease) 0.6s, transform 0.45s var(--ease) 0.6s;
}
.scene.active .review-verdict { opacity: 1; transform: none; }
.verdict-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 229, 160, 0.15);
  display: grid; place-items: center; font-size: 0.7rem; flex-shrink: 0;
}

/* Scene 3 — mentor */
.mentor-card {
  width: 100%; max-width: 340px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
}
.mentor-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.scene.active .mentor-row:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.1s; }
.scene.active .mentor-row:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.3s; }
.mentor-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.mentor-info, .mentor-row-name { font-size: 0.84rem; color: var(--text-3); min-width: 0; }
.mentor-info strong, .mentor-row-name strong { color: var(--text); font-weight: 600; }
.mentor-match {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  color: var(--mint-2); background: rgba(0, 229, 160, 0.08);
  border-radius: var(--r-full); padding: 3px 8px;
}
.mentor-msg {
  font-size: 0.84rem; color: var(--text-2); line-height: 1.55;
  padding: 10px 12px; border-left: 2px solid var(--border-3);
  background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
}

/* Scene 4 — perks */
.perks-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.perk-pop {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  opacity: 0; transform: translateY(10px) scale(0.96);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.perk-pop .pp-icon svg { width: 17px; height: 17px; color: var(--mint-2); }
.review-chip .chip-icon svg { width: 16px; height: 16px; color: var(--text); }
html[data-theme="light"] .review-chip .chip-icon svg { color: #101114; }
.scene.active .perk-pop:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.1s; }
.scene.active .perk-pop:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.3s; }
.scene.active .perk-pop:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.5s; }

/* Scene 5 — demo day */
.demo-card {
  width: 100%; max-width: 320px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 22px 18px;
}
.demo-label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--amber); margin-bottom: 8px;
}
.demo-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.demo-audience { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.aud-chip {
  font-size: 0.74rem; font-weight: 500; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r-full); padding: 3px 10px;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.scene.active .aud-chip:nth-child(1) { opacity: 1; transform: scale(1); transition-delay: 0.15s; }
.scene.active .aud-chip:nth-child(2) { opacity: 1; transform: scale(1); transition-delay: 0.3s; }
.scene.active .aud-chip:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: 0.45s; }
.demo-clap { font-size: 1.5rem; display: flex; justify-content: center; gap: 12px; }
.demo-clap svg { width: 26px; height: 26px; color: var(--amber); display: inline-block; animation: clap 1.6s var(--ease) infinite; }
.demo-clap svg:nth-child(2) { animation-delay: 0.2s; }
.demo-clap svg:nth-child(3) { animation-delay: 0.4s; }
@keyframes clap {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-8px); opacity: 1; }
  60% { transform: translateY(-4px); opacity: 0.8; }
}

/* Scene 6 — certificate */
.cert-card {
  width: 100%; max-width: 340px; text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 22px 18px;
  box-shadow: var(--shadow-lg);
}
.cert-seal-img {
  height: 22px; width: auto; margin: 0 auto 12px;
  filter: none;
}
.cert-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.cert-id { font-family: var(--mono); font-size: 0.74rem; color: var(--text-4); margin-bottom: 12px; }
.cert-links { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-3); flex-wrap: wrap; }
.cert-link {
  padding: 4px 10px; background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: var(--r-full);
}
.cert-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }

/* Progress rail */
.story-rail {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.rail-seg {
  width: 22px; height: 4px; border-radius: var(--r-full);
  background: var(--border-2);
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}
.rail-seg.active { background: var(--violet); width: 34px; }
.rail-seg.done { background: var(--border-3); }

/* --- Narrative steps --- */
.story-steps { display: flex; flex-direction: column; }
.story-step {
  min-height: 52vh;                       /* scroll length per scene */
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease);
}
.story-step.active { opacity: 1; }
.story-step-num {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  color: var(--text-3); letter-spacing: 0.1em; margin-bottom: 10px;
}
html[data-theme="light"] .story-step-num { color: #6E7178; }
.story-step h3 {
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 118%;
  margin-bottom: 10px; text-wrap: balance;
}
.story-step h3 .focus { font-size: 1.06em; }
.story-step > p {
  font-size: 1rem; color: var(--text-3); line-height: 1.65;
  max-width: 460px; text-wrap: pretty;
}
.story-expect {
  margin-top: 16px; max-width: 460px;
  border: 1px dashed var(--border-2); border-radius: var(--r-md);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.015);
}
.expect-label {
  display: inline-block;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 5px;
}
.story-expect p {
  font-size: 0.86rem; color: var(--text-4); line-height: 1.55;
  text-decoration: line-through; text-decoration-color: rgba(255, 107, 122, 0.5);
}

/* ============================================
   CERTIFICATE SHOWCASE — realistic paper mockup
   ============================================ */
.cert-showcase { max-width: 820px; margin: 0 auto; }

.cert-paper {
  position: relative;
  background: #FDFCF9;
  color: #1A1A24;
  border-radius: 6px;
  padding: 14px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.2),
    0 12px 32px rgba(0,0,0,0.25),
    0 32px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  transform: perspective(1600px) rotateX(1.2deg);
}
html[data-theme="light"] .cert-paper {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 12px 32px rgba(0,0,0,0.1),
    0 32px 80px rgba(0,0,0,0.12);
}

.cert-inner {
  border: 1.5px solid #C9C4B4;
  outline: 1px solid #DDD8CB;
  outline-offset: 4px;
  padding: 34px 38px 26px;
  position: relative;
  background:
    radial-gradient(circle at 12% 8%, rgba(139,124,246,0.05) 0%, transparent 35%),
    radial-gradient(circle at 88% 92%, rgba(0,169,120,0.05) 0%, transparent 35%);
}

/* Guilloche-style corner ornaments */
.cert-corner {
  position: absolute;
  width: 64px; height: 64px;
  border-color: #C9C4B4;
  border-style: solid;
  opacity: 0.9;
}
.cert-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-radius: 2px 0 0 0; }
.cert-tl::after {
  content: ''; position: absolute; top: 6px; left: 6px;
  width: 40px; height: 40px;
  border-top: 1px solid #C9C4B4; border-left: 1px solid #C9C4B4;
  border-radius: 12px 0 0 0;
}
.cert-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; border-radius: 0 2px 0 0; }
.cert-tr::after {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 40px; height: 40px;
  border-top: 1px solid #C9C4B4; border-right: 1px solid #C9C4B4;
  border-radius: 0 12px 0 0;
}
.cert-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; border-radius: 0 0 0 2px; }
.cert-bl::after {
  content: ''; position: absolute; bottom: 6px; left: 6px;
  width: 40px; height: 40px;
  border-bottom: 1px solid #C9C4B4; border-left: 1px solid #C9C4B4;
  border-radius: 0 0 0 12px;
}
.cert-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 2px 0; }
.cert-br::after {
  content: ''; position: absolute; bottom: 6px; right: 6px;
  width: 40px; height: 40px;
  border-bottom: 1px solid #C9C4B4; border-right: 1px solid #C9C4B4;
  border-radius: 0 0 12px 0;
}

.cert-top { text-align: center; margin-bottom: 24px; }
.cert-logo { margin: 0 auto 10px; height: 26px; width: auto; }
.cert-org {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.28em;
  color: #8A8578; margin-bottom: 6px;
}
.cert-doc {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 800; letter-spacing: 0.12em;
  color: #14121F;
}

.cert-body { text-align: center; max-width: 560px; margin: 0 auto; }
.cert-line {
  font-size: 0.88rem; color: #6E6A5E; line-height: 1.65;
}
.cert-holder {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: #14121F;
}
.cert-batch {
  color: #14121F;
  font-weight: 800;
  border-bottom: 2px solid #00A87B;
  padding-bottom: 1px;
  white-space: nowrap;
}
.cert-project-chip {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px;
  font-family: var(--mono); font-size: 0.78rem;
  color: #4A4740;
  background: #F4F2EB;
  border: 1px solid #DDD8CB;
  border-radius: var(--r-full);
  padding: 6px 14px;
}
.cert-project-chip svg { color: #14121F; flex-shrink: 0; }

.cert-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-top: 30px;
  flex-wrap: wrap;
}
.cert-sig { text-align: center; min-width: 150px; }
.cert-sig-name {
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 1.15rem; color: #14121F; margin-bottom: 2px;
  transform: rotate(-2deg);
}
.cert-sig-line {
  width: 100%; height: 1px; background: #9A958A; margin-bottom: 6px;
}
.cert-sig-role { font-size: 0.64rem; letter-spacing: 0.06em; color: #8A8578; text-transform: uppercase; }

.cert-seal-wrap { text-align: center; flex-shrink: 0; }
.cert-seal {
  width: 74px; height: 74px; margin: 0 auto 6px;
  color: #14121F;
  filter: none;
}
.cert-seal-label {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.2em; color: #00A87B;
}

.cert-meta { text-align: left; min-width: 190px; }
.cert-meta-item { margin-bottom: 8px; }
.cert-meta-item span {
  display: block;
  font-size: 0.58rem; letter-spacing: 0.14em; color: #8A8578;
  font-family: var(--mono);
}
.cert-meta-item strong {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  color: #14121F;
}

/* Paper sheen + subtle texture */
.cert-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 48%, transparent 56%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.cert-caption {
  text-align: center; margin-top: 18px;
  font-size: 0.82rem; color: var(--text-4);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
}
.cert-caption-chip {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  border: 1px solid rgba(255, 184, 77, 0.3);
  border-radius: var(--r-full);
  padding: 3px 10px;
}

/* ============================================
   PROGRESSIVE ENHANCEMENT — min-width queries
   ============================================ */

/* ---- ≥600px: Large phone / small tablet ---- */
@media (min-width: 600px) {
  .container, .container-narrow { padding: 0 24px; }
  .container-wide { padding: 0 20px; }

  .site-header { width: calc(100% - 28px); height: 56px; top: 12px; }

  /* Certificate: roomier padding */
  .cert-inner { padding: 44px 48px 34px; }

  .logo { font-size: 1rem; gap: 9px; }
  .logo-mark-img { height: 19px; }
  .header-cta .btn-primary { padding: 10px 20px; font-size: 0.88rem; }

  .hero { padding: 104px 0 72px; }
  .hero-glow { width: 520px; height: 360px; filter: blur(70px); }
  .hero-eyebrow { font-size: 0.8rem; margin-bottom: 26px; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 34px; }
  .hero-dots { margin-top: 52px; }

  .section { padding: 72px 0; }
  .section-eyebrow { font-size: 0.76rem; margin-bottom: 14px; }

  .bento { gap: 12px; }
  .bento > * { padding: 26px 24px; }
  .feature-card-lg .card-visual { margin: -26px -24px 22px; }

  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .compare-col { padding: 24px; }

  .cohort-card { padding: 26px 24px; }

  .cta-card { padding: 48px 32px; }
  .cta-section { padding: 72px 0 56px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: row; text-align: left; }

  .flow-visual { flex-direction: row; }
  .flow-arrow { transform: none; }
}

/* ---- ≥720px: Tablet ---- */
@media (min-width: 720px) {
  /* Nav: inline links inside the floating pill */
  .nav-links { display: flex; align-items: center; gap: 2px; }
  .nav-toggle { display: none; }
  .header-cta .btn-glass { display: inline-flex; }

  .site-header { max-width: 920px; height: 60px; }
  .nav-links a { padding: 8px 14px; font-size: 0.9rem; }

  /* Email card: inline row */
  .email-card {
    flex-direction: row; align-items: center; gap: 8px;
    padding: 6px 6px 6px 16px;
  }
  .email-card input { text-align: left; padding: 11px 0; font-size: 0.95rem; }
  .email-card .btn { width: auto; padding: 12px 20px; font-size: 0.92rem; }

  .hero { padding: 124px 0 88px; }
  .hero-sub { font-size: 1.08rem; }

  .section { padding: 80px 0; }

  .bento { grid-template-columns: repeat(12, 1fr); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
  .feature-card-lg { min-height: 250px; }

  /* Compare: side by side */
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .compare-col:first-child { border-right: 1px solid var(--border); border-bottom: none; }
  .compare-col { padding: 26px 30px; }
  .compare-list li { font-size: 0.9rem; }

  /* Steps: 3 columns */
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .step-card { padding: 26px; }

  .perk-card { padding: 18px 20px; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .site-footer { padding: 48px 0 28px; }

  /* Story: two-column, sticky visual */
  .story-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px;
    align-items: start;
  }
  .story-visual { position: sticky; top: 100px; }
  .story-stage { min-height: 400px; padding: 24px 18px 64px; }
  .story-step { min-height: 60vh; }
}

/* ---- ≥1000px: Desktop ---- */
@media (min-width: 1000px) {
  .hero { padding: 136px 0 100px; }
  .hero-glow { width: 620px; height: 400px; filter: blur(80px); opacity: 0.6; }
  .hero-eyebrow { font-size: 0.8rem; margin-bottom: 30px; }
  .hero-sub { font-size: 1.1rem; margin-bottom: 38px; }
  .hero-dots { margin-top: 56px; }

  .section { padding: 90px 0; }
  .section-sub { font-size: 1.02rem; }

  .feature-card h3 { font-size: 1.15rem; }
  .feature-card p { font-size: 0.92rem; }

  .cta-section { padding: 90px 0 70px; }
  .cta-card { padding: 56px 40px; }
  .cta-card::before { width: 500px; height: 300px; filter: blur(60px); }

  .cohort-card { padding: 28px; }
  .footer-grid { gap: 36px; margin-bottom: 36px; }
}

/* ---- Tiny phones (<360px): hide logo wordmark to prevent overflow ---- */
@media (max-width: 359px) {
  .logo span { display: none; }
  .hero-title { font-size: 2.1rem; }
  .cert-inner { padding: 24px 16px 20px; }
  .cert-corner { width: 40px; height: 40px; }
}