/* Velox — dark, modern marketing site */

:root {
  color-scheme: dark;

  --bg: #090a0d;
  --bg-elev: #101218;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f6;
  --muted: #98a2b3;
  --faint: #6b7585;

  --accent: #34d39a;
  --accent-bright: #5ef0bb;
  --accent-ink: #03130c;
  --accent-soft: rgba(52, 211, 154, 0.14);
  --violet: #8b8cf0;
  --amber: #f0a35e;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --w: 1140px;
  --nav-h: 62px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(52, 211, 154, 0.12), transparent 60%),
    radial-gradient(820px 480px at 92% -4%, rgba(139, 140, 240, 0.12), transparent 58%),
    var(--bg);
  background-repeat: no-repeat;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(52, 211, 154, 0.3);
  color: #fff;
}

a {
  color: var(--accent);
  text-decoration: none;
}

p a {
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 154, 0.4);
  text-underline-offset: 0.18em;
}

p a:hover {
  text-decoration-color: var(--accent);
}

code {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.08rem 0.34rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  color: #d6f5e6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 13, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  width: min(var(--w), calc(100% - 40px));
  height: var(--nav-h);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.nav-cta:hover {
  background: var(--surface-2);
}

.nav-stat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}

.nav-stat:hover {
  color: var(--text);
}

.nav-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-stat-sep {
  width: 1px;
  height: 13px;
  background: var(--border-strong);
}

.nav-stat-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 124px) 0 clamp(36px, 6vw, 64px);
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 78%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 26px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
}

.badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  content: "";
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  background: linear-gradient(125deg, #ffffff 38%, var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 660px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .actions {
  justify-content: center;
}

.hero-shot {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 24px));
  margin: clamp(52px, 7vw, 92px) auto 0;
}

.hero-shot::before {
  position: absolute;
  inset: -14% 8% auto;
  height: 72%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(52, 211, 154, 0.28), transparent 70%);
  filter: blur(46px);
  content: "";
  z-index: -1;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.62);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 22px;
  font-weight: 600;
  font-size: 0.98rem;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(52, 211, 154, 0.28);
}

.button.primary:hover {
  box-shadow: 0 14px 42px rgba(52, 211, 154, 0.4);
}

.button.secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--surface-2);
}

/* ---------- metric band ---------- */

.metric-band {
  display: grid;
  width: min(var(--w), calc(100% - 40px));
  margin: clamp(8px, 4vw, 40px) auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--border);
  overflow: hidden;
}

.metric {
  background: var(--bg-elev);
  padding: clamp(22px, 3vw, 32px);
}

.metric-value {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #eafff7, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- sections ---------- */

.section {
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 52px);
  text-align: center;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: 26px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(52, 211, 154, 0.22);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- split + terminal ---------- */

.split {
  display: grid;
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}

.split p {
  color: var(--muted);
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0b0d11;
  box-shadow: var(--shadow);
}

.term-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.term-head i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3f4a;
}

.term-head i:nth-child(1) {
  background: #ff5f57;
}

.term-head i:nth-child(2) {
  background: #febc2e;
}

.term-head i:nth-child(3) {
  background: #28c840;
}

.term-head em {
  margin-left: auto;
  color: var(--faint);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.terminal pre {
  margin: 0;
  overflow-x: auto;
  padding: clamp(18px, 3vw, 26px);
  font-size: clamp(0.82rem, 1.7vw, 0.94rem);
  line-height: 1.75;
}

.terminal code {
  border: 0;
  background: transparent;
  padding: 0;
  color: #c7f0dd;
}

.terminal .tok-cmd {
  color: var(--accent-bright);
}

.terminal .tok-cmt {
  color: var(--faint);
}

/* ---------- screenshots ---------- */

.screens {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(40px, 6vw, 80px);
}

.shot {
  position: relative;
}

.shot::before {
  position: absolute;
  inset: -10% 6% auto;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(139, 140, 240, 0.22), transparent 70%);
  filter: blur(46px);
  content: "";
  z-index: -1;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ---------- comparison ---------- */

#benchmarks {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison {
  width: min(820px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
}

.comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span {
  color: var(--muted);
}

.comparison-row strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.comparison-row:last-child strong {
  color: var(--amber);
}

.note {
  margin: 24px auto 0;
  max-width: 680px;
  color: var(--faint);
  text-align: center;
  font-size: 0.95rem;
}

/* ---------- architecture ---------- */

.architecture-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.architecture-list p {
  position: relative;
  margin: 0;
  padding: 26px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}

.architecture-list p::before {
  position: absolute;
  top: 0;
  left: 24px;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

/* ---------- install CTA ---------- */

.install {
  position: relative;
  display: flex;
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto clamp(60px, 8vw, 96px);
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(52, 211, 154, 0.1), rgba(139, 140, 240, 0.07));
}

.install::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 130% at 100% 0%, rgba(52, 211, 154, 0.18), transparent 60%);
  content: "";
  pointer-events: none;
}

.install > * {
  position: relative;
  z-index: 1;
}

.install > div:first-child {
  max-width: 560px;
}

.install p {
  margin: 0;
  color: var(--muted);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  gap: 18px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.9rem;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

.footer .brand {
  margin-right: auto;
  font-size: 1rem;
}

/* ---------- benchmarks page ---------- */

.page-header {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}

.page-title {
  position: relative;
  z-index: 1;
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
}

.page-title h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(125deg, #ffffff 42%, var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-title p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.benchmark-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  font-size: 0.95rem;
}

.benchmark-table th,
.benchmark-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.benchmark-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.benchmark-table td {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.benchmark-table td:first-child {
  color: var(--text);
}

.benchmark-table tr:last-child td {
  border-bottom: 0;
}

.status-win {
  color: var(--accent);
  font-weight: 600;
}

.status-trail {
  color: var(--amber);
  font-weight: 600;
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .metric-band,
  .feature-grid,
  .architecture-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .install {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 16px;
    font-size: 0.86rem;
  }

  .nav-links a:not(.nav-cta):not(.nav-stat) {
    display: none;
  }

  .metric-band,
  .feature-grid,
  .architecture-list {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .brand {
    margin-right: 0;
  }

  .benchmark-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .feature:hover {
    transform: none;
  }
}
