/* ═══════════════════════════════════════════════════════════
   SPEJI — Landing Page Styles
   Typography: IBM Plex Sans (primary) + Noto Sans (subtitles)
   Brand Ref: speji-brand-identity v1.0
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ── Brand Color Tokens (speji-brand-identity v1.0) ── */
  --color-bg: #060A10;
  /* Background dark */
  --color-surface: #0A1020;
  /* Surface dark */
  --color-border: #101C30;
  /* Border dark */
  --color-stroke: #5A9ED0;
  /* Logo stroke / accent */
  --color-dot: #7AB8E0;
  /* Dot / Accent dark */
  --color-text-primary: #C0D4E8;
  /* Text Primary dark */
  --color-text-secondary: #5080A8;
  /* Text Secondary dark */
  --color-text-muted: #243858;
  /* Text Muted dark */
  --color-btn-bg: #5A9ED0;
  /* Button BG dark */
  --color-btn-text: #040810;
  /* Button Text dark */

  /* ── Semantic aliases (used throughout CSS) ── */
  --navy-950: #060A10;
  --navy-900: #0A1020;
  --navy-800: #0D1628;
  --navy-700: #101C30;
  --navy-600: #182840;
  --navy-500: #243858;
  --navy-400: #5080A8;
  --navy-300: #6888A8;
  --navy-200: #8AA8C8;
  --navy-100: #C0D4E8;
  --navy-50: #E0ECF8;

  /* Accent */
  --blue-500: #1A4A7A;
  --blue-400: #5A9ED0;
  --blue-300: #7AB8E0;
  --teal-500: #5A9ED0;
  --teal-400: #7AB8E0;
  --purple-500: #386898;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #5A9ED0, #7AB8E0);
  --gradient-text: linear-gradient(135deg, #7AB8E0, #5A9ED0, #386898);
  --gradient-card: linear-gradient(160deg, rgba(90, 158, 208, 0.07), rgba(122, 184, 224, 0.03));
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(90, 158, 208, 0.14) 0%, transparent 60%);

  /* Glass */
  --glass-bg: rgba(10, 16, 32, 0.6);
  --glass-border: rgba(90, 158, 208, 0.14);
  --glass-blur: 20px;

  /* Navbar scrolled bg */
  --navbar-scrolled-bg: rgba(6, 10, 16, 0.88);

  /* ── Typography (IBM Plex Sans + Noto Sans) ── */
  --font-display: 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-subtitle: 'Noto Sans', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-medium: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ─── Light Theme (brand-identity hex sheet) ─── */
