/* ============================================================
   VARIABLES & RESET
============================================================ */
:root {
  --black:        #08111c;
  --surface:      #0d1724;
  --surface-2:    #111c2b;
  --surface-3:    #152233;
  --primary:      #8da6c1;
  --primary-dim:  rgba(141, 166, 193, 0.12);
  --primary-glow: rgba(141, 166, 193, 0.16);
  --secondary:    #7f8fa6;
  --secondary-bright: #aab7c8;
  --secondary-dim: rgba(170, 183, 200, 0.10);
  --green:        #5f9d84;
  --green-dim:    rgba(95, 157, 132, 0.12);
  --amber:        #b99863;
  --red:          #c46b6b;
  --text:         #f5f7fa;
  --text-muted:   #a6b3c3;
  --text-dim:     #6f8094;
  --border:       rgba(166, 179, 195, 0.12);
  --border-strong: rgba(166, 179, 195, 0.22);

  --font-head:    'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', sans-serif;
  --font-ui:      'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);

  --glow-sm:  0 0 0 rgba(0, 0, 0, 0);
  --glow-md:  0 0 0 rgba(0, 0, 0, 0);
  --glow-lg:  0 0 0 rgba(0, 0, 0, 0);
  --shadow:   0 18px 40px rgba(0, 0, 0, 0.28);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   UTILITIES
============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: var(--surface);
}

.section-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--primary);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ============================================================
   REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #0099CC 100%);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.55), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  background: rgba(0, 212, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-dim);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 13px; }

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.logo-q {
  color: var(--primary);
  text-shadow: var(--glow-sm);
}

.logo-rest { color: var(--text); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.btn-nav {
  margin-left: 24px;
  padding: 10px 22px;
  font-size: 11px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
  transform-origin: center;
}

/* Animate to X when open */
.nav-burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--primary);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--primary);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 16px 32px 24px;
  background: rgba(3, 7, 18, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child { border-bottom: none; margin-top: 16px; }
.nav-mobile.open { display: flex; }

/* ============================================================
   HERO
============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 212, 255, 0.06);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 36px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--green), 0 0 12px rgba(16,185,129,0.3); }
  50% { box-shadow: 0 0 12px var(--green), 0 0 24px rgba(16,185,129,0.5); }
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  margin-top: -12px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 900px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(13, 21, 32, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.hero-stat {
  padding: 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--glow-sm);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  animation: scroll-hint-fade 3s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes scroll-hint-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================================
   TICKER
============================================================ */
.ticker-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 44px;
  overflow: hidden;
  position: relative;
}

.ticker-bar::before,
.ticker-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
}

.ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  height: 100%;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
}

.ticker-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.ticker-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.ticker-val.green { color: var(--green); }
.ticker-val.amber { color: var(--amber); }
.ticker-val.primary { color: var(--primary); }

.ticker-sep {
  color: var(--text-dim);
  padding: 0 4px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   PIPELINE / HOW IT WORKS
============================================================ */
.pipeline-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 16px;
}

.pipeline-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pipeline-step:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-sm);
}

.pipeline-step-highlight {
  border-color: rgba(0,212,255,0.3);
  background: linear-gradient(160deg, rgba(0,212,255,0.05) 0%, rgba(124,58,237,0.05) 100%);
  box-shadow: 0 0 40px rgba(0,212,255,0.08);
}

.pipeline-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pipeline-icon-1 { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.25); }
.pipeline-icon-2 { background: var(--primary-dim); color: var(--primary); border: 1px solid var(--border-strong); box-shadow: var(--glow-sm); }
.pipeline-icon-3 { background: var(--secondary-dim); color: var(--secondary-bright); border: 1px solid rgba(124,58,237,0.25); }

.pipeline-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.pipeline-num-accent { color: var(--primary); }

.pipeline-step h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pipeline-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pipeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.06);
}

.tag-accent {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--border-strong);
}

.badge-new {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--primary), var(--secondary-bright));
  color: var(--black);
  padding: 3px 8px;
  border-radius: 3px;
}

.pipeline-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  padding-top: 80px;
  color: var(--text-dim);
  gap: 4px;
}

.arrow-line {
  width: 1px;
  height: 24px;
  background: var(--border);
  display: none;
}

