/* =========================================
   Constare: Design Tokens
   Dark + Amber. Inter + JetBrains Mono.
   ========================================= */

:root {
  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Type Scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);   /* 12 → 14 */
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);      /* 14 → 16 */
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);   /* 16 → 18 */
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);      /* 18 → 24 */
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);     /* 24 → 36 */
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);        /* 32 → 56 */
  --text-3xl: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);        /* 40 → 72 */
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6rem);          /* 44 → 96 */

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Color: Dark Mode (default) */
  --color-bg: #0A0A0B;
  --color-surface: #111114;
  --color-surface-2: #16161B;
  --color-surface-3: #1A1A1F;
  --color-border: #2A2A30;
  --color-border-soft: #1F1F25;

  --color-text: #F5F5F7;
  --color-text-muted: #A8A8B3;
  --color-text-faint: #6B6B78;

  /* Accent: Electric Amber */
  --color-accent: #FFB547;
  --color-accent-hover: #FFC771;
  --color-accent-soft: rgba(255, 181, 71, 0.12);
  --color-accent-glow: rgba(255, 181, 71, 0.4);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 0 32px rgba(255, 181, 71, 0.18);
}

/* =========================================
   Typography
   ========================================= */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85em;
  color: var(--color-text-muted);
}

.accent {
  color: var(--color-accent);
}

.emphasis {
  color: var(--color-accent);
  font-weight: 500;
  font-style: italic;
}

.prose p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 68ch;
  margin-bottom: var(--space-5);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

.prose em {
  color: var(--color-text);
  font-style: italic;
}

/* =========================================
   Layout: Container
   ========================================= */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin: 0 auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.container--narrow {
  max-width: var(--content-narrow);
}

/* =========================================
   Sticky Nav
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.is-scrolled {
  border-bottom-color: var(--color-border-soft);
  background: rgba(10, 10, 11, 0.85);
}

.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) clamp(var(--space-4), 4vw, var(--space-8));
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}

.nav__logo {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

.nav__name {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.nav__name-mark {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0;
}

.nav__name-suffix {
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav__links {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
  align-items: center;
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__cta {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    margin-left: auto;
  }
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn--primary {
  background: var(--color-accent);
  color: #0A0A0B;
  box-shadow: 0 0 0 0 transparent;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

.btn--large {
  padding: 0.95rem 1.75rem;
  font-size: var(--text-base);
}

.btn--block {
  width: 100%;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: var(--space-20) 0 var(--space-24);
  overflow: hidden;
  isolation: isolate;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.55;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent, var(--color-bg) 90%);
  z-index: -1;
  pointer-events: none;
}

.hero__content {
  max-width: var(--content-default);
  margin: 0 auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__eyebrow .mono {
  color: var(--color-accent);
  font-size: 1em;
  text-transform: uppercase;
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
  max-width: 18ch;
}

.hero__subhead {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-10);
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero__meta {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-family: var(--font-body);
}

.hero__meta .mono {
  color: var(--color-text-muted);
  font-size: 0.85em;
}

/* =========================================
   Sections
   ========================================= */
.section {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  position: relative;
}

