/* ==========================================================================
   NEXUS ONLINE LEARNING ACADEMY — MULTI-PAGE PRODUCTION STYLESHEET
   Mobile-First & Responsive Desktop/Tablet/Phone Layout
   Built by Mash Creatives
   ========================================================================== */

:root {
  --navy-950: #010C22;
  --navy-900: #011336;
  --navy-850: #051B47;
  --navy-800: #0B2559;
  --navy-700: #16397A;
  --navy-100: #E8EEF8;
  --navy-50:  #F3F6FB;

  --gold-600: #996C1E;
  --gold-500: #BA8832;
  --gold-400: #D4A449;
  --gold-300: #E8C57B;
  --gold-100: #FBF4E4;
  --gold-50:  #FEFBF4;

  --ivory-50: #FAF8F4;
  --ivory-100:#F4EFE6;
  --white:    #FFFFFF;

  --ink-900:  #0B162C;
  --ink-700:  #2B3850;
  --ink-500:  #56647D;
  --ink-400:  #8290A6;

  --emerald-600: #0B875B;
  --emerald-100: #E6F7F0;
  --rose-600:    #C9354B;
  --rose-100:    #FDECEE;

  --font-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-sm:   0 4px 14px rgba(1, 19, 54, 0.06);
  --shadow-md:   0 14px 36px rgba(1, 19, 54, 0.10);
  --shadow-lg:   0 28px 64px rgba(1, 19, 54, 0.16);
  --shadow-gold: 0 14px 34px rgba(186, 136, 50, 0.28);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-w: 1320px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--ivory-50);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Prevent CSS Grid & Flex blowout on narrow phones and long emails */
.hero-copy, .hero-visual, .phase-details, .phase-photo-box,
.ai-showcase-grid > *, .cta-content, .cta-card-right,
.contact-grid > *, .portal-card, .footer-grid > *,
.eco-card, .pillar-card, .step-card, .ai-simulator {
  min-width: 0;
}

a[href^="mailto:"], .portal-card a, .footer-list a, .cta-card-right {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.serif { font-family: var(--font-serif); }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ---------- Scroll Progress Hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1200;
  pointer-events: none;
}

