/**
 * SchoolWheels AI — design system & layout
 * Balanced “campus slate” theme: mid-tone backgrounds, paper cards, navy + gold accents
 */

:root {
  --navy-deep: #142032;
  --navy-mid: #1c3049;
  --navy-soft: #243752;
  --bg-base: #a8b8cc;
  --bg-base-mid: #98abc4;
  --bg-soft: #e9eef6;
  --bg-card: #dce6f3;
  --bg-card-top: #f6f8fc;
  --bg-panel: rgba(236, 241, 249, 0.94);
  --bg-panel-strong: rgba(248, 250, 252, 0.98);
  --border-glass: rgba(20, 32, 50, 0.14);
  --border-card: rgba(20, 32, 50, 0.2);
  --border-strong: rgba(20, 32, 50, 0.22);
  --text-primary: #142032;
  --text-secondary: #3d4f66;
  --text-muted: #5c6d82;
  --indigo: #1d4ed8;
  --indigo-soft: #cfe4ff;
  --gold: #d97706;
  --gold-soft: #fef3c7;
  --sky: #0ea5e9;
  --teal: #0f766e;
  --danger: #dc2626;
  --success: #059669;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 6px rgba(20, 32, 50, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 32, 50, 0.12), 0 2px 8px rgba(20, 32, 50, 0.06);
  --shadow-lg: 0 18px 52px rgba(20, 32, 50, 0.16), 0 8px 20px rgba(20, 32, 50, 0.08);
  --shadow-glow: 0 12px 36px rgba(37, 99, 235, 0.28);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --max-width: 1200px;
  --gradient-ai: linear-gradient(135deg, #142032 0%, #2563eb 42%, #0d9488 100%);
  --gradient-ai-soft: linear-gradient(145deg, rgba(20, 32, 50, 0.07), rgba(37, 99, 235, 0.06), rgba(13, 148, 136, 0.05));
  --gradient-gold: linear-gradient(90deg, #fbbf24, #d97706);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text-primary);
  background: linear-gradient(168deg, var(--bg-base) 0%, var(--bg-base-mid) 45%, #8899b0 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 70% at 10% 20%, rgba(20, 32, 50, 0.14), transparent 52%),
    radial-gradient(ellipse 70% 55% at 92% 12%, rgba(37, 99, 235, 0.09), transparent 48%),
    radial-gradient(ellipse 65% 50% at 50% 98%, rgba(217, 119, 6, 0.06), transparent 45%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  opacity: 0.45;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-soft);
  text-decoration: none;
}

a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.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;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Wider canvas — reference-style enterprise landing rhythm */
.container--wide {
  width: min(100% - 2rem, 1340px);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section--tight {
  padding-block: var(--space-lg);
}

.section--xl {
  padding-block: clamp(3.25rem, 8vw, 6.5rem);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-sm);
  color: var(--navy-deep);
}

.section__lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 0 var(--space-lg);
}

.section-header {
  margin-bottom: var(--space-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(145deg, var(--gold-soft), rgba(255, 255, 255, 0.85));
  color: var(--navy-deep);
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow-sm);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-gold);
}

.text-gradient {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: linear-gradient(165deg, var(--bg-card-top) 0%, var(--bg-card) 52%, #cdd9ea 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -18px 36px rgba(20, 32, 50, 0.04);
}

.glass--solid {
  background: var(--bg-soft);
}

.glass--accent {
  position: relative;
  background:
    linear-gradient(165deg, #ffffff 0%, var(--bg-card) 100%) padding-box,
    var(--gradient-ai) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-lg);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-ai);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 14px 44px -8px rgba(37, 99, 235, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-deep);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
  border-color: rgba(217, 119, 6, 0.45);
}

.btn-block {
  width: 100%;
}

.btn--arrow {
  gap: 0.65rem;
}

.btn--arrow svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn--arrow:hover svg {
  transform: translateX(4px);
}

.btn-link-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-deep);
  border-bottom: 2px solid rgba(217, 119, 6, 0.65);
  text-decoration: none;
}