.section--why {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.section--pillars {
  background: var(--color-bg);
}

.section--outcomes {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.section--journey {
  background: var(--color-bg);
}

.section--for-students {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.section--for-parents {
  background: var(--color-bg);
}

.section--about {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.section--apply {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.section--apply::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, var(--color-accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section--apply .container {
  position: relative;
  z-index: 1;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-8);
  max-width: 22ch;
  color: var(--color-text);
}

.section__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-12);
  line-height: 1.55;
}

/* =========================================
   Three Pillars
   ========================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.pillar {
  padding: var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.pillar:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.pillar__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
}

.pillar__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
  letter-spacing: -0.015em;
}

.pillar__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =========================================
   Outcomes
   ========================================= */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

@media (max-width: 880px) {
  .outcomes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .outcomes {
    grid-template-columns: 1fr;
  }
}

.outcome {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  line-height: 1.6;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.outcome strong {
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.outcome__marker {
  color: var(--color-accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
  font-weight: 500;
  font-size: 1.1em;
  line-height: 1.6;
}

/* =========================================
   Journey
   ========================================= */
.journey {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-8);
  position: relative;
}

.phase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-10);
  align-items: start;
  position: relative;
}

.phase::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 40px;
  bottom: -48px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  opacity: 0.3;
}

.phase:last-child::before {
  display: none;
}

.phase__label {
  position: sticky;
  top: 100px;
}

.phase__label .mono {
  display: block;
  color: var(--color-accent);
  font-size: var(--text-xs);
  margin-bottom: var(--space-2);
  letter-spacing: 0.08em;
}

.phase__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.phase__body {
  padding-top: var(--space-1);
}

.phase__lead {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  font-weight: 500;
  line-height: 1.55;
}

.phase__body ul {
  list-style: none;
  margin-bottom: var(--space-5);
}

.phase__body ul li {
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  position: relative;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border-soft);
}

.phase__body ul li:last-child {
  border-bottom: none;
}

.phase__body ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.phase__close {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: italic;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-soft);
}

@media (max-width: 768px) {
  .phase {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .phase__label {
    position: static;
  }
  .phase::before {
    display: none;
  }
}

/* Threads */
.threads {
  margin-top: var(--space-20);
  padding: var(--space-10);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}

.threads__intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.threads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.thread h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-accent);
  letter-spacing: -0.01em;
}

.thread p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =========================================
   For Students: Two Col
   ========================================= */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-12);
  margin-top: var(--space-8);
  align-items: start;
}

@media (max-width: 880px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col__side {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.side__title {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-family: var(--font-mono);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.side__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.side__list li {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.side__list strong {
  color: var(--color-text);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-1);
}

/* =========================================
   For Parents
   ========================================= */
.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (max-width: 880px) {
  .parents-grid {
    grid-template-columns: 1fr;
  }
}

.parents-card {
  padding: var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}

.parents-card--accent {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-accent-soft), var(--color-surface-2) 30%);
}

.parents-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-5);
  color: var(--color-text);
  letter-spacing: -0.015em;
}

.parents-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.65;
}

.parents-card p:last-child {
  margin-bottom: 0;
}

.parents-card strong {
  color: var(--color-text);
}

.parents-card em {
  color: var(--color-accent);
  font-style: italic;
}

.parents-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.parents-card ul li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-left: var(--space-5);
  position: relative;
}

.parents-card ul li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

.foundation {
  margin-top: var(--space-12);
  padding: var(--space-10);
  border-top: 1px solid var(--color-border-soft);
  max-width: 70ch;
}

.foundation__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.foundation p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

/* =========================================
   About
   ========================================= */
.about__body {
  margin-bottom: var(--space-12);
}

.about__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.about__body a:hover {
  color: var(--color-accent-hover);
}

/* =========================================
   Get Started / Enroll
   ========================================= */
.apply-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-10) 0 var(--space-12);
  padding: var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}

@media (max-width: 640px) {
  .apply-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

.apply-meta__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.apply-meta__value {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.enroll-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-10);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

@media (max-width: 640px) {
  .enroll-cta {
    padding: var(--space-6);
  }
}

.enroll-cta__note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: center;
  line-height: 1.5;
  max-width: 36rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-soft);
  padding: var(--space-16) 0 var(--space-10);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__logo {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.footer__name {
  font-size: var(--text-base);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.footer__name-mark {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: 500;
}

.footer__name-suffix {
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer__tagline {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-style: italic;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-soft);
}

.footer__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__meta .mono {
  color: var(--color-text-muted);
  font-size: 1em;
}

.footer__meta em {
  color: var(--color-text-muted);
  font-style: italic;
}

.footer__contact a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer__contact a:hover {
  color: var(--color-accent);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-4);
  letter-spacing: 0.05em;
}

/* =========================================
   Mobile refinements
   ========================================= */
@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-12) 0 var(--space-16);
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn--large {
    justify-content: center;
  }
  .section__title {
    margin-bottom: var(--space-6);
  }
}

/* Reveal-on-scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
