/* =========================================================
   Advait Academy — Coming Soon landing page
   One continuous dark surface: deep navy + academy gold
   ========================================================= */

:root {
  --bg:      #070c12;
  --bg-2:    #0b1119;
  --bg-3:    #0d1420;
  --panel:   rgba(255,255,255,.045);
  --panel-2: rgba(255,255,255,.07);
  --hair:    rgba(255,255,255,.10);
  --hair-2:  rgba(255,255,255,.06);

  --gold:      #d99a1f;
  --gold-lt:   #f0b93f;
  --gold-dim:  rgba(240,185,63,.28);

  --text:    #eef2f8;
  --text-2:  #aab5c6;
  --text-3:  #6d7a90;

  --radius: 16px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }
.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;
}
:focus-visible { outline: 3px solid var(--gold-lt); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-gold { background: var(--gold); color: #0a0f16; box-shadow: 0 10px 30px rgba(217,154,31,.28); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(217,154,31,.4); }
.btn-gold .arrow { transition: transform .22s ease; }
.btn-gold:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7,12,18,.72);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-stuck { background: rgba(7,12,18,.92); border-bottom-color: var(--hair-2); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: block; flex: none; width: auto; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-size: 1.26rem; font-weight: 700; color: #fff; white-space: nowrap; }
.brand-sub { font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  position: relative; padding: 4px 0;
  color: var(--text-2); text-decoration: none; font-size: .9rem; font-weight: 500;
  white-space: nowrap; transition: color .2s ease;
}
.header-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.header-nav a:hover { color: #fff; }
.header-nav a:hover::after, .header-nav a.is-active::after { transform: scaleX(1); }
.header-nav a.is-active { color: var(--gold-lt); }
.header-right { display: flex; align-items: center; gap: 28px; }
.header-phone {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--gold-dim);
  color: var(--gold-lt); text-decoration: none; font-size: .88rem; font-weight: 600;
  white-space: nowrap; transition: background-color .2s ease, color .2s ease;
}
.header-phone:hover { background: var(--gold); border-color: var(--gold); color: #0a0f16; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 76px);
  display: grid; align-items: center;
  padding: clamp(40px, 6vw, 60px) 0;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(217,154,31,.13), transparent 64%),
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 46%, var(--bg) 100%);
}
/* the giant logo, ghosted into the background */
.hero-watermark {
  position: absolute; right: 3%; top: 50%; translate: 0 -50%;
  height: min(72%, 470px); width: auto;
  aspect-ratio: 480 / 573; object-fit: contain;   /* never let it squash */
  opacity: .05; pointer-events: none;
  filter: grayscale(.2);
  animation: drift 16s ease-in-out infinite;
}
@keyframes drift { 50% { translate: 0 calc(-50% - 18px); } }

/* spotlight that tracks the cursor */
.hero-spot {
  position: absolute; width: 620px; height: 620px; left: 0; top: 0;
  margin: -310px 0 0 -310px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,154,31,.16), transparent 62%);
  pointer-events: none; opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
.hero:hover .hero-spot { opacity: 1; }

.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 9px);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px 8px 14px;
  border: 1px solid var(--gold-dim); background: rgba(217,154,31,.1);
  color: var(--gold-lt); border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-lt);
  box-shadow: 0 0 0 0 rgba(240,185,63,.6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(240,185,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,185,63,0); }
}

.hero h1 { margin: 26px 0 20px; font-size: clamp(2.3rem, 6vw, 4.2rem); color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-lt); }
/* word-by-word entrance */
.w { display: inline-block; opacity: 0; transform: translateY(.55em); }
.is-loaded .w { animation: wordUp .8s cubic-bezier(.2,.75,.2,1) forwards; }
@keyframes wordUp { to { opacity: 1; transform: none; } }

.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 600px; }
.hero-actions { margin-top: 36px; }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--hair-2);
}
.hero-chips li {
  padding: 8px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hair);
  font-size: .83rem; font-weight: 500; color: var(--text-2);
  transition: color .22s ease, border-color .22s ease, transform .22s ease;
}
.hero-chips li:hover { color: var(--gold-lt); border-color: var(--gold-dim); transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(32px, 3.2vw, 40px) 0; }
.section-tint { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }

.section-head { max-width: 640px; margin-bottom: 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: #fff; }
.section-lead { margin-top: 16px; color: var(--text-2); font-size: 1.02rem; }

/* ---------- exam marquee ---------- */
.marquee {
  /* overflow:hidden clips the track horizontally; the vertical padding leaves
     room for the cards' hover lift so their top edge is not cut off. */
  position: relative; margin-top: -4px; overflow: hidden; padding: 12px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 16px; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 8px)); } }

.exam-card {
  flex: none; width: 268px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 24px;
  background: var(--panel); border: 1px solid var(--hair);
  border-radius: var(--radius);
  transition: background-color .26s ease, border-color .26s ease, transform .26s ease;
}
.exam-card:hover { background: var(--panel-2); border-color: var(--gold-dim); transform: translateY(-4px); }
.exam-abbr { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; }
.exam-card:hover .exam-abbr { color: var(--gold-lt); }
.exam-full { font-size: .88rem; color: var(--text-3); line-height: 1.5; }

