/* ============================================================
   Zero to One Academy — Components & Sections
   ============================================================ */

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.155 0.018 264 / 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .4s var(--ease);
}
.nav.scrolled .nav-inner { padding-block: 11px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; font-size: 16.5px; white-space: nowrap; }
.brand-mark {
  flex: none;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px oklch(0.64 0.20 258 / 0.8), 0 1px 0 oklch(1 0 0 / 0.35) inset;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 28% 12%, oklch(1 0 0 / 0.28), transparent 55%);
  pointer-events: none;
}
.brand-mark svg {
  width: 20px; height: 20px;
  color: oklch(0.99 0.01 264);
  position: relative; z-index: 1;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 14.5px; color: var(--ink-soft); font-weight: 450;
  padding: 9px 14px; border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--ink); background: var(--glass-fill); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 42px; padding-inline: 19px; font-size: 14px; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  place-items: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 1.6px; background: var(--ink);
  border-radius: 2px; transition: transform .35s var(--ease), opacity .25s;
}
.nav-burger span { position: relative; }
.nav-burger span::before { position: absolute; top: -6px; left: 0; }
.nav-burger span::after { position: absolute; top: 6px; left: 0; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: oklch(0.14 0.018 264 / 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 96px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a.m-link {
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a.m-link .idx { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.mobile-menu .m-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu .btn { height: 54px; width: 100%; }

/* ============== HERO ============== */
.hero { position: relative; padding-top: clamp(140px, 22vh, 200px); padding-bottom: clamp(60px, 10vh, 120px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--glass-fill); border: 1px solid var(--glass-stroke);
  font-size: 13px; color: var(--ink-soft); margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge .pill {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-grad); color: oklch(0.99 0.01 264);
}
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-meta {
  margin-top: 34px; display: flex; align-items: center; gap: 22px;
  color: var(--ink-mute); font-size: 13.5px; flex-wrap: wrap;
}
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: oklch(0.70 0.18 145); box-shadow: 0 0 10px oklch(0.70 0.18 145 / 0.8); }
.hero-meta .mi { display: inline-flex; align-items: center; gap: 8px; }

/* hero visual composition */
.hero-stage { position: relative; height: clamp(380px, 46vw, 560px); }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: 0;
}
.hero-orb.a { width: 320px; height: 320px; right: -40px; top: -20px; background: radial-gradient(circle, var(--blue), transparent 70%); }
.hero-orb.b { width: 260px; height: 260px; left: -30px; bottom: 10px; background: radial-gradient(circle, var(--indigo), transparent 70%); opacity: 0.45; }

.float-card {
  position: absolute;
  background: oklch(0.21 0.022 264 / 0.55);
  border: 1px solid var(--glass-stroke-2);
  border-radius: var(--r-md);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: var(--shadow-float);
  padding: 16px;
  z-index: 2;
  will-change: transform;
}
.float-card .fc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.fc-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-grad-soft); border: 1px solid var(--glass-stroke); }
.fc-ico svg { width: 14px; height: 14px; stroke: var(--blue-bright); }
.fc-title { font-size: 12.5px; font-weight: 550; letter-spacing: -0.01em; }
.fc-sub { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.04em; }

/* card: AI assistant */
.card-ai { width: 268px; top: 4%; left: 0; }
.card-ai .msg { font-size: 12px; color: var(--ink-soft); line-height: 1.5; padding: 9px 11px; border-radius: 11px; background: oklch(0.99 0.01 264 / 0.05); margin-bottom: 7px; }
.card-ai .msg.you { background: var(--accent-grad); color: oklch(0.99 0.01 264); margin-left: 28px; }
.card-ai .typing { display: inline-flex; gap: 3px; }
.card-ai .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-mute); animation: blink 1.2s infinite; }
.card-ai .typing i:nth-child(2){animation-delay:.2s}.card-ai .typing i:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,60%,100%{opacity:.25;transform:translateY(0)} 30%{opacity:1;transform:translateY(-2px)} }

/* card: analytics */
.card-chart { width: 230px; right: 0; top: 30%; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 4px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--accent-grad); opacity: 0.85; transform-origin: bottom; animation: grow 1.4s var(--ease) backwards; }
@keyframes grow { from { transform: scaleY(0); } }
.card-chart .stat { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; }
.card-chart .stat b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.card-chart .stat .up { font-family: var(--mono); font-size: 10.5px; color: oklch(0.74 0.16 150); }

