/* ==========================================================================
   MOUNT JEE NEET — "The Ascent"
   Violet = the journey (interactive). Dawn = the goal (CTAs, summit, progress).
   ========================================================================== */

:root {
  --ink-900: #07060D;
  --ink-800: #0E0B1A;
  --ink-700: #171329;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #F3F0FA;
  --text-2: #C3BDD8;
  --violet-500: #7C5CFF;
  --violet-300: #B5A1FF;
  --violet-glow: rgba(124, 92, 255, .35);
  --dawn-200: #FFE0A8;
  --dawn-400: #FFB25B;
  --dawn-600: #FF8A52;
  --ice: #9FE3FF;
  --ok: #5EE2A0;
  --err: #FF9A9A;
  --dawn-gradient: linear-gradient(100deg, #FFE0A8, #FFB25B 55%, #FF8A52);

  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink-900);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, address, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--dawn-400);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(124, 92, 255, .55); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--dawn-400); color: #1A0E04; font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   Fixed background stack: fallback sky → WebGL canvas → scrims
   ========================================================================== */

.backdrop, #scene, .scrim, .warmth {
  position: fixed; top: 0; left: 0; width: 100%;
  /* large-viewport height: no resize / gap when mobile URL bars collapse */
  height: 100vh; height: max(100lvh, 100%);
  pointer-events: none;
}

.backdrop { z-index: -4; overflow: hidden; background: #07060D; }
.backdrop-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #05040D 0%, #0D0A24 26%, #1A1440 44%, #2A1650 58%, #5A3496 74%, #B8588F 88%, #FF9E6B 100%);
  background-size: 100% 260%;
  background-position: 0 calc(var(--p, 0) * 100%);
}
.backdrop-stars {
  position: absolute; inset: 0;
  opacity: calc(1 - var(--p, 0));
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 9%, #cfd6ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 24%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 71% 28%, #c4b5fd 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 93% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 41%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 38%, #cfd6ff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 64% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 5%, #c4b5fd 50%, transparent 51%);
}
.backdrop-ridges {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: min(64%, 620px);
}

#scene {
  z-index: -3; display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
}
html.gl-ready #scene { opacity: 1; }
html.no-webgl #scene { display: none; }
/* No fill mode: once the swap has played, opacity is governed by .gl-ready again
   (so a lost WebGL context can still hand over to the CSS sky). */
#scene.is-swap { animation: scene-swap .45s ease; }
@keyframes scene-swap { from { opacity: .35; } to { opacity: 1; } }

.scrim {
  z-index: -2;
  /* indigo-tinted (not neutral black) so the dawn stays violet-rose instead of going muddy */
  background:
    linear-gradient(180deg, rgba(9, 6, 24, .62) 0, rgba(9, 6, 24, .16) 20%, rgba(9, 6, 24, .14) 58%, rgba(9, 6, 24, .56) 100%),
    linear-gradient(90deg, rgba(9, 6, 24, .30), rgba(9, 6, 24, 0) 55%);
}
/* fades in with altitude (JS sets opacity): extra shade as the sky brightens, plus a warm floor glow */
.warmth {
  z-index: -1; opacity: 0;
  background:
    radial-gradient(90% 50% at 50% 112%, rgba(255, 178, 91, .7), transparent 70%),
    linear-gradient(180deg, rgba(12, 6, 30, .6), rgba(12, 6, 30, .6));
}

@media (max-width: 719px) {
  .scrim {
    background: linear-gradient(180deg, rgba(9, 6, 24, .66) 0, rgba(9, 6, 24, .32) 24%, rgba(9, 6, 24, .32) 60%, rgba(9, 6, 24, .62) 100%);
  }
}

/* ==========================================================================
   Type
   ========================================================================== */

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }

h1 {
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  line-height: 1.02; letter-spacing: -.035em;
  text-shadow: 0 4px 40px rgba(7, 6, 13, .6);
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.08; letter-spacing: -.025em;
  text-shadow: 0 3px 32px rgba(7, 6, 13, .65);
}
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }

