/* ==========================================================================
   IntelliFin Studio — Obsidian Precision Lab Design System
   Routes: / (LaunchStudio 4K) | /scivis/ (Physics PhD SciVis Lab) | /thank-you/
   ========================================================================== */

:root {
  --bg-obsidian: #04060a;
  --bg-slate: #0b111e;
  --bg-elevated: #101829;
  --bg-panel: rgba(11, 17, 30, 0.84);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.14);
  --cyan-glow: rgba(56, 189, 248, 0.28);

  --emerald: #34d399;
  --emerald-dim: rgba(52, 211, 153, 0.14);

  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.14);

  --border-hairline: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-cyan: rgba(56, 189, 248, 0.42);

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --max-width: 1220px;
  --header-height: 70px;
  --shadow-card: 0 18px 45px -20px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 0 1px var(--border-cyan), 0 24px 60px -22px rgba(56, 189, 248, 0.25);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg-obsidian);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.12), transparent 65%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(52, 211, 153, 0.06), transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.theme-scivis {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.14), transparent 65%),
    radial-gradient(ellipse 55% 45% at 15% 15%, rgba(245, 158, 11, 0.07), transparent 60%),
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.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: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-height);
  background: rgba(4, 6, 10, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(52, 211, 153, 0.12));
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.route-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(11, 17, 30, 0.92);
  border: 1px solid var(--border-hairline);
  gap: 2px;
}

.route-pill {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.route-pill:hover {
  color: var(--text-primary);
}

.route-pill.is-active {
  background: rgba(56, 189, 248, 0.16);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.34);
}

.route-pill.is-active-amber {
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.36);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.16s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--bg-slate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 55;
  background: rgba(4, 6, 10, 0.97);
  backdrop-filter: blur(18px);
  padding: 24px;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border-hairline);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer a,
.mobile-drawer button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.mobile-drawer .nav-link {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-slate);
  font-size: 0.95rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.94rem;
}

.btn-primary {
  background: var(--cyan);
  color: #031019;
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 10px 28px -10px rgba(56, 189, 248, 0.55);
}

.btn-primary:hover {
  background: #67cefa;
  box-shadow: 0 14px 32px -10px rgba(56, 189, 248, 0.72);
}

.btn-amber {
  background: var(--amber);
  color: #160e00;
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 10px 28px -10px rgba(245, 158, 11, 0.45);
}

.btn-amber:hover {
  background: #fbbf24;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.34);
}

.btn-ghost:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-hairline);
  background: rgba(11, 17, 30, 0.82);
  color: var(--text-secondary);
}

.badge-cyan {
  border-color: rgba(56, 189, 248, 0.35);
  background: var(--cyan-dim);
  color: var(--cyan);
}

.badge-emerald {
  border-color: rgba(52, 211, 153, 0.35);
  background: var(--emerald-dim);
  color: var(--emerald);
}

