/* css/components.css */

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */

.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 10, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 12px var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max-width);
  z-index: 100;
  box-shadow: var(--shadow-nav);
  transition: background 0.3s, border-color 0.3s;
}

.floating-nav.scrolled {
  background: rgba(6, 5, 4, 0.96);
  border-color: var(--color-border-bright);
}

/* Light theme nav */
[data-theme="light"] .floating-nav {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(20, 20, 19, 0.1);
}
[data-theme="light"] .floating-nav.scrolled {
  background: rgba(252, 251, 250, 0.98);
  border-color: rgba(20, 20, 19, 0.18);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-light { display: none; }

[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

.nav-links {
  display: flex;
  gap: var(--space-6);
}

/* Nav link: 16px / 500 / -0.03em (-3%) */
.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-cream-muted);
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--color-cream); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-cream-muted);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.lang-btn.active {
  background: var(--color-ember);
  color: #fff;
}

/* ═══════════════════════════════════════
   THEME TOGGLE (fixed left, centered)
═══════════════════════════════════════ */

.theme-toggle {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
}

.theme-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-pill);
  padding: 14px 10px;
  cursor: pointer;
  width: 40px;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--color-ember);
}

.theme-icon {
  width: 16px;
  height: 16px;
  color: var(--color-cream-faint);
  transition: color 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon.active {
  color: var(--color-ember);
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */

/* Button: 16px / 500 / -0.03em (-3%) / 6px 24px — design.md spec */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.03em;
  padding: 6px 24px;
  border-radius: var(--radius-cta);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  /* Hover fill animation — warm color rises from bottom */
  background-size: 100% 200%;
  background-position: top center;
  transition: background-position 0.28s cubic-bezier(0.65, 0, 0.35, 1),
              border-color 0.2s,
              color 0.2s,
              transform 0.15s;
}

.btn:active { transform: scale(0.97); }
.btn-lg { padding: 10px 28px; }

/* Primary — red default, warm orange rises from bottom on hover */
.btn-primary {
  background-image: linear-gradient(
    to bottom,
    var(--color-ember) 50%,
    var(--color-warm)  50%
  );
  color: #FFFFFF;
  border-color: var(--color-ember);
}
.btn-primary:hover {
  background-position: bottom center;
  border-color: var(--color-warm);
}

/* Ghost — transparent default, warm tint rises from bottom */
.btn-ghost {
  background-image: linear-gradient(
    to bottom,
    transparent               50%,
    rgba(243, 115, 56, 0.12)  50%
  );
  color: var(--color-cream-muted);
  border-color: var(--color-border-bright);
}
.btn-ghost:hover {
  background-position: bottom center;
  color: var(--color-cream);
  border-color: rgba(243, 115, 56, 0.35);
}

/* Outline — same pattern, subtler warm tint */
.btn-outline {
  background-image: linear-gradient(
    to bottom,
    transparent              50%,
    rgba(243, 115, 56, 0.08) 50%
  );
  color: var(--color-cream-muted);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background-position: bottom center;
  color: var(--color-cream);
  border-color: rgba(243, 115, 56, 0.28);
}

/* Light theme button adjustments */
[data-theme="light"] .btn-ghost {
  background-image: linear-gradient(
    to bottom,
    transparent              50%,
    rgba(243, 115, 56, 0.10) 50%
  );
  color: var(--color-cream-muted);
  border-color: var(--color-border-bright);
}
[data-theme="light"] .btn-ghost:hover {
  background-position: bottom center;
  color: var(--color-cream);
  border-color: rgba(243, 115, 56, 0.3);
}

[data-theme="light"] .btn-outline {
  background-image: linear-gradient(
    to bottom,
    transparent              50%,
    rgba(243, 115, 56, 0.07) 50%
  );
  color: var(--color-cream-muted);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */

.hero-section {
  padding-top: var(--space-3);
  padding-bottom: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Hero always stays dark/cinematic regardless of theme */
.hero-stadium {
  border-radius: var(--radius-stadium);
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-12) var(--space-8);
  background:
    radial-gradient(ellipse 100% 60% at 50% 120%, rgba(235, 0, 27, 0.45) 0%, rgba(120, 0, 15, 0.28) 35%, transparent 65%),
    radial-gradient(ellipse 55% 38% at 50% 135%, rgba(200, 0, 20, 0.18) 0%, transparent 60%),
    linear-gradient(170deg, #0D0A08 0%, #0A0706 55%, #0E0804 100%);
  border: 1px solid rgba(235, 0, 27, 0.1);
  box-shadow: var(--shadow-glow);
}

/* Hero canvas — animated AI network, always behind overlays */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-stadium::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(243, 240, 238, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 90% at 50% 10%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 10%, black 10%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-stadium::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(8, 6, 5, 0.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 14%;
  transform: translateY(-50%);
  z-index: 4;
  max-width: min(520px, 50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 15, 10, 0.75);
  border: 1px solid rgba(235, 0, 27, 0.28);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-flame);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-flame);
  flex-shrink: 0;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

.hero-title {
  color: #F3F0EE;
  margin-bottom: var(--space-4);
}

.hero-desc {
  color: rgba(243, 240, 238, 0.72);
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: var(--space-5);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-orb {
  position: absolute;
  top: 50%;
  right: 7%;
  transform: translateY(-52%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%,
    rgba(235, 0, 27, 0.2) 0%,
    rgba(235, 0, 27, 0.06) 45%,
    transparent 70%);
  box-shadow:
    0 0 0 1px rgba(235, 0, 27, 0.1),
    0 0 0 44px rgba(235, 0, 27, 0.04),
    0 0 0 88px rgba(235, 0, 27, 0.02),
    0 0 0 130px rgba(235, 0, 27, 0.01);
  animation: orb-breathe 5.5s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   STATS BAR
═══════════════════════════════════════ */

.stats-bar {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-stadium);
  padding: var(--space-5) var(--space-8);
  margin-top: var(--space-8);
}

.stat { flex: 1; text-align: center; }

.stat-number {
  font-family: var(--font-primary);
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 7px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-cream-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   SERVICE NODES — constellation
═══════════════════════════════════════ */

.services-constellation {
  position: relative;
  min-height: 1080px;
}

#orbital-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.service-node {
  position: absolute;
  top: var(--node-top, 0);
  left: var(--node-left, 0);
  width: 270px;
  z-index: 2;
}

.portrait-container {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-3);
}

.portrait-crop {
  width: 270px;
  height: 270px;
  border-radius: var(--radius-circle);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.3s;
}

.portrait-crop:hover { border-color: rgba(243, 115, 56, 0.4); }

.portrait-strategy {
  background: radial-gradient(circle at 38% 38%, rgba(235, 0, 27, 0.15) 0%, var(--color-deep) 65%);
}
.portrait-custom {
  background: radial-gradient(circle at 38% 38%, rgba(235, 0, 27, 0.1) 0%, var(--color-deep) 65%);
}
.portrait-automation {
  background: radial-gradient(circle at 38% 38%, rgba(235, 0, 27, 0.12) 0%, var(--color-deep) 65%);
}
.portrait-apps {
  background: radial-gradient(circle at 38% 38%, rgba(235, 0, 27, 0.09) 0%, var(--color-deep) 65%);
}

/* Light theme: portraits keep their inner glow readable */
[data-theme="light"] .portrait-crop {
  border-color: rgba(20, 20, 19, 0.1);
}
[data-theme="light"] .portrait-strategy,
[data-theme="light"] .portrait-custom,
[data-theme="light"] .portrait-automation,
[data-theme="light"] .portrait-apps {
  background: radial-gradient(circle at 38% 38%, rgba(235, 0, 27, 0.08) 0%, var(--color-surface) 65%);
}

.portrait-icon {
  color: var(--color-ember);
  opacity: 0.72;
  transition: opacity 0.3s;
}
.portrait-crop:hover .portrait-icon { opacity: 1; }

.satellite-cta {
  position: absolute;
  bottom: 14px;
  right: -12px;
  width: 52px;
  height: 52px;
  background: var(--color-cream);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-ink-black);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 2;
}
.satellite-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}

.service-node .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-1);
}
.service-node h3 { font-size: 22px; margin-bottom: 7px; }
.service-node p  { font-size: 16px; line-height: 1.55; max-width: 240px; }