h1 em, h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.14em; letter-spacing: -.01em; line-height: 1;
  padding-right: .06em;
  color: var(--dawn-400);
  text-shadow: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 em, h2 em {
    background: var(--dawn-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 2px 18px rgba(7, 6, 13, .55));
  }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet-300);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--dawn-gradient); }

.lede { color: var(--text-2); max-width: 62ch; margin-top: 20px; text-shadow: 0 1px 18px rgba(7, 6, 13, .8); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  white-space: nowrap; text-align: center;
  transition: transform .25s var(--ease-soft), box-shadow .3s, background-color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 20px; height: 20px; transition: transform .3s var(--ease-soft); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--dawn-gradient); color: #1A0E04;
  box-shadow: 0 10px 30px -10px rgba(255, 138, 82, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%) skewX(-20deg);
}
.btn-ghost {
  background: rgba(23, 19, 41, .55); border-color: var(--line-strong); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .9rem; }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

@media (hover: hover) {
  .btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 138, 82, .85), inset 0 1px 0 rgba(255, 255, 255, .45); transform: translateY(-2px); }
  .btn-primary:hover::before { transform: translateX(120%) skewX(-20deg); transition: transform .7s var(--ease-soft); }
  .btn-primary:hover .icon { transform: translateX(4px); }
  .btn-ghost:hover { background: rgba(124, 92, 255, .22); border-color: var(--violet-300); transform: translateY(-2px); }
}

.btn[disabled] { opacity: .7; cursor: progress; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
}
/* Glass lives on a pseudo-element so the header never becomes the containing
   block of the full-screen mobile sheet. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: rgba(10, 8, 22, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-stuck::before { opacity: 1; }

.nav { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; }
.logo-word span { color: var(--violet-300); }

.nav-panel { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a {
  position: relative; display: inline-block; padding: 10px 2px;
  font-size: .92rem; font-weight: 600; color: var(--text-2);
  transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--dawn-gradient);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .24s var(--ease-soft);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-toggle {
  position: relative; z-index: 3; display: none;
  width: 46px; height: 46px; margin-left: auto; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 959px) {
  :root { --nav-h: 60px; }

  html.js .nav-toggle { display: block; }
  html.js .nav-panel {
    position: fixed; inset: 0; z-index: 2; margin: 0;
    height: 100vh; height: 100dvh;
    /* Centred with auto margins (below), not justify-content: center, so that
       when the links are taller than the sheet it scrolls from the top. */
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 36px;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
    background:
      radial-gradient(120% 70% at 100% 0%, rgba(124, 92, 255, .28), transparent 60%),
      radial-gradient(100% 60% at 0% 100%, rgba(255, 138, 82, .16), transparent 60%),
      rgba(7, 6, 13, .97);
    overflow-y: auto;
    clip-path: circle(0 at calc(100% - 38px) 30px);
    visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  html.js.nav-open .nav-panel {
    clip-path: circle(160% at calc(100% - 38px) 30px);
    visibility: visible;
    transition: clip-path .6s var(--ease), visibility 0s;
  }
  html.js .nav-links { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; flex: none; }
  html.js .nav-links a {
    font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 600;
    color: var(--text); padding: 8px 0;
    opacity: 0; translate: 0 16px;
    transition: opacity .4s, translate .5s var(--ease);
  }
  html.js.nav-open .nav-links a { opacity: 1; translate: 0 0; }
  html.js.nav-open .nav-links li:nth-child(1) a { transition-delay: .10s; }
  html.js.nav-open .nav-links li:nth-child(2) a { transition-delay: .14s; }
  html.js.nav-open .nav-links li:nth-child(3) a { transition-delay: .18s; }
  html.js.nav-open .nav-links li:nth-child(4) a { transition-delay: .22s; }
  html.js.nav-open .nav-links li:nth-child(5) a { transition-delay: .26s; }
  html.js.nav-open .nav-links li:nth-child(6) a { transition-delay: .30s; }
  html.js .nav-cta { min-height: 54px; padding: 0 30px; font-size: 1rem; margin-bottom: auto; flex: none; }
  html.js.nav-open { overflow: hidden; }

  /* Landscape phones: tighter sheet so most links fit without scrolling */
  @media (max-height: 480px) {
    html.js .nav-panel { gap: 20px; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 24px; }
    html.js .nav-links { gap: 0; }
    html.js .nav-links a { font-size: 1.3rem; padding: 5px 0; }
    html.js .nav-cta { min-height: 46px; }
  }

  /* No-JS: compact scrollable link strip instead of a sheet */
  html:not(.js) .nav { gap: 14px; }
  html:not(.js) .nav-panel { min-width: 0; gap: 14px; }
  html:not(.js) .nav-links { overflow-x: auto; gap: 16px; scrollbar-width: none; }
  html:not(.js) .nav-cta { display: none; }
}

