:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --line: #1a1a1a;
  --text: #ffffff;
  --muted: #a0a0a0;
  --red: #ff0000;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(16px, 4vw, 44px);
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.slashes { display: inline-flex; gap: 3px; }
.slashes i { display: block; width: 3px; height: 18px; background: var(--red); border-radius: 2px; transform: skewX(-18deg); }
.logo-text { font-size: .82rem; font-weight: 700; letter-spacing: .16em; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { font-size: .875rem; color: #e6e6e6; }
.nav-links a:hover { color: var(--red); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; border: 1px solid transparent;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: .82rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #d90000; transform: translateY(-1px); }
.btn-ghost { border-color: #303030; color: #f2f2f2; background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: #fff; }

/* hero */
.hero {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(56px, 11vh, 108px) 20px clamp(40px, 8vh, 76px);
  isolation: isolate;
}
.eyebrow {
  margin: 0 0 clamp(10px, 2vh, 18px);
  font-size: clamp(46px, 9.2vw, 116px);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--red);
  text-stroke: 1.4px var(--red);
  text-indent: .16em;
}
.hero h1 {
  margin: 0 0 clamp(24px, 4vh, 38px);
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 700;
  max-width: 20ch;
}
.snippet {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: clamp(22px, 3.4vh, 32px);
  max-width: 100%;
}
.snippet code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(.76rem, 1.6vw, .95rem);
  color: #ededed;
  white-space: nowrap; overflow-x: auto;
}
.prompt { color: var(--red); }
.copy {
  border: 1px solid #2a2a2a; background: #111; color: var(--muted);
  height: 28px; padding: 0 10px; border-radius: 6px;
  font: 500 .72rem/1 'Inter', sans-serif; cursor: pointer;
  transition: color .14s ease, border-color .14s ease;
}
.copy:hover { color: #fff; border-color: var(--red); }
.copy.copied { color: var(--red); border-color: var(--red); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* red horizon */
.horizon {
  position: absolute; left: 50%; bottom: -6px;
  width: min(1180px, 150vw); height: 220px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 46% 100% at 50% 100%, rgba(255, 0, 0, .55) 0%, rgba(255, 0, 0, .17) 42%, rgba(255, 0, 0, 0) 72%),
    radial-gradient(ellipse 70% 60% at 50% 118%, rgba(255, 0, 0, .35) 0%, rgba(255, 0, 0, 0) 70%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}
.horizon::after {
  content: "";
  position: absolute; left: 50%; bottom: 54px;
  width: min(1040px, 130vw); height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255,0,0,0) 0%, rgba(255,0,0,.95) 50%, rgba(255,0,0,0) 100%);
  box-shadow: 0 0 24px 3px rgba(255,0,0,.55);
  border-radius: 999px;
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3.4vw, 44px);
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) clamp(20px, 4vw, 32px) clamp(40px, 7vh, 72px);
  border-top: 1px solid var(--line);
}
.feature .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--red); color: var(--red);
  margin-bottom: 16px;
}
.feature h2 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: .875rem; }

/* footer */
.foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px clamp(16px, 4vw, 44px);
  border-top: 1px solid var(--line);
  color: #6b6b6b; font-size: .78rem;
}
.foot nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: #9b9b9b; }
.foot a:hover { color: var(--red); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; gap: 30px; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; }
  .feature .icon { margin: 0; }
  .feature h2 { margin: 0; }
  .feature p { grid-column: 2; }
  .horizon { height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
