/* ═══════════════════════════════════════════════════════════
   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: #080A0D;
  /* Background dark */
  --color-surface: #10161D;
  /* Surface dark */
  --color-border: #243241;
  /* Border dark */
  --color-stroke: #67B7DE;
  /* Logo stroke / accent */
  --color-dot: #79D8B0;
  /* Dot / Accent dark */
  --color-text-primary: #E7EDF2;
  /* Text Primary dark */
  --color-text-secondary: #A9B8C6;
  /* Text Secondary dark */
  --color-text-muted: #68798A;
  /* Text Muted dark */
  --color-btn-bg: #67B7DE;
  /* Button BG dark */
  --color-btn-text: #040810;
  /* Button Text dark */

  --status-success-bg: rgba(134, 239, 172, 0.14);
  --status-success-text: #86EFAC;
  --status-success-border: rgba(134, 239, 172, 0.26);
  --status-error-bg: rgba(252, 165, 165, 0.14);
  --status-error-text: #FCA5A5;
  --status-error-border: rgba(252, 165, 165, 0.28);

  /* ── Semantic aliases (used throughout CSS) ── */
  --navy-950: #080A0D;
  --navy-900: #10161D;
  --navy-800: #151D26;
  --navy-700: #243241;
  --navy-600: #354657;
  --navy-500: #68798A;
  --navy-400: #8395A6;
  --navy-300: #A9B8C6;
  --navy-200: #CBD6DF;
  --navy-100: #E7EDF2;
  --navy-50: #F6F9FB;

  /* Accent */
  --blue-500: #2F6F95;
  --blue-400: #67B7DE;
  --blue-300: #95D6F0;
  --teal-500: #58C49A;
  --teal-400: #79D8B0;
  --purple-500: #5567A8;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #67B7DE, #79D8B0);
  --gradient-text: linear-gradient(135deg, #95D6F0, #67B7DE 52%, #79D8B0);
  --gradient-card: linear-gradient(160deg, rgba(103, 183, 222, 0.08), rgba(121, 216, 176, 0.035));
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(103, 183, 222, 0.10) 0%, transparent 58%);

  /* Glass */
  --glass-bg: rgba(16, 22, 29, 0.72);
  --glass-border: rgba(231, 237, 242, 0.10);
  --glass-blur: 18px;

  /* Navbar scrolled bg */
  --navbar-scrolled-bg: rgba(8, 10, 13, 0.90);

  /* ── 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.16s var(--ease-out);
  --transition-medium: 0.24s var(--ease-out);
  --transition-slow: 0.36s 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;

  --status-success-bg: rgba(22, 101, 52, 0.10);
  --status-success-text: #166534;
  --status-success-border: rgba(22, 101, 52, 0.22);
  --status-error-bg: rgba(185, 28, 28, 0.10);
  --status-error-text: #B91C1C;
  --status-error-border: rgba(185, 28, 28, 0.22);

  --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: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), transform 150ms var(--ease-out);
  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;
}

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

.btn:active,
.nav-cta:active,
.theme-toggle:active {
  transform: scale(0.96);
}

/* ─── 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: transform 150ms var(--ease-out), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color 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 {
  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: padding var(--transition-medium), background-color var(--transition-medium), border-color var(--transition-medium), backdrop-filter 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: transform 150ms var(--ease-out), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.nav-cta:hover {
  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: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 112px 0 64px;
  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;
}

.product-stage {
  position: relative;
  width: min(100%, 430px);
  padding: 10px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 30px 84px rgba(0, 0, 0, 0.32),
    0 0 90px rgba(103, 183, 222, 0.14);
}

[data-theme="light"] .product-stage {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.72)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 20px 54px rgba(38, 70, 94, 0.14),
    0 0 70px rgba(103, 183, 222, 0.14);
}

.product-stage::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

[data-theme="light"] .hero-product-image {
  outline-color: rgba(0, 0, 0, 0.1);
}

/* Abstract Hero Visual */
.hero-abstract-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: none;
  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: none;
}

.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: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-fast);
}

.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: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-fast);
  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 {
  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);
}

.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: border-color var(--transition-fast), background-color 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: var(--status-success-bg);
  color: var(--status-success-text);
  border: 1px solid var(--status-success-border);
}

.form-status-error {
  background: var(--status-error-bg);
  color: var(--status-error-text);
  border: 1px solid var(--status-error-border);
}

/* ═══════════════════ 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 ═══════════════════ */

/* ── Tablet: 768px – 1024px ── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 100px 0;
  }

  /* Hero: tighten the two-column gap */
  .hero-container {
    gap: 40px;
  }

  /* Features: 2-column grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About pillars: 2-column grid */
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Story: tighten gap */
  .story-layout {
    gap: 48px;
  }

  /* Contact: tighten gap */
  .contact-grid {
    gap: 32px;
  }

  /* Footer: tighten link columns gap */
  .footer-links {
    gap: 40px;
  }
}

