:root {
  --bg: #070b14;
  --bg-alt: #0d1322;
  --surface: #11192d;
  --surface-hi: #17233f;
  --border: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Oxygen, Ubuntu, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(56, 189, 248, 0.12), transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  padding: 2px 6px;
  border-radius: 6px;
}

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

/* TOPBAR */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.08rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
  background: linear-gradient(135deg, #0284c7, #22c55e); color: #04101f;
}
.nav-links { display: flex; gap: 20px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: #fff; text-decoration: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148, 163, 184, 0.35); }

/* HERO */
.hero { padding: 62px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 36px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: #7dd3fc; background: rgba(14, 165, 233, 0.12); border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
h1 { font-size: clamp(2.05rem, 3.8vw, 3.15rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
.accent { background: linear-gradient(90deg, #38bdf8, #4ade80); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #cbd5e1; font-size: 1.04rem; margin-bottom: 24px; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.lock-bar { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--muted); }

.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-card-header {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; padding: 0 4px;
}
.badge-green {
  background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 9px; border-radius: 999px; font-weight: 600; font-size: 0.74rem;
}
.hero-video {
  width: 100%; border-radius: 10px; border: 1px solid var(--border);
  display: block; background: #000; aspect-ratio: 16 / 9;
}
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.kpi { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; }
.kpi-val { font-weight: 800; font-size: 1.12rem; color: #fff; }
.kpi-lbl { font-size: 0.71rem; color: var(--muted); }

/* SECTIONS */
.section { padding: 66px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 74ch; margin-bottom: 34px; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--muted); }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color 0.18s;
}
.card:hover { border-color: rgba(56, 189, 248, 0.45); }
.card-tag { font-size: 0.78rem; font-weight: 700; color: #4ade80; margin-bottom: 8px; }
.card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--muted); }

/* BENCHMARK TABLE */
.bench-controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tab-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.tab.active { background: rgba(56, 189, 248, 0.16); color: #fff; border-color: var(--accent); }
.search-input {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 9px; min-width: 280px; font-size: 0.88rem;
}
.search-input:focus { outline: none; border-color: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.bench-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.bench-table th, .bench-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.bench-table th { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(255,255,255,0.02); }
.bench-table tbody tr { cursor: pointer; transition: background 0.12s; }
.bench-table tbody tr:hover { background: var(--surface-hi); }
.bench-table tbody tr:last-child td { border-bottom: none; }

.status-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 0.74rem; white-space: nowrap; }
.status-pass { background: rgba(34, 197, 94, 0.18); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.status-prog { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.35); }
.status-warn { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.mini-bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.mini-bar { width: 12px; border-radius: 2px 2px 0 0; background: var(--accent); }
.mini-bar.ok { background: var(--accent-2); }
.mini-bar.mid { background: var(--warn); }
.mini-bar.low { background: var(--danger); }

.bench-detail {
  margin-top: 14px; background: var(--surface); border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: var(--radius); padding: 20px;
}
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.detail-cell { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.detail-cell small { display: block; color: var(--muted); font-size: 0.74rem; }
.detail-cell strong { font-size: 1.05rem; }

/* GALLERY */
.gallery-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-card img { width: 100%; height: 230px; object-fit: cover; display: block; cursor: zoom-in; border-bottom: 1px solid var(--border); }
.gallery-card figcaption { padding: 16px 18px; }
.gallery-card figcaption strong { display: block; margin-bottom: 4px; font-size: 0.98rem; }
.gallery-card figcaption span { font-size: 0.86rem; color: var(--muted); }

/* ARCHITECTURE */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.arch-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.arch-step h3 { margin-bottom: 8px; }
.arch-step p { font-size: 0.92rem; color: var(--muted); }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; position: relative;
}
.price-featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 20px 50px rgba(0, 0, 0, 0.35); }
.badge-pop {
  position: absolute; top: -12px; right: 18px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e); color: #04101f;
  font-weight: 800; font-size: 0.74rem; padding: 3px 10px; border-radius: 999px;
}
.price-tier { font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.price-val { font-size: 2.1rem; font-weight: 800; margin-bottom: 10px; }
.price-val span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card li { font-size: 0.9rem; padding: 6px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.08); }
.price-card li::before { content: "✓ "; color: var(--accent-2); font-weight: 700; }

/* ABOUT + FORM */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.about-grid p { color: #cbd5e1; margin-bottom: 16px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.demo-sub { font-size: 0.9rem; color: var(--muted); margin: 6px 0 18px; }
.demo-form { display: flex; flex-direction: column; gap: 14px; }
.demo-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; color: #cbd5e1; }
.demo-form input, .demo-form textarea {
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px; font: inherit; font-weight: 400;
}
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: var(--accent); }
.form-feedback { font-size: 0.86rem; color: #4ade80; min-height: 20px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.85rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer-links { display: flex; gap: 18px; align-items: center; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(2, 6, 14, 0.92);
  display: grid; place-items: center; padding: 28px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1240px, 95vw); max-height: 80vh; border-radius: 10px; border: 1px solid var(--border); }
.lightbox p { color: #cbd5e1; margin-top: 12px; text-align: center; max-width: 80ch; font-size: 0.92rem; }
.lightbox-close {
  position: fixed; top: 18px; right: 24px; background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid var(--border); border-radius: 50%; width: 42px; height: 42px; font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid, .cards-4, .gallery-grid-3, .arch-grid, .pricing-grid, .about-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
