/* ===========================================================
   BurnedWolf Website — Schematic / Industrial Theme
   ===========================================================
   Inspired by engineering blueprints, drafting paper,
   workshop signage. Burned wolf = ash + fire.
   =========================================================== */

:root {
  /* Ash / coal */
  --bg: #0D0D0D;
  --bg-2: #060606;
  --surface: #161616;
  --surface-2: #1E1E1E;
  --surface-3: #2A2A2A;

  /* Fire — burned violet (matches the Electron app) */
  --fire: #A855F7;
  --fire-hot: #C084FC;
  --fire-deep: #9333EA;
  --fire-glow: rgba(168, 85, 247, 0.4);
  --ember: #D8B4FE;

  /* Utility */
  --ok: #6EE07A;
  --warn: #FFC857;
  --bad: #E5484D;

  /* Paper-white text — feels less sterile than pure white */
  --ink: #F5F5F0;
  --ink-2: #C8C8C0;
  --ink-3: #9A9A92;
  --ink-4: #6E6E68;

  /* Lines */
  --line: rgba(245, 245, 240, 0.08);
  --line-2: rgba(245, 245, 240, 0.14);
  --line-hot: rgba(168, 85, 247, 0.3);
  --grid-line: rgba(168, 85, 247, 0.05);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tap: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* DISPLAY type — Space Grotesk for headlines, gives geometric punch */
h1, h2, h3, h4,
.display {
  font-family: 'Space Grotesk', 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===========================================================
   GRAIN + GRID BG
   =========================================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* Film grain overlay (SVG noise) */
.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-flare {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, var(--fire-glow) 0%, transparent 65%);
  opacity: 0.4;
}
.bg-flare.tl { top: -200px; left: -100px; }
.bg-flare.br { bottom: -200px; right: -200px; }

/* ===========================================================
   SCROLLBAR
   =========================================================== */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border: 1px solid var(--fire);
}
::-webkit-scrollbar-thumb:hover { background: var(--fire-deep); }

::selection {
  background: var(--fire);
  color: var(--bg);
}

/* ===========================================================
   PRIMITIVES
   =========================================================== */

/* Mono label — like a CAD callout */
.mono-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Tape label — tilted painters' tape with marker writing */
.tape {
  display: inline-block;
  padding: 5px 14px;
  background: var(--fire);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  position: relative;
}
.tape::before, .tape::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.18) 0 2px,
    transparent 2px 4px
  );
}
.tape::before { left: 0; }
.tape::after { right: 0; }

/* Section number badge — big amber numerals */
.sec-num {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--fire);
  line-height: 1;
  letter-spacing: -0.04em;
  display: inline-block;
}

/* Schematic divider — dashed line with callout */
.sch-div {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sch-div::before, .sch-div::after {
  content: '';
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 0);
  background-size: 8px 1px;
}

/* Square corner brackets — drafting marks */
.bracket-frame {
  position: relative;
}
.bracket-frame::before,
.bracket-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--fire);
}
.bracket-frame::before {
  top: -6px; left: -6px;
  border-right: 0;
  border-bottom: 0;
}
.bracket-frame::after {
  bottom: -6px; right: -6px;
  border-left: 0;
  border-top: 0;
}

/* ===========================================================
   LANGUAGE OVERLAY
   =========================================================== */

.lang-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn 0.35s var(--ease);
}
.lang-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.lang-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--fire);
  padding: 44px 36px 36px;
  text-align: center;
  animation: slideUp 0.45s var(--ease);
}
.lang-card::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed var(--line-2);
  pointer-events: none;
}

