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

:root {
  --bg:         #0f0d0b;
  --bg2:        #1a1714;
  --bg3:        #231f1b;
  --bg4:        #2c2722;
  --border:     #332e28;
  --border2:    #463e36;

  --orange:     #f97316;
  --orange-dim: #ea6c0a;
  --orange-soft:#fb923c;
  --orange-pale:#fed7aa;
  --orange-glow:#f9731618;
  --orange-glow2:#f9731630;

  --text:       #faf5f0;
  --text-dim:   #a89880;
  --text-faint: #5c5048;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --sans:       'Inter', system-ui, sans-serif;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
a { color: var(--orange); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 28px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 10, 9, 0.80);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--orange) 0%, #f97316cc 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #0c0a09;
  box-shadow: 0 0 16px var(--orange-glow2);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 0.875rem; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg3); opacity: 1; }
.nav-cta {
  background: var(--orange); color: #0c0a09 !important;
  font-weight: 700 !important; border-radius: 8px !important;
  padding: 7px 18px !important;
  box-shadow: 0 0 20px var(--orange-glow2);
  transition: box-shadow 0.2s, transform 0.1s !important;
}
.nav-cta:hover { box-shadow: 0 0 30px #f9731650 !important; transform: translateY(-1px); background: var(--bg3) !important; }

section, nav, footer { position: relative; z-index: 1; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 110px 0 90px;
  position: relative; overflow: hidden;
}
/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, #f9731614 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 10%, #f9731608 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, #f9731610 0%, transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 100px; padding: 5px 14px 5px 10px;
  font-size: 0.78rem; color: var(--text-dim);
  margin-bottom: 24px; width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--orange); }
  50% { box-shadow: 0 0 16px var(--orange), 0 0 28px var(--orange-glow2); }
}
.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.035em; margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-soft) 50%, var(--orange-pale) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-dim);
  line-height: 1.75; margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #0c0a09;
  padding: 12px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 0 24px var(--orange-glow2);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 32px #f9731645; opacity: 1; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg3); color: var(--text);
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border2);
  transition: transform 0.15s, border-color 0.15s;
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--text-faint); opacity: 1; }
.hero-meta {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px; flex-wrap: wrap;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; color: var(--text-faint);
}
.hero-meta-item svg { color: var(--orange); }

