/* ─── Compton Capital — Global Styles ─────────────────────────────────────── */

:root {
  --surface: #131313;
  --surface-low: #1c1b1b;
  --surface-high: #2a2a2a;
  --surface-highest: #353534;
  --surface-bright: #393939;
  --primary: #aac7ff;
  --primary-container: #3e90ff;
  --on-primary: #003064;
  --on-primary-container: #002957;
  --secondary-fixed: #ffe16d;
  --on-surface: #e5e2e1;
  --on-surface-variant: #c1c6d7;
  --outline-variant: #414755;
  --outline: #8b90a0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: 'Noto Serif', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
.font-headline { font-family: 'Inter', system-ui, sans-serif; }
.font-label    { font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0.05em; }

/* ─── Glass Nav ──────────────────────────────────────────────────────────── */
.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(19, 19, 19, 0.82);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid rgba(65, 71, 85, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(229, 226, 225, 0.7);
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a.active { border-bottom: 2px solid var(--primary-container); padding-bottom: 2px; }

.btn-primary {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--on-primary);
  background: var(--primary);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover { background: #c5d8ff; }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--on-surface);
  background: var(--surface-low);
  border: 1px solid rgba(65, 71, 85, 0.15);
  border-radius: 2rem;
  padding: 1.125rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-outline:hover { background: var(--surface-high); }

/* ─── Mobile Menu ────────────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-surface);
  cursor: pointer;
  font-size: 1.5rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(19, 19, 19, 0.98);
  backdrop-filter: blur(32px);
  padding: 1.5rem 3rem 2rem;
  gap: 1.5rem;
  border-top: 1px solid rgba(65, 71, 85, 0.15);
}

.mobile-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(229, 226, 225, 0.7);
  transition: color 0.2s;
}

.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); }
.mobile-menu.open { display: flex; }

/* ─── Section Utility ────────────────────────────────────────────────────── */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--surface) 35%, rgba(19,19,19,0.6) 70%, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--surface-high);
  border-radius: 2rem;
  border: 1px solid rgba(65, 71, 85, 0.15);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--secondary-fixed);
  box-shadow: 0 0 10px rgba(255, 225, 109, 0.5);
}

.hero-badge-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

h1.display {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--on-surface);
  margin-bottom: 2rem;
}

h1.display span.accent { color: var(--primary); font-style: italic; font-weight: 300; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--on-surface-variant);
  max-width: 38rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }

.btn-hero {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 1.125rem 2.75rem;
  border-radius: 2rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-hero.filled {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-hero.filled:hover { background: #c5d8ff; }

/* ─── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(28, 27, 27, 0.6);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(65, 71, 85, 0.1);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
}

.stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-high);
  border-radius: 2rem;
  border: 1px solid rgba(65, 71, 85, 0.1);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s ease;
}

.card:hover { background: var(--surface-highest); }

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.card:hover .card-icon { transform: scale(1.1); }

.card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card p { color: var(--on-surface-variant); line-height: 1.75; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(65, 71, 85, 0.1);
  margin-top: 2rem;
}

.card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* ─── Program Cards (Programs Page Bento) ────────────────────────────────── */
.program-card {
  background: var(--surface-low);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  text-decoration: none;
  color: var(--on-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.program-card:hover { background: var(--surface-bright); }

.program-card .glow {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 16rem;
  height: 16rem;
  background: rgba(62, 144, 255, 0.1);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
  transition: background 0.3s ease;
}

.program-card:hover .glow { background: rgba(62, 144, 255, 0.2); }

.program-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.program-card p { color: rgba(229, 226, 225, 0.7); line-height: 1.75; max-width: 28rem; }

.view-terms {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 2rem;
}

/* ─── Process Steps ──────────────────────────────────────────────────────── */
.step-number {
  font-family: 'Inter', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  position: absolute;
  top: -3rem;
  left: -1rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.step:hover .step-number { color: rgba(62, 144, 255, 0.08); }

.step-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ─── Contact / Form ─────────────────────────────────────────────────────── */
.signature-input {
  background: var(--surface-low);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--on-surface);
  font-family: 'Noto Serif', serif;
  font-size: 1rem;
  padding: 0.875rem 0;
  width: 100%;
  transition: border-color 0.3s ease;
}

.signature-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.signature-input::placeholder { color: var(--outline); }

select.signature-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b90a0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

select.signature-input option { background: var(--surface-high); color: var(--on-surface); }

textarea.signature-input { resize: vertical; min-height: 120px; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* ─── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  border-radius: 3rem;
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-dots {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 24px 24px;
}

.cta-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--on-primary-container);
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(0, 41, 87, 0.8);
  max-width: 36rem;
  margin: 0 auto 3rem;
  position: relative;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid rgba(65, 71, 85, 0.15);
  padding: 3rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary-fixed);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(229, 226, 225, 0.4);
  margin-top: 0.375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(229, 226, 225, 0.4);
  transition: color 0.2s;
}

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

/* ─── Testimonial Card ───────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--surface-high);
  border-radius: 3rem;
  border: 1px solid rgba(65, 71, 85, 0.1);
  padding: 3rem;
  position: relative;
}

.quote-mark {
  position: absolute;
  top: -2rem;
  left: -2rem;
  font-size: 3.5rem;
  color: var(--secondary-fixed);
  background: var(--surface);
  padding: 0.75rem;
  border-radius: 50%;
  line-height: 1;
}

/* ─── Headshot ────────────────────────────────────────────────────────────── */
.headshot-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.headshot-glow {
  position: absolute;
  top: -3rem;
  left: -3rem;
  width: 18rem;
  height: 18rem;
  background: rgba(170, 199, 255, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.headshot-img {
  width: 100%;
  max-width: 380px;
  border-radius: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(170, 199, 255, 0.15));
  position: relative;
  z-index: 1;
}

/* ─── Alert ──────────────────────────────────────────────────────────────── */
.form-alert {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  display: none;
}

.form-alert.success {
  background: rgba(170, 199, 255, 0.1);
  border: 1px solid rgba(170, 199, 255, 0.3);
  color: var(--primary);
}

.form-alert.error {
  background: rgba(255, 180, 171, 0.1);
  border: 1px solid rgba(255, 180, 171, 0.3);
  color: #ffb4ab;
}

.form-alert.show { display: block; }

/* ─── Page Hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
  padding: 9rem 0 5rem;
}

.page-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--on-surface);
  margin-bottom: 2rem;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { padding: 1.25rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .container { padding: 0 1.5rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 1.5rem; }
  .cta-section { padding: 3rem 1.5rem; border-radius: 1.5rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