/* ═══════════════════════════════════════
   FEATURE CARDS — Why section
═══════════════════════════════════════ */

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-stadium);
  padding: var(--space-5);
  transition: border-color 0.3s, background 0.3s;
}
.feature-card:hover {
  border-color: rgba(243, 115, 56, 0.28);
  background: var(--color-lifted);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-consent);
  background: rgba(235, 0, 27, 0.08);
  border: 1px solid rgba(235, 0, 27, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-ember);
  flex-shrink: 0;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { font-size: 16px; line-height: 1.4; }

/* ═══════════════════════════════════════
   PROCESS STEPS
═══════════════════════════════════════ */

.process-steps { display: flex; flex-direction: column; }

.process-step {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.process-step:last-child { border-bottom: none; }

.step-number {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ember);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 26px;
  padding-top: 3px;
}
.step-content h3 { font-size: 20px; margin-bottom: 6px; }
.step-content p  { font-size: 16px; line-height: 1.4; }

/* ═══════════════════════════════════════
   BENEFITS GRID
═══════════════════════════════════════ */

.benefit-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.benefit-number {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-ember);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.benefit-item h3 { font-size: 20px; margin-bottom: 8px; }
.benefit-item p  { font-size: 16px; line-height: 1.4; }

/* ═══════════════════════════════════════
   CTA STADIUM — always dark
═══════════════════════════════════════ */