/* card: BPMN flow */
.card-flow { width: 244px; left: 16%; bottom: 0; }
.flow-nodes { display: flex; align-items: center; gap: 0; margin-top: 4px; }
.flow-nodes .node { font-family: var(--mono); font-size: 9.5px; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--glass-stroke-2); background: oklch(0.99 0.01 264 / 0.04); white-space: nowrap; }
.flow-nodes .node.active { background: var(--accent-grad); color: oklch(0.99 0.01 264); border-color: transparent; }
.flow-nodes .link { flex: 1; height: 1px; background: var(--line-strong); min-width: 10px; position: relative; }
.flow-nodes .link::after { content:""; position:absolute; right:-1px; top:-2px; border:3px solid transparent; border-left-color: var(--line-strong); }

@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.float-card.fa { animation: floaty 7s ease-in-out infinite; }
.float-card.fb { animation: floaty 8.5s ease-in-out infinite .6s; }
.float-card.fc { animation: floaty 7.8s ease-in-out infinite 1.1s; }

/* logos strip */
.logos { margin-top: clamp(56px, 8vh, 96px); }
.logos .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); text-align: center; margin-bottom: 24px; }
.logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); }
.logos-row .logo-item { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-mute); opacity: 0.7; transition: opacity .3s, color .3s; }
.logos-row .logo-item:hover { opacity: 1; color: var(--ink-soft); }

/* ============== IMPACT / STATS ============== */
.impact { border-top: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass-fill);
  backdrop-filter: blur(16px);
}
.stat-cell {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease);
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--glass-fill-2); }
.stat-cell .num { font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-bottom: 12px; }
.stat-cell .num .grad-text { display: inline; }
.stat-cell .lbl { font-size: 14px; color: var(--ink-soft); font-weight: 450; letter-spacing: -0.01em; line-height: 1.35; }
.stat-cell .tag { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; display: block; }

/* ============== WHY (bento) ============== */
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vh, 80px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 22px; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
.bento-card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-stroke);
  background: linear-gradient(180deg, oklch(0.21 0.022 264 / 0.5), oklch(0.18 0.02 264 / 0.5));
  padding: 28px;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
  display: flex; flex-direction: column;
}
.bento-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), oklch(0.70 0.19 252 / 0.14), transparent 70%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--glass-stroke-2); box-shadow: var(--shadow-card); }
.bento-card:hover::before { opacity: 1; }
.bento-card .b-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-grad-soft); border: 1px solid var(--glass-stroke); margin-bottom: 18px;
}
.bento-card .b-ico svg { width: 22px; height: 22px; stroke: var(--blue-bright); fill: none; }
.bento-card h3 { font-size: 19px; font-weight: 580; letter-spacing: -0.02em; margin-bottom: 8px; }
.bento-card p { font-size: 14.5px; color: var(--ink-mute); line-height: 1.55; }
.bento-card .b-spacer { flex: 1; }

.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }

/* feature card with mini visual */
.bento-card.feature { background: linear-gradient(150deg, oklch(0.24 0.04 264 / 0.6), oklch(0.18 0.02 264 / 0.5)); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-family: var(--mono); font-size: 11.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--glass-stroke-2); background: oklch(0.99 0.01 264 / 0.04); color: var(--ink-soft); }
.chip.on { background: var(--accent-grad); color: oklch(0.99 0.01 264); border-color: transparent; }