.badge-amber {
  border-color: rgba(245, 158, 11, 0.38);
  background: var(--amber-dim);
  color: var(--amber);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* ==========================================================================
   Hero & Section Layout
   ========================================================================== */

.hero {
  padding: 64px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.text-gradient-cyan {
  background: linear-gradient(120deg, #ffffff 10%, #7dd3fc 52%, #34d399 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(120deg, #ffffff 10%, #7dd3fc 52%, #fbbf24 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 26px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-subroute-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.06);
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.hero-subroute-link:hover {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
}

/* Telemetry Spec Card in Hero */
.hero-telemetry-card {
  background: linear-gradient(180deg, rgba(16, 24, 41, 0.92), rgba(11, 17, 30, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-telemetry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald), transparent);
}

.theme-scivis .hero-telemetry-card::before {
  background: linear-gradient(90deg, var(--cyan), var(--amber), transparent);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.telemetry-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.telemetry-cell {
  background: rgba(4, 6, 10, 0.56);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
}

.telemetry-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
}

.telemetry-label {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.telemetry-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-chip {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */

.section {
  padding: 58px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.theme-scivis .section-kicker-amber {
  color: var(--amber);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 66ch;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Filter Tabs */
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: var(--bg-slate);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
}

.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.is-active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   Showcase Grid & Video / Figure Cards
   ========================================================================== */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.showcase-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.showcase-card:hover {
  border-color: var(--border-strong);
}

.showcase-card.is-hidden {
  display: none;
}

.span-6 {
  grid-column: span 6;
}

.span-4 {
  grid-column: span 4;
}

.span-12 {
  grid-column: span 12;
}

.media-wrap {
  position: relative;
  background: #020408;
  border-bottom: 1px solid var(--border-hairline);
  overflow: hidden;
}

.media-frame-16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.media-frame-9x16 {
  aspect-ratio: 9 / 16;
  max-height: 460px;
  width: auto;
  margin: 0 auto;
}

.media-wrap-portrait {
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.08), transparent 68%),
    #030509;
  padding: 14px;
}

.media-wrap-portrait video {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px -15px rgba(0, 0, 0, 0.9);
}

.media-wrap video,
.media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-wrap-portrait video {
  width: auto;
  max-width: 100%;
  height: 430px;
  object-fit: cover;
}

.media-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.media-aspect-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(4, 6, 10, 0.82);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

/* Fallback Blueprint Plate shown automatically only if asset isn't synced yet */
.asset-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.14), transparent 65%),
    linear-gradient(135deg, #070b14, #0d1628);
}

.asset-fallback.is-visible {
  display: flex;
}

.asset-fallback-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
  margin-top: 10px;
}

.asset-fallback-path {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin-top: 4px;
  opacity: 0.9;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.card-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* SciVis 3D Figures Grid */
.figures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.figure-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #03060c;
  overflow: hidden;
  border-bottom: 1px solid var(--border-hairline);
  cursor: zoom-in;
}

.figure-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.showcase-card:hover .figure-thumb-wrap img {
  transform: scale(1.03);
}

.zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(4, 6, 10, 0.84);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

/* ==========================================================================
   Spotlight Banner (/ -> /scivis/)
   ========================================================================== */

.spotlight-banner {
  background: linear-gradient(135deg, rgba(11, 17, 30, 0.96), rgba(14, 24, 42, 0.94));
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(245, 158, 11, 0.15);
}

.spotlight-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spotlight-media-box {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #03060c;
}

.spotlight-media-box img,
.spotlight-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Pricing Grid & Cards
   ========================================================================== */

.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pricing-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.pricing-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}

.pricing-card.is-featured {
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.96), rgba(9, 15, 27, 0.98));
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glow);
}

.pricing-card.is-featured-amber {
  background: linear-gradient(180deg, rgba(22, 24, 34, 0.96), rgba(10, 15, 25, 0.98));
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25), 0 24px 60px -22px rgba(245, 158, 11, 0.18);
}

.pricing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sku-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.pricing-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.pricing-tagline {
  margin: 0 0 18px;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}

.price-unit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.early-bird-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--emerald-dim);
  border: 1px solid rgba(52, 211, 153, 0.34);
  color: var(--emerald);
}

.feature-list {
  list-style: none;
  margin: 14px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.feature-list li strong {
  color: var(--text-primary);
}

.feature-check {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--emerald);
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.split-tier-box {
  background: rgba(4, 6, 10, 0.56);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.split-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.split-tier-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
}

.split-tier-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cyan);
}

/* ==========================================================================
   Gates & Academic Integrity Grid
   ========================================================================== */

.gates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gate-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.gate-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.gate-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffffff;
}

.gate-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

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

.compliance-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.invoice-verbatim {
  margin: 14px 0;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(4, 6, 10, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.34);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #bae6fd;
  word-break: break-word;
}

/* ==========================================================================
   Thank-You / Intake Form
   ========================================================================== */

.intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}

.form-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(4, 6, 10, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.form-textarea {
  min-height: 98px;
  resize: vertical;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.form-checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

/* ==========================================================================
   Modal & Lightbox
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 4, 8, 0.82);
  backdrop-filter: blur(10px);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0a101d;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.95);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  color: #ffffff;
  border-color: var(--border-strong);
}

.modal-summary-box {
  background: rgba(4, 6, 10, 0.72);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.lightbox-dialog {
  max-width: 980px;
  padding: 18px;
}

.lightbox-img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #020408;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0d1b2a;
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 36px 0 46px;
  background: rgba(4, 6, 10, 0.9);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-legal {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-legal strong {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .spotlight-banner,
  .intake-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid-3,
  .figures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .route-switcher {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .span-6,
  .span-4 {
    grid-column: span 12;
  }

  .pricing-grid-3,
  .pricing-grid-2,
  .figures-grid,
  .gates-grid,
  .compliance-grid,
  .spotlight-media-grid {
    grid-template-columns: 1fr;
  }

  .brand-meta {
    display: none;
  }

  .route-pill {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