.btn-link-outline:hover {
  color: var(--indigo);
  border-bottom-color: var(--indigo);
  text-decoration: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--indigo);
  font-weight: 600;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  text-decoration: none;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 8px 32px rgba(20, 32, 50, 0.35);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, #0f1828 0%, var(--navy-deep) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.header-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-block: 0.35rem;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-rail a {
  color: rgba(251, 191, 36, 0.92);
  text-decoration: none;
}

.header-rail a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.header-rail__loc {
  font-weight: 500;
  color: rgba(248, 250, 252, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.55rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f8fafc;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-link:hover {
  text-decoration: none;
  color: #ffffff;
}

.site-header .logo-link .text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-link img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #f8fafc;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: rgba(248, 250, 252, 0.82);
  text-decoration: none;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(251, 191, 36, 0.18);
  text-decoration: none;
}

.site-nav .nav-cta {
  margin-left: 0.4rem;
}

.site-nav .nav-cta a {
  color: #ffffff;
  background: var(--gradient-ai);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.site-nav .nav-cta a:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0d9488 100%);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: clamp(96px, 14vw, 118px) 1rem auto 1rem;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, #ffffff 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    color: var(--text-secondary);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--navy-deep);
    background: var(--gold-soft);
  }

  .site-nav .nav-cta a {
    color: #ffffff;
    background: var(--gradient-ai);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: var(--space-sm);
  }
}

/* ═══ Landing density — wide statement + cinematic band + platform panel ═══ */
.hero-splash {
  position: relative;
  padding-block: clamp(2.25rem, 7vw, 4.75rem);
  min-height: min(44vh, 500px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-splash__noise {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(ellipse 70% 55% at 20% 30%, rgba(37, 99, 235, 0.07), transparent 50%),
    linear-gradient(rgba(20, 32, 50, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 50, 0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  pointer-events: none;
}

.hero-splash__inner {
  position: relative;
  z-index: 1;
}

.hero-splash__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.hero-splash__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 700;
  margin: 0 0 var(--space-md);
}

.hero-splash__muted {
  color: #647289;
}

.hero-splash__accent {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--indigo) 55%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-splash__deck {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 0 var(--space-lg);
}

.hero-splash__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.trust-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trust-chips li {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 32, 50, 0.12);
  color: var(--text-secondary);
}

.cinema-band {
  position: relative;
  min-height: min(54vh, 620px);
  overflow: hidden;
  isolation: isolate;
}

.cinema-band__inner {
  position: absolute;
  inset: -7%;
  background-image: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center;
  animation: ken-burns-soft 34s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .cinema-band__inner {
    animation: none;
    inset: 0;
  }
}

.cinema-band__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 32, 50, 0.85) 0%,
    rgba(20, 32, 50, 0.33) 46%,
    rgba(20, 32, 50, 0.62) 100%
  );
  z-index: 1;
}

.cinema-band__caption {
  position: relative;
  z-index: 2;
  min-height: min(54vh, 620px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.cinema-band__caption p {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.08rem, 2.3vw, 1.42rem);
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.38;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}

.panel-overview {
  background: linear-gradient(180deg, #e4ecf6 0%, #dbe4f2 55%, rgba(180, 196, 218, 0.45) 100%);
  border-block: 1px solid rgba(20, 32, 50, 0.09);
}

.panel-overview__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .panel-overview__grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
}

.panel-overview__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.9vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0 0 var(--space-md);
  color: var(--navy-deep);
}

.panel-overview__title span {
  color: var(--indigo);
}

.panel-overview__lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 54ch;
  margin: 0 0 var(--space-lg);
}

.panel-overview__visual {
  display: grid;
  place-items: center;
  padding: var(--space-md);
}

.panel-overview__visual img {
  width: min(100%, 320px);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 18px 42px rgba(20, 32, 50, 0.2));
}

.hero--deep .mesh-bg {
  opacity: 0.26;
}