/* ---------- Top Utility Bar (Contact + Telesales Portal) ---------- */
.top-utility {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(212, 164, 73, 0.26);
  font-size: 0.78rem;
}
.top-utility-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.utility-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.utility-item:hover { color: var(--gold-300); }
.utility-item svg { color: var(--gold-400); flex-shrink: 0; }
.utility-portal-link {
  background: rgba(212, 164, 73, 0.14);
  border: 1px solid rgba(212, 164, 73, 0.42);
  color: var(--gold-300);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.utility-portal-link:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

/* ---------- Spacious Sticky Academy Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(1, 19, 54, 0.08);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 10px 30px rgba(1, 19, 54, 0.09);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-crest {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(1,19,54,0.12));
  transition: transform 0.4s var(--ease-spring);
}
.brand-lockup:hover .brand-crest { transform: scale(1.06) rotate(-2deg); }
.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--navy-900);
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
  padding: 8px 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-expo);
}
.nav-link:hover, .nav-link.is-active { color: var(--navy-900); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-ghost-navy {
  background: var(--white);
  color: var(--navy-900);
  border: 1.5px solid rgba(1, 19, 54, 0.22);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.28s var(--ease-expo);
}
.btn-ghost-navy:hover {
  border-color: var(--navy-900);
  background: var(--navy-50);
  transform: translateY(-1px);
}

.btn-cta-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #DFB35C 0%, #BA8832 55%, #A57523 100%);
  color: var(--navy-950);
  border: 1px solid rgba(255, 240, 200, 0.55);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s ease, filter 0.25s ease;
}
.btn-cta-gold::before {
  content: "";
  position: absolute;
  top: -40%; left: -60%;
  width: 48%; height: 180%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.58) 50%, transparent 80%);
  transform: rotate(18deg);
  animation: goldSheen 4.4s infinite;
  pointer-events: none;
}
.btn-cta-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 42px rgba(186, 136, 50, 0.42);
  filter: brightness(1.04);
}
.btn-cta-gold.btn-sm { padding: 11px 20px; font-size: 0.8rem; }
.btn-cta-gold.btn-lg { padding: 15px 30px; font-size: 0.92rem; }

.btn-navy {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  border: 1px solid rgba(212, 164, 73, 0.35);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.28s var(--ease-expo);
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-850));
}

.mobile-menu-btn {
  display: none;
  background: var(--navy-50);
  border: 1px solid rgba(1,19,54,0.14);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--navy-900);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-drawer {
  display: none;
  background: var(--white);
  border-top: 1px solid rgba(1,19,54,0.08);
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.mobile-drawer.is-open { display: flex; }

/* ---------- HERO & SUB-PAGE HEROES ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 82% 20%, rgba(186, 136, 50, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 12% 82%, rgba(22, 57, 122, 0.55) 0%, transparent 50%),
              linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 58%, #071F4B 100%);
  color: var(--white);
  padding: 68px 0 88px;
  overflow: hidden;
}
.page-hero {
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(186, 136, 50, 0.16) 0%, transparent 48%),
              linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 70%);
  color: var(--white);
  padding: 62px 0 68px;
  text-align: center;
  border-bottom: 2px solid rgba(212, 164, 73, 0.35);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  line-height: 1.14;
  margin: 0 0 14px;
}
.page-hero p {
  max-width: 64ch;
  margin: 0 auto;
  color: rgba(255,255,255,0.84);
  font-size: 1.04rem;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 164, 73, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 164, 73, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 45%, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 35%, transparent 80%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.45;
  animation: floatSlow 10s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 380px; height: 380px; background: rgba(186,136,50,0.22); top: -120px; right: 5%; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(29, 78, 166, 0.36); bottom: -100px; left: -60px; animation-delay: 2.5s; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 164, 73, 0.42);
  color: var(--gold-300);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 22px;
  max-width: 100%;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.1vw, 3.55rem);
  line-height: 1.09;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--white);
}
.hero-title .gold-accent {
  background: linear-gradient(120deg, #F6DC9D 0%, #D4A449 52%, #BA8832 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.hero-underline {
  display: block;
  width: min(220px, 75%);
  height: 10px;
  margin-top: 6px;
}
.hero-underline path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawLine 1.2s 0.35s var(--ease-expo) forwards;
}
.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  margin: 0 0 26px;
}
.hero-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
}
.check-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(212, 164, 73, 0.18);
  border: 1px solid rgba(212, 164, 73, 0.55);
  color: var(--gold-300);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.24);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-expo);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--gold-300);
  transform: translateY(-2px);
}
.hero-trust-strip {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--gold-300);
  line-height: 1.1;
  white-space: nowrap;
}
.hero-stat span {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.68);
}

/* Hero Visual */
.hero-visual { position: relative; perspective: 1100px; }
.hero-frame-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(212, 164, 73, 0.44);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.45);
  background: var(--navy-800);
  transition: transform 0.22s ease-out;
}
.hero-frame-main img.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 22%;
}
.hero-frame-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,14,40,0.08) 35%, rgba(1,14,40,0.78) 100%);
  pointer-events: none;
}
.hero-frame-caption {
  position: absolute;
  bottom: 18px; left: 20px; right: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 2;
}
.hero-caption-pill {
  background: rgba(1, 19, 54, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 164, 73, 0.45);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--white);
}
.hero-caption-pill small {
  display: block;
  color: var(--gold-300);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-caption-pill span { font-size: 0.86rem; font-weight: 600; }

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-900);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 22px 44px rgba(1, 14, 40, 0.34);
  border: 1px solid rgba(212, 164, 73, 0.42);
  z-index: 4;
}
.hero-float-crest {
  top: -18px; right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bobGentle 5.5s ease-in-out infinite;
}
.hero-float-crest img { width: 42px; height: auto; }
.hero-float-crest strong { display: block; font-size: 0.78rem; color: var(--navy-900); }
.hero-float-crest span { font-size: 0.69rem; color: var(--gold-600); font-weight: 700; }