.cta-section { padding-bottom: var(--space-12); }

#services { padding-bottom: var(--space-8); }
#why      { padding-top:    var(--space-8); }

/* 3D tilt — JS drives transform; transition only active on mouseleave (set via JS) */
.cta-stadium {
  will-change: transform;
  border-radius: var(--radius-stadium);
  background:
    radial-gradient(ellipse 70% 65% at 50% 115%, rgba(235, 0, 27, 0.35) 0%, rgba(120, 0, 15, 0.18) 38%, transparent 65%),
    #161210;
  border: 1px solid rgba(235, 0, 27, 0.14);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow-sm);
}

.cta-stadium::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(243, 240, 238, 0.042) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 5%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 5%, transparent 90%);
  pointer-events: none;
}

/* Glare layer — follows mouse via --gx / --gy CSS vars */
.cta-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(243, 115, 56, 0.07),
    transparent 45%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}

.cta-content { position: relative; z-index: 2; }
.cta-content h2 {
  color: #F3F0EE;
  margin-bottom: var(--space-3);
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.cta-content > p {
  color: rgba(243, 240, 238, 0.65);
  margin-bottom: var(--space-6);
  font-size: 17px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   FOOTER — always dark
═══════════════════════════════════════ */

.site-footer {
  background: #0D0A08;
  border-top: 1px solid rgba(243, 240, 238, 0.07);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(243, 240, 238, 0.07);
}

.footer-brand-name {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  color: #F3F0EE;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

/* Footer logo images */
.footer-brand-logo { margin-bottom: var(--space-3); }
.footer-logo-dark  { height: 30px; width: auto; display: block; }
.footer-logo-light { display: none; height: 30px; width: auto; }
[data-theme="light"] .footer-logo-dark  { display: none; }
[data-theme="light"] .footer-logo-light { display: block; }

/* Footer legal links */
.footer-legal-links a {
  color: rgba(243, 240, 238, 0.52);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--color-cream); }
.footer-legal-links span    { color: rgba(243, 240, 238, 0.3); }
[data-theme="light"] .footer-legal-links a       { color: var(--color-cream-faint); }
[data-theme="light"] .footer-legal-links a:hover { color: var(--color-cream); }
[data-theme="light"] .footer-legal-links span    { color: var(--color-cream-faint); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.4;
  max-width: 250px;
  margin-bottom: var(--space-4);
  color: rgba(243, 240, 238, 0.55);
}

/* Footer col header: 14px / 700 / +0.04em (+4%) / uppercase */
.footer-col-header {
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(243, 240, 238, 0.28);
  margin-bottom: var(--space-3);
}

/* Footer link: 14px / 400 / 1.4 line-height */
.footer-col a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(243, 240, 238, 0.55);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #F3F0EE; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  gap: var(--space-4);
}

.footer-legal {
  font-size: 13px;
  color: rgba(243, 240, 238, 0.52);
}

/* Ghost watermark — hidden in light theme (text confuses readability) */
[data-theme="light"] .ghost-watermark {
  display: none;
}

/* Hero + CTA stadium buttons — always dark bg, force light text regardless of theme */
.hero-stadium .btn-ghost {
  background-image: linear-gradient(
    to bottom,
    transparent                50%,
    rgba(243, 115, 56, 0.12)   50%
  );
  color: rgba(243, 240, 238, 0.78);
  border-color: rgba(243, 240, 238, 0.22);
}
.hero-stadium .btn-ghost:hover {
  background-position: bottom center;
  color: #F3F0EE;
  border-color: rgba(243, 115, 56, 0.4);
}

.cta-stadium .btn-ghost {
  background-image: linear-gradient(
    to bottom,
    transparent                50%,
    rgba(243, 115, 56, 0.12)   50%
  );
  color: rgba(243, 240, 238, 0.78);
  border-color: rgba(243, 240, 238, 0.22);
}
.cta-stadium .btn-ghost:hover {
  background-position: bottom center;
  color: #F3F0EE;
  border-color: rgba(243, 115, 56, 0.4);
}

/* Footer — light theme overrides (footer is hardcoded dark by default) */
[data-theme="light"] .site-footer {
  background: var(--color-void);
  border-top-color: var(--color-border);
}
[data-theme="light"] .footer-top {
  border-bottom-color: var(--color-border);
}
[data-theme="light"] .footer-brand-name {
  color: var(--color-cream);
}

/* ═══════════════════════════════════════
   LEGAL MODALS (Privacy Policy & Terms)
═══════════════════════════════════════ */

.legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 4, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.legal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.legal-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-stadium);
  padding: var(--space-8);
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: var(--shadow-card);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-bright) transparent;
}