/* ============================================================
   PRODUCTS
============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.product-card-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.15;
  top: -100px;
  right: -100px;
}

.product-card-glow-1 { background: var(--green); }
.product-card-glow-2 { background: var(--primary); }
.product-card-glow-3 { background: var(--secondary-bright); }

.product-card-featured {
  border-color: rgba(0,212,255,0.25);
  background: linear-gradient(160deg, rgba(0,212,255,0.06) 0%, rgba(124,58,237,0.04) 100%);
  box-shadow: 0 0 60px rgba(0,212,255,0.08);
}

.product-card-featured:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 60px rgba(0,212,255,0.15);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--primary), var(--secondary-bright));
  color: var(--black);
  padding: 5px 10px;
  border-radius: 100px;
  font-weight: 700;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-icon-1 { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.product-icon-2 { background: var(--primary-dim); color: var(--primary); border: 1px solid var(--border-strong); box-shadow: var(--glow-sm); }
.product-icon-3 { background: var(--secondary-dim); color: var(--secondary-bright); border: 1px solid rgba(168,85,247,0.2); }

.product-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.product-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 12px;
  line-height: 1.25;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feat-check {
  color: var(--primary);
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
}

.product-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.endpoint-method {
  background: var(--primary-dim);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.endpoint-path { color: var(--text-muted); }

/* ============================================================
   BENCHMARKS
============================================================ */
.benchmarks-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.benchmark-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
}

.benchmark-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.benchmark-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* Speed chart */
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  width: 52px;
  flex-shrink: 0;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-bar {
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  width: 0;
  transition: width 1.2s var(--ease-out);
  position: relative;
  min-width: 40px;
}

.chart-bar.animated { width: var(--w); }

.chart-bar-ours {
  background: linear-gradient(90deg, rgba(0,212,255,0.6), var(--primary));
  box-shadow: 0 0 12px rgba(0,212,255,0.2);
}

.chart-bar-cvxpy {
  background: rgba(255,255,255,0.08);
}

.bar-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.legend-item::before {
  content: '';
  width: 16px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-ours::before { background: var(--primary); }
.legend-cvxpy::before { background: rgba(255,255,255,0.2); }

/* Sharpe chart */
.sharpe-bars {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sharpe-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sharpe-name {
  font-size: 13px;
  color: var(--text-muted);
}

.sharpe-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.sharpe-val-best { color: var(--primary); text-shadow: var(--glow-sm); }
.sharpe-val-low { color: var(--text-dim); }

.sharpe-track {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.sharpe-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.4s var(--ease-out);
}

.sharpe-fill.animated { width: var(--w); }
.sharpe-fill-ours { background: linear-gradient(90deg, var(--primary), #00FFCC); box-shadow: 0 0 8px rgba(0,212,255,0.3); }
.sharpe-fill-cvxpy { background: rgba(0,212,255,0.35); }
.sharpe-fill-comp { background: rgba(168,85,247,0.5); }
.sharpe-fill-base { background: rgba(255,255,255,0.15); }

.benchmark-note {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 20px;
  font-style: italic;
}

/* Metrics row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.metric-box:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.metric-icon { font-size: 24px; margin-bottom: 12px; }

.metric-num {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-shadow: var(--glow-sm);
}

.metric-label {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ============================================================
   TECHNOLOGY
============================================================ */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.tech-block {
  display: flex;
  gap: 18px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.tech-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.tech-block-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  margin-top: 2px;
}

.tech-block h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.tech-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.tech-block p em { color: var(--primary); font-style: normal; font-weight: 500; }

/* Tech diagram */
.tech-diagram {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: sticky;
  top: 100px;
}

.diagram-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 28px;
  text-align: center;
}

.diagram-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.diagram-layer {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.3s;
}

.diagram-layer:hover { border-color: var(--border-strong); }

.layer-1 { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.04); }
.layer-2 { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); box-shadow: 0 0 20px rgba(0,212,255,0.05); }
.layer-3 { border-color: rgba(168,85,247,0.2); background: rgba(168,85,247,0.04); }
.layer-4 { border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.04); }

.layer-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.layer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-chips span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.06);
}

.layer-2 .layer-chips span {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--border-strong);
}