/* ── Mobile: ≤768px ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 20px;
  }

  /* Navbar mobile — slide-in drawer */
  .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;
  }

  /* Increase tap target size for nav links */
  .nav-links a {
    padding: 8px 0;
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
    padding: 8px;        /* larger tap target */
    margin: -8px;        /* offset padding to keep layout */
  }

  .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: single column, centered */
  .hero {
    --hero-announce-offset: 72px;
    min-height: auto;
    justify-content: flex-start;
    padding: 72px 0 36px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

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

  .hero-title {
    margin-bottom: 16px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 22px;
    line-height: 1.58;
  }

  .hero-actions {
    justify-content: center;
    gap: 10px;
  }

  /* Product preview follows the pitch on mobile so the CTA is reachable fast. */
  .hero-visual {
    order: 0;
    max-height: 232px;
    overflow: visible;
  }

  .product-stage {
    width: min(74vw, 290px);
    padding: 7px;
    border-radius: 28px;
  }

  .product-stage::after {
    inset: 7px;
    border-radius: 21px;
  }

  .hero-product-image {
    aspect-ratio: 4 / 3;
    border-radius: 21px;
    object-position: center 42%;
  }

  .hero-bullets {
    display: none;
  }

  /* Hide floating UI chips on mobile — too cluttered */
  .float-element {
    display: none;
  }

  /* Features: single column */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Story: single column */
  .story-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title.align-left {
    text-align: center;
  }

  .story-content .section-eyebrow {
    text-align: center;
  }

  /* About pillars: single column */
  .about-pillars {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  /* Legacy about-card */
  .about-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  /* Contact: single column */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: stacked */
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 32px;
    flex-wrap: wrap;
  }

  /* Legal pages */
  .legal-toc ul {
    flex-direction: column;
    gap: 6px;
  }
}

/* ── Small mobile: ≤480px ── */
@media (max-width: 480px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    --hero-announce-offset: 64px;
    padding: 64px 0 32px;
  }

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

  .product-stage {
    width: min(78vw, 270px);
  }

  .btn {
    justify-content: center;
    padding: 14px 20px;  /* maintain touch-friendly height */
  }

  /* Section subtitles: allow full width */
  .section-subtitle {
    max-width: 100%;
    margin-bottom: 40px;
  }

  /* Feature cards: tighter padding */
  .feature-card {
    padding: 28px 20px;
  }

  /* About pillars: tighter padding */
  .about-pillar {
    padding: 28px 24px;
  }

  /* Footer: tighter */
  .footer-links {
    gap: 24px;
  }

  /* Coming soon: constrain content width */
  .coming-soon-content {
    max-width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════
   Announcement bar
   ════════════════════════════════════════════════════════════ */
:root {
  --announce-h: 38px;
}

.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100; /* above .navbar (z-1000) so it's clickable */
  min-height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 20px;
  background: linear-gradient(90deg,
              rgba(8, 20, 40, 0.98),
              rgba(25, 74, 122, 0.96),
              rgba(8, 20, 40, 0.98));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #ffffff;
  text-decoration: none;
  transition: filter 0.25s ease;
  flex-wrap: wrap;
  text-align: center;
  cursor: pointer;
}

/* When the announce-bar is present, push everything else down. */
body:has(.announce-bar) .navbar {
  top: var(--announce-h);
}

body:has(.announce-bar) .hero {
  padding-top: calc(var(--hero-announce-offset, 120px) + var(--announce-h));
}

/* Coming-soon page sits flush; offset its full content section. */
body:has(.announce-bar) .coming-soon-page {
  padding-top: calc(40px + var(--announce-h));
}

.announce-bar:hover {
  filter: brightness(1.08);
}

.announce-bar .announce-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79D8B0;
  box-shadow: 0 0 10px rgba(121, 216, 176, 0.85);
  animation: announcePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes announcePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.announce-bar .announce-text {
  color: rgba(255, 255, 255, 0.95);
}

.announce-bar .announce-text strong {
  color: #ffffff;
  font-weight: 700;
}

.announce-bar .announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .announce-bar { font-size: 0.74rem; gap: 8px; padding: 8px 14px; }
  .announce-bar .announce-cta { font-size: 0.74rem; }
}

/* ════════════════════════════════════════════════════════════
   Hero bullets
   ════════════════════════════════════════════════════════════ */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
}

.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--navy-200);
  font-weight: 500;
}

.hero-bullets li svg {
  color: var(--blue-400);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .hero-bullets {
    gap: 10px 18px;
    margin-top: 22px;
  }
  .hero-bullets li { font-size: 0.78rem; }
}

/* ════════════════════════════════════════════════════════════
   FAQ section
   ════════════════════════════════════════════════════════════ */
.faq {
  padding: 96px 0 96px;
}

.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(90, 158, 208, 0.32);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-50);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .faq-chevron {
  color: var(--blue-400);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--navy-200);
}

.faq-item p a {
  color: var(--blue-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 158, 208, 0.32);
  transition: border-color 0.2s ease;
}

.faq-item p a:hover { border-color: var(--blue-400); }

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  color: var(--navy-300);
  font-size: 0.92rem;
}

.btn.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

h1, h2, h3,
.hero-title,
.section-title,
.coming-soon-heading {
  text-wrap: balance;
}

p, li,
.hero-subtitle,
.section-subtitle,
.feature-card p,
.about-pillar p,
.story-text p,
.faq-item p {
  text-wrap: pretty;
}

.metric-value,
.legal-table td,
table.data td,
.data-table td {
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
  }

  .nav-cta:hover {
    transform: translateY(-1px);
  }

  .feature-card:hover {
    transform: translateY(-4px);
  }

  .about-pillar:hover {
    transform: translateY(-3px);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg-glow,
  .abstract-ring,
  .abstract-butterfly,
  .butterfly-glow,
  .float-element,
  .scroll-line,
  .announce-dot {
    animation: none !important;
  }
}

@media (max-width: 600px) {
  .faq { padding: 72px 0 72px; }
  .faq-item summary { font-size: 0.95rem; padding: 16px 18px; }
  .faq-item p { padding: 0 18px 16px; font-size: 0.88rem; }
}