.legal-overlay.open .legal-modal {
  transform: translateY(0) scale(1);
}

.legal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-lifted);
  border: 1px solid var(--color-border);
  color: var(--color-cream-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.legal-close:hover {
  background: var(--color-border-bright);
  border-color: var(--color-ember);
  color: var(--color-cream);
}

.legal-header {
  padding-right: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.legal-header h2 { margin-bottom: var(--space-2); }
.legal-date {
  font-size: 13px;
  color: var(--color-cream-faint);
}

.legal-body {
  color: var(--color-cream-muted);
  font-size: 15px;
  line-height: 1.65;
}
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-cream);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.legal-body p { margin-bottom: var(--space-3); }
.legal-body a {
  color: var(--color-ember);
  text-decoration: underline;
}

[data-theme="light"] .legal-overlay {
  background: rgba(236, 234, 232, 0.88);
}
[data-theme="light"] .legal-modal {
  background: var(--color-surface);
}
[data-theme="light"] .legal-close {
  background: var(--color-lifted);
  border-color: var(--color-border-bright);
}

@media (max-width: 640px) {
  .legal-modal {
    border-radius: var(--radius-consent);
    padding: var(--space-5);
  }
}
[data-theme="light"] .footer-brand p {
  color: var(--color-cream-muted);
}
[data-theme="light"] .footer-col-header {
  color: var(--color-cream-faint);
}
[data-theme="light"] .footer-col a {
  color: var(--color-cream-muted);
}
[data-theme="light"] .footer-col a:hover {
  color: var(--color-cream);
}
[data-theme="light"] .footer-legal {
  color: var(--color-cream-faint);
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.78); }
}

@keyframes orb-breathe {
  0%, 100% { transform: translateY(-52%) scale(1); opacity: 0.55; }
  50%       { transform: translateY(-52%) scale(1.1); opacity: 1; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .services-constellation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    min-height: auto;
    position: static;
  }
  .services-constellation #orbital-lines { display: none; }
  .service-node { position: static; width: auto; }
  .portrait-crop { width: 200px; height: 200px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .theme-toggle { display: none; }
  .hero-content {
    left: 34%;
    max-width: min(480px, 62%);
  }
}

@media (max-width: 767px) {
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
  }
  .hero-stadium {
    align-items: flex-end;
    padding: var(--space-8) var(--space-4);
  }
}

/* ═══════════════════════════════════════
   CAREERS MODAL
═══════════════════════════════════════ */

