:root {
  --bg: #05060a;
  --panel: #0b0d14cc;
  --panel2: #111520cc;
  --text: #f7f8ff;
  --muted: #a8b0c3;
  --faint: #6e768c;
  --line: #ffffff14;
  --cyan: #39d9ff;
  --blue: #7c5cff;
  --green: #43f7b3;
  --pink: #ff5cc8;
  --amber: #ffd166;
  --radius: 24px;
  --font: 'Geist', Inter, system-ui, sans-serif;
  --mono: 'Geist Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #18204d 0, #05060a 32%), #05060a;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
code, pre { font-family: var(--mono); }

/* ── Background effects ── */
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .07; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed; width: 520px; height: 520px; border-radius: 999px;
  filter: blur(70px); opacity: .32; pointer-events: none; z-index: -2;
  animation: float 10s ease-in-out infinite;
}
.aurora-a { top: 60px; left: -120px; background: var(--blue); }
.aurora-b { right: -160px; top: 260px; background: var(--cyan); animation-delay: -3s; }

@keyframes float { 50% { transform: translate(40px, 40px) scale(1.08); } }

/* ── Navigation ── */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #070912b8; backdrop-filter: blur(22px); box-shadow: 0 18px 70px #0008;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 650;
}
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #03040a; font-family: var(--mono); font-size: 13px;
  box-shadow: 0 0 34px #39d9ff55;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted); padding: 9px 14px;
  border-radius: 999px; font-size: 14px; transition: .25s;
}
.nav-links a:hover, .nav-links .github { color: var(--text); background: #ffffff0f; }
.menu { display: none; background: #fff1; color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 8px 11px; }

/* ── Layout ── */
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* ── Hero ── */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 120px 0 60px; min-height: 90vh; justify-content: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 8px 14px; border: 1px solid #39d9ff33; background: #39d9ff12;
  border-radius: 999px; color: #d8f8ff; font-size: 14px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 #43f7b399; animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px #43f7b300; } }

/* ── Heading improvements ── */
h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 22px;
  font-weight: 720;
  max-width: 880px;
}
h1 .gradient {
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}

/* ── Install hero area ── */
.hero-install {
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.install-line {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: #ffffff08; font-size: 14px;
}
.install-line code { color: var(--cyan); margin-right: 8px; }
.install-prompt { color: var(--green); }
.hero-install .btn.small { padding: 10px 20px; font-size: 14px; }

/* ── Terminal card ── */
.terminal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #111522dd, #090b12dd);
  box-shadow: 0 30px 100px #0009, inset 0 1px 0 #fff1;
  text-align: left;
  width: 100%;
}
.hero-terminal {
  max-width: 780px;
  width: 100%;
  margin: 24px auto 0;
}
.terminal-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
.terminal-top span {
  width: 11px; height: 11px; border-radius: 50%; background: #ff5f57;
}
.terminal-top span:nth-child(2) { background: #ffbd2e; }
.terminal-top span:nth-child(3) { background: #28c840; }
.terminal-top strong { margin-left: 8px; font-weight: 500; color: var(--text); }
.terminal-card pre {
  margin: 0; padding: 22px 24px; overflow: auto;
  color: #d8def0; font-size: 14px; line-height: 1.7;
}

@media (min-width: 1200px) {
  .terminal-card pre { font-size: 15px; }
}

.prompt, .ok, .score { color: var(--green); }
.string { color: var(--amber); }
.muted { color: var(--faint); }

/* ── Sections ── */
section { padding: 80px 0; }
.split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: center;
}
.label {
  text-transform: uppercase; letter-spacing: .18em; color: var(--cyan);
  font-size: 12px; font-weight: 700; margin: 0 0 12px;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 0 0 12px;
}
.section-sub {
  max-width: 620px; margin-top: 0; margin-bottom: 24px;
  color: var(--muted); font-size: 17px; line-height: 1.7;
}

/* ── How it works flow ── */
.flow { display: grid; gap: 20px; margin-top: 32px; }
.flow-step { display: flex; gap: 16px; align-items: flex-start; }
.flow-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #03040a;
}
.flow-icon svg { width: 26px; height: 26px; }
.flow-body h3 { margin: 0 0 8px; font-size: 20px; }
.flow-body p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.flow-connector {
  display: flex; justify-content: center; align-items: center;
  color: var(--faint); font-size: 28px; padding: 4px 0;
}

/* ── Install steps ── */
.install-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid #ffffff08;
}
.install-step:last-child { padding-bottom: 0; border-bottom: none; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #03040a;
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.install-step.optional .step-num { background: linear-gradient(135deg, var(--muted), var(--faint)); }
.install-step h3 { margin: 0 0 6px; font-size: 18px; }
.install-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Use cases ── */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.uc-card {
  background: linear-gradient(180deg, #ffffff0e, #ffffff06);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: .3s;
}
.uc-card:hover { border-color: #39d9ff55; transform: translateY(-4px); }
.uc-task {
  background: #05070d; color: var(--cyan); padding: 10px 14px;
  border-radius: 10px; font-family: var(--mono); font-size: 14px;
  margin-bottom: 12px; border: 1px solid var(--line); line-height: 1.5;
}
.uc-meta { display: flex; gap: 10px; margin-bottom: 12px; }
.uc-tag {
  background: #39d9ff22; color: var(--cyan); padding: 3px 10px;
  border-radius: 999px; font-size: 11px; border: 1px solid #39d9ff33;
}
.uc-files { color: var(--muted); font-size: 12px; }
.uc-results { list-style: none; padding: 0; margin: 0; }
.uc-results li {
  color: var(--muted); font-size: 14px; padding: 6px 0;
  border-bottom: 1px solid #ffffff08;
  display: flex; justify-content: space-between; align-items: center;
}
.uc-results li:last-child { border-bottom: none; }
.uc-rank { color: var(--green); font-weight: 600; margin-right: 8px; }
.uc-signal { color: var(--faint); font-size: 12px; flex-shrink: 0; }

/* ── Accuracy ── */
.accuracy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.acc-card {
  background: linear-gradient(180deg, #ffffff0e, #ffffff06);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  text-align: center;
}
.acc-card.highlight { outline: 1px solid #39d9ff33; outline-offset: 2px; }
.acc-mode { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.acc-score {
  font-size: 44px; font-weight: 720; color: var(--cyan); line-height: 1.05;
}
.acc-label { color: var(--muted); font-size: 14px; margin-top: 4px; }
.acc-card p {
  font-size: 13px; color: var(--faint); line-height: 1.6; margin: 12px 0 0;
}

.accuracy-method { margin-top: 36px; }
.accuracy-method h4 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.accuracy-method p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.method-note {
  background: #05070d; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--muted); font-size: 14px;
}

/* ── Providers ── */
.provider-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.pc {
  background: linear-gradient(180deg, #ffffff0e, #ffffff06);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: .3s; position: relative;
}
.pc:hover { border-color: #39d9ff55; transform: translateY(-4px); }
.pc.featured { outline: 2px solid var(--cyan); outline-offset: 2px; }
.pc-ribbon {
  position: absolute; top: -1px; right: 12px; background: var(--cyan);
  color: #03040a; font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 0 0 7px 7px;
}
.pc h3 { margin: 0 0 4px; font-size: 20px; }
.pc-sub { font-size: 12px; color: var(--faint); margin: 0 0 14px; }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li {
  color: var(--muted); font-size: 13px; padding: 5px 0;
  border-bottom: 1px solid #ffffff08;
}
.pc li:last-child { border-bottom: none; }
.pc-cta {
  margin-top: 12px; padding: 8px 12px; background: #05070d;
  border-radius: 8px; font-family: var(--mono); font-size: 12px;
  color: var(--cyan); border: 1px solid var(--line); overflow: auto;
}

/* ── Commands ── */
.cmd-grid { display: grid; gap: 28px; margin-top: 28px; }
.cmd-section h4 {
  margin: 0 0 12px; font-size: 13px; color: var(--cyan);
  text-transform: uppercase; letter-spacing: .12em;
}
.cmd-row {
  display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ffffff08;
  align-items: center;
}
.cmd-row code {
  color: var(--cyan); font-family: var(--mono); font-size: 13px; white-space: nowrap;
}
.cmd-row span { flex: 1; color: var(--muted); font-size: 14px; }

/* ── Footer ── */
footer {
  width: min(1120px, calc(100% - 32px)); margin: 0 auto;
  padding: 40px 0 70px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 14px;
}
.footer-left strong { display: block; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.footer-left span { font-size: 13px; }
.footer-right a { color: var(--cyan); text-decoration: none; margin-left: 16px; font-size: 14px; }
.footer-right a:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 650; transition: .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 50px #39d9ff55; }
.primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #03040a; box-shadow: 0 18px 50px #39d9ff33;
}
.ghost { border: 1px solid var(--line); background: #ffffff0d; color: var(--text); }

/* ── Copy button ── */
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #ffffff0d; color: var(--faint); font-size: 12px;
  font-family: var(--font); cursor: pointer; transition: .2s; line-height: 1;
}
.copy-btn:hover { background: #ffffff18; color: var(--text); border-color: #39d9ff55; }
.copy-btn.copied {
  background: var(--green); color: #03040a; border-color: var(--green); pointer-events: none;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Version badge ── */
.version-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px;
  padding: 3px 10px 3px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #39d9ff22, #7c5cff22);
  border: 1px solid #39d9ff44; color: var(--cyan); font-family: var(--mono);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 0 18px #39d9ff22; vertical-align: middle;
}
.version-badge::before {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .menu { display: block; }
  .nav-links {
    display: none; position: absolute; top: 62px; right: 0; left: 0;
    flex-direction: column; padding: 12px; border: 1px solid var(--line);
    border-radius: 24px; background: #070912f2;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 40px; min-height: auto; }
  h1 { font-size: clamp(36px, 10vw, 52px); }
  h2 { font-size: clamp(24px, 6vw, 32px); }
  footer { flex-direction: column; text-align: center; gap: 12px; }
  .footer-right a { margin: 0 8px; }
  .use-cases { grid-template-columns: 1fr; }
  .provider-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