/* ==========================================================================
   Altitude indicator
   ========================================================================== */

.altimeter {
  position: fixed; right: 14px; top: 50%; z-index: 40;
  width: 28px; height: min(54vh, 460px);
  translate: 0 -54%;
  display: none;
}
.alt-track {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, .16); border-radius: 2px; overflow: hidden;
}
.alt-fill {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--violet-500), var(--violet-300) 55%, var(--dawn-400));
  transform: scaleY(0); transform-origin: 50% 100%;
  will-change: transform;
}
.alt-nodes { position: absolute; inset: 0; }
.alt-nodes li { position: absolute; left: 50%; bottom: calc(var(--i) / 6 * 100%); translate: -50% 50%; }
.alt-nodes a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; }
.alt-dot {
  width: 9px; height: 9px; rotate: 45deg;
  background: var(--ink-800); border: 1.5px solid rgba(255, 255, 255, .5);
  transition: scale .35s var(--ease), background-color .3s, border-color .3s, box-shadow .3s;
}
.alt-nodes a.is-passed .alt-dot { background: var(--violet-300); border-color: var(--violet-300); }
.alt-nodes a[aria-current] .alt-dot {
  scale: 1.5; background: var(--dawn-400); border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 178, 91, .25), 0 0 18px rgba(255, 178, 91, .7);
}
.alt-label {
  position: absolute; right: calc(100% + 8px); top: 50%; translate: 6px -50%;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(14, 11, 26, .92); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; color: var(--text);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, translate .3s var(--ease);
}
.alt-nodes a:hover .alt-label, .alt-nodes a:focus-visible .alt-label { opacity: 1; translate: 0 -50%; }
.alt-read {
  position: absolute; top: calc(100% + 20px); left: 50%; translate: -50% 0;
  writing-mode: vertical-rl;
  font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2);
  text-shadow: 0 1px 8px rgba(7, 6, 13, .9);
}

.alt-bar {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 45; height: 3px;
  background: rgba(255, 255, 255, .06);
}
.alt-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-300) 60%, var(--dawn-400));
  transform: scaleX(0); transform-origin: 0 50%;
}
.alt-chip {
  position: fixed; z-index: 40; pointer-events: none;
  left: max(12px, env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 8, 22, .86); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: .12em;
  font-variant-numeric: tabular-nums; color: var(--text-2);
}
html:not(.js) .alt-bar, html:not(.js) .alt-chip { display: none; }

@media (min-width: 1100px) {
  .altimeter { display: block; }
  .alt-bar, .alt-chip { display: none; }
}
@media (min-width: 1500px) {
  .altimeter { right: 28px; }
}
/* Pin the current camp's label only where the side margin can hold it: the pill
   reaches ~255px in from the right edge, the 1200px container leaves
   (100vw - 1200px) / 2. Narrower than this it stays hover / focus only. */