.careers-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 4, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.careers-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.careers-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-stadium);
  padding: var(--space-8);
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: var(--shadow-card);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-bright) transparent;
}

.careers-overlay.open .careers-modal {
  transform: translateY(0) scale(1);
}

.careers-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-lifted);
  border: 1px solid var(--color-border);
  color: var(--color-cream-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.careers-close:hover {
  background: var(--color-border-bright);
  border-color: var(--color-ember);
  color: var(--color-cream);
}

.careers-header {
  margin-bottom: var(--space-6);
  padding-right: var(--space-5);
}

.careers-header h2 { margin-bottom: var(--space-2); }
.careers-header > p { font-size: 15px; }

/* ── Form layout ── */
.careers-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: var(--space-3);
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cream-muted);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-optional {
  font-weight: 400;
  color: var(--color-cream-faint);
  text-transform: none;
  letter-spacing: 0;
}

.form-group input,
.form-group textarea {
  background: var(--color-deep);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-micro);
  padding: 10px 14px;
  color: var(--color-cream);
  font-family: var(--font-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-cream-faint);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-ember);
  background: var(--color-surface);
}

.form-group textarea { min-height: 108px; }

.char-count {
  font-size: 12px;
  color: var(--color-cream-faint);
  text-align: right;
}

/* ── File drop ── */
.file-drop {
  position: relative;
  border: 1px dashed var(--color-border-bright);
  border-radius: var(--radius-micro);
  background: var(--color-deep);
  padding: var(--space-4) var(--space-3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  overflow: hidden;
}

.file-drop:hover,
.file-drop.dragging {
  border-color: var(--color-ember);
  background: rgba(235, 0, 27, 0.04);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  color: var(--color-cream-muted);
}

.file-drop-content svg {
  color: var(--color-cream-faint);
  margin-bottom: 2px;
}

.file-drop-content span { font-size: 14px; }
.file-browse { color: var(--color-ember); text-decoration: underline; }
.file-types  { font-size: 12px; color: var(--color-cream-faint); }

.file-selected {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-cream);
  pointer-events: none;
}

.file-selected svg { color: var(--color-ember); flex-shrink: 0; }

/* ── Submit ── */
.careers-submit {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  margin-top: var(--space-1);
}

/* ── Success state ── */
.careers-success {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(235, 0, 27, 0.08);
  border: 1px solid rgba(235, 0, 27, 0.2);
  color: var(--color-ember);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.careers-success h3 { margin-bottom: var(--space-2); }
.careers-success p  { color: var(--color-cream-muted); }

/* ── Light theme ── */
[data-theme="light"] .careers-overlay {
  background: rgba(236, 234, 232, 0.88);
}

[data-theme="light"] .careers-modal {
  background: var(--color-surface);
}

[data-theme="light"] .careers-close {
  background: var(--color-lifted);
  border-color: var(--color-border-bright);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .file-drop {
  background: var(--color-void);
}

/* ── Careers responsive ── */
@media (max-width: 640px) {
  .careers-modal {
    border-radius: var(--radius-consent);
    padding: var(--space-5);
  }
  .careers-form .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   DISCOVERY MODAL — Step-by-step form
═══════════════════════════════════════ */

.discovery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 4, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.discovery-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.discovery-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-stadium);
  padding: var(--space-8) var(--space-8) var(--space-6);
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: var(--shadow-card);
}

.discovery-overlay.open .discovery-modal {
  transform: translateY(0) scale(1);
}

/* Progress bar */
.discovery-progress {
  width: 100%;
  height: 2px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.discovery-progress-fill {
  height: 100%;
  background: var(--color-ember);
  border-radius: var(--radius-pill);
  transition: width 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  width: 25%;
}

/* Close */
.discovery-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border-bright);
  background: transparent;
  color: var(--color-cream-muted);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  line-height: 1;
}

.discovery-close:hover {
  color: var(--color-cream);
  border-color: rgba(243, 240, 238, 0.3);
  background: var(--color-lifted);
}

/* Viewport — all steps live here, clipped */
.discovery-viewport {
  position: relative;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Each step */
.discovery-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(110%);
  will-change: transform, opacity;
}