.dark-quote-band {
  background: linear-gradient(135deg, #0f172a 0%, var(--navy-deep) 42%, #1e3a5f 100%);
  color: #e2e8f0;
  border-block: 1px solid rgba(251, 191, 36, 0.22);
}

.dark-quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 3vw, 1.82rem);
  line-height: 1.36;
  font-weight: 600;
  font-style: normal;
  border-left: 4px solid var(--gold);
  padding-left: var(--space-lg);
}

.dark-quote-band cite {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.92rem;
  font-style: normal;
  color: rgba(226, 232, 240, 0.74);
}

.hero {
  padding-block: var(--space-2xl) var(--space-xl);
  position: relative;
}

.hero--deep {
  padding-block: var(--space-xl) var(--space-2xl);
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.hero__title--secondary {
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 56ch;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(220, 230, 243, 0.65));
  border: 1px solid rgba(20, 32, 50, 0.12);
}

.trust-strip strong {
  color: var(--gold);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-visual__brain {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15), transparent 68%);
  mix-blend-mode: multiply;
}

.hero-visual__chip {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: linear-gradient(145deg, var(--navy-deep), var(--navy-soft));
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fefce8;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.hero-visual__chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.35);
}

.mesh-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 32, 50, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 50, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 72%);
}

.feature-card {
  padding: var(--space-lg);
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 var(--space-xs);
  color: var(--navy-deep);
}

.feature-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.35), rgba(37, 99, 235, 0.12));
  color: var(--navy-deep);
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(20, 32, 50, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.module-card {
  padding: var(--space-md) var(--space-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow:
    inset 0 3px 0 rgba(217, 119, 6, 0.55),
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -18px 36px rgba(20, 32, 50, 0.04);
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 3px 0 rgba(217, 119, 6, 0.65),
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -18px 36px rgba(20, 32, 50, 0.06);
}

.module-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  color: var(--navy-deep);
}

.module-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.module-card .tagline {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.ai-widget {
  padding: var(--space-lg);
  max-width: 440px;
}

.ai-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.ai-widget__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.ai-widget__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.ai-widget__body {
  font-size: 0.96rem;
  color: var(--text-secondary);
  min-height: 4.5rem;
}

.ai-widget__confidence {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--indigo);
  font-weight: 600;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.compare-table th {
  font-family: var(--font-display);
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy-mid) 100%);
  color: #f8fafc;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:nth-child(3) {
  color: var(--teal);
  font-weight: 600;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.05rem);
  font-weight: 700;
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item .stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.testimonials {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.testimonial-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
  padding: var(--space-lg);
  background: linear-gradient(165deg, #ffffff 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
}

.testimonial-card blockquote {
  margin: 0 0 var(--space-md);
  font-style: italic;
  color: var(--text-secondary);
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
}

.cta-banner {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(145deg, rgba(20, 32, 50, 0.08), rgba(37, 99, 235, 0.07), rgba(217, 119, 6, 0.06));
  border: 1px solid var(--border-card);
}

.cta-banner h2 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 60ch;
  margin-inline: auto;
}

.site-footer {
  padding-block: var(--space-xl);
  margin-top: var(--space-xl);
  background: linear-gradient(185deg, var(--navy-deep) 0%, #0c1420 100%);
  border-top: 1px solid rgba(251, 191, 36, 0.22);
  color: rgba(248, 250, 252, 0.88);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-brand p {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.92rem;
  max-width: 38ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-sm);
  color: #fbbf24;
}

.footer-col a {
  color: rgba(248, 250, 252, 0.78);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col address {
  font-style: normal;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.55);
}

.footer-brand .logo-link {
  color: #f8fafc;
}

.integrations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.integration-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, var(--gold-soft));
  border: 1px solid rgba(217, 119, 6, 0.28);
  font-size: 0.85rem;
  color: var(--navy-deep);
  font-weight: 600;
}

.search-bar {
  width: 100%;
  max-width: 420px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text-primary);
  font-family: inherit;
  margin-bottom: var(--space-lg);
  box-shadow: inset 0 1px 3px rgba(20, 32, 50, 0.06);
}