.lang-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.lang-brand .name {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-card .mono-label {
  margin-bottom: 24px;
  color: var(--fire);
}

.lang-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.lang-sub {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.lang-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px 10px;
  cursor: pointer;
  transition: all 0.18s var(--tap);
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.lang-tile:hover {
  border-color: var(--fire);
  background: rgba(168, 85, 247, 0.04);
}
.lang-tile.active {
  border-color: var(--fire);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 0 2px var(--fire) inset, 0 0 0 1px var(--bg);
}
.lang-tile .flag { font-size: 1.6rem; }
.lang-tile .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-tile.active .label { color: var(--fire); }

.lang-continue {
  width: 100%;
  padding: 14px 22px;
  background: var(--fire);
  color: var(--bg);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s var(--tap);
}
.lang-continue:hover:not(:disabled) {
  background: var(--fire-hot);
}
.lang-continue:disabled {
  background: var(--surface-3);
  color: var(--ink-4);
  cursor: not-allowed;
}

/* ===========================================================
   NAV
   =========================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  background: rgba(13, 13, 13, 0.94);
  border-bottom-color: var(--line-hot);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img {
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 8px var(--fire-glow));
}
.nav-brand .brand-name {
  font-family: 'Space Grotesk', monospace;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.nav-brand .brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--fire);
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border: 1px solid var(--fire);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-2);
  transition: all 0.18s;
  position: relative;
  letter-spacing: 0.1em;
}
.lang-switcher:hover {
  border-color: var(--fire);
  color: var(--ink);
}
.lang-switcher .current { font-weight: 700; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--fire);
  display: none;
  z-index: 200;
}
.lang-dropdown.open { display: block; animation: fadeUp 0.18s var(--ease); }
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.lang-dropdown button:hover { background: rgba(168, 85, 247, 0.1); color: var(--fire); }
.lang-dropdown button.active { background: rgba(168, 85, 247, 0.07); color: var(--fire); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s var(--tap);
}
.btn-primary {
  background: var(--fire);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--fire-hot);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--fire);
  color: var(--fire);
}
.btn-lg {
  padding: 16px 26px;
  font-size: 0.85rem;
}

/* ===========================================================
   CONTAINER
   =========================================================== */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ===========================================================
   HERO
   =========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 28px 60px;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hero-inner {
  position: relative;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-meta-strip .dot {
  width: 8px; height: 8px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 2.5s ease-in-out infinite;
}
.hero-meta-strip .sep {
  width: 24px;
  height: 1px;
  background: var(--line-2);
}

.hero h1 {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  text-transform: uppercase;
}
.hero h1 .fire {
  color: var(--fire);
  font-style: italic;
}
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero h1 .strike::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 6px;
  background: var(--fire);
  transform: rotate(-1.5deg);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.hero-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-2);
}
.hero-spec-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-2);
}
.hero-spec-list .label {
  color: var(--ink-4);
  min-width: 80px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-spec-list .val {
  color: var(--ink);
  font-weight: 600;
}
.hero-spec-list .val.fire { color: var(--fire); }

/* Hero h1 — center-aligned, line-broken inline words */
.hero h1 {
  text-align: left;
}

/* ===========================================================
   STATS BAR
   =========================================================== */

.stats {
  position: relative;
  z-index: 2;
  padding: 0 28px 80px;
}
.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
}
.stat {
  text-align: left;
  padding: 26px 24px;
  border-left: 1px solid var(--line);
  position: relative;
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fire);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ===========================================================
   SECTIONS
   =========================================================== */

.section {
  position: relative;
  z-index: 2;
  padding: 90px 28px;
}
.section-inner { max-width: 1240px; margin: 0 auto; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 30px;
  margin-bottom: 60px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--fire);
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 1px;
  width: 60%;
  background: var(--fire);
  opacity: 0.4;
}

.section-head .sec-marker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-head .sec-marker .mono-label { color: var(--fire); }
.section-head h2 {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
}
.section-head p {
  max-width: 520px;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
  justify-self: end;
  text-align: right;
}

/* ===========================================================
   FEATURES — schematic spec sheet style
   =========================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.feature-card {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  transition: background 0.2s var(--ease);
}
.feature-card:nth-child(4n) { border-right: 0; }
.feature-card:hover {
  background: var(--surface-2);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--fire-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 0.06; }

.feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--fire);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.feature-icon {
  color: var(--fire);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ===========================================================
   MODULES — large blueprint cards
   =========================================================== */