.diagram-connector {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.connector-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.connector-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ============================================================
   CONSTRAINTS GRID
============================================================ */
.constraints-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.constraint-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.constraint-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.constraint-icon { font-size: 28px; margin-bottom: 14px; }

.constraint-card h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.constraint-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   COMPARISON TABLE
============================================================ */
.comparison-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th {
  background: rgba(0,0,0,0.3);
  padding: 16px 20px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.comparison-table th.us-col {
  color: var(--primary);
  background: rgba(0,212,255,0.06);
  text-shadow: var(--glow-sm);
}

.comparison-table th.feature-col { color: var(--text-dim); }

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 13px;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td.us-col {
  background: rgba(0,212,255,0.03);
  border-left: 1px solid rgba(0,212,255,0.15);
  border-right: 1px solid rgba(0,212,255,0.15);
}

.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.comparison-table tr:hover td.us-col { background: rgba(0,212,255,0.06); }

.check { font-size: 16px; display: flex; justify-content: center; }
.green-check { color: var(--green); text-shadow: 0 0 8px rgba(16,185,129,0.5); }
.partial { color: var(--amber); }
.cross { color: var(--text-dim); font-size: 16px; display: flex; justify-content: center; }

.comparison-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================================
   API SECTION
============================================================ */
.api-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.api-window,
.api-response {
  background: #0D1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.window-bar {
  background: rgba(0,0,0,0.4);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-amber { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.window-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 4px;
}

.code-block {
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #E6EDF3;
}

.code-block-response { background: rgba(16,185,129,0.02); }

.code-import { color: #FF7B72; }
.code-comment { color: #8B949E; font-style: italic; }
.code-fn { color: #79C0FF; }
.code-str { color: #A5D6FF; }
.code-num { color: #79C0FF; }
.code-key { color: #FF7B72; }
.code-interp { color: var(--primary); }

/* ============================================================
   USE CASES
============================================================ */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.usecase-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.usecase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary-bright));
  opacity: 0;
  transition: opacity 0.3s;
}

.usecase-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.usecase-card:hover::before { opacity: 1; }

.usecase-num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 400;
  color: rgba(0,212,255,0.08);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.usecase-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.usecase-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.usecase-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.usecase-highlight span {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--primary);
  background: var(--primary-dim);
}

/* ============================================================
   CTA SECTION
============================================================ */
.section-cta {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

#ctaCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

.cta-container {
  position: relative;
  z-index: 1;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  margin-top: 20px;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.btn-submit {
  align-self: center;
  min-width: 260px;
}

.cta-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.footer-logo { font-size: 22px; margin-bottom: 14px; display: inline-block; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--glow-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================================
   INSTITUTIONAL REFRESH OVERRIDES
============================================================ */
body {
  background:
    radial-gradient(circle at top, rgba(141, 166, 193, 0.06), transparent 28%),
    linear-gradient(180deg, #08111c 0%, #0b1420 100%);
  letter-spacing: -0.01em;
}

.gradient-text {
  background: none;
  -webkit-text-fill-color: inherit;
  color: var(--primary);
}

.section {
  padding: 136px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
}

.section-tag {
  color: var(--text-muted);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

.section-tag::before {
  width: 18px;
  background: var(--text-dim);
}

.section-title {
  font-size: clamp(2.1rem, 3.7vw, 4rem);
  margin-bottom: 20px;
}

.section-sub {
  max-width: 760px;
  margin-bottom: 56px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.btn-primary,
.btn-ghost {
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.btn-primary {
  background: var(--text);
  color: #08111c;
}

.btn-primary::before {
  display: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

#navbar.scrolled {
  background: rgba(8, 17, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo,
.footer-logo,
.hero-brand {
  letter-spacing: 0.04em;
}

.brand-wordmark,
.hero-brand {
  font-family: var(--font-ui);
  font-weight: 600;
}

.logo-q {
  color: var(--text);
  text-shadow: none;
}

#hero {
  min-height: auto;
}

#particleCanvas {
  opacity: 0.35;
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(166, 179, 195, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 179, 195, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
}

.hero-content {
  padding-top: 112px;
  padding-bottom: 88px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.hero-brand {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-badge {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  backdrop-filter: none;
  padding: 8px 14px;
  margin-bottom: 18px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  box-shadow: none;
  animation: none;
}

.hero-headline {
  max-width: 920px;
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 1.08rem;
}

.hero-tagline {
  display: block;
  max-width: 720px;
  margin-bottom: 36px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-ctas {
  margin-bottom: 42px;
}

.hero-preview {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 18, 29, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-preview-header,
.hero-preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
}

.hero-preview-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.hero-preview-footer {
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-preview-label,
.hero-preview-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.hero-preview-window .code-block {
  padding: 22px 20px;
}

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

.trust-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.trust-card-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-scroll-hint {
  color: var(--text-dim);
}

.ticker-bar {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: var(--border);
  border-bottom-color: var(--border);
}

.ticker-item {
  padding: 0 20px;
}

.ticker-label {
  font-family: var(--font-ui);
  font-size: 10px;
}

.ticker-val.green,
.ticker-val.amber,
.ticker-val.primary {
  color: var(--text-muted);
}

.pipeline-step,
.product-card,
.benchmark-card,
.metric-box,
.tech-diagram,
.constraint-card,
.comparison-table-wrap,
.usecase-card,
.cta-inner,
.api-window,
.api-response {
  box-shadow: none;
}

.pipeline-step,
.product-card,
.benchmark-card,
.metric-box,
.tech-diagram,
.constraint-card,
.usecase-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border);
}

.pipeline-step:hover,
.product-card:hover,
.metric-box:hover,
.constraint-card:hover,
.usecase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.pipeline-step-highlight,
.product-card-featured {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.18);
}

.product-card-glow,
.featured-badge {
  display: none;
}

.product-card h3,
.pipeline-step h3,
.benchmark-title,
.tech-block h4,
.constraint-card h4,
.usecase-card h3,
.cta-headline {
  font-family: var(--font-ui);
  font-weight: 600;
}

.product-icon-1,
.product-icon-2,
.product-icon-3,
.pipeline-icon-1,
.pipeline-icon-2,
.pipeline-icon-3,
.tech-block-icon {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.tag,
.tag-accent,
.layer-chips span,
.usecase-highlight span,
.endpoint-method {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border);
}

.badge-new {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.endpoint-path,
.product-label,
.diagram-title,
.layer-label,
.metric-label,
.chart-label,
.legend-item,
.window-title,
.footer-col-title {
  color: var(--text-dim);
}

.benchmark-card {
  padding: 32px 28px;
}

.benchmark-note {
  font-style: normal;
}

.chart-bar-ours,
.sharpe-fill-ours {
  background: var(--primary);
  box-shadow: none;
}

.chart-bar-cvxpy,
.sharpe-fill-cvxpy,
.sharpe-fill-comp,
.sharpe-fill-base {
  background: rgba(255, 255, 255, 0.16);
}

.benchmark-list {
  display: grid;
  gap: 14px;
}

.benchmark-list-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.benchmark-list-row:last-child {
  border-bottom: none;
}

.benchmark-list-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.benchmark-list-value {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tech-block {
  gap: 16px;
}

.tech-block p em {
  color: var(--text);
  font-weight: 600;
}

.diagram-layer:hover,
.comparison-table tr:hover td,
.comparison-table tr:hover td.us-col {
  background: transparent;
}

.layer-1,
.layer-2,
.layer-3,
.layer-4 {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table th.us-col,
.comparison-table td.us-col {
  background: rgba(141, 166, 193, 0.06);
  border-left-color: rgba(141, 166, 193, 0.14);
  border-right-color: rgba(141, 166, 193, 0.14);
  text-shadow: none;
}

.green-check {
  text-shadow: none;
}

.api-window,
.api-response {
  background: rgba(9, 17, 27, 0.92);
  border-color: var(--border);
}

.window-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: var(--border);
}

.dot-red,
.dot-amber,
.dot-green {
  opacity: 0.65;
}

.code-block {
  font-size: 12.5px;
  line-height: 1.8;
}

.code-block-response {
  background: transparent;
}

#ctaCanvas {
  opacity: 0.18;
}

.cta-inner {
  max-width: 840px;
}

.cta-sub {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(141, 166, 193, 0.12);
}

.footer {
  background: rgba(255, 255, 255, 0.015);
}

.social-link:hover,
.footer-col a:hover,
.nav-links a:hover {
  box-shadow: none;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .pipeline-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pipeline-arrow { display: none; }
  .constraints-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-split { grid-template-columns: 1fr; gap: 48px; }
  .tech-diagram { position: static; }
  .hero-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
  .benchmarks-layout { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .api-layout { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .hero-trust-grid { grid-template-columns: 1fr 1fr; }
  .benchmark-list-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { gap: 0; }
  .nav-logo { margin-right: auto; }
  
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .hero-content { padding: 60px 20px; }
  
  .section-title { font-size: 1.8rem; }
  .hero-headline { font-size: clamp(2rem, 9vw, 3.5rem); }
  .hero-trust-grid { grid-template-columns: 1fr; }
  .hero-preview-header,
  .hero-preview-footer { padding: 14px 16px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  
  .constraints-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .constraints-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-layout { gap: 28px; }
}
