:root {
  --bg: #0e0e0e;
  --surface: #181818;
  --line: #272727;
  --amber: #feb93e;
  --cyan: #26c1d4;
  --text: #ededed;
  --muted: #9a9a9a;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

code, .mono { font-family: var(--mono); }
code {
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #222;
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}

.amber { color: var(--amber); }
.cyan { color: var(--cyan); }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 12px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-gh {
  color: var(--text);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1a1205; }
.btn-primary:hover { background: #ffc85f; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #3a3a3a; }

/* Hero */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(254, 185, 62, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 10%, rgba(38, 193, 212, 0.05), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { text-align: center; max-width: 1040px; }
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
h1 {
  margin-top: 28px;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-sub { margin-top: 24px; color: var(--cyan); font-size: 16px; }
.hero-body { margin: 16px auto 0; max-width: 680px; color: var(--muted); font-size: 17px; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta { margin-top: 16px; font-size: 12px; color: #6e6e6e; }

/* Window chrome */
.window {
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.window-shot img { display: block; width: 100%; height: auto; }

/* Sections */
.section { padding: 112px 0; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}
h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.lead { margin-top: 16px; color: var(--muted); font-size: 17px; }
.lead a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.small-print { margin-top: 24px; font-size: 14px; }

.grid { display: grid; gap: 16px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card p { color: var(--muted); font-size: 15px; }
.card h3 + p { margin-top: 8px; }
.num { color: var(--cyan); font-size: 13px; margin-bottom: 16px; }
.closing { margin-top: 40px; font-size: 18px; font-weight: 500; }

/* How it works */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; align-items: center; }
.split-center { margin-top: 0; }
.steps { list-style: none; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.key {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 40px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #333;
  border-bottom-width: 3px;
  border-radius: 8px;
  background: #202020;
}

/* Features */
.feature .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1e1e1e;
}
.extras { margin-top: 28px; text-align: center; font-size: 12px; color: #6e6e6e; }

/* Bring your own agent */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-size: 13px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.chips .chip-ghost { color: #6e6e6e; border-style: dashed; background: transparent; }

.terminal { margin-top: 0; }
.terminal pre {
  margin: 0;
  padding: 24px;
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
  /* Long commands such as the .deb URL wrap instead of scrolling; copying still yields one line. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Install */
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-family: var(--mono); }

.center .btn { margin-top: 40px; }

/* Final CTA */
.final {
  padding: 120px 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(254, 185, 62, 0.08), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.final-icon { margin: 0 auto; border-radius: 12px; }
.final h2 { margin-top: 24px; }

/* Footer */
.footer { padding: 32px 0 40px; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 5px; }
.footer-brand .mono { font-size: 12px; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.fineprint { margin-top: 20px; font-size: 12px; color: #6e6e6e; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links a:not(.nav-gh) { display: none; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 80px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .window { margin-top: 48px; }
  .terminal pre { font-size: 12px; padding: 18px; }
  .final { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