/* ---------- subject panel ---------- */
.subject-panel {
  margin-top: 20px; padding: 28px 28px;
  background: linear-gradient(140deg, rgba(217,154,31,.10), rgba(255,255,255,.03));
  border: 1px solid var(--gold-dim); border-radius: var(--radius);
}
.subject-panel h3 { font-size: 1.24rem; color: #fff; margin-bottom: 16px; }
.check-list { display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.check-list li {
  position: relative; padding-left: 30px;
  font-weight: 500; color: var(--text); font-size: .96rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a0f16'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- highlights: scroll-linked track ---------- */
.track { position: relative; margin-top: 34px; padding-left: 76px; }
.track-rail {
  position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: var(--hair); border-radius: 2px; overflow: hidden;
}
.track-fill {
  position: absolute; inset: 0 0 auto 0; height: 0;
  background: linear-gradient(var(--gold-lt), var(--gold));
  border-radius: 2px;
}
.track-item {
  position: relative; padding: 15px 0 15px 4px;
  opacity: .38; transition: opacity .45s ease, transform .45s ease;
}
.track-item.is-active { opacity: 1; }
.track-num {
  position: absolute; left: -76px; top: 15px;
  display: grid; place-items: center;
  width: 56px; height: 34px;
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  color: var(--text-3); transition: color .45s ease;
}
.track-item.is-active .track-num { color: var(--gold); }
/* the dot sitting on the rail */
.track-num::after {
  content: ""; position: absolute; left: 49px; top: 50%; translate: 0 -50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--hair);
  transition: border-color .45s ease, background-color .45s ease, scale .45s ease;
}
.track-item.is-active .track-num::after { border-color: var(--gold); background: var(--gold); scale: 1.25; }

.track-head { display: flex; align-items: center; gap: 14px; }
.track-ico {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(240,185,63,.12); border: 1px solid var(--gold-dim);
  transition: background-color .4s ease;
}
.track-ico svg { width: 21px; height: 21px; fill: var(--gold-lt); transition: fill .4s ease; }
.track-item.is-active .track-ico { background: var(--gold); }
.track-item.is-active .track-ico svg { fill: #0a0f16; }
.track-item h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: #fff; }
.track-item p { margin-top: 6px; color: var(--text-2); font-size: .94rem; max-width: 56ch; }

/* ---------- motto ---------- */
.motto {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 16px; margin-top: 40px; padding: 20px 18px;
  border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2);
  text-align: center; font-size: clamp(.76rem, 2vw, .95rem);
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.motto i, .motto b, .motto-end { color: var(--gold); font-style: normal; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; gap: 16px; margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-card {
  padding: 22px 22px;
  background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius);
  transition: transform .24s ease, border-color .24s ease, background-color .24s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--gold-dim); background: var(--panel-2); }
.contact-card-tall {
  background:
    radial-gradient(360px 260px at 88% 10%, rgba(217,154,31,.13), transparent 70%),
    var(--panel);
}
.contact-ico {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px;
  border-radius: 10px; background: rgba(240,185,63,.12); border: 1px solid var(--gold-dim);
}
.contact-ico svg { width: 19px; height: 19px; fill: var(--gold-lt); }
.contact-card h3 { font-size: 1.06rem; color: #fff; margin-bottom: 8px; }
.contact-card a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem; transition: color .18s ease; }
.contact-card a:hover { color: var(--gold-lt); }
.contact-line { display: flex; flex-direction: column; margin-bottom: 8px; }
.contact-line:last-of-type { margin-bottom: 0; }
.contact-card address { color: var(--text-2); font-size: .94rem; line-height: 1.7; }
.muted { color: var(--text-3); font-size: .84rem; font-weight: 400; }

/* ---------- social ---------- */
.social-block {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--hair-2);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.social-label { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.social-list { display: flex; gap: 14px; }
.social-link {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: var(--panel); border: 1px solid var(--hair); cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.social-link svg { width: 24px; height: 24px; fill: var(--text-2); transition: fill .2s ease; }
.social-link:hover { transform: translateY(-4px); background: var(--gold); border-color: var(--gold); }
.social-link:hover svg { fill: #0a0f16; }
.social-link:active { transform: translateY(-1px) scale(.96); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hair-2); padding: 38px 0 32px; color: var(--text-3); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-mark { display: block; width: auto; height: 96px; margin-bottom: 4px; }
.footer-tag { font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.footer-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: #fff; margin-top: 6px; }
.footer-address { max-width: 520px; font-size: .9rem; color: var(--text-2); }.footer-note {
  margin-top: 8px; padding: 6px 16px; border-radius: 999px;
  background: rgba(240,185,63,.1); border: 1px solid var(--gold-dim);
  color: var(--gold-lt); font-size: .82rem; font-weight: 600;
}
.footer-copy { margin-top: 12px; font-size: .8rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 100;
  max-width: calc(100% - 36px); padding: 12px 22px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--gold-dim); color: #fff;
  font-size: .9rem; font-weight: 500; box-shadow: 0 18px 44px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card-tall { grid-column: span 2; }
  .hero-watermark { right: -14%; height: min(58%, 360px); opacity: .04; }
}
@media (max-width: 680px) {
  .header-inner { flex-direction: column; justify-content: center; gap: 9px; padding-block: 11px; min-height: 0; }
  .header-nav { gap: 20px; justify-content: center; }
  .header-nav a { font-size: .82rem; }
  .header-right { flex-direction: column; gap: 8px; }
  .header-phone { font-size: .8rem; padding: 4px 12px; }
  .hero { min-height: 0; padding-block: 56px 72px; }
  .track { padding-left: 54px; }
  .track-rail { left: 15px; }
  .track-num { left: -54px; width: 40px; }
  .track-num::after { left: 33px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .brand-mark { height: 42px; }
  .brand-name { font-size: 1.06rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .18em; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .exam-card { width: 232px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card-tall { grid-column: span 1; }
  .subject-panel { padding: 26px 22px; }
  .footer-mark { height: 98px; }
  .motto { letter-spacing: .1em; }
}

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .w { opacity: 1; transform: none; }
  /* static fallback: drop the loop duplicates and wrap into a plain grid */
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee-track > [aria-hidden="true"] { display: none; }
  .hero-spot { display: none; }
  .track-item { opacity: 1; }
}