@media (min-width: 1760px) {
  .alt-nodes a[aria-current] .alt-label { opacity: 1; translate: 0 -50%; }
}
@media (max-height: 560px) { .altimeter { display: none; } }

/* ==========================================================================
   Sections & glass cards
   ========================================================================== */

.section {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(88px, 14vh, 180px);
}

.section-head { position: relative; max-width: 720px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head::before {
  content: ''; position: absolute; z-index: -1; inset: -36px -28px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(9, 6, 24, .64), rgba(9, 6, 24, .36) 60%, transparent);
}
.head-center { margin-inline: auto; text-align: center; }
.head-center .lede { margin-inline: auto; }
.head-right { margin-left: auto; }

.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 19, 41, .80), rgba(14, 11, 26, .74));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px -24px rgba(0, 0, 0, .7);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(14, 11, 26, .94); }
  .btn-ghost { background: rgba(23, 19, 41, .9); }
}
/* Low-power devices: blur is the #1 source of scroll jank, swap it for opacity */
html.tier-low .card, html.tier-low .btn-ghost, html.tier-low .site-header::before {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.tier-low .card { background: rgba(14, 11, 26, .93); }

/* pointer-following border glow */
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(181, 161, 255, .75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
@media (hover: hover) { .card:hover::after { opacity: 1; } }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .98rem; }

[data-tilt].is-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}

.icon-tile {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(124, 92, 255, .16); border: 1px solid rgba(181, 161, 255, .22);
  color: var(--violet-300);
  margin-bottom: 20px;
}

.grid-3 { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- reveal (only when JS is confirmed) ---- */
html.js [data-reveal] {
  opacity: 0; translate: 0 26px;
  transition: opacity .85s var(--ease), translate .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 56px) 0 clamp(96px, 15vh, 168px);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 20% 68%, rgba(7, 6, 13, .66), rgba(7, 6, 13, .3) 55%, transparent 80%);
}
.hero-inner > * { max-width: 760px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 14px; margin-bottom: 26px; border-radius: 999px;
  background: rgba(23, 19, 41, .7); border: 1px solid rgba(255, 178, 91, .38);
  font-size: .84rem; font-weight: 600; color: var(--dawn-200);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.badge-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--dawn-400); flex: none; }
.badge-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--dawn-400);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }

.hero-sub {
  margin-top: 24px; max-width: 54ch;
  font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: #DCD7EC;
  text-shadow: 0 1px 20px rgba(7, 6, 13, .85);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.stats {
  display: flex; margin-top: clamp(36px, 6vh, 60px);
  border-top: 1px solid var(--line-strong); padding-top: 24px;
  width: fit-content;
}
.stats li { display: flex; flex-direction: column; gap: 2px; padding-right: clamp(22px, 4vw, 48px); }
.stats li + li { padding-left: clamp(22px, 4vw, 48px); border-left: 1px solid var(--line-strong); }
.stats li:last-child { padding-right: 0; }
.stat-num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 3.4ch;
  text-shadow: 0 2px 20px rgba(7, 6, 13, .8);
}
.stat-label { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
}
.scroll-line { position: relative; width: 1px; height: 44px; background: rgba(255, 255, 255, .22); overflow: hidden; order: 2; }
.scroll-line::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--dawn-400);
  animation: cue 2.2s var(--ease-soft) infinite;
}
@keyframes cue { from { transform: translateY(-16px); } to { transform: translateY(46px); } }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid .card:nth-child(2) { margin-top: 28px; margin-bottom: -28px; }

/* ==========================================================================
   Features
   ========================================================================== */

.features-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.features .section-head { position: sticky; top: 22vh; margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.feature-top .icon-tile { margin-bottom: 0; }
.feature-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em;
  color: rgba(181, 161, 255, .28);
  transition: color .4s;
}
@supports (-webkit-text-stroke: 1px #000) {
  .feature-num { color: transparent; -webkit-text-stroke: 1px var(--violet-300); }
}
@media (hover: hover) { .feature:hover .feature-num { color: var(--violet-300); } }