.discovery-step-counter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: var(--space-3);
}

.discovery-step-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-cream);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.discovery-input {
  display: block;
  width: 100%;
  background: var(--color-lifted);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-cta);
  padding: 15px 20px;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--color-cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: var(--space-3);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.discovery-input:focus {
  border-color: rgba(235, 0, 27, 0.6);
  box-shadow: 0 0 0 3px rgba(235, 0, 27, 0.10);
}

.discovery-input::placeholder { color: var(--color-cream-faint); }

.discovery-input[type="date"],
.discovery-input[type="time"] { color-scheme: dark; }

/* Date + time side by side on step 4 */
.discovery-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.discovery-date-row .discovery-input-wrap { margin-bottom: 0; }

/* Timezone below date row */
.discovery-tz-wrap { margin-top: 0; }

/* Wrapper for any input that needs arrow or equal sizing */
.discovery-input-wrap {
  position: relative;
  margin-bottom: var(--space-3);
}

/* Dropdown arrow — only on wrappers that contain a select */
.discovery-input-wrap:has(select)::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-cream-faint);
  pointer-events: none;
}

/* All inputs inside a wrap fill it fully with equal height */
.discovery-input-wrap .discovery-input {
  margin-bottom: 0;
  height: 52px;
  cursor: pointer;
  box-sizing: border-box;
}

/* Date input needs same fixed height, no pointer cursor */
.discovery-input-wrap input[type="date"] {
  cursor: default;
}

/* Buttons */
.discovery-btn-next,
.discovery-btn-submit {
  display: block;
  width: 100%;
  padding: 15px 24px;
  margin-top: var(--space-3);
  background-image: linear-gradient(
    to bottom,
    var(--color-ember) 50%,
    var(--color-warm)  50%
  );
  background-size: 100% 200%;
  background-position: top center;
  color: #fff;
  border: none;
  border-radius: var(--radius-cta);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background-position 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
}

.discovery-btn-next:hover,
.discovery-btn-submit:hover {
  background-position: bottom center;
}

.discovery-btn-next:disabled,
.discovery-btn-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.discovery-btn-back {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--color-cream-faint);
  font-family: var(--font-primary);
  font-size: 14px;
  cursor: pointer;
  margin-top: var(--space-1);
  transition: color 0.2s;
  text-align: center;
}

.discovery-btn-back:hover { color: var(--color-cream-muted); }

/* Progress dots */
.discovery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-5);
}

.discovery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border-bright);
  transition: background 0.3s, transform 0.3s;
}

.discovery-dot.active {
  background: var(--color-ember);
  transform: scale(1.35);
}

/* Success state */
.discovery-success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.discovery-success.visible { display: block; }

.discovery-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(235, 0, 27, 0.08);
  border: 1px solid rgba(235, 0, 27, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 26px;
  color: var(--color-ember);
}

.discovery-success h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-cream);
  margin-bottom: var(--space-2);
}

.discovery-success p {
  font-size: 15px;
  color: var(--color-cream-muted);
  line-height: 1.55;
}

/* Light theme */
[data-theme="light"] .discovery-overlay {
  background: rgba(236, 234, 232, 0.88);
}

[data-theme="light"] .discovery-input[type="date"],
[data-theme="light"] .discovery-input[type="time"] {
  color-scheme: light;
}

/* Responsive */
@media (max-width: 540px) {
  .discovery-modal {
    border-radius: var(--radius-consent);
    padding: var(--space-6) var(--space-5) var(--space-5);
  }
  .discovery-date-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .discovery-date-row .discovery-input { margin-bottom: var(--space-3); }
}

@media (max-width: 767px) {
  .floating-nav .nav-links { display: none; }
  .hero-stadium {
    border-radius: 24px;
    padding: var(--space-8) var(--space-3);
    min-height: 88vh;
  }
  .hero-orb { display: none; }
  .stats-bar {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-stadium);
  }
  .stat-divider { width: 48px; height: 1px; }
  .services-constellation { grid-template-columns: 1fr; }
  .portrait-crop { width: 180px; height: 180px; }
  .cta-stadium { padding: var(--space-8) var(--space-4); border-radius: 24px; }
  .cta-stadium::before { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lang-toggle { display: none; }
}
