/* ════════════════════════════════════════════════════════════════════════
   ALDOM — Design System
   Premium engineering aesthetic · dark · glassmorphism · soft gradients
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg:            #0B0F14;
  --bg-card:       #111827;
  --bg-secondary:  #161D28;
  --bg-glass:      rgba(22, 29, 40, 0.55);
  --bg-glass-hi:   rgba(28, 37, 51, 0.7);

  /* Borders */
  --border:        rgba(255, 255, 255, 0.06);
  --border-hi:     rgba(255, 255, 255, 0.12);

  /* Text */
  --text:          #FFFFFF;
  --text-sub:      #CBD5E1;
  --text-dim:      #64748B;
  --text-faint:    #3B4656;

  /* Accents */
  --green:         #4ADE80;
  --blue:          #60A5FA;
  --purple:        #A78BFA;

  --green-soft:    rgba(74, 222, 128, 0.12);
  --blue-soft:     rgba(96, 165, 250, 0.12);
  --purple-soft:   rgba(167, 139, 250, 0.12);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing rhythm */
  --section-pad: 96px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  /* Shadows */
  --shadow-soft: 0 24px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 80px -20px rgba(74, 222, 128, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient background field */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 70% -5%, rgba(74, 222, 128, 0.06), transparent 60%),
    radial-gradient(700px 500px at 10% 10%, rgba(96, 165, 250, 0.05), transparent 55%),
    radial-gradient(800px 700px at 90% 60%, rgba(167, 139, 250, 0.04), transparent 60%);
  pointer-events: none;
}

/* Animated network mesh canvas */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  /* fade the field out toward the bottom so content stays legible */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .bg-field { display: none; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Layout primitives ──────────────────────────────────────────────────── */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Offset anchor jumps so section tops aren't hidden under the fixed navbar */
section[id], header[id], [id].section { scroll-margin-top: 80px; }

/* noscript fallback bar */
.noscript-bar {
  position: relative;
  z-index: 1;
  margin: 80px 20px 0;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.6;
}
.noscript-bar a { color: var(--green); font-weight: 600; }

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.section-head { margin-bottom: 48px; max-width: 640px; }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-desc {
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ─── Reveal-on-scroll ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 15, 20, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-sub);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active:not(.nav-cta)::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Language toggle */
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-hi);
  border-radius: 9px;
  padding: 7px 11px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.lang-toggle-mobile {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  font-size: 14px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-hi);
  color: var(--text) !important;
  transition: background 0.18s, border-color 0.18s;
}
.nav-cta:hover { background: rgba(255,255,255,0.1); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-hi);
  border-radius: 11px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
}
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 18px 20px;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.34s cubic-bezier(0.16,1,0.3,1), opacity 0.24s, padding 0.34s;
}
.nav.menu-open .mobile-menu { max-height: 420px; opacity: 1; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 13px 6px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s, background 0.18s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:active { background: rgba(255,255,255,0.05); }
.mobile-menu .nav-cta {
  margin-top: 10px;
  text-align: center;
  border: 1px solid var(--border-hi);
  background: var(--green);
  color: #06231A !important;
  font-weight: 600;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
}

/* ════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
@media (max-width: 940px) {
  .hero { padding: 140px 0 80px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 450;
  color: var(--text-sub);
  background: var(--bg-glass);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 32px;
}
.hero-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero-title {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--green) 0%, var(--blue) 60%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-sub);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
  letter-spacing: -0.01em;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--green);
  color: #06231A;
  box-shadow: 0 8px 30px -8px rgba(74, 222, 128, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(74, 222, 128, 0.6); }
.btn-secondary {
  background: var(--bg-glass);
  border-color: var(--border-hi);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover { background: var(--bg-glass-hi); transform: translateY(-2px); }

.btn-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Hero network diagram */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.network-diagram {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

/* ════════════════════════════════════════════════════════════════════════
   ECOSYSTEM
   ════════════════════════════════════════════════════════════════════════ */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 880px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
}

.eco-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.eco-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 240px;
  background: radial-gradient(120% 100% at 50% 0%, var(--eco-glow, var(--green-soft)), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.eco-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }

.eco-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  position: relative;
}
.eco-logo {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hi);
}
.eco-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.eco-desc {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 28px;
  position: relative;
}

