/* =========================================================
   AI Prime Edu Tech — Design System
   Learn Today | Lead Tomorrow
   ========================================================= */

:root {
  /* Color tokens — pulled from brand mark */
  --navy-deep:  #08103a;
  --navy:       #0d1f5c;
  --blue:       #1868d9;
  --blue-bright:#3d9bf0;
  --gold:       #c8901a;
  --gold-bright:#f0b429;
  --gold-pale:  #f7dfa0;
  --paper:      #f6f7fb;
  --paper-dim:  #eceef7;
  --ink:        #0b0e27;
  --ink-soft:   #4a4f6a;
  --white:      #ffffff;
  --line:       #dfe2ee;
  --up:         #1b9c63;
  --down:       #c23b3b;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.eyebrow-line::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-bright);
}

/* ---------- Top utility strip ---------- */
.utility-strip {
  background: var(--navy-deep);
  color: #c9d2f0;
  font-size: 0.82rem;
}
.utility-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.utility-strip a { color: #f0d68a; }

/* ---------- Nav ---------- */
header.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-deep);
}
.brand-text span {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
}
nav.main-links {
  display: flex;
  gap: 28px;
}
nav.main-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-links a:hover { color: var(--navy); border-color: var(--gold-bright); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-ghost {
  color: var(--navy);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 6px 16px rgba(200,144,26,0.28);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(200,144,26,0.34); }
.btn-navy {
  background: var(--navy-deep);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy); }
.btn-block { width: 100%; }
.mobile-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(24,104,217,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  padding: 76px 24px 54px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-bright); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.1;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--gold-bright); }
.hero p.lead {
  margin-top: 20px;
  color: #cfd7f2;
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}
.hero-stats div span { font-size: 0.82rem; color: #9fb0e0; }

/* hero panel: mini market card */
.market-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.market-panel h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.market-panel h4 .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up); display: inline-block; margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(27,156,99,0.25);
}
.market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,0.09);
  font-size: 0.9rem;
}
.market-row:first-of-type { border-top: none; }
.market-row .name { color: #dfe6fa; }
.market-row .val { font-family: var(--font-display); color: var(--white); }
.market-row .chg.up { color: #4ade9a; }
.market-row .chg.down { color: #f28b8b; }

/* ---------- Ticker strip ---------- */
.ticker-strip {
  background: var(--gold-bright);
  color: var(--navy-deep);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 9px 0;
  animation: ticker 26s linear infinite;
}
.ticker-track span { font-weight: 600; font-size: 0.85rem; }
.ticker-track .sep { opacity: 0.5; font-weight: 400; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Section shell ---------- */
section { padding: 84px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 18ch;
}
.section-head p { color: var(--ink-soft); max-width: 44ch; margin-top: 10px; }

/* ---------- Programs — ledger list, not cards ---------- */
.programs { background: var(--white); }
.ledger { border-top: 1px solid var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: 220px 1fr 200px 140px;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row .p-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ledger-row .p-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-dim);
  color: var(--blue);
  flex-shrink: 0;
}
.ledger-row .p-desc { color: var(--ink-soft); font-size: 0.95rem; }
.ledger-row .p-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ledger-row .p-meta b { color: var(--navy-deep); font-family: var(--font-display); font-weight: 600; }
.ledger-row .p-cta {
  justify-self: end;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold-bright);
  padding-bottom: 2px;
}
.ledger-row .p-cta:hover { color: var(--gold); }

@media (max-width: 860px) {
  .ledger-row { grid-template-columns: 1fr; gap: 10px; }
  .ledger-row .p-cta { justify-self: start; }
}

/* ---------- Why us ---------- */
.why { background: var(--paper); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-item {
  background: var(--white);
  padding: 34px 30px;
}
.why-item .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.why-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why-item p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Path / process (real sequence) ---------- */
.path { background: var(--navy-deep); color: var(--white); }
.path .section-head h2, .path .section-head p { color: var(--white); }
.path .section-head p { color: #b9c4ea; }
.path-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.path-step {
  border-top: 2px solid var(--gold-bright);
  padding-top: 18px;
}
.path-step .step-num {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.path-step h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.path-step p { color: #b9c4ea; font-size: 0.9rem; margin: 0; }
@media (max-width: 860px) { .path-steps { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 54px 24px;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); max-width: 22ch; }
.cta-band p { color: #d7e0fa; margin-top: 8px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: #aab6de;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-brand strong { color: var(--white); font-family: var(--font-display); }
.footer-col h5 {
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.88rem;
  color: #aab6de;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #aab6de; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  nav.main-links { display: none; }
}

/* =========================================================
   Auth pages (login / introducer)
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.auth-visual {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(240,180,41,0.16), transparent 55%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-visual .brand-text strong,
.auth-visual .brand-text span { color: var(--white); }
.auth-visual .brand-text span { color: var(--gold-bright); }
.auth-quote { max-width: 32ch; }
.auth-quote h2 { color: var(--white); font-size: 1.7rem; line-height: 1.25; }
.auth-quote p { color: #b9c4ea; margin-top: 14px; font-size: 0.95rem; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .sub { color: var(--ink-soft); margin-top: 8px; margin-bottom: 30px; font-size: 0.95rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.78rem; }
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,104,217,0.14);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.88rem;
}
.form-row-between a { color: var(--blue); font-weight: 600; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.alert {
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.alert-error { background: #fdecec; color: #a02a2a; border: 1px solid #f3caca; }
.alert-success { background: #e9f8f0; color: #14713f; border: 1px solid #bfe9d3; }
.auth-foot {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}
.auth-foot a { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--gold-bright); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