.hero-float-inset {
  bottom: -22px; left: 14px;
  width: 215px;
  padding: 8px;
  animation: bobGentle 6.4s 1.2s ease-in-out infinite;
}
.hero-float-inset img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 11px;
  margin-bottom: 7px;
}
.hero-float-inset-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 2px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy-900);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--emerald-600);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald-600);
  animation: pingEmerald 1.8s infinite;
}

/* ---------- Credential Ribbon ---------- */
.credential-ribbon {
  background: var(--white);
  border-bottom: 1px solid rgba(1, 19, 54, 0.08);
  padding: 18px 0;
  overflow: hidden;
  max-width: 100%;
}
.ribbon-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.ribbon-track:hover { animation-play-state: paused; }
.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
}
.ribbon-sep {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--gold-500);
  display: inline-block;
}

/* ---------- Sections & Cards ---------- */
.section { padding: 84px 0; position: relative; }
.section-dark {
  background: radial-gradient(circle at 85% 15%, rgba(186,136,50,0.14), transparent 45%),
              linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: var(--white);
}
.section-ivory { background: var(--ivory-100); }

.section-header { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.section-dark .section-kicker { color: var(--gold-300); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  line-height: 1.16;
  margin: 0 0 14px;
  color: var(--navy-900);
}
.section-dark .section-title { color: var(--white); }
.section-desc { font-size: 1.02rem; color: var(--ink-500); margin: 0; }
.section-dark .section-desc { color: rgba(255,255,255,0.78); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s var(--ease-expo), transform 0.8s var(--ease-expo); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Pillars Grid */
.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar-card {
  background: var(--white);
  border: 1px solid rgba(1, 19, 54, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.42s var(--ease-expo), box-shadow 0.42s ease, border-color 0.3s ease;
}
.pillar-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(186, 136, 50, 0.48); }
.pillar-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 0.75s var(--ease-expo); }
.pillar-card:hover .pillar-media img { transform: scale(1.06); }
.pillar-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(1, 19, 54, 0.85);
  color: var(--gold-300);
  border: 1px solid rgba(212, 164, 73, 0.4);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pillar-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.pillar-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-100), #F5E6C4);
  border: 1px solid rgba(186,136,50,0.3);
  color: var(--navy-900);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.pillar-title { font-family: var(--font-serif); font-size: 1.24rem; margin: 0 0 8px; color: var(--navy-900); }
.pillar-text { font-size: 0.92rem; color: var(--ink-500); margin: 0 0 16px; flex: 1; }
.pillar-link {
  font-size: 0.82rem; font-weight: 800; color: var(--gold-600);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; background: none; border: none; padding: 0;
  transition: gap 0.25s ease, color 0.25s ease;
}
.pillar-card:hover .pillar-link { gap: 10px; color: var(--navy-900); }

