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

:root {
  --bg:      #080808;
  --bg2:     #0d0d0d;
  --bg3:     #111111;
  --bg4:     #161616;
  --border:  #1f1f1f;
  --border2: #2a2a2a;
  --accent:  #f97316;
  --accent2: #fb923c;
  --glow:    rgba(249,115,22,0.15);
  --text:    #f0f0f0;
  --muted:   #666;
  --muted2:  #888;
  --green:   #4ade80;
  --blue:    #38bdf8;
  --purple:  #a78bfa;
  --red:     #f87171;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  padding: 7px 18px;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.85; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); }

/* ── LAYOUT ── */
section { padding: 88px 24px; }
.container { max-width: 1060px; margin: 0 auto; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-h {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-p {
  font-size: 15px;
  color: var(--muted2);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.65;
}

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

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--accent);
  color: #000;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 0 28px rgba(249,115,22,0.28);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--muted2);
  border: 1px solid var(--border2);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* ── FEATURE CARDS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.card {
  background: var(--bg2);
  padding: 28px 24px;
  transition: background 0.15s;
}
.card:hover { background: var(--bg3); }
.card-icon { font-size: 20px; margin-bottom: 12px; display: block; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--muted2); line-height: 1.6; }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted2);
  transition: border-color 0.15s, color 0.15s;
}
.tag:hover { border-color: var(--accent); color: var(--text); }
.tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.tag-dot.g { background: var(--green); }
.tag-dot.b { background: var(--blue); }
.tag-dot.p { background: var(--purple); }

/* ── FEATURE LIST GRID ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feat-group { background: var(--bg2); padding: 24px 22px 28px; }

.feat-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feat-list li {
  font-size: 13px;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
}

/* ── SPLIT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ── MOCKUP ── */
.mockup-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.m-bar {
  height: 26px;
  background: #111;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.m-dot { width: 8px; height: 8px; border-radius: 50%; }
.m-dot.r { background: #ff5f57; }
.m-dot.y { background: #febc2e; }
.m-dot.g { background: #28c840; }
.m-label {
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.m-body { padding: 12px 14px; }
.m-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e1e1e;
}
.m-tab {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.m-tab.on { background: rgba(249,115,22,0.15); color: var(--accent); }
.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 11px;
  border-bottom: 1px solid #131313;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}
.m-row:last-child { border-bottom: none; }
.m-check {
  width: 13px; height: 13px;
  border: 1px solid #333;
  border-radius: 3px;
}
.m-check.on {
  border-color: var(--accent);
  background: var(--accent);
  position: relative;
}
.m-check.on::after {
  content: '✓';
  position: absolute;
  top: -2px; left: 1px;
  font-size: 10px; color: #000;
}
.m-kb {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid #222;
  border-radius: 3px;
  color: var(--muted);
}
.m-val { color: var(--accent); font-size: 10px; }
.m-slider { height: 2px; flex: 1; background: #1e1e1e; border-radius: 2px; margin: 0 8px; }
.m-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* ── STATS BAR ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 72px;
  padding: 44px 24px;
  background: var(--bg2);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat-l {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── KM PILLS ── */
.km-row { display: flex; gap: 12px; flex-wrap: wrap; }
.km-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s;
  cursor: default;
}
.km-pill:hover { border-color: var(--accent); }
.km-pill-icon { font-size: 16px; }

/* ── TECH PILLS ── */
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tech {
  padding: 5px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
}

/* ── BADGE ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid #2a1a0a;
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 32px;
  background: rgba(249,115,22,0.06);
}
.badge-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 128px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(249,115,22,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 16px;
  color: var(--muted2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── CODE BLOCKS ── */
pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted2);
}
pre .kw  { color: var(--purple); }
pre .fn  { color: var(--accent); }
pre .str { color: var(--green); }
pre .num { color: var(--blue); }
pre .cmt { color: var(--muted); font-style: italic; }
pre .type { color: var(--blue); }
pre .self { color: var(--accent2); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: var(--bg2);
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 740px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 64px 20px; }
  .stats { gap: 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 420px) {
  .feat-grid { grid-template-columns: 1fr; }
}