[data-theme="light"] {
  --color-bg: #F2F5FA;
  --color-surface: #FFFFFF;
  --color-border: #C4D4EA;
  --color-stroke: #1A4A7A;
  --color-dot: #5A9ED0;
  --color-text-primary: #081428;
  --color-text-secondary: #2A4868;
  --color-text-muted: #6888A8;
  --color-btn-bg: #1A4A7A;
  --color-btn-text: #FFFFFF;

  --navy-950: #F2F5FA;
  --navy-900: #FFFFFF;
  --navy-800: #EAF0F8;
  --navy-700: #C4D4EA;
  --navy-600: #8AA8C8;
  --navy-500: #6888A8;
  --navy-400: #2A4868;
  --navy-300: #1A3858;
  --navy-200: #0E2240;
  --navy-100: #081428;
  --navy-50: #040C1C;

  --blue-500: #1A4A7A;
  --blue-400: #1A4A7A;
  --blue-300: #0E2E58;
  --teal-500: #1A4A7A;
  --teal-400: #2A5A8A;
  --purple-500: #2A3A7A;

  --gradient-brand: linear-gradient(135deg, #1A4A7A, #5A9ED0);
  --gradient-text: linear-gradient(135deg, #1A4A7A, #2A6AAA, #1A3A8A);
  --gradient-card: linear-gradient(160deg, rgba(26, 74, 122, 0.06), rgba(90, 158, 208, 0.03));
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(26, 74, 122, 0.07) 0%, transparent 60%);

  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(196, 212, 234, 0.8);
  --navbar-scrolled-bg: rgba(242, 245, 250, 0.92);
}

/* Smooth color transition on theme switch */
body,
.navbar,
.feature-card,
.contact-info-card,
.about-card,
.story-image-frame,
.footer {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* Light mode shadow adjustments */
[data-theme="light"] .feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .phone-frame {
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(59, 130, 246, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

/* ─── Theme Toggle Button ─── */
.theme-toggle {
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--navy-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-right: 12px;
}

.theme-toggle:hover {
  color: var(--navy-50);
  border-color: var(--blue-400);
  background: rgba(90, 163, 217, 0.08);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}

/* Hide the inactive icon */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--navy-100);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--blue-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-400);
}

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

/* ─── Utilities ─── */
.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  /* Light — tagline/eyebrow spec */
  text-transform: uppercase;
  letter-spacing: 0.24em;
  /* tracking 240 per brand identity doc */
  color: var(--blue-400);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  /* ExtraLight — display/hero spec */
  color: var(--navy-50);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-title.align-left {
  text-align: left;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--navy-300);
  max-width: 560px;
  margin: 0 auto 60px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--navy-950);
  box-shadow: 0 4px 20px rgba(90, 163, 217, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(90, 163, 217, 0.35);
  color: var(--navy-950);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-200);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: rgba(90, 163, 217, 0.08);
  border-color: var(--blue-400);
  color: var(--blue-300);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════ NAVBAR ═══════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  padding: 10px 0;
  background: var(--navbar-scrolled-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 200;
  /* ExtraLight — brand wordmark spec */
  color: var(--navy-50);
  letter-spacing: 0.28em;
  /* tracking 280 per brand identity doc */
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--navy-300);
  font-size: 0.9rem;
  font-weight: 400;
  /* Regular — UI Body */
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--navy-50);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: var(--color-btn-text) !important;
  font-size: 0.85rem;
  font-weight: 500;
  /* Medium — UI Label */
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90, 158, 208, 0.3);
  color: var(--color-btn-text);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-200);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  /* Light — tagline spec */
  text-transform: uppercase;
  letter-spacing: 0.24em;
  /* tracking 240 */
  color: var(--teal-500);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 200;
  /* ExtraLight — display/hero spec */
  line-height: 1.1;
  color: var(--navy-50);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--navy-300);
  line-height: 1.7;
  /* body copy spec: 1.7 leading */
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-subtitle strong {
  color: var(--navy-100);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

/* Abstract Hero Visual */
.hero-abstract-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Expanding Rings */
.abstract-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--blue-400);
  opacity: 0;
  pointer-events: none;
}

.ring-1 {
  width: 150px;
  height: 150px;
  animation: pulseRing 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ring-2 {
  width: 150px;
  height: 150px;
  animation: pulseRing 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: 1.3s;
}

.ring-3 {
  width: 150px;
  height: 150px;
  animation: pulseRing 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: 2.6s;
}

@keyframes pulseRing {
  0% {
    width: 150px;
    height: 150px;
    opacity: 0.6;
    border-color: var(--blue-400);
  }
  100% {
    width: 600px;
    height: 600px;
    opacity: 0;
    border-color: var(--teal-400);
  }
}

/* 3D Floating Butterfly */
.abstract-butterfly {
  position: relative;
  width: 180px;
  height: 180px;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.butterfly-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(90, 163, 217, 0.3));
  transition: transform 0.3s ease;
}

.abstract-butterfly:hover .butterfly-svg {
  transform: scale(1.05) rotateX(10deg) rotateY(-10deg);
}

.butterfly-light {
  display: none;
}

[data-theme="light"] .butterfly-light {
  display: block;
}

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

.butterfly-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--blue-400);
  filter: blur(60px);
  border-radius: 50%;
  opacity: 0.4;
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Floating UI Elements */
.float-element {
  position: absolute;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--navy-50);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
}

.float-lang-chip {
  top: 15%;
  right: -5%;
  gap: 12px;
  border-radius: 100px;
  padding: 10px 16px;
  animation: floatSubtle 7s ease-in-out infinite 0.5s;
}

.float-lang-chip .swap-icon {
  width: 24px;
  height: 24px;
  background: var(--navy-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-300);
}

.float-mode-pill {
  bottom: 25%;
  left: -10%;
  padding: 6px;
  border-radius: 100px;
  gap: 4px;
  animation: floatSubtle 8s ease-in-out infinite 1s;
}

.mode-option {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--navy-300);
}

.mode-option.active {
  background: var(--blue-400);
  color: var(--navy-950);
  font-weight: 600;
}