.big-num { font-size: clamp(48px, 6vw, 78px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }

/* ============== CURRICULUM ============== */
.curr { overflow: hidden; }
.curr-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.curr-progress { display: flex; align-items: center; gap: 14px; }
.curr-progress .track { width: 180px; height: 4px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.curr-progress .track .fill { height: 100%; width: 12.5%; border-radius: 999px; background: var(--accent-grad); transition: width .5s var(--ease); }
.curr-progress .pct { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.curr-nav { display: flex; gap: 10px; }
.curr-nav button { width: 46px; height: 46px; border-radius: 50%; background: var(--glass-fill); border: 1px solid var(--glass-stroke-2); display: grid; place-items: center; transition: background .3s, transform .3s, opacity .3s; }
.curr-nav button:hover { background: var(--glass-fill-2); }
.curr-nav button:disabled { opacity: 0.35; cursor: default; }
.curr-nav button svg { width: 18px; height: 18px; stroke: var(--ink); }

.curr-rail {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.curr-rail::-webkit-scrollbar { display: none; }
.week-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(280px, 32vw, 360px);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-stroke);
  background: linear-gradient(180deg, oklch(0.215 0.022 264 / 0.55), oklch(0.175 0.02 264 / 0.55));
  padding: 26px;
  position: relative;
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
  display: flex; flex-direction: column;
  min-height: 320px;
}
.week-card:hover { border-color: var(--glass-stroke-2); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.week-card .wk-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--blue-bright); margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.week-card .wk-no .ph { color: var(--ink-faint); }
.week-card h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 12px; line-height: 1.1; }
.week-card .wk-desc { font-size: 14px; color: var(--ink-mute); line-height: 1.55; margin-bottom: 18px; }
.week-card .wk-points { list-style: none; display: grid; gap: 0; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.week-card.open .wk-points { max-height: 280px; opacity: 1; margin-bottom: 8px; }
.week-card .wk-points li { font-size: 13.5px; color: var(--ink-soft); padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.week-card .wk-points li svg { width: 15px; height: 15px; stroke: var(--blue-bright); flex: none; }
.week-card .b-spacer { flex: 1; }
.week-card .wk-toggle { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-soft); font-family: var(--mono); }
.week-card .wk-toggle svg { width: 16px; height: 16px; stroke: var(--blue-bright); transition: transform .4s var(--ease); }
.week-card.open .wk-toggle svg { transform: rotate(45deg); }
.week-card .wk-glyph { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-grad-soft); border: 1px solid var(--glass-stroke); display: grid; place-items: center; }
.week-card .wk-glyph svg { width: 20px; height: 20px; stroke: var(--blue-bright); fill: none; }

.rail-hint { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.08em; margin-top: 20px; display: flex; align-items: center; gap: 8px; }

/* ============== FINAL CTA ============== */
.cta-final { position: relative; text-align: center; padding-block: clamp(110px, 16vh, 200px); overflow: hidden; }
.cta-final .glow {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%);
  width: 760px; height: 760px; max-width: 120vw; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.55 0.18 262 / 0.34), transparent 60%);
  filter: blur(20px); z-index: 0;
}
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final h2 { margin: 0 auto 24px; max-width: 16ch; }
.cta-final .lede { margin: 0 auto 40px; text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-fine { margin-top: 30px; font-size: 13px; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.cta-fine .mi { display: inline-flex; align-items: center; gap: 7px; }
.cta-fine svg { width: 14px; height: 14px; stroke: var(--blue-bright); }

/* ============== FOOTER ============== */
.footer { border-top: 1px solid var(--line); padding-block: 60px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .brand { margin-bottom: 16px; }
.footer .f-desc { font-size: 14px; color: var(--ink-mute); max-width: 32ch; line-height: 1.6; }
.footer h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 14px; color: var(--ink-soft); transition: color .25s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; gap: 14px; }

/* ============== FLOATING WHATSAPP + STICKY MOBILE CTA ============== */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: oklch(0.62 0.16 150);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px oklch(0.62 0.16 150 / 0.7), 0 1px 0 oklch(1 0 0 / 0.25) inset;
  transition: transform .4s var(--ease);
}
.fab:hover { transform: scale(1.07) translateY(-2px); }
.fab svg { width: 28px; height: 28px; fill: oklch(0.99 0.01 264); }
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 oklch(0.62 0.16 150 / 0.5);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping { 0%{box-shadow:0 0 0 0 oklch(0.62 0.16 150 / 0.5)} 70%,100%{box-shadow:0 0 0 18px oklch(0.62 0.16 150 / 0)} }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 88;
  display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: oklch(0.155 0.018 264 / 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  gap: 10px;
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { flex: 1; height: 48px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 420px; max-width: 480px; margin-inline: auto; order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell { border-bottom: 1px solid var(--line); }
  .stat-cell:nth-child(5) { grid-column: span 2; border-bottom: none; }
  .bento-card { grid-column: span 6 !important; grid-row: auto !important; }
}
@media (max-width: 760px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: grid; }
  .nav-cta .nav-book { display: none; }
  .sticky-cta { display: flex; }
  .fab { bottom: 82px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 360px; }
}