.modules-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.module-card {
  padding: 36px 32px 32px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.module-card:nth-child(2n) { border-right: 0; }
.module-card:nth-last-child(-n+2) { border-bottom: 0; }

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-2);
}
.module-head .left .mono-label { color: var(--fire); margin-bottom: 4px; }
.module-head .left h3 {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1;
}
.module-head .module-glyph {
  width: 56px; height: 56px;
  border: 1.5px solid var(--fire);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fire);
  position: relative;
}
.module-head .module-glyph::before,
.module-head .module-glyph::after {
  content: '';
  position: absolute;
  background: var(--fire);
}
.module-head .module-glyph::before {
  width: 6px; height: 1.5px;
  top: -1.5px; left: 6px;
}
.module-head .module-glyph::after {
  width: 1.5px; height: 6px;
  left: -1.5px; top: 6px;
}

.module-card > p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 22px;
}

.module-features {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.module-features li {
  padding: 12px 0 12px 24px;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-family: 'JetBrains Mono', monospace;
}
.module-features li:last-child { border-bottom: 0; }
.module-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--fire);
  font-weight: 700;
}

/* ===========================================================
   ISP & SERVICES GRID
   =========================================================== */

.compat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.compat-column h3 {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.compat-column > p {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 20px;
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border: 1px solid var(--line);
}
.compat-cell {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  position: relative;
  transition: background 0.18s;
}
.compat-cell:hover { background: var(--surface-2); }
.compat-cell:last-child { border-right: 0; }
.compat-cell .logo {
  width: 30px; height: 30px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compat-cell .name {
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.compat-cell .status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--ok);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.compat-cell .status::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--ok);
  border-radius: 50%;
}

/* ===========================================================
   HOW TO USE — steps as drafting sequence
   =========================================================== */

.steps-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.step-card {
  padding: 28px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.18s;
}
.step-card:nth-child(3n) { border-right: 0; }
.step-card:nth-last-child(-n+3) { border-bottom: 0; }
.step-card:hover { background: var(--surface-2); }

.step-card .step-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--fire);
  line-height: 0.85;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.step-card h4 {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.step-card p {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ===========================================================
   ISP PICKER (interactive)
   =========================================================== */

.picker {
  background: var(--surface);
  border: 1px solid var(--fire);
  padding: 36px;
  position: relative;
}
.picker::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed var(--line);
  pointer-events: none;
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}
.picker-head .left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.picker-head h3 {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.picker-head .mono-label { color: var(--ink-4); }

.picker-isps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
  position: relative;
}
.picker-isp {
  padding: 16px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  text-align: left;
  color: var(--ink);
  transition: all 0.18s var(--tap);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.picker-isp .isp-name {
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  font-size: 0.92rem;
}
.picker-isp .isp-asn {
  font-size: 0.66rem;
  color: var(--ink-4);
  letter-spacing: 0.12em;
}
.picker-isp:hover {
  border-color: var(--fire);
  background: rgba(168, 85, 247, 0.04);
}
.picker-isp.active {
  border-color: var(--fire);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 0 2px var(--fire) inset, 0 0 0 1px var(--bg);
}
.picker-isp.active .isp-name { color: var(--fire); }

.picker-result {
  background: var(--bg);
  border: 1px solid var(--fire);
  padding: 24px;
  position: relative;
  min-height: 100px;
}
.picker-result.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-style: dashed;
  border-color: var(--line-2);
}
.picker-result-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}
.picker-result-grid .k {
  color: var(--ink-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.picker-result-grid .v {
  color: var(--ink);
}
.picker-result-grid .v.fire { color: var(--fire); font-weight: 700; }
.picker-result-grid .v.ok {
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.picker-result-grid .v.ok::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ok);
}

/* ===========================================================
   CHANGELOG / TIMELINE
   =========================================================== */

.timeline {
  position: relative;
  padding-left: 38px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-image: linear-gradient(to bottom, var(--fire) 50%, transparent 0);
  background-size: 1px 8px;
  background-repeat: repeat-y;
}
.tl-item {
  position: relative;
  padding: 6px 0 36px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 12px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--fire);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-item.latest::before {
  background: var(--fire);
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px var(--fire-glow);
}
.tl-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tl-version {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fire);
  letter-spacing: -0.03em;
}
.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}
.tl-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--bg);
  background: var(--fire);
  padding: 2px 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.tl-item h4 {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.tl-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-item ul li {
  position: relative;
  padding-left: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.tl-item ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--fire);
  font-weight: 700;
}

