/*
Theme Name: Orbital Dynamics
Theme URI: https://orbitaldynamics.io
Author: Orbital Dynamics Ltd
Author URI: https://orbitaldynamics.io
Description: Custom one-page WordPress theme for Orbital Dynamics — Unified Telemetry Infrastructure for the new space economy. Dark space-themed design with animated starfield, orbital visualisations, and investor-ready sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orbital-dynamics
Tags: one-column, custom-menu, featured-images, full-width-template, dark, space
*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --navy:       #0f1f3d;
  --navy-mid:   #1a2f52;
  --navy-light: #243d6a;
  --cyan:       #3ec9e6;
  --cyan-dim:   #2ba8c2;
  --cyan-glow:  rgba(62, 201, 230, 0.18);
  --white:      #ffffff;
  --off-white:  #f0f3f8;
  --grey-text:  #8a9ab8;
  --grey-line:  rgba(138, 154, 184, 0.18);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }

/* ===== SELECTION ===== */
::selection { background: var(--cyan); color: var(--navy); }

/* ===== STAR CANVAS BACKGROUND ===== */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== NOISE OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ===== LAYOUT WRAPPER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(15, 31, 61, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--grey-line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO SVG */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav-logo svg { width: 46px; height: 46px; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-text .brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; }
.nav-logo-text .sub { font-family: var(--font-body); font-size: 0.72rem; font-weight: 300; color: var(--cyan); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-family: var(--font-body); font-size: 0.88rem; font-weight: 400; color: var(--grey-text); transition: color 0.2s; letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--cyan) !important; color: var(--navy) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 110; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--white); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(ellipse at center, rgba(62, 201, 230, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--cyan);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}
.hero h1 .accent { color: var(--cyan); }
.hero h1 .no-break { white-space: nowrap; }

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--grey-text);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--cyan);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(62, 201, 230, 0.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--grey-line);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--grey-text); transform: translateY(-2px); }

/* Hero Visual - Orbit graphic */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: fadeIn 1.2s 0.8s forwards;
}

.orbit-scene {
  width: 420px;
  height: 420px;
  position: relative;
}
.orbit-scene .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(62, 201, 230, 0.22);
}
.orbit-scene .ring-1 { width: 100%; height: 100%; top: 0; left: 0; animation: spin 28s linear infinite; }
.orbit-scene .ring-2 { width: 72%; height: 72%; top: 14%; left: 14%; animation: spin 18s linear infinite reverse; border-color: rgba(62, 201, 230, 0.14); }
.orbit-scene .ring-3 { width: 44%; height: 44%; top: 28%; left: 28%; animation: spin 10s linear infinite; border-color: rgba(62, 201, 230, 0.10); }

.sat-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan), 0 0 28px rgba(62,201,230,0.5);
  transform-origin: 210px 210px;
}
.sat-dot-sm {
  width: 6px; height: 6px;
  background: rgba(62,201,230,0.7);
  box-shadow: 0 0 8px var(--cyan);
}

.planet {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a4a7a, #0d1e3a);
  box-shadow: 0 0 40px rgba(62,201,230,0.2), inset -10px -10px 25px rgba(0,0,0,0.5);
}
.planet::after {
  content: '';
  position: absolute;
  top: -8px; left: -20px; right: -20px; bottom: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(62,201,230,0.5);
  transform: rotate(-25deg) scaleY(0.38);
}

.data-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  animation: dataStream 3s ease-in-out infinite;
}

.telem-badge {
  position: absolute;
  background: rgba(15, 31, 61, 0.85);
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--grey-text);
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
}
.telem-badge .val { color: var(--cyan); font-size: 0.85rem; font-weight: 500; display: block; }
.telem-badge.badge-1 { top: 12%; left: -6%; animation-delay: 0s; }
.telem-badge.badge-2 { bottom: 18%; right: -8%; animation-delay: 1.5s; }
.telem-badge.badge-3 { top: 50%; left: -12%; animation-delay: 0.8s; }

/* HERO STAT STRIP */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--grey-line);
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 1s forwards;
}
.stat-val { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat-val .unit { font-size: 1rem; color: var(--cyan); }
.stat-lbl { font-size: 0.75rem; color: var(--grey-text); letter-spacing: 0.04em; margin-top: 2px; }

/* ===== TICKER BAND ===== */
.ticker-band {
  position: relative;
  z-index: 2;
  background: rgba(26, 47, 82, 0.6);
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 4rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grey-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-item .dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; flex-shrink: 0; }
.ticker-item .live { color: var(--cyan); }

/* ===== SECTION COMMON ===== */
section { position: relative; z-index: 2; }
.section-pad { padding: 100px 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--cyan); }
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--grey-text);
  font-weight: 300;
  max-width: 600px;
  line-height: 1.75;
}

