: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; }
section[id], #demo { scroll-margin-top: 84px; }
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;
}
body.modal-open { overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: #0ea5e9;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.skip-link:focus { top: 12px; text-decoration: none; }

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.86em;
  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.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 1.08rem;
  white-space: nowrap; flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  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: 18px; font-size: 0.89rem; align-items: center; }
.nav-links a { color: var(--muted); transition: color 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.is-current { color: #fff; text-decoration: none; }
.nav-links a.is-current { color: var(--accent); font-weight: 600; }
.nav-actions { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.18s ease, opacity 0.18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.98);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 0 18px;
}
.mobile-nav-inner a:not(.btn) {
  color: var(--text); font-size: 0.94rem; font-weight: 500;
  padding: 9px 8px; border-radius: 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.mobile-nav-inner a:not(.btn):hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.mobile-nav-inner .btn { margin-top: 10px; }

/* 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.94rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.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: 56px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 34px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; 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%; flex-shrink: 0; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
h1 { font-size: clamp(2.02rem, 3.7vw, 3.1rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.accent { background: linear-gradient(90deg, #38bdf8, #4ade80); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #cbd5e1; font-size: 1.02rem; margin-bottom: 22px; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.lock-bar { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.lock-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(17, 25, 45, 0.85); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 8px;
}

.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;
}

/* VIDEO CHAPTERS */
.video-chapters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 10px;
}
.chapters-label {
  font-size: 0.74rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em; margin-right: 2px;
}
.chapter-btn {
  background: var(--bg-alt); color: #cbd5e1; border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px; font-size: 0.74rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
}
.chapter-btn:hover { border-color: rgba(56, 189, 248, 0.55); color: #fff; }
.chapter-btn.is-active {
  background: rgba(56, 189, 248, 0.18); color: #7dd3fc; border-color: var(--accent);
}

.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.08rem; color: #fff; }
.kpi-lbl { font-size: 0.71rem; color: var(--muted); }

/* COMPATIBILITY & ECOSYSTEM TRUST BAR */
.compat-strip {
  border-top: 1px solid var(--border);
  background: rgba(13, 19, 34, 0.72);
  padding: 14px 0;
}
.compat-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.compat-label {
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); white-space: nowrap;
}
.compat-items {
  display: flex; flex-wrap: wrap; gap: 8px; flex: 1;
}
.compat-items span {
  font-size: 0.78rem; font-weight: 600; color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

/* SECTIONS */
.section { padding: 66px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-investor {
  background: radial-gradient(900px 420px at 15% 0%, rgba(34, 197, 94, 0.08), transparent 65%),
              radial-gradient(900px 420px at 90% 10%, rgba(56, 189, 248, 0.09), transparent 65%),
              var(--bg);
}
.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); }

/* COMPETITIVE COMPARISON TABLE */
.compare-box {
  margin-top: 28px;
  background: var(--surface); border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius); padding: 22px 24px;
  min-width: 0; overflow: hidden;
}
.compare-head { margin-bottom: 14px; }
.compare-head h3 { font-size: 1.12rem; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.87rem; }
.compare-table th, .compare-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th {
  color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}
.compare-table th.col-alsi { color: #4ade80; background: rgba(34, 197, 94, 0.08); }
.compare-table td.col-legacy { color: var(--muted); }
.compare-table td.col-alsi { color: #e2e8f0; background: rgba(34, 197, 94, 0.05); }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* BENCHMARK TABLE */
.bench-controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.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-wrap {
  position: relative;
  width: min(100%, 360px);
  min-width: 0;
  flex: 1 1 240px;
  max-width: 380px;
}
.search-input {
  width: 100%;
  min-width: 0;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 9px 36px 9px 14px; border-radius: 9px; font-size: 0.88rem;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.search-clear {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 6px;
  border: none; background: rgba(148, 163, 184, 0.16); color: var(--text);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: inline-grid; place-items: center;
}
.search-clear[hidden] { display: none; }
.search-clear:hover { background: rgba(148, 163, 184, 0.3); }
.bench-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.table-scroll-hint {
  display: none;
  font-size: 0.76rem; color: #7dd3fc; font-weight: 600;
  margin-bottom: 8px;
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; 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); white-space: nowrap; }
.bench-table td:first-child { min-width: 195px; }
.bench-table td:nth-child(3) { white-space: nowrap; }
.bench-table tbody tr { cursor: pointer; transition: background 0.12s; }
.bench-table tbody tr:hover { background: var(--surface-hi); }
.bench-table tbody tr.is-active {
  background: rgba(56, 189, 248, 0.14);
  box-shadow: inset 3px 0 0 var(--accent);
}
.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;
}
.bench-cert-bar {
  margin-top: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(17, 25, 45, 0.72); border: 1px solid var(--border);
  font-size: 0.86rem; color: var(--muted);
}
.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); }