.search-bar::placeholder {
  color: var(--text-muted);
}

.matrix-wrap {
  overflow-x: auto;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-soft);
}

.matrix th,
.matrix td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-glass);
  text-align: center;
}

.matrix tr:last-child td {
  border-bottom: none;
}

.matrix th:first-child,
.matrix td:first-child {
  text-align: left;
}

.matrix thead th {
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy-mid) 100%);
  color: #f8fafc;
  font-family: var(--font-display);
}

.matrix .yes {
  color: var(--teal);
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid var(--border-glass);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item button .icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--gold);
}

.faq-item button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 0 var(--space-md);
  color: var(--text-secondary);
  display: none;
}

.faq-panel.is-open {
  display: block;
}

.tier-card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #ffffff 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
  height: 100%;
}

.tier-card--featured {
  background: linear-gradient(165deg, #ffffff 45%, var(--gold-soft) 160%);
  border: 2px solid rgba(217, 119, 6, 0.45);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.tier-card .tier-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 var(--space-xs);
  color: var(--text-primary);
}

.tier-card .tier-fit {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 var(--space-sm);
}

.tier-card ul {
  flex: 1;
  margin: var(--space-md) 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.tier-card ul li {
  margin-bottom: 0.35rem;
}

.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-ai);
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.form-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: var(--bg-soft);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field .error-msg {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: var(--space-xs);
  display: none;
}

.form-field.is-invalid .error-msg {
  display: block;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--danger);
}

.form-status {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.is-error {
  display: block;
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.contact-layout {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.05fr 1fr;
  }
}

.contact-card {
  padding: var(--space-lg);
  background: linear-gradient(165deg, #ffffff 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
}

.office-card {
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(165deg, #ffffff 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
}

.office-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 var(--space-xs);
  color: var(--gold);
}

.office-card address {
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  min-height: 280px;
  box-shadow: var(--shadow-md);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.blog-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--space-md) var(--space-lg);
}

.blog-card__meta {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: var(--space-xs) 0 var(--space-sm);
}

.blog-card h3 a {
  color: var(--text-primary);
}

.blog-card h3 a:hover {
  color: var(--indigo);
  text-decoration: none;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin: 0;
}

.team-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  padding: var(--space-md);
  text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
}

.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  border: 3px solid rgba(251, 191, 36, 0.55);
}

.team-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.team-card p {
  margin: var(--space-xs) 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.diagram-wrap {
  max-width: 760px;
  margin-inline: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border-card);
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--indigo);
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.image-strip figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.image-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
}

.outcome-card {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-soft);
}

.outcome-card .outcome-metric {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.outcome-card p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Wide photo strip — campus life mosaic */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@media (max-width: 900px) {
  .photo-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .photo-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-mosaic figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-mosaic figure:hover img {
  transform: scale(1.06);
}

.photo-mosaic figcaption {
  display: none;
}

/* Large GIF showcase — home motion band */
.gif-showcase-section {
  background: linear-gradient(180deg, rgba(20, 32, 50, 0.06), transparent 42%);
  border-block: 1px solid rgba(20, 32, 50, 0.08);
}

.gif-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gif-showcase__hero {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gif-showcase__hero img {
  display: block;
  width: 100%;
  max-height: min(420px, 52vw);
  object-fit: cover;
  background: var(--navy-deep);
}

.gif-showcase__hero figcaption {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(20, 32, 50, 0.08);
}

.gif-showcase__grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 840px) {
  .gif-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gif-showcase__cell {
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.gif-showcase__cell img {
  flex: 1;
  width: 100%;
  min-height: 220px;
  max-height: 360px;
  object-fit: cover;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08), var(--navy-deep));
}

.gif-showcase__cell figcaption {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(20, 32, 50, 0.08);
}

.gif-attribution {
  margin: var(--space-md) 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 72ch;
}

.gif-attribution a {
  color: var(--indigo);
}
