:root {
  --amber-light: #F4B740;
  --amber: #E89A1C;
  --amber-dark: #C77F14;
  --amber-glow: rgba(232, 154, 28, 0.14);

  --bg-0: #14120E;
  --bg-1: #1C1915;
  --bg-2: #24201A;
  --bg-3: #2E2921;
  --border: #38322A;
  --border-strong: #4A4238;

  --text-1: #F3EDE1;
  --text-2: #B8AF9E;
  --text-3: #7D766A;

  --success: #4FB98A;
  --danger: #E8756E;

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1160px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--amber-glow); color: var(--amber-light); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 7px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); background-clip: padding-box; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-primary { background: var(--amber); color: #1A1206; box-shadow: 0 6px 22px -8px rgba(232,154,28,0.7); }
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(232,154,28,0.75); }
.btn-ghost { background: var(--bg-2); color: var(--text-1); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--border-strong); transform: translateY(-2px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { filter: drop-shadow(0 2px 10px rgba(232,154,28,0.35)); }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.brand-name span { color: var(--amber); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(20,18,14,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--text-2); font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--text-1); }
.nav-links a.btn { color: inherit; }
.nav-links .btn-primary { color: #1A1206; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-1); cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232,154,28,0.22), rgba(232,154,28,0.05) 45%, transparent 72%);
  filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--amber-light);
  background: var(--amber-glow); border: 1px solid rgba(232,154,28,0.25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; }
.grad { background: linear-gradient(120deg, var(--amber-light), var(--amber-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: 18px; color: var(--text-2); max-width: 560px; }
.lead strong { color: var(--text-1); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 13.5px; color: var(--text-3); }

/* Preview window */
.hero-preview { perspective: 1600px; }
.preview-window {
  background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transform: rotateY(-13deg) rotateX(6deg) translateZ(0); transform-origin: left center;
  transition: transform .5s ease;
}
.hero-preview:hover .preview-window { transform: rotateY(-6deg) rotateX(3deg); }
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.preview-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); }
.preview-url { margin-left: 12px; font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }
.preview-body { padding: 18px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pstat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.pstat-label { display: block; font-size: 11.5px; color: var(--text-3); }
.pstat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.pstat-value.ok { color: var(--success); }
.preview-rows { display: flex; flex-direction: column; gap: 2px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-top: 1px solid var(--border); }
.prow:first-child { border-top: none; }
.prow > div { flex: 1; min-width: 0; }
.prow b { display: block; font-size: 13px; font-weight: 600; }
.prow i { font-style: normal; font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.pd { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pd.ok { background: var(--success); box-shadow: 0 0 8px var(--success); }
.pd.run { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 1.6s ease-in-out infinite; }
.pd.off { background: var(--text-3); }
.pbadge { font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 6px; }
.pbadge.ok { background: rgba(79,185,138,0.14); color: var(--success); }
.pbadge.run { background: var(--amber-glow); color: var(--amber-light); }
.pbadge.muted { background: var(--bg-3); color: var(--text-3); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-0), #17140F); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 800; letter-spacing: -0.9px; line-height: 1.15; }
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--text-2); }
.section-head .eyebrow { margin-bottom: 16px; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--bg-2); }
.card .ico {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 12px; background: var(--amber-glow); border: 1px solid rgba(232,154,28,0.2);
  margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.3px; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }

/* ---------- Providers ---------- */
.provider-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.provider-block { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; }
.provider-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--amber); color: var(--amber-light); background: var(--amber-glow); }

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; position: relative; }
.step-n {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  font-size: 18px; font-weight: 800; color: #1A1206;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
}
.step h3 { font-size: 17.5px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }

/* ---------- Install ---------- */
.install-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.install-steps { display: flex; flex-direction: column; gap: 22px; }
.istep { display: flex; gap: 16px; }
.istep-n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--amber-light);
  background: var(--amber-glow); border: 1px solid rgba(232,154,28,0.25);
}
.istep h4 { font-size: 15.5px; font-weight: 700; }
.istep p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.istep code, .footer code, .lead code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--amber-light); }

.code-block { position: relative; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.code-block.small { margin-top: 10px; }
.code-block.big { position: sticky; top: 92px; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.code-file { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }
.code-block pre { overflow-x: auto; padding: 16px 18px; }
.code-block.small pre { padding: 14px 16px; padding-right: 62px; }
.code-block code { font-family: var(--font-mono); font-size: 12.8px; line-height: 1.7; color: var(--text-1); white-space: pre; }
.copy {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 11px; transition: all .15s ease;
}
.code-block.small .copy { position: absolute; top: 10px; right: 10px; z-index: 2; }
.copy:hover { color: var(--amber-light); border-color: var(--amber); }
.copy.copied { color: var(--success); border-color: var(--success); }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 50% 0%, rgba(232,154,28,0.16), transparent 60%);
}
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -1px; }
.cta p { margin: 14px auto 30px; font-size: 17px; color: var(--text-2); max-width: 540px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0; background: var(--bg-1); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 14px; color: var(--text-2); transition: color .15s ease; }
.footer-links a:hover { color: var(--amber-light); }
.footer-note { font-size: 13px; color: var(--text-3); }
.footer-note a { color: var(--text-2); }
.footer-note a:hover { color: var(--amber-light); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-preview { max-width: 520px; }
  .preview-window { transform: none; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; }
  .code-block.big { position: static; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(20,18,14,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 16px 24px 22px;
    transform: translateY(-140%); transition: transform .28s ease; z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 10px 4px; font-size: 15px; }
  .nav-links .btn { justify-content: center; }
  .nav-toggle { display: block; }
  .hero { padding: 120px 0 70px; }
}
@media (max-width: 560px) {
  .features, .steps, .provider-cols, .preview-stats { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero-trust { gap: 6px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
