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

:root {
  --bg:        #0e0f12;
  --bg-2:      #121418;
  --panel:     #16191f;
  --panel-2:   #1b1f26;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.04);
  --text:      #e7e9ec;
  --muted:     #9aa0ab;
  --faint:     #6b7280;
  --ember:     #ff6a3d;
  --ember-2:   #ff8a5b;
  --ember-dim: rgba(255, 106, 61, 0.14);
  --steel:     #7cc5ff;
  --ok:        #4ade80;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
code, pre, kbd { font-family: 'JetBrains Mono', monospace; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ─── Nav ─── */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 68px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.nav-brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 18px; letter-spacing: 3px; color: var(--text);
}
.brand-mark {
  width: 15px; height: 15px; display: inline-block;
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(255, 106, 61, 0.55);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px; border: 1px solid var(--ember);
  color: var(--ember-2) !important; border-radius: 7px; font-weight: 600;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--ember); color: #140b07 !important; }

/* ─── Hero ─── */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 40px 70px; text-align: center;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(255,106,61,0.16), transparent 62%),
    radial-gradient(60% 50% at 88% 8%, rgba(124,197,255,0.08), transparent 60%),
    var(--bg);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; max-width: 840px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 30px;
}
.spark { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.hero-title {
  font-size: clamp(44px, 7.5vw, 88px); font-weight: 900; line-height: 0.98;
  letter-spacing: -0.03em; margin-bottom: 26px;
}
.hero-title .hot {
  background: linear-gradient(100deg, var(--ember), var(--ember-2) 60%, #ffd1a6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 660px; margin: 0 auto 36px; font-size: 18px; color: var(--muted); line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 9px; font-weight: 600; font-size: 15px;
  transition: transform .18s, box-shadow .25s, background .2s, border-color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  color: #170c06; box-shadow: 0 10px 30px -10px rgba(255,106,61,0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255,106,61,0.8); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-2px); }
.hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--faint);
}
.hero-meta b { color: var(--text); font-weight: 700; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* hero screenshot window */
.hero-shot { position: relative; max-width: 1060px; margin: 64px auto 0; }
.window {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--panel);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02);
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.wb-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3f48; }
.wb-dot:nth-child(1){ background:#ff5f57; } .wb-dot:nth-child(2){ background:#febc2e; } .wb-dot:nth-child(3){ background:#28c840; }
.wb-url {
  margin-left: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--faint);
}
.window img { width: 100%; display: block; }

/* ─── Install strip ─── */
.strip { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.strip-inner {
  display: flex; align-items: center; gap: 28px; padding: 24px 40px; flex-wrap: wrap;
}
.oneliner {
  font-size: 15px; color: var(--text); background: #0a0b0d; border: 1px solid var(--line);
  padding: 13px 18px; border-radius: 8px; white-space: nowrap;
}
.oneliner i { color: var(--faint); font-style: italic; }
.prompt { color: var(--ember); margin-right: 8px; }
.strip-note { font-size: 13.5px; color: var(--muted); max-width: 540px; }
.strip-note code { color: var(--ember-2); font-size: 12.5px; }

/* ─── Sections ─── */
.section { padding: 110px 0; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 1px;
  color: var(--ember); margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.section-lede { margin-top: 18px; font-size: 17px; color: var(--muted); line-height: 1.7; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, background .3s;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(255,106,61,0.4); background: var(--panel-2); }
.feat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 11px; margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700;
  color: var(--ember-2); background: var(--ember-dim); border-radius: 10px;
}
.feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feat p { font-size: 14.5px; color: var(--muted); line-height: 1.62; }
.feat kbd {
  font-size: 12px; background: #0a0b0d; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; color: var(--text);
}

/* screenshots */
.screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.screen-wide { grid-column: 1 / -1; }
.screen figcaption { margin-top: 14px; font-size: 13.5px; color: var(--faint); text-align: center; }
.screen .window { transition: transform .35s ease, box-shadow .35s ease; }
.screen .window:hover { transform: translateY(-4px); }

/* security */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  position: relative;
}
.sec::before {
  content: ''; position: absolute; left: 24px; top: 0; width: 34px; height: 2px;
  background: var(--ember); border-radius: 2px;
}
.sec h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 9px; }
.sec p { font-size: 14px; color: var(--muted); line-height: 1.62; }
.sec code { font-size: 12.5px; color: var(--ember-2); }

/* install */
.install-wrap { max-width: 960px; margin: 0 auto; }
.code-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.code-card { background: #0a0b0d; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.code-head {
  padding: 11px 18px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.code-card pre { padding: 18px; overflow-x: auto; }
.code-card code { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.code-card .c { color: var(--faint); }
.install-foot { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted); }
.install-foot code { font-size: 12.5px; color: var(--ember-2); }
.install-foot a { color: var(--steel); }
.install-foot a:hover { text-decoration: underline; }

/* ─── Footer ─── */
footer { padding: 70px 40px; border-top: 1px solid var(--line-2); text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 3px; font-size: 18px; }
.footer-tag { font-family: 'JetBrains Mono', monospace; color: var(--faint); font-size: 13px; margin: 12px 0 22px; }
.footer-links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--ember-2); }
.footer-fine { font-size: 12.5px; color: var(--faint); }

/* ─── Reveal animation ─── */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-inner > *, .hero-shot { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-inner > *:nth-child(1){ animation-delay:.04s } .hero-inner > *:nth-child(2){ animation-delay:.10s }
.hero-inner > *:nth-child(3){ animation-delay:.16s } .hero-inner > *:nth-child(4){ animation-delay:.22s }
.hero-inner > *:nth-child(5){ animation-delay:.28s } .hero-shot{ animation-delay:.34s }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-inner > *, .hero-shot { opacity: 1; }
}

/* ─── Responsive ─── */
@media (max-width: 920px) {
  .feat-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  nav, .hero, footer { padding-left: 22px; padding-right: 22px; }
  .wrap { padding: 0 22px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .feat-grid, .sec-grid, .screens, .code-cards { grid-template-columns: 1fr; }
  .screen-wide { grid-column: auto; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .oneliner { white-space: normal; font-size: 13px; }
}