/* ==========================================================================
   Courses
   ========================================================================== */

.course-grid { align-items: stretch; }
.course { display: flex; flex-direction: column; overflow: hidden; padding-top: clamp(26px, 2.6vw, 36px); }
.course h3 { font-size: 1.45rem; font-weight: 700; margin: 18px 0 10px; }
.course .btn { margin-top: auto; }

.tag {
  align-self: flex-start;
  padding: 5px 13px; border-radius: 999px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  border: 1px solid;
}
.tag-jee { color: var(--violet-300); border-color: rgba(181, 161, 255, .5); background: rgba(124, 92, 255, .14); }
.tag-neet { color: var(--ice); border-color: rgba(159, 227, 255, .45); background: rgba(159, 227, 255, .10); }
.tag-both {
  color: var(--text); border-color: transparent;
  background: linear-gradient(var(--ink-700), var(--ink-700)) padding-box, linear-gradient(90deg, var(--violet-300), var(--ice)) border-box;
}

.motif {
  position: absolute; top: -8px; right: -10px; width: 132px; height: 132px; pointer-events: none;
  fill: none; stroke: var(--violet-300); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .42;
}
.motif-fill { fill: var(--violet-300); stroke: none; }
.course-neet .motif { stroke: var(--ice); }
.course-foundation .motif { stroke: var(--dawn-400); }
.course-foundation .motif-fill { fill: var(--dawn-400); }
html.js .motif > :not(.motif-fill) { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.8s var(--ease-soft) .25s; }
html.js .is-in .motif > :not(.motif-fill) { stroke-dashoffset: 0; }

.checks { display: grid; gap: 12px; margin: 22px 0 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--text); }
.checks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--dawn-400); stroke-width: 2; }

