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

:root {
  --bg: #071522;
  --bg1: #0a1c2e;
  --bg2: #0e2238;
  --bg3: #122840;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #e7eef6;
  --muted: #7ba1c9;
  --dim: #c9c9c9;
  --accent: var(--accent-color, #3b82f6);
  --accent-glow: rgba(59, 130, 246, 0.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

.rail {
  position: fixed;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--accent) 15%, var(--accent) 85%, transparent);
  opacity: 0.25;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(56px, calc(50% - 680px)) 0 max(112px, calc(50% - 624px));
  height: 62px;
  background: rgba(7, 21, 34, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

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

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-dot--sm { width: 6px; height: 6px; }

.nav-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-name--footer { font-size: 14px; }

.nav-tld {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.8;
}

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

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

.nav-links a.nav-active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 20px;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover { background: var(--accent); color: #fff; }

section { position: relative; z-index: 2; }

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 36px;
}

h1 .accent { color: var(--accent); }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 17px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

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

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 56px;
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 13px 30px;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.48), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary--lg { font-size: 15px; padding: 15px 36px; }

.btn-ghost {
  font-size: 14px;
  color: #98b8d8;
  font-weight: 400;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text); }

.btn-ghost-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.btn-ghost:hover .btn-ghost-arrow { transform: translateX(5px); }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 56px;
}

.section-label-line { width: 24px; height: 1px; background: var(--accent); }

.section-label--cta { margin-bottom: 36px; }

#cta {
  border-top: 1px solid var(--border);
  padding: 120px max(80px, calc(50% - 656px)) 120px max(112px, calc(50% - 624px));
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { max-width: 600px; }

.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 460px;
}

.cta-note {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--dim);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

.cta-download-link { display: inline-block; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px max(80px, calc(50% - 656px)) 32px max(112px, calc(50% - 624px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

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

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

.footer-links a {
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--muted); }

.footer-copy {
  font-size: 12px;
  color: var(--dim);
  font-family: 'DM Mono', monospace;
}

.bg-text {
  position: absolute;
  right: -10px;
  top: 60px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 220px;
  color: rgba(255, 255, 255, 0.13);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.08s; }
.delay-3 { transition-delay: 0.1s; }
.delay-4 { transition-delay: 0.12s; }
.delay-5 { transition-delay: 0.16s; }
.delay-6 { transition-delay: 0.18s; }
.delay-7 { transition-delay: 0.22s; }
.delay-8 { transition-delay: 0.25s; }
.delay-9 { transition-delay: 0.3s; }

#tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0f1e36;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 20px;
  width: 230px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  display: none;
}

#tweaks-panel.visible { display: block; }

.tweak-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.tweak-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.tweak-colors { display: flex; gap: 8px; margin-bottom: 16px; }

.tweak-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s;
}

.tweak-swatch:hover { transform: scale(1.15); }
.tweak-swatch.active { border-color: white; }

.tweak-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 4px;
}

.tweak-toggle-row--mb { margin-bottom: 12px; }

.tweak-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
  background: var(--bg3);
}

.tweak-toggle.on { background: var(--accent); }

.tweak-toggle-knob {
  position: absolute;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: left 0.2s;
  left: 2px;
}

.tweak-toggle.on .tweak-toggle-knob { left: 18px; }

.tweak-toggle-label { font-size: 12px; color: var(--muted); }

.nav-hamburger { display: none; }

@media (max-width: 900px) {
  .rail { display: none; }

  nav {
    padding: 0 16px 0 20px;
    height: 56px;
  }

  .nav-cta { display: none; }

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

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(7, 21, 34, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px 20px;
    gap: 0;
    z-index: 99;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a:last-child { border-bottom: none; }

  h1 { font-size: clamp(36px, 7vw, 52px); }

  #cta {
    padding: 80px 20px;
  }

  .cta-title { font-size: 36px; }

  .cta-sub { font-size: 15px; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 20px;
  }

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