.float-mic {
  bottom: 5%;
  right: 15%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  background: var(--gradient-brand);
  color: var(--navy-950);
  box-shadow: 0 8px 24px rgba(90, 163, 217, 0.4);
  animation: floatSubtle 6s ease-in-out infinite 1.5s;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--blue-400), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    height: 40px;
  }

  50% {
    opacity: 0.8;
    height: 60px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════ FEATURES ═══════════════════ */
.features {
  padding: var(--section-padding);
  text-align: center;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 163, 217, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(90, 163, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-400);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-50);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--navy-300);
  line-height: 1.7;
}

/* ═══════════════════ STORY ═══════════════════ */
.story {
  padding: var(--section-padding);
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.story-image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--gradient-card);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-placeholder {
  text-align: center;
  padding: 40px;
}

.story-logo {
  width: 70%;
  margin: 0 auto;
  opacity: 0.7;
}

.story-text p {
  margin-bottom: 18px;
  color: var(--navy-200);
  font-size: 1.02rem;
}

.story-text strong {
  color: var(--navy-50);
}

.story-text em {
  color: var(--blue-300);
  font-style: italic;
}

.story-highlight {
  border-left: 3px solid var(--blue-400);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--navy-100) !important;
}

.story-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 40px 0 32px;
}

/* ═══════════════════ ABOUT ═══════════════════ */
.about {
  padding: var(--section-padding);
  text-align: center;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* Three-pillar team layout */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.about-pillar {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.about-pillar:hover {
  border-color: rgba(90, 163, 217, 0.3);
  transform: translateY(-3px);
}

.about-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(90, 163, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
  margin-bottom: 20px;
}

.about-pillar h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  /* Medium — UI label spec */
  color: var(--navy-50);
  margin-bottom: 10px;
}

.about-pillar p {
  font-size: 0.88rem;
  color: var(--navy-300);
  line-height: 1.7;
}

/* Legacy single-card styles (kept for safety) */
.about-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: left;
}

/* ═══════════════════ CONTACT ═══════════════════ */
.contact {
  padding: var(--section-padding);
  text-align: center;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: rgba(90, 163, 217, 0.25);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(90, 163, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
}

.contact-info-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-100);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-info-card a {
  font-size: 0.9rem;
  color: var(--blue-400);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-200);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--navy-50);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(90, 163, 217, 0.1);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b8fb8' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

/* Form status messages */
.form-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-align: center;
}

.form-status-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  background: var(--navy-900);
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy-50);
  letter-spacing: 0.08em;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--navy-400);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-200);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--navy-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--navy-100);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--navy-500);
  font-size: 0.85rem;
}

/* ═══════════════════ LEGAL PAGES ═══════════════════ */
.legal-page {
  padding: 140px 0 80px;
}

.legal-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-container h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 200;
  /* ExtraLight — display spec */
  color: var(--navy-50);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.legal-container .legal-updated {
  font-size: 0.8rem;
  color: var(--navy-400);
  margin-bottom: 48px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-container h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  /* Regular — section heading */
  color: var(--navy-100);
  margin: 40px 0 12px;
  letter-spacing: 0.01em;
}

.legal-container h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  /* Medium — UI label */
  color: var(--navy-200);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-container p,
.legal-container li {
  color: var(--navy-300);
  font-size: 0.9rem;
  line-height: 1.7;
  /* body copy spec */
  margin-bottom: 12px;
}

.legal-container ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-container a {
  color: var(--blue-400);
}

.legal-container a:hover {
  color: var(--blue-300);
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 60px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-400);
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.back-link:hover {
  color: var(--blue-400);
}

/* ═══════════════════ LEGAL TABLE & TOC ═══════════════════ */
.legal-toc {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 48px;
}

.legal-toc-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy-400);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px !important;
}

.legal-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.legal-toc ul li::before {
  content: none;
}

.legal-toc a {
  font-size: 0.85rem;
  color: var(--blue-400);
  font-weight: 400;
  letter-spacing: 0;
}

.legal-table-wrapper {
  overflow-x: auto;
  margin: 20px 0 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal-table thead {
  background: rgba(90, 163, 217, 0.08);
}

.legal-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-200);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.legal-table td {
  padding: 12px 16px;
  color: var(--navy-300);
  line-height: 1.6;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover td {
  background: rgba(90, 163, 217, 0.04);
}

.legal-table a {
  color: var(--blue-400);
  font-size: 0.82rem;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 768px) {


  :root {
    --section-padding: 80px 0;
  }

  /* Navbar mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition-medium);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero mobile */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Story mobile */
  .story-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title.align-left {
    text-align: center;
  }

  .story-content .section-eyebrow {
    text-align: center;
  }

  /* About mobile */
  .about-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}