/* Phase Switcher */
.phase-tabs-wrap { display: flex; justify-content: center; margin-bottom: 34px; }
.phase-tabs {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  background: var(--white); padding: 7px; border-radius: 999px;
  border: 1px solid rgba(1, 19, 54, 0.10); box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.phase-tab {
  border: none; background: transparent; padding: 10px 20px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; color: var(--ink-500); cursor: pointer;
  white-space: nowrap; transition: all 0.3s var(--ease-expo);
}
.phase-tab:hover { color: var(--navy-900); }
.phase-tab.is-active { background: var(--navy-900); color: var(--gold-300); box-shadow: 0 6px 18px rgba(1, 19, 54, 0.24); }
.phase-stage {
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid rgba(1, 19, 54, 0.08); box-shadow: var(--shadow-lg);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1.05fr; min-height: 420px;
}
.phase-photo-box { position: relative; overflow: hidden; background: var(--navy-900); min-height: 320px; }
.phase-photo-box img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: opacity 0.35s ease; }
.phase-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(1, 19, 54, 0.82) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: var(--white);
}
.phase-grade-badge {
  display: inline-block; align-self: flex-start;
  background: var(--gold-500); color: var(--navy-950);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 8px;
}
.phase-details { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.phase-details h3 { font-family: var(--font-serif); font-size: 1.85rem; color: var(--navy-900); margin: 0 0 12px; }
.phase-details p { color: var(--ink-500); margin: 0 0 22px; font-size: 0.98rem; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subject-chip { background: var(--navy-50); color: var(--navy-900); border: 1px solid rgba(1, 19, 54, 0.12); padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.phase-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.phase-features li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-700); font-weight: 500; }

/* AI Simulator */
.ai-showcase-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: center; }
.device-showcase-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(212, 164, 73, 0.35); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.device-showcase-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.device-floating-pill {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: rgba(1, 19, 54, 0.90); backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 164, 73, 0.45); border-radius: 16px;
  padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
}
.ai-simulator { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(212, 164, 73, 0.32); border-radius: var(--radius-xl); padding: 28px; }
.ai-sim-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ai-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ai-prompt-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: var(--white); padding: 8px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.ai-prompt-btn:hover, .ai-prompt-btn.is-active { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-300); }
.ai-response-box { background: rgba(1, 12, 34, 0.78); border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 18px 20px; min-height: 175px; font-size: 0.91rem; line-height: 1.65; color: rgba(255,255,255,0.92); overflow-wrap: break-word; }
.ai-cursor { display: inline-block; width: 2px; height: 15px; background: var(--gold-300); margin-left: 3px; vertical-align: middle; animation: blinkCursor 0.8s infinite; }

/* 5-Step Timeline */
.timeline-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.timeline-rail { position: absolute; top: 34px; left: 8%; right: 8%; height: 3px; background: rgba(1, 19, 54, 0.12); z-index: 0; }
.timeline-rail-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transition: width 1.1s var(--ease-expo); }
.timeline-rail-fill.is-filled { width: 100%; }
.step-card {
  position: relative; z-index: 1; background: var(--white); border: 1px solid rgba(1, 19, 54, 0.08);
  border-radius: var(--radius-lg); padding: 22px 18px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-expo), border-color 0.3s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: var(--gold-500); }
.step-num {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-300); border: 3px solid var(--ivory-50);
  box-shadow: 0 0 0 2px var(--gold-400); font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; display: grid; place-items: center;
}
.step-card h4 { font-family: var(--font-serif); font-size: 1.02rem; color: var(--navy-900); margin: 0 0 8px; }
.step-card p { font-size: 0.85rem; color: var(--ink-500); margin: 0; }

/* Ecosystem & Contact Grids */
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grades-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.eco-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(1,19,54,0.08); padding: 24px; box-shadow: var(--shadow-sm); }
.eco-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 18px; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: start; }
.portal-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(1,19,54,0.08); padding: 28px; box-shadow: var(--shadow-sm); }

/* FAQ Accordion */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid rgba(1,19,54,0.08); border-radius: 16px; overflow: hidden; }
.faq-btn {
  width: 100%; background: none; border: none; padding: 18px 22px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-serif); font-size: 1.06rem; font-weight: 700; color: var(--navy-900); cursor: pointer;
}
.faq-body { display: none; padding: 0 22px 18px; color: var(--ink-500); font-size: 0.94rem; }
.faq-item.is-open .faq-body { display: block; }