/* Terminal card */
.terminal-wrap {
  position: relative;
}
.terminal-wrap::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: calc(var(--radius-xl) + 1px);
  background: linear-gradient(135deg, #f9731630, #f9731608, transparent);
  z-index: -1;
}
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}
.terminal-bar {
  background: var(--bg3);
  padding: 13px 18px;
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--border);
}
.tbar-dot { width: 12px; height: 12px; border-radius: 50%; }
.tbar-dot:nth-child(1) { background: #ff5f57; }
.tbar-dot:nth-child(2) { background: #febc2e; }
.tbar-dot:nth-child(3) { background: #28c840; }
.tbar-title {
  margin-left: 10px; font-family: var(--mono); font-size: 0.72rem;
  color: var(--text-faint);
}
.terminal-body {
  padding: 22px 24px;
  font-family: var(--mono); font-size: 0.79rem; line-height: 1.9;
}
.t-ps  { color: var(--orange); }
.t-cmd { color: var(--text); font-weight: 600; }
.t-sec { color: var(--text-faint); letter-spacing: 0.02em; font-size: 0.73rem; }
.t-val { color: #60a5fa; }
.t-file{ color: var(--text-dim); }
.t-bar { color: var(--orange-soft); }
.t-err { color: #f87171; }
.t-warn{ color: #fbbf24; }
.t-ok  { color: #34d399; font-weight: 700; }
.t-score {
  color: var(--orange); font-size: 1rem; font-weight: 700;
  text-shadow: 0 0 20px var(--orange-glow2);
}

/* ── Marquee strip ───────────────────────────────────────────────────────── */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 14px 0; overflow: hidden;
  position: relative; z-index: 1;
}
.marquee-strip::before,
.marquee-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
  pointer-events: none;
}
.marquee-strip::before { left: 0; background: linear-gradient(90deg, var(--bg2), transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 28px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-faint);
  white-space: nowrap;
}
.marquee-item .dot { color: var(--orange); font-size: 1rem; }

/* ── Section shared ──────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--orange); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 18px; height: 2px; background: var(--orange);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; color: var(--text-dim); max-width: 520px; line-height: 1.75;
}

/* ── Bento grid (features) ───────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 14px;
  margin-top: 56px;
}
.bento-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden; position: relative;
}
.bento-card:hover { border-color: #f9731628; transform: translateY(-2px); }
.bento-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--orange-glow) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.bento-card:hover::after { opacity: 1; }
/* Grid placement */
.b1 { grid-column: span 5; }
.b2 { grid-column: span 7; }
.b3 { grid-column: span 4; }
.b4 { grid-column: span 4; }
.b5 { grid-column: span 4; }
.b6 { grid-column: span 6; }
.b7 { grid-column: span 6; }

.bento-icon {
  font-size: 28px; margin-bottom: 18px;
  display: block;
}
.bento-card h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;
}
.bento-card p {
  font-size: 0.875rem; color: var(--text-dim); line-height: 1.65;
}
.bento-stat {
  font-size: 3rem; font-weight: 800;
  font-family: var(--mono); letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 8px;
}
.mini-terminal {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.8;
  margin-top: 16px;
}
.pill-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.pill {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 100px; padding: 4px 12px;
  font-size: 0.75rem; font-family: var(--mono); color: var(--text-dim);
}

/* ── Rules ───────────────────────────────────────────────────────────────── */
.rules-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rules-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 20px;
  margin-bottom: 48px;
}
.rules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rule-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.rule-card:hover { border-color: #f9731628; background: var(--bg4); }
.rule-top { display: flex; align-items: center; justify-content: space-between; }
.rule-id {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 5px;
}
.sev-high   { background: #ef444418; color: #f87171; border: 1px solid #ef444428; }
.sev-medium { background: #f9731618; color: var(--orange-soft); border: 1px solid #f9731628; }
.rule-card h4 { font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
.rule-card p  { font-size: 0.78rem; color: var(--text-dim); line-height: 1.55; }
.rule-lang {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--text-faint);
}

/* ── Install ─────────────────────────────────────────────────────────────── */
.install-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
  margin-top: 56px;
}
.install-tabs {
  display: flex; gap: 4px; margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
}
.tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 9px 16px; font-size: 0.83rem; font-weight: 600;
  color: var(--text-faint); border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-family: var(--sans);
  transition: color 0.15s;
}
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-btn:hover { color: var(--text-dim); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.code-wrap {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg2);
}
.code-wrap .install-tabs { background: var(--bg3); border-bottom: 1px solid var(--border); }
.code-block {
  padding: 18px 20px; font-family: var(--mono);
  font-size: 0.82rem; color: var(--text-dim);
  position: relative; line-height: 1.7;
}
.copy-btn {
  position: absolute; top: 12px; right: 12px;
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text-faint); font-size: 0.72rem; padding: 4px 10px;
  border-radius: 5px; cursor: pointer; font-family: var(--sans);
  transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover { color: var(--orange); border-color: var(--orange); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; position: relative;
}
.step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 13px; top: 46px; bottom: 0; width: 1px;
  background: var(--border);
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  color: var(--orange); font-family: var(--mono);
  position: relative; z-index: 1;
}
.step-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; }
.step-body p  { font-size: 0.83rem; color: var(--text-dim); line-height: 1.6; }
.step-body code {
  font-family: var(--mono); font-size: 0.79rem;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 4px; color: var(--orange);
}

/* ── CTA banner ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
}
.cta-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 64px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, #f9731618 0%, transparent 60%);
}
.cta-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 16px; position: relative;
}
.cta-card p {
  color: var(--text-dim); font-size: 1rem;
  margin-bottom: 36px; position: relative; max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700;
  color: var(--text-dim); font-size: 0.9rem;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-faint); font-size: 0.83rem; }
.footer-links a:hover { color: var(--text-dim); opacity: 1; }
.footer-right { color: var(--text-faint); font-size: 0.78rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; }
  .terminal-wrap     { display: none; }
  .bento             { grid-template-columns: 1fr 1fr; }
  .b1,.b2,.b3,.b4,.b5,.b6,.b7 { grid-column: span 2; }
  .rules-grid        { grid-template-columns: repeat(2, 1fr); }
  .install-layout    { grid-template-columns: 1fr; }
  .nav-links li:not(:last-child) { display: none; }
}
@media (max-width: 600px) {
  .bento             { grid-template-columns: 1fr; }
  .b1,.b2,.b3,.b4,.b5,.b6,.b7 { grid-column: span 1; }
  .rules-grid        { grid-template-columns: 1fr; }
  .cta-card          { padding: 36px 24px; }
}