.eco-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-bottom: 32px;
  position: relative;
}
.eco-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-sub);
}
.eco-feature .tick {
  width: 16px; height: 16px;
  border-radius: 5px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--eco-soft, var(--green-soft));
}
.eco-feature .tick svg { width: 10px; height: 10px; }

/* Phone mockup */
.phone {
  position: relative;
  width: 200px;
  height: 410px;
  margin: 0 auto;
  border-radius: 32px;
  background: linear-gradient(160deg, #1a2434, #0d141d);
  border: 1px solid var(--border-hi);
  padding: 9px;
  box-shadow: var(--shadow-soft);
}
.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 20px;
  background: #0d141d;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 24px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

/* ════════════════════════════════════════════════════════════════════════
   INFRASTRUCTURE
   ════════════════════════════════════════════════════════════════════════ */
.infra-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .infra-grid { grid-template-columns: 1fr; gap: 48px; }
}
.infra-diagram {
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.4));
}
.server-cards {
  display: grid;
  gap: 16px;
}
.server-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.server-card:hover { border-color: var(--border-hi); transform: translateX(4px); }
.server-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.server-meta h4 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.server-meta p { font-size: 13px; color: var(--text-dim); }
.server-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}
.server-status .live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ════════════════════════════════════════════════════════════════════════
   SCREENSHOTS
   ════════════════════════════════════════════════════════════════════════ */
.shots-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 44px;
}
.shots-tab {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.shots-tab.active {
  color: var(--text);
  background: var(--bg-secondary);
}
.shots-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hi) transparent;
}
.shots-track::-webkit-scrollbar { height: 8px; }
.shots-track::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 4px; }
.shot {
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 9/19;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
}
.shot-placeholder .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ════════════════════════════════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.feature-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  background: var(--bg-glass-hi);
}
.feature-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════════════
   GUIDE
   ════════════════════════════════════════════════════════════════════════ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
}
.guide-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(460px 220px at 20% 0%, rgba(96,165,250,0.08), transparent 70%);
  pointer-events: none;
}
.guide-card > * { position: relative; }
.guide-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.18);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.guide-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.guide-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}
.guide-card ol {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  list-style: none;
  counter-reset: guide-step;
  margin-top: 6px;
}
.guide-card li {
  counter-increment: guide-step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.55;
}
.guide-card li::before {
  content: counter(guide-step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(74,222,128,0.1);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════
   DOWNLOADS
   ════════════════════════════════════════════════════════════════════════ */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .download-grid { grid-template-columns: 1fr; } }

.dl-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
}
.dl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--dl-accent, var(--green)), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.dl-logo {
  width: 56px; height: 56px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hi);
}
.dl-name { font-size: 20px; font-weight: 600; }
.dl-sub { font-size: 13px; color: var(--text-dim); }
.platform-select {
  display: grid;
  gap: 8px;
  margin: -8px 0 22px;
}
.platform-select span {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.platform-select select {
  width: 100%;
  appearance: none;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, var(--dl-accent, var(--green)) 50%) calc(100% - 22px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--dl-accent, var(--green)) 50%, transparent 50%) calc(100% - 17px) 50% / 7px 7px no-repeat,
    rgba(255,255,255,0.045);
  border: 1px solid color-mix(in srgb, var(--dl-accent, var(--green)) 32%, var(--border-hi));
  border-radius: 14px;
  padding: 13px 42px 13px 15px;
  font: 600 14px var(--font-sans);
  outline: none;
}
.platform-select select:focus {
  border-color: var(--dl-accent, var(--green));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dl-accent, var(--green)) 18%, transparent);
}
.dl-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.dl-meta-cell {
  background: var(--bg-secondary);
  padding: 16px 18px;
}
.dl-meta-cell .k {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 5px;
}
.dl-meta-cell .v {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.dl-actions { display: flex; gap: 12px; }
.dl-actions .btn { flex: 1; justify-content: center; }
.dl-actions .btn-primary {
  background: var(--dl-accent, var(--green));
  box-shadow: 0 8px 30px -8px var(--dl-accent, var(--green));
}
.dl-actions .btn-primary:hover {
  box-shadow: 0 14px 40px -8px var(--dl-accent, var(--green));
}
.dl-actions .btn-primary.disabled,
.dl-actions .btn-primary[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
  opacity: 0.68;
  background: color-mix(in srgb, var(--dl-accent, var(--green)) 44%, var(--bg-glass-hi));
  color: var(--text-sub);
  box-shadow: none;
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-hi);
  color: var(--text-sub);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* SHA-256 / integrity line under a download card */
.dl-hash {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  word-break: break-all;
}
.dl-hash svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--green); }
.dl-hash .sha { color: var(--text-sub); }

