/* =================== RESET & BASE =================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #020b14;
  --bg-card: #051624;
  --bg-card-hover: #071d30;
  --fg: #e8f4f8;
  --fg-muted: #7a9db5;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --accent-glow: rgba(0, 229, 255, 0.25);
  --border: rgba(0, 229, 255, 0.15);
  --border-bright: rgba(0, 229, 255, 0.35);
  --danger: #ff4d6d;
  --ok: #00e5ff;
  --font-head: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =================== NAV =================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 11, 20, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* =================== HERO =================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px 80px;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 80%, rgba(0, 80, 120, 0.15) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle 1px at center, rgba(0, 229, 255, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-head);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =================== HERO RIGHT - ORBIT VIZ + DATA PANEL =================== */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.orbit-viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 340px;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring-1 { width: 60%; height: 60%; }
.orbit-ring-2 { width: 80%; height: 80%; border-color: rgba(0, 229, 255, 0.12); }
.orbit-ring-3 { width: 100%; height: 100%; border-color: rgba(0, 229, 255, 0.06); }

.earth {
  position: absolute;
  width: 22%;
  height: 22%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a5e7a, #062035);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3), inset 0 0 20px rgba(0,0,0,0.5);
}

.sat {
  position: absolute;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--accent-glow);
}

.sat-1 { top: 12%; left: 50%; transform: translateX(-50%); }
.sat-2 { top: 50%; right: 12%; transform: translateY(-50%); }
.sat-3 { bottom: 12%; left: 50%; transform: translateX(-50%); }
.sat-4 { top: 50%; left: 12%; transform: translateY(-50%); }

.link-line {
  position: absolute;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
  top: 50%;
  transform: translateY(-50%);
}

.link-1 { right: 18%; width: 22%; }
.link-2 { left: 18%; width: 22%; }

.packet-label {
  position: absolute;
  top: 30%;
  right: 30%;
  font-family: var(--font-head);
  font-size: 0.55rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-bright);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.hero-data-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  font-family: var(--font-head);
}

.panel-val {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--fg);
}

.panel-val.ok { color: var(--accent); }

/* =================== SECTIONS =================== */
.section {
  padding: 100px 40px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-head);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 60px;
}

/* =================== PROTOCOL =================== */
.protocol {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.proto-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proto-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
}

.proto-item h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
}

.proto-item p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* =================== ARCHITECTURE =================== */
.architecture .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.arch-layer {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 16px;
}

.layer-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-align: right;
}

.layer-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  width: 100%;
  opacity: 0.9;
}

.layer-3 .layer-bar { width: 100%; background: linear-gradient(90deg, var(--accent), rgba(0,229,255,0.3)); }
.layer-2 .layer-bar { width: 80%; background: linear-gradient(90deg, rgba(0,229,255,0.7), rgba(0,229,255,0.2)); }
.layer-1 .layer-bar { width: 60%; background: linear-gradient(90deg, rgba(0,229,255,0.4), rgba(0,229,255,0.1)); }

.layer-desc {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.arch-detail h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
}

.arch-detail p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.arch-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-features li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.arch-features li::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* =================== COVERAGE =================== */
.coverage {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.cov-card {
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(5, 22, 36, 0.6);
  text-align: center;
}

.cov-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.cov-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.coverage-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* =================== LATENCY =================== */
.latency .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.lat-comparison {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.lat-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lat-approach {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-family: var(--font-head);
}

.lat-bar-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lat-bar {
  height: 10px;
  border-radius: 5px;
  flex-shrink: 0;
}

.lat-traditional .lat-bar {
  background: rgba(122, 157, 181, 0.3);
  width: 300px;
  max-width: 100%;
}

.lat-aethyri .lat-bar {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  width: 60px;
}

.lat-value {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.lat-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.use-cases {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.uc-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-family: var(--font-head);
  margin-bottom: 4px;
}

.uc-item {}

.uc-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.uc-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* =================== SECURITY =================== */
.security {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.sec-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sec-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
}

.sec-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.sec-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* =================== CLOSING =================== */
.closing {
  padding: 120px 40px;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
}

.closing-inner { max-width: 700px; margin: 0 auto; }

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
}

/* =================== FOOTER =================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(122, 157, 181, 0.5);
  margin-top: 8px;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .hero-inner,
  .architecture .section-inner,
  .latency .section-inner { grid-template-columns: 1fr; gap: 48px; }

  .protocol-grid { grid-template-columns: 1fr; gap: 32px; }
  .sec-grid { grid-template-columns: 1fr; gap: 28px; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-right { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 80px 24px 60px; }
  .section { padding: 60px 24px; }
  .coverage-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
}