/* ===== FEATURES SECTION ===== */
.features-section { background: linear-gradient(180deg, transparent, rgba(26,47,82,0.3) 50%, transparent); }
.features-intro { margin-bottom: 5rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--grey-line);
  border: 1px solid var(--grey-line);
  border-radius: 12px;
  overflow: hidden;
}
.feat-card {
  background: rgba(15, 31, 61, 0.85);
  padding: 2.5rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover { background: rgba(26, 47, 82, 0.95); }
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 48px; height: 48px;
  background: var(--cyan-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(62,201,230,0.2);
}
.feat-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }
.feat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feat-desc { font-size: 0.88rem; color: var(--grey-text); line-height: 1.7; }

/* ===== SCALE SECTION ===== */
.scale-section { overflow: hidden; }
.scale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.scale-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.scale-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s;
}
.scale-item.visible { opacity: 1; transform: none; }
.scale-check {
  width: 22px; height: 22px;
  background: var(--cyan-glow);
  border: 1px solid rgba(62,201,230,0.3);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.scale-check svg { width: 11px; height: 11px; stroke: var(--cyan); fill: none; stroke-width: 2.5; }
.scale-item-text { font-size: 0.92rem; line-height: 1.65; color: var(--grey-text); }
.scale-item-text strong { color: var(--white); font-weight: 600; }

.constellation-vis { position: relative; height: 480px; }
#constellationCanvas { border-radius: 16px; }

/* ===== ARCHITECTURE SECTION ===== */
.arch-section { background: rgba(26, 47, 82, 0.2); }
.arch-pipeline {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.pipe-stage {
  flex: 1;
  min-width: 150px;
  background: rgba(15,31,61,0.8);
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.pipe-stage:hover { border-color: rgba(62,201,230,0.4); transform: translateY(-4px); }
.pipe-stage .stage-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.pipe-stage .stage-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.pipe-stage .stage-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.pipe-stage .stage-tech {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--grey-text);
}
.pipe-arrow {
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  color: var(--cyan);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ===== INVESTOR SECTION ===== */
.investor-stat-card {
  background: rgba(15,31,61,0.85);
  border: 1px solid var(--grey-line);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.investor-stat-card:hover {
  border-color: rgba(62,201,230,0.35);
  transform: translateY(-4px);
}
.investor-stat-card .big-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.investor-stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grey-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.investor-stat-card .stat-desc {
  font-size: 0.82rem;
  color: var(--grey-text);
  line-height: 1.65;
}

.moat-card {
  background: rgba(26,47,82,0.4);
  border: 1px solid var(--grey-line);
  border-radius: 14px;
  padding: 2.5rem;
}
.moat-icon {
  width: 32px; height: 32px;
  background: var(--cyan-glow);
  border: 1px solid rgba(62,201,230,0.2);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.moat-icon svg { width: 16px; height: 16px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }

/* ===== ABOUT / STORY SECTION ===== */
.proof-section {}
.core-tenets-card {
  background: rgba(26,47,82,0.4);
  border: 1px solid var(--grey-line);
  border-radius: 14px;
  padding: 2.5rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(62,201,230,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.cta-section p { font-size: 1.05rem; color: var(--grey-text); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.75; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-trust { font-size: 0.78rem; color: rgba(138,154,184,0.5); font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(10, 20, 40, 0.8);
  border-top: 1px solid var(--grey-line);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand .tagline { font-size: 0.85rem; color: var(--grey-text); margin-top: 1rem; max-width: 260px; line-height: 1.65; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.2rem; color: var(--grey-text); }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(138,154,184,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--grey-line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.78rem; color: rgba(138,154,184,0.4); font-family: var(--font-mono); }
.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(138,154,184,0.4);
  letter-spacing: 0.04em;
}
.footer-badge .dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes dataStream {
  0% { opacity: 0; width: 0; left: 0; }
  30% { opacity: 0.8; }
  100% { opacity: 0; width: 100%; left: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes orbitPulse {
  0%, 100% { box-shadow: 0 0 12px var(--cyan), 0 0 28px rgba(62,201,230,0.5); }
  50% { box-shadow: 0 0 20px var(--cyan), 0 0 50px rgba(62,201,230,0.8); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .scale-grid { grid-template-columns: 1fr; }
  .constellation-vis { height: 300px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .investor-stats-grid { grid-template-columns: 1fr !important; }
  .investor-thesis-grid { grid-template-columns: 1fr !important; }
  .story-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .arch-pipeline { flex-direction: column; }
  .pipe-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .investor-stats-grid { grid-template-columns: 1fr !important; }
  .investor-thesis-grid { grid-template-columns: 1fr !important; }
  .story-grid { grid-template-columns: 1fr !important; }
}

/* ===== LANGUAGE SWITCHER ===== */
.od-lang-switcher {
  position: relative;
  margin-left: 0.5rem;
}
.od-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(138, 154, 184, 0.08);
  border: 1px solid var(--grey-line);
  color: var(--grey-text);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.od-lang-btn:hover { border-color: rgba(62,201,230,0.3); color: var(--white); }
.od-lang-flag { font-size: 0.9rem; line-height: 1; }
.od-lang-chevron { transition: transform 0.2s; }
.od-lang-switcher.open .od-lang-chevron { transform: rotate(180deg); }

.od-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 31, 61, 0.97);
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 200;
  backdrop-filter: blur(16px);
}
.od-lang-switcher.open .od-lang-dropdown { display: block; }

.od-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--grey-text);
  transition: background 0.15s, color 0.15s;
}
.od-lang-option:hover { background: rgba(62,201,230,0.08); color: var(--white); }
.od-lang-option.active { color: var(--cyan); }
.od-lang-check { margin-left: auto; font-size: 0.75rem; color: var(--cyan); }

/* Mobile language links */
.od-mobile-lang {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.od-mobile-lang a {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  color: var(--grey-text) !important;
}
.od-mobile-lang a:hover { color: var(--white) !important; }

/* ===== CONTACT MODAL ===== */
.od-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 12, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.od-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.od-modal-overlay.entering {
  display: flex;
}

.od-modal {
  background: linear-gradient(165deg, rgba(26, 47, 82, 0.95), rgba(15, 31, 61, 0.98));
  border: 1px solid var(--grey-line);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(62, 201, 230, 0.06);
}
.od-modal-overlay.active .od-modal {
  transform: translateY(0) scale(1);
}

.od-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(138, 154, 184, 0.1);
  border: 1px solid var(--grey-line);
  color: var(--grey-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
}
.od-modal-close:hover {
  background: rgba(62, 201, 230, 0.15);
  color: var(--cyan);
  border-color: rgba(62, 201, 230, 0.3);
}

.od-modal-header {
  margin-bottom: 2rem;
}

/* Form styles */
.od-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.od-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.od-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.od-form-group label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-text);
  letter-spacing: 0.02em;
}
.od-required {
  color: var(--cyan);
}
.od-optional {
  color: rgba(138, 154, 184, 0.5);
  font-weight: 300;
  font-size: 0.75rem;
}

.od-form-group input,
.od-form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(15, 31, 61, 0.6);
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.od-form-group input::placeholder,
.od-form-group textarea::placeholder {
  color: rgba(138, 154, 184, 0.35);
}
.od-form-group input:focus,
.od-form-group textarea:focus {
  border-color: rgba(62, 201, 230, 0.5);
  box-shadow: 0 0 0 3px rgba(62, 201, 230, 0.08);
}
.od-form-group input.od-error,
.od-form-group textarea.od-error {
  border-color: #e55;
}
.od-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.od-submit-btn {
  margin-top: 0.5rem;
  font-size: 0.95rem !important;
}
.od-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.od-form-feedback {
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-align: center;
  min-height: 1.2em;
  transition: opacity 0.3s;
}
.od-form-feedback.success {
  color: #22c55e;
}
.od-form-feedback.error {
  color: #ef4444;
}

/* Success state */
.od-modal-success {
  text-align: center;
  padding: 2rem 0;
}
.od-modal-success .success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.od-modal-success .success-icon svg {
  width: 28px;
  height: 28px;
  stroke: #22c55e;
  fill: none;
  stroke-width: 2.5;
}
.od-modal-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.od-modal-success p {
  color: var(--grey-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .od-modal {
    padding: 1.8rem 1.5rem;
  }
  .od-form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== WORDPRESS ADMIN BAR FIX ===== */
body.admin-bar .site-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px;
  }
}