/* First-install note */
.install-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.install-note-ico {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(74,222,128,0.1);
  color: var(--green);
}
.install-note-ico svg { width: 20px; height: 20px; }
.install-note h4 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.install-note p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.install-note p b { color: var(--text-sub); font-weight: 600; }

/* Screenshot lightbox */
.shot { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 8, 11, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(420px, 90vw);
  max-height: 88vh;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-soft);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.16); }

/* ════════════════════════════════════════════════════════════════════════
   CHANGELOG
   ════════════════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 720px;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--border-hi), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 44px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
}
.tl-item:first-child::before { box-shadow: 0 0 14px var(--green); }
.tl-ver {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.tl-ver .num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--green);
}
.tl-ver .date { font-size: 13px; color: var(--text-dim); }
.tl-list { list-style: none; display: grid; gap: 8px; }
.tl-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
}
.tl-list li::before {
  content: '+';
  color: var(--green);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 50px;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .brand { margin-bottom: 16px; font-size: 20px; }
.footer-tag {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.6;
}
.footer-cols {
  display: flex;
  gap: 70px;
}
.footer-col h5 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 11px;
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom .author { color: var(--text-sub); }

/* ─── Animated packet dots (shared by diagrams) ──────────────────────────── */
.packet {
  animation: flow 2.4s linear infinite;
}
@keyframes flow {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .packet, .server-status .live, .tl-item:first-child::before { animation: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-pad: 58px; }

  .wrap { padding: 0 18px; }
  .nav-inner { padding: 14px 18px; }

  .section-head { margin-bottom: 40px; }
  .section-desc { font-size: 16px; }

  /* Hero */
  .hero { padding: 120px 0 60px; }
  .hero-pill { margin-bottom: 24px; font-size: 12px; }
  .hero-title { margin-bottom: 20px; }
  .hero-sub { font-size: 16px; margin-bottom: 30px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .network-diagram { max-width: 340px; }

  /* Cards: tighter padding on phones */
  .eco-card { padding: 26px 22px; border-radius: var(--radius); }
  .eco-features { gap: 10px 14px; margin-bottom: 24px; }
  .feature-card { padding: 22px; }
  .guide-card { padding: 22px; gap: 14px; }
  .dl-card { padding: 26px 22px; }
  .dl-head { margin-bottom: 22px; }
  .dl-actions { flex-direction: column; }
  .dl-actions .btn { width: 100%; }

  /* Downloads / ecosystem already collapse to 1 col via their own queries */
  .server-card { padding: 18px 18px; gap: 14px; }

  /* Screenshots: smaller cards, hide scrollbar chrome */
  .shots-track { gap: 14px; }
  .shot { width: 200px; }
  .shots-tabs { margin-bottom: 32px; }

  /* Changelog */
  .timeline { padding-left: 30px; }
  .tl-item { padding-bottom: 34px; }

  /* Footer stacks cleanly */
  .footer { padding: 54px 0 40px; }
  .footer-cols { gap: 44px; }
  .footer-bottom { margin-top: 40px; }
}

@media (max-width: 400px) {
  .eco-features { grid-template-columns: 1fr; }
  .dl-meta { grid-template-columns: 1fr; }
  .shot { width: 168px; }
}