/* ===========================================================
   DOWNLOAD SECTION
   =========================================================== */

.download-section {
  position: relative;
  padding: 90px 28px;
  z-index: 2;
}
.download-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--fire);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.download-card::after {
  /* big radial flare */
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--fire-glow) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.6;
}
.download-card > * { position: relative; }

.download-head {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line-2);
}
.download-head .title-block .mono-label { color: var(--fire); margin-bottom: 4px; }
.download-head h2 {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.download-spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.download-spec .cell {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.download-spec .cell:last-child { border-right: 0; }
.download-spec .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--ink-4);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.download-spec .v {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.download-spec .v.fire { color: var(--fire); }

.download-primary { margin-bottom: 14px; }
.download-secondary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 22px 26px;
  background: var(--fire);
  color: var(--bg);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--fire);
  transition: all 0.18s var(--tap);
  position: relative;
  overflow: hidden;
}
.download-btn:hover {
  background: var(--fire-hot);
}
.download-btn svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.download-btn .arrow {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  padding: 16px 20px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-2);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.18s var(--tap);
}
.btn-outline:hover {
  border-color: var(--fire);
  color: var(--fire);
}
.btn-outline svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.download-note {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-2);
}
.download-meta .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.download-meta .item svg { color: var(--ok); }

/* ===========================================================
   FAQ
   =========================================================== */

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.18s;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item.open { background: var(--surface-2); }

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
  transition: color 0.18s;
}
.faq-q:hover { color: var(--fire); }
.faq-q .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-4);
  margin-right: 14px;
  letter-spacing: 0.12em;
}
.faq-q .icon {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--fire);
  font-size: 1.2rem;
  transition: transform 0.22s var(--ease);
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease), padding 0.22s var(--ease);
  padding: 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 340px;
  padding: 0 24px 20px 24px;
}

/* ===========================================================
   CTA
   =========================================================== */

.cta {
  text-align: center;
  padding: 100px 28px 80px;
  position: relative;
  z-index: 2;
}
.cta h2 {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 18px;
}
.cta h2 .fire { color: var(--fire); }
.cta p {
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ===========================================================
   FOOTER
   =========================================================== */

.footer {
  position: relative;
  z-index: 2;
  background: var(--bg-2);
  border-top: 2px solid var(--fire);
  padding: 60px 28px 30px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .name {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--fire);
}
.footer-brand .tagline {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 320px;
  margin-bottom: 14px;
}
.footer-brand .disclaimer {
  font-size: 0.72rem;
  color: var(--ink-4);
  line-height: 1.55;
  max-width: 380px;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fire);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--ink-2);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--fire); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

/* ===========================================================
   REVEAL
   =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   KEYFRAMES
   =========================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.2); }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding: 110px 22px 50px; }
  .section { padding: 70px 22px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head p { justify-self: start; text-align: left; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .feature-card:nth-child(2n) { border-right: 0; }
  .modules-stack { grid-template-columns: 1fr; }
  .module-card { border-right: 0; min-height: auto; }
  .module-card:nth-child(2n) { border-right: 0; }
  .module-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .module-card:last-child { border-bottom: 0; }
  .compat-block { grid-template-columns: 1fr; gap: 32px; }
  .steps-flow { grid-template-columns: 1fr; }
  .step-card:nth-child(3n) { border-right: 0; }
  .step-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .step-card:last-child { border-bottom: 0; }
  .download-section { padding: 70px 22px; }
  .download-card { padding: 36px 24px; }
  .download-head { flex-direction: column; align-items: flex-start; }
  .download-head img { width: 64px; height: 64px; }
  .download-spec { grid-template-columns: repeat(2, 1fr); }
  .download-spec .cell:nth-child(2n) { border-right: 0; }
  .download-secondary { flex-direction: column; }
}

@media (max-width: 540px) {
  .nav { padding: 10px 18px; }
  .nav-brand .brand-sub { display: none; }
  .nav-actions .btn { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: 0 !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .lang-grid { grid-template-columns: 1fr; }
  .download-spec { grid-template-columns: 1fr; }
  .download-spec .cell { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .download-spec .cell:last-child { border-bottom: 0; }
}