/* DEVELOPER / CTO DAY-1 WORKFLOW */
.dev-workflow {
  margin-top: 26px;
  background: var(--surface); border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius); overflow: hidden;
}
.dev-wf-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 20px 22px 14px;
}
.dev-wf-head h3 { font-size: 1.08rem; }
.dev-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 22px; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.dev-tab {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px; font-size: 0.81rem; font-weight: 600; cursor: pointer;
}
.dev-tab.active { background: rgba(56, 189, 248, 0.18); color: #fff; border-color: var(--accent); }
.dev-pre {
  margin: 0; padding: 18px 22px; overflow-x: auto;
  background: #060a12; color: #a5f3fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.81rem; line-height: 1.6;
}
.dev-pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }

/* INVESTOR SECTION */
.investor-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.inv-kpi {
  background: var(--surface); border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius); padding: 20px;
}
.inv-kpi-val {
  font-size: 1.85rem; font-weight: 800; line-height: 1.15; margin-bottom: 4px;
  background: linear-gradient(90deg, #38bdf8, #4ade80); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.inv-kpi-title { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.inv-kpi p { font-size: 0.83rem; color: var(--muted); }

.investor-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 24px; align-items: stretch;
}
.investor-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
}
.investor-card h3 { font-size: 1.06rem; margin-bottom: 14px; }
.clean-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; color: #cbd5e1; }
.clean-list li { padding-left: 16px; position: relative; }
.clean-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.ledger-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; margin-bottom: 10px; }
.ledger-table th, .ledger-table td { padding: 7px 6px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); text-align: left; }
.ledger-table th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ledger-table th:last-child, .ledger-table td:last-child { text-align: right; white-space: nowrap; }
.ledger-table td:nth-child(2) { color: var(--muted); white-space: nowrap; }
.ledger-table tfoot td { border-bottom: none; border-top: 1px solid rgba(56, 189, 248, 0.35); padding-top: 9px; color: #4ade80; }
.ledger-footnote { font-size: 0.76rem; color: var(--muted); margin-top: auto; }

.roadmap-list { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 0.86rem; color: #cbd5e1; }
.rm-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; margin-right: 6px;
}
.rm-done { background: rgba(34, 197, 94, 0.18); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.rm-next { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.rm-plan { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

.investor-cta {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius); padding: 24px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.investor-cta h3 { font-size: 1.15rem; margin-bottom: 6px; }
.investor-cta p { font-size: 0.9rem; color: #cbd5e1; max-width: 62ch; }
.investor-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 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; }

/* ROI ESTIMATOR */
.roi-box {
  margin-top: 28px;
  background: var(--surface); border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius); padding: 24px 26px;
}
.roi-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.roi-head h3 { font-size: 1.12rem; }
.roi-grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: center;
}
.roi-controls { display: flex; flex-direction: column; gap: 14px; }
.roi-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; color: #cbd5e1; font-weight: 600; }
.roi-controls input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.roi-controls select {
  width: 100%; background: var(--bg-alt); color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 12px; font: inherit; font-weight: 400;
}
.roi-outputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.roi-stat {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
}
.roi-stat small { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.roi-stat strong { font-size: 1.15rem; color: #4ade80; }
.roi-note { font-size: 0.77rem; color: var(--muted); margin-top: 14px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  transition: border-color 0.16s ease;
}
.faq-item[open] { border-color: rgba(56, 189, 248, 0.42); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  font-weight: 700; font-size: 0.98rem; color: #f1f5f9;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--accent); flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 20px 18px; color: #cbd5e1; font-size: 0.92rem; line-height: 1.65;
  border-top: 1px solid rgba(148, 163, 184, 0.08); padding-top: 14px;
}

/* 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; transition: border-color 0.25s, box-shadow 0.25s; }
.demo-box.highlight { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25); }
.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, .demo-form select {
  width: 100%; min-width: 0;
  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, .demo-form select:focus { outline: none; border-color: var(--accent); }
.demo-form button:disabled { opacity: 0.65; cursor: wait; transform: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { font-size: 0.86rem; color: #4ade80; min-height: 20px; line-height: 1.5; }
.form-feedback.is-error { color: #fbbf24; }
.form-feedback a { color: #7dd3fc; text-decoration: underline; }

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

/* LIGHTBOX — RESPONSIVE ZERO-OVERFLOW */
.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(2, 6, 14, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 56px 20px 24px;
  overflow: hidden;
}
.lightbox[hidden] { display: none; }
.lightbox-stage {
  position: relative;
  width: 100%; max-width: 1280px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 0;
}
.lightbox-stage img {
  display: block;
  max-width: calc(100% - 104px);
  max-height: 74vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 10px; border: 1px solid var(--border);
}
.lightbox-close {
  position: fixed; top: 14px; right: 16px; z-index: 130;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 1px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.lightbox-nav {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 1px solid var(--border); font-size: 1.6rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(56, 189, 248, 0.28); }
.lightbox-footer {
  width: 100%; max-width: 820px; text-align: center; padding: 0 8px;
}
.lightbox-counter {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  color: var(--accent); margin-bottom: 4px; letter-spacing: 0.06em;
}
.lightbox-footer p {
  color: #cbd5e1; font-size: 0.9rem; line-height: 1.45;
  max-width: 100%; overflow-wrap: anywhere;
}

/* SHA-256 CERTIFICATE INSPECTOR MODAL */
.cert-modal {
  position: fixed; inset: 0; z-index: 125;
  background: rgba(2, 6, 14, 0.88); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.cert-modal[hidden] { display: none; }
.cert-dialog {
  width: min(100%, 820px); max-height: 88vh;
  background: var(--surface); border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: var(--radius); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; overflow: hidden;
}
.cert-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
}
.cert-header h3 { font-size: 1.08rem; }
.cert-close {
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--border);
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.35rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.cert-close:hover { background: rgba(56, 189, 248, 0.28); }
.cert-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px;
  border-bottom: 1px solid var(--border); background: var(--bg-alt);
}
.cert-tab {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 11px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.cert-tab.active { background: rgba(56, 189, 248, 0.18); color: #fff; border-color: var(--accent); }
.cert-pre {
  flex: 1; min-height: 220px; overflow: auto; margin: 0; padding: 16px 20px;
  background: #060a12; color: #a5f3fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.79rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.cert-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg-alt);
}
.cert-meta { font-size: 0.78rem; color: var(--muted); }
.cert-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* BACK TO TOP */
.back-to-top {
  position: fixed; right: 18px; bottom: 20px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(17, 25, 45, 0.92); color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  font-size: 1.15rem; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; transition: transform 0.18s ease, background 0.18s ease;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: rgba(14, 165, 233, 0.35); transform: translateY(-2px); }

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 960px) {
  .hero-grid, .cards-4, .gallery-grid-3, .arch-grid, .pricing-grid, .about-grid, .investor-kpis, .investor-grid, .roi-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .roi-outputs { grid-template-columns: 1fr; }
  .search-wrap { max-width: 100%; }
}

@media (max-width: 768px) {
  .table-scroll-hint { display: block; }
}

@media (max-width: 640px) {
  .compat-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .compare-box { padding: 16px; }
  .footer { padding-bottom: 84px; }
  .footer-inner { padding-right: 0; }
  .back-to-top { width: 38px; height: 38px; right: 12px; bottom: 14px; font-size: 1.05rem; }
  .lightbox { padding: 56px 12px 18px; }
  .lightbox-stage { flex-wrap: wrap; gap: 10px; }
  .lightbox-stage img { max-width: 100%; max-height: 62vh; order: 1; }
  .lightbox-prev { order: 2; }
  .lightbox-next { order: 3; }
  .lightbox-footer p { font-size: 0.84rem; }
  .investor-cta-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 24px, var(--maxw)); }
  .brand { font-size: 0.98rem; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 0.82rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 7px 11px; font-size: 0.8rem; }
  .nav-toggle { width: 36px; height: 36px; padding: 7px; }
  .demo-box, .roi-box, .investor-cta { padding: 18px; }
  .hero-actions .btn { width: 100%; }
}