.is-popular {
  border-color: rgba(255, 178, 91, .55);
  background: linear-gradient(180deg, rgba(40, 28, 52, .84), rgba(16, 12, 28, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 80px -28px rgba(255, 138, 82, .45), 0 24px 60px -24px rgba(0, 0, 0, .7);
}
.popular-badge {
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  padding: 5px 16px; border-radius: 0 0 12px 12px;
  background: var(--dawn-gradient);
  font-family: var(--font-display); font-size: .7rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #1A0E04 !important; white-space: nowrap;
}
.is-popular .tag { margin-top: 14px; }

@media (min-width: 1024px) {
  .course-grid { padding-block: 16px; }
  .is-popular { margin-block: -16px; }
}

/* ==========================================================================
   Mentorship
   ========================================================================== */

.mentor-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.mentor-copy .section-head { margin-bottom: 32px; }
.mentor-points { display: grid; gap: 14px; }
.card-row { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; }
.card-row .icon-tile { margin-bottom: 0; }
.card-row h3 { margin-bottom: 4px; font-size: 1.08rem; }

.phone-wrap { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: min(100%, 340px);
  padding: 12px; border-radius: 40px;
  background: linear-gradient(160deg, #2A2346, #100D1E 40%, #0A0814);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 80px -20px var(--violet-glow);
}
@media (min-width: 900px) {
  .phone { transform: rotateY(-9deg) rotateX(3deg); transition: transform .8s var(--ease); }
  .phone:hover { transform: rotateY(-3deg) rotateX(1deg); }
}
.chat {
  display: flex; flex-direction: column;
  height: 520px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #0F0C1E, #0A0815);
  border: 1px solid rgba(255, 255, 255, .06);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid var(--line); background: rgba(23, 19, 41, .7); }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(124, 92, 255, .2); border: 1px solid rgba(181, 161, 255, .35); flex: none; }
.chat-who { display: flex; flex-direction: column; min-width: 0; }
.chat-who strong { font-family: var(--font-display); font-size: .95rem; font-weight: 600; }
.chat-who span { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--text-2); }
.online { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.online::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2s ease-out infinite; }

.chat-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 16px; overflow: hidden; transition: opacity .6s; }
.msg {
  max-width: 84%; padding: 11px 15px; border-radius: 18px;
  font-size: .9rem; line-height: 1.45; color: var(--text);
}
.msg-in { background: var(--ink-700); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-out { align-self: flex-end; background: #6A49F2; color: #fff; border-bottom-right-radius: 6px; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--ink-700); border: 1px solid var(--line); }
.typing[hidden] { display: none; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: bounce 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .12s; }
.typing i:nth-child(3) { animation-delay: .24s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat.is-live .msg:not(.is-on) { display: none; }
.chat.is-live .msg.is-on { animation: pop .34s var(--ease) both; }
.chat.is-fading .chat-body { opacity: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }

.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 12px 14px; border-top: 1px solid var(--line); }
.chat-field {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px;
  display: flex; align-items: center;
  background: var(--ink-700); border: 1px solid var(--line);
  font-size: .88rem; color: var(--text); white-space: nowrap; overflow: hidden;
}
.chat-field.is-placeholder { color: #9A94B4; }
.chat-send { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--violet-500); color: #fff; flex: none; transition: transform .25s var(--ease), box-shadow .25s; }
.chat-send .icon { width: 19px; height: 19px; }
.chat-send.is-pulse { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(124, 92, 255, .25); }

/* ==========================================================================
   CTA band — the final ridge
   ========================================================================== */

.cta {
  position: relative; isolation: isolate; text-align: center;
  padding-block: clamp(140px, 30vh, 320px);
}
.cta::before {
  content: ''; position: absolute; inset: 8% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(56% 50% at 50% 50%, rgba(10, 6, 28, .70), rgba(10, 6, 28, .44) 55%, transparent 100%);
}
.cta h2 { font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; margin-inline: auto; }
.cta .lede { margin: 26px auto 38px; color: #E2DDF0; }

/* ==========================================================================
   Contact — the summit
   ========================================================================== */

.contact .card { background: linear-gradient(180deg, rgba(20, 16, 36, .88), rgba(12, 10, 24, .84)); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 8px; color: var(--text); }
.optional { font-weight: 500; color: var(--text-2); }

.input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(23, 19, 41, .85);
  font-size: 16px; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 112px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #8F89A8; }
.input:hover { border-color: rgba(181, 161, 255, .5); }
/* Transparent outline: invisible here (the glow ring is the indicator), but
   forced-colors mode repaints it in a system colour where box-shadow is dropped. */
.input:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--violet-300); box-shadow: 0 0 0 3px rgba(124, 92, 255, .35); background: rgba(28, 23, 50, .95); }
.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 138, 138, .18); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; pointer-events: none;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); rotate: 45deg;
}
.select-wrap select { padding-right: 44px; cursor: pointer; }
select option { background: #171329; color: var(--text); }

.phone-field { position: relative; }
.phone-prefix {
  position: absolute; left: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; width: 54px;
  border-right: 1px solid var(--line-strong); border-radius: 11px 0 0 11px;
  background: rgba(124, 92, 255, .14);
  font-weight: 700; font-size: .92rem; color: var(--violet-300);
}
.phone-field .input { padding-left: 68px; }

.field-error { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: .82rem; font-weight: 600; color: var(--err) !important; }
.field-error[hidden] { display: none; }
.field-error::before { content: '!'; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .68rem; font-weight: 800; flex: none; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.form-hint { font-size: .86rem !important; color: var(--text-2); }

.form-status { margin-top: 18px; }
.form-status:empty { display: none; }
.status-box {
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(23, 19, 41, .9);
  font-size: .95rem; line-height: 1.55;
}
.status-box p { color: var(--text) !important; font-size: inherit !important; }
.status-box.is-ok { border-color: rgba(94, 226, 160, .55); }
.status-box.is-ok p:first-child { color: var(--ok) !important; font-weight: 700; }
.status-box.is-err { border-color: rgba(255, 138, 138, .55); }
.status-box.is-err p:first-child { color: var(--err) !important; font-weight: 700; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.status-actions a { font-weight: 700; color: var(--dawn-200); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.status-actions a:hover { color: #fff; }

.form.is-shake { animation: shake .32s ease; }
@keyframes shake { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(26, 14, 4, .3); border-top-color: #1A0E04; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.info { padding: 22px; }
.info .icon-tile { margin-bottom: 16px; }
.info-wide { grid-column: 1 / -1; display: flex; gap: 18px; align-items: flex-start; }
.info-wide .icon-tile { margin-bottom: 0; }
.info h3 { font-size: 1.02rem; margin-bottom: 6px; }
.info p, .info address { color: var(--text-2); font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.info a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(181, 161, 255, .55); text-underline-offset: 3px; }
.info a:hover { color: var(--dawn-200); text-decoration-color: currentColor; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  padding: clamp(120px, 18vh, 200px) 0 calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7, 6, 13, 0) 0, rgba(7, 6, 13, .92) 130px, var(--ink-900) 220px);
  font-size: .94rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); }
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--text-2); }
.footer-title { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-300); margin-bottom: 16px; text-shadow: none; line-height: 1.4; }
.site-footer ul { display: grid; gap: 8px; color: var(--text-2); }
.site-footer li a { display: inline-block; padding: 3px 0; color: var(--text-2); overflow-wrap: anywhere; transition: color .2s; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--text-2);
}
.footer-base a:hover { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1099px) {
  .site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

@media (max-width: 1023px) {
  .features-layout { grid-template-columns: 1fr; }
  .features .section-head { position: relative; top: auto; margin-bottom: clamp(28px, 5vh, 48px); }
  .contact-layout { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .mentor-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .card:nth-child(2) { margin: 0; }
  .head-right { margin-left: 0; }
}

@media (max-width: 719px) {
  :root { --radius: 16px; }
  .section { min-height: 0; padding-block: clamp(72px, 11vh, 110px); }

  .hero { align-items: center; text-align: center; padding-bottom: 110px; }
  .hero::before { background: radial-gradient(90% 60% at 50% 52%, rgba(9, 6, 24, .56), rgba(9, 6, 24, .28) 60%, transparent 90%); }
  .hero-inner > * { margin-inline: auto; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats { width: 100%; justify-content: center; }
  .stats li { flex: 1; align-items: center; padding-right: 8px; }
  .stats li + li { padding-left: 8px; }
  .stat-label { font-size: .68rem; letter-spacing: .06em; }

  .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .phone { width: min(100%, 360px); }
  .chat { height: 480px; }
}

@media (max-width: 539px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .logo-word { font-size: 1rem; }
}

@media (max-height: 620px) and (min-width: 720px) {
  .scroll-cue { display: none; }
}

/* ==========================================================================
   Reduced motion — keep everything, drop the movement
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  html.js [data-reveal] { opacity: 1; translate: none; }
  html.js .motif > :not(.motif-fill) { stroke-dashoffset: 0; }
  [data-tilt].is-tilt { transform: none; }
  .phone { transform: none !important; }
  .scroll-line::after, .badge-dot::after, .online::after { display: none; }
}

@media (forced-colors: active) {
  .card, .input, .btn { border: 1px solid CanvasText; }
  h1 em, h2 em { -webkit-text-fill-color: currentColor; background: none; color: inherit; }
}

@media print {
  .backdrop, #scene, .scrim, .warmth, .altimeter, .alt-bar, .alt-chip, .scroll-cue, .nav-toggle { display: none !important; }
  html, body { background: #fff; color: #000; }
  .site-header { position: static; }
  .card { background: none; box-shadow: none; border-color: #999; }
  .card p, .lede, .hero-sub { color: #222; }
  html.js [data-reveal] { opacity: 1; translate: none; }
}