/* CTA Banner */
.cta-banner {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--navy-900); color: var(--white); padding: 58px 48px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(212, 164, 73, 0.36);
}
.cta-bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; pointer-events: none; }
.cta-content { position: relative; z-index: 2; }
.cta-card-right { position: relative; z-index: 2; background: rgba(255,255,255,0.97); color: var(--navy-900); border-radius: var(--radius-lg); padding: 26px; text-align: center; box-shadow: 0 24px 50px rgba(0,0,0,0.35); }
.cta-card-right img.full-logo { width: min(210px, 100%); margin: 0 auto 14px; border-radius: 10px; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.82); padding: 68px 0 32px; border-top: 2px solid var(--gold-500); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-heading { font-family: var(--font-serif); color: var(--gold-300); font-size: 1.05rem; margin: 0 0 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.footer-list a, .footer-list button { color: rgba(255,255,255,0.78); background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-size: 0.9rem; transition: color 0.2s; }
.footer-list a:hover, .footer-list button:hover { color: var(--gold-300); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 0.82rem; }
.mash-signature { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(212, 164, 73, 0.12); border: 1px solid rgba(212, 164, 73, 0.42); color: var(--white); max-width: 100%; }
.mash-signature strong { color: var(--gold-300); }

/* Modals & Form Controls */
.modal-backdrop { position: fixed; inset: 0; background: rgba(1, 12, 34, 0.72); backdrop-filter: blur(8px); z-index: 1500; display: none; align-items: center; justify-content: center; padding: 14px; }
.modal-backdrop.is-open { display: flex; }
.modal-dialog { background: var(--white); color: var(--ink-900); width: 100%; max-width: 780px; max-height: 92vh; overflow-y: auto; border-radius: var(--radius-xl); box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45); border: 1px solid rgba(212, 164, 73, 0.45); }
.modal-header { background: linear-gradient(135deg, var(--navy-950), var(--navy-900)); color: var(--white); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 5; }
.modal-close { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20); color: var(--white); width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.modal-body { padding: 26px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-full { grid-column: 1 / -1; }
.field-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 0.8rem; font-weight: 700; color: var(--navy-900); }
.field-label span.req { color: var(--gold-600); }
.field-input, .field-select, .field-textarea { width: 100%; max-width: 100%; padding: 11px 14px; border: 1.5px solid rgba(1, 19, 54, 0.16); border-radius: 12px; font-size: 1rem; color: var(--ink-900); background: var(--white); }
.field-input:focus, .field-select:focus, .field-textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(186, 136, 50, 0.18); }
.chip-select-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { border: 1.5px solid rgba(1, 19, 54, 0.16); background: var(--navy-50); color: var(--navy-900); padding: 7px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.chip-toggle.is-selected { background: var(--navy-900); color: var(--gold-300); border-color: var(--navy-900); }

.login-tabs { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-bottom:20px; background:var(--navy-50); padding:6px; border-radius:14px; }
.login-tab-btn { border:none; background:transparent; padding:10px 10px; border-radius:10px; font-size:0.82rem; font-weight:700; color:var(--ink-500); cursor:pointer; }
.login-tab-btn.is-active { background:var(--navy-900); color:var(--gold-300); }
@media (max-width: 580px) { .login-tabs { grid-template-columns:1fr; } }

.toast { position: fixed; bottom: 20px; right: 20px; left: auto; max-width: calc(100vw - 32px); background: var(--navy-900); color: var(--white); border: 1px solid rgba(212,164,73,0.5); border-radius: 14px; padding: 13px 18px; box-shadow: var(--shadow-lg); z-index: 1800; display: flex; align-items: center; gap: 10px; font-size: 0.87rem; font-weight: 600; transform: translateY(20px); opacity: 0; pointer-events: none; transition: all 0.35s var(--ease-expo); }
.toast.is-shown { transform: translateY(0); opacity: 1; }

/* Keyframes */
@keyframes goldSheen { 0%, 58% { left: -65%; } 78%, 100% { left: 130%; } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes floatSlow { from { transform: translate(0, 0) scale(1); } to { transform: translate(22px, -18px) scale(1.06); } }
@keyframes bobGentle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blinkCursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pingEmerald { 0% { box-shadow: 0 0 0 0 rgba(11, 135, 91, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(11, 135, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 135, 91, 0); } }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 1040px) {
  .hero-grid, .phase-stage, .ai-showcase-grid, .cta-banner, .contact-grid { grid-template-columns: 1fr; }
  .hero-float-inset { left: 14px; bottom: -18px; width: 195px; }
  .hero-float-crest { right: 12px; top: -14px; }
  .pillars-grid, .ecosystem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-rail { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .top-utility .utility-group:first-child { display: none; }
  .top-utility-inner { padding: 7px 16px; }
  .top-utility .utility-group:last-child { width: 100%; justify-content: space-between; gap: 10px; }
  .header-inner { padding: 12px 16px; gap: 12px; }
}

@media (max-width: 680px) {
  /* Keep mobile header crisp & zero-overflow: Crest + Brand | Login + Menu */
  .header-actions .btn-cta-gold { display: none; }
  .header-actions .btn-ghost-navy { padding: 8px 13px; font-size: 0.78rem; }
  .brand-crest { width: 40px; }
  .brand-name { font-size: 1.08rem; letter-spacing: 0.08em; }
  .brand-sub { font-size: 0.54rem; letter-spacing: 0.08em; }
  .header-actions { gap: 8px; }
}

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 54px 0; }
  .hero { padding: 38px 0 58px; }
  .page-hero { padding: 42px 0 46px; }

  .hero-checklist, .pillars-grid, .ecosystem-grid, .grades-compare-grid, .timeline-grid, .footer-grid, .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn-cta-gold,
  .hero-cta-row .btn-hero-secondary,
  .cta-content .btn-cta-gold,
  .cta-content .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .hero-float-inset { display: none; }
  .hero-float-crest { top: 10px; right: 10px; padding: 8px 10px; }
  .hero-float-crest img { width: 32px; }
  .hero-frame-caption { left: 12px; right: 12px; bottom: 12px; }

  .phase-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: 18px;
    padding: 6px;
    gap: 6px;
  }
  .phase-tab {
    padding: 9px 10px;
    font-size: 0.76rem;
    white-space: normal;
    text-align: center;
  }
  .phase-photo-box { min-height: 240px; }
  .phase-photo-overlay { padding: 18px; }
  .phase-details { padding: 24px 18px; }
  .phase-details h3 { font-size: 1.45rem; }

  .device-floating-pill { left: 10px; right: 10px; bottom: 10px; padding: 11px 14px; }
  .ai-simulator { padding: 20px 16px; }

  .cta-banner { padding: 28px 18px; gap: 24px; border-radius: 22px; }
  .cta-card-right { padding: 20px 16px; }
  .cta-card-right .btn-navy { white-space: normal; text-align: center; padding: 12px 14px; }

  .portal-card { padding: 20px 16px; }
  .faq-btn { padding: 15px 16px; font-size: 0.96rem; }
  .faq-body { padding: 0 16px 15px; }

  .modal-dialog { border-radius: 20px; max-height: 94vh; }
  .modal-header { padding: 18px 16px; }
  .modal-body { padding: 20px 16px; }

  .site-footer { padding: 48px 0 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand-lockup { gap: 8px; }
  .brand-crest { width: 34px; }
  .brand-sub { font-size: 0.49rem; letter-spacing: 0.05em; }
  .header-actions .btn-ghost-navy svg { display: none; }
  .header-actions .btn-ghost-navy { padding: 7px 11px; font-size: 0.75rem; }
  .mobile-menu-btn { padding: 7px 9px; }

  .btn-cta-gold, .btn-navy, .btn-hero-secondary {
    white-space: normal;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }
  .btn-cta-gold.btn-lg { padding: 14px 18px; font-size: 0.84rem; }
}
