/* OmniVision AI — public website. One stylesheet for every page.
   Dark, cinematic, brand gradient blue → cyan. Fonts are self-hosted (no
   third-party requests), motion respects prefers-reduced-motion, and every
   layout collapses to one column on phones. */

@font-face { font-family: "Sora"; src: url("fonts/sora-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #04070f;
  --bg-2: #070c18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(140, 180, 255, 0.14);
  --line-strong: rgba(140, 180, 255, 0.3);
  --ink: #ecf2ff;
  --ink-soft: #b8c6e0;
  --ink-faint: #8597b6;
  --blue: #4f8dff;
  --cyan: #22d3ee;
  --violet: #8b7bff;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --grad: linear-gradient(120deg, #4f8dff 0%, #22d3ee 100%);
  --grad-text: linear-gradient(100deg, #7fb0ff 0%, #44e4f7 55%, #a99cff 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --wrap: 1200px;
  --head-h: 72px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* page-wide atmosphere: soft aurora + faint grid + grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(79, 141, 255, 0.18), transparent 70%),
    radial-gradient(50vw 40vh at -10% 20%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(50vw 50vh at 50% 110%, rgba(139, 123, 255, 0.10), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(140, 180, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 180, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(18px, 4vw, 32px); }

/* ── type ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--grad); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-faint); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 18px; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--font-body); padding: 16px 26px; border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #021018; box-shadow: 0 16px 40px -14px rgba(56, 132, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-primary:hover { box-shadow: 0 20px 50px -14px rgba(56, 160, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(140, 180, 255, 0.5); }
.btn-small { padding: 11px 18px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); text-decoration: none; font-weight: 600; }
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── header / nav ─────────────────────────────────────────────────────── */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); transition: background 0.3s ease, border-color 0.3s ease; border-bottom: 1px solid transparent; }
.site-head.is-scrolled, .site-head.is-open { background: rgba(4, 7, 15, 0.82); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(56, 132, 255, 0.9); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font: 600 1.15rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand-name em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; padding: 9px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-actions .signin { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 9px 12px; }
.head-actions .signin:hover { color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.25s ease, background 0.25s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.is-open .menu-toggle span { background: transparent; }
.is-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: grid; }
  .nav, .head-actions { display: none; }
  .site-head.is-open { height: auto; min-height: 100dvh; }
  .site-head.is-open .wrap { height: auto; flex-wrap: wrap; padding-block: 15px 28px; align-content: flex-start; }
  .site-head.is-open .nav { display: grid; order: 3; width: 100%; margin: 18px 0 0; gap: 2px; }
  .site-head.is-open .nav a { font-size: 1.25rem; padding: 14px 6px; border-radius: 12px; border-bottom: 1px solid var(--line); }
  .site-head.is-open .head-actions { display: grid; order: 4; width: 100%; gap: 10px; margin-top: 18px; }
  .site-head.is-open .head-actions .btn, .site-head.is-open .head-actions .signin { width: 100%; justify-content: center; text-align: center; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding-top: calc(var(--head-h) + clamp(48px, 9vw, 110px)); padding-bottom: clamp(64px, 9vw, 120px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; color: var(--ink-faint); font-size: 0.9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.page-hero { padding-top: calc(var(--head-h) + clamp(56px, 8vw, 100px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin-bottom: 22px; max-width: 16ch; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* ── the scanner (hero visual): a camera view being understood ───────── */
.scanner { position: relative; border-radius: var(--radius); padding: 14px; background: linear-gradient(160deg, rgba(79, 141, 255, 0.16), rgba(34, 211, 238, 0.06) 40%, rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 120px -40px rgba(56, 132, 255, 0.6); }
.scanner-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.scanner-top .clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.feed { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0a1222; }
.feed svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.feed::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); pointer-events: none; }
.scanline { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.22) 85%, rgba(34, 211, 238, 0.65)); animation: scan 4.5s cubic-bezier(.55, 0, .45, 1) infinite; pointer-events: none; }
.bbox { position: absolute; border: 1.5px solid var(--cyan); border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 20px -4px rgba(34, 211, 238, 0.7); opacity: 0; animation: boxin 9s infinite; }
.bbox span { position: absolute; left: -1.5px; top: -24px; font: 600 0.68rem/1 var(--font-body); padding: 5px 7px; border-radius: 6px 6px 6px 0; background: var(--cyan); color: #04121c; white-space: nowrap; }
.bbox.b2 { border-color: var(--amber); animation-delay: 1.2s; box-shadow: 0 0 20px -4px rgba(251, 191, 36, 0.7); }
.bbox.b2 span { background: var(--amber); }
.bbox.b3 { border-color: var(--green); animation-delay: 2.4s; box-shadow: 0 0 20px -4px rgba(52, 211, 153, 0.7); }
.bbox.b3 span { background: var(--green); }
.caption-bar { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); min-height: 64px; }
.caption-bar b { color: var(--cyan); font-weight: 600; margin-right: 6px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.caret::after { content: "▍"; color: var(--cyan); animation: blink 1s steps(1) infinite; margin-left: 1px; }
.floating-query { position: absolute; left: -28px; bottom: -34px; width: min(330px, 80%); padding: 14px 16px; border-radius: 16px; background: rgba(9, 15, 30, 0.9); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 0.88rem; animation: float 7s ease-in-out infinite; }
.floating-query .q { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 500; }
.floating-query .q svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }
.floating-query .a { margin-top: 8px; color: var(--ink-faint); font-size: 0.82rem; }
.floating-query .a strong { color: var(--green); }
@media (max-width: 980px) { .floating-query { left: 12px; bottom: -28px; } .scanner { margin-bottom: 30px; } }
@media (max-width: 640px) { .floating-query { position: relative; left: auto; bottom: auto; width: auto; margin: -14px 14px 0; } .scanner { margin-bottom: 0; } }

@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes boxin { 0%, 8% { opacity: 0; transform: scale(1.08); } 14%, 80% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; } }

/* ── marquee strip ────────────────────────────────────────────────────── */
.strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); overflow: hidden; }
.marquee { display: flex; gap: 56px; padding-block: 22px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-faint); font-weight: 500; white-space: nowrap; }
.marquee span svg { width: 18px; height: 18px; color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── pipeline (how it works) ─────────────────────────────────────────── */
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; position: relative; counter-reset: step; }
.pipeline::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent); opacity: 0.5; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 24px; background: linear-gradient(145deg, rgba(79, 141, 255, 0.25), rgba(34, 211, 238, 0.12)); border: 1px solid var(--line-strong); position: relative; z-index: 1; }
.step-icon svg { width: 28px; height: 28px; color: var(--cyan); }
.step::after { content: "0" counter(step); position: absolute; top: 24px; right: 26px; font: 600 0.8rem/1 var(--font-display); color: var(--ink-faint); letter-spacing: 0.1em; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 860px) { .pipeline { grid-template-columns: 1fr; } .pipeline::before { display: none; } }

/* ── bento grid ───────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px; background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 300px; transition: border-color 0.3s ease, transform 0.3s ease; }
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tile::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 141, 255, 0.14), transparent 45%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tile:hover::before { opacity: 1; }
.tile .tag { font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.tile p { color: var(--ink-soft); font-size: 0.97rem; }
.tile .viz { margin-top: auto; padding-top: 14px; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
@media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2, .span-3, .span-4 { grid-column: span 1; } .tile.wide { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: span 1; } }

/* mini visuals inside tiles */
.mini-search { border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; }
.mini-search .field { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-size: 0.86rem; color: var(--ink); }
.mini-search .field svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.mini-search .res { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--ink-soft); }
.mini-search .thumb { height: 34px; border-radius: 7px; background: linear-gradient(135deg, #1b2a4a, #0e1a30); position: relative; overflow: hidden; }
.mini-search .thumb::after { content: ""; position: absolute; left: 30%; top: 22%; width: 22%; height: 60%; border: 1.5px solid var(--cyan); border-radius: 3px; }
.mini-search .score { color: var(--green); font-weight: 600; }
.chat-mini { display: grid; gap: 10px; font-size: 0.84rem; }
.chat-mini .u { justify-self: end; max-width: 85%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: rgba(79, 141, 255, 0.2); border: 1px solid rgba(79, 141, 255, 0.4); }
.chat-mini .a { max-width: 92%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink-soft); }
.cite { display: inline-block; font: 700 0.66rem/1 var(--font-body); padding: 3px 5px; margin: 0 1px; border-radius: 5px; background: rgba(34, 211, 238, 0.15); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4); vertical-align: 1px; }
.rule-mini { display: grid; gap: 8px; font-size: 0.84rem; }
.rule-mini .rule { padding: 11px 13px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px dashed var(--line-strong); color: var(--ink); font-style: italic; }
.rule-mini .parsed { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 0.74rem; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--ink-soft); }
.chip.ok { color: var(--green); border-color: rgba(52, 211, 153, 0.4); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 92px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--grad); opacity: 0.85; transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.bars i:nth-child(odd) { opacity: 0.55; }
@keyframes grow { from { transform: scaleY(0.05); } }
.count-row { display: flex; gap: 10px; margin-top: 12px; }
.count-row div { flex: 1; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.count-row b { display: block; font: 600 1.4rem/1 var(--font-display); }
.count-row span { font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.hash { font: 500 0.74rem/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-faint); padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line); overflow-wrap: anywhere; }
.hash .ok { color: var(--green); }
.route svg { width: 100%; height: 110px; }
.route .path { fill: none; stroke: url(#routeGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s ease forwards; }
.in-view .route .path { animation-play-state: running; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── try-it (interactive question demo) ───────────────────────────────── */
.try { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.try-questions { display: grid; gap: 10px; }
.try-q { text-align: left; cursor: pointer; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; display: flex; gap: 12px; align-items: center; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.try-q svg { width: 18px; height: 18px; color: var(--ink-faint); flex: none; transition: color 0.2s; }
.try-q:hover { color: var(--ink); border-color: var(--line-strong); }
.try-q[aria-pressed="true"] { background: linear-gradient(120deg, rgba(79, 141, 255, 0.2), rgba(34, 211, 238, 0.08)); border-color: rgba(79, 141, 255, 0.6); color: var(--ink); }
.try-q[aria-pressed="true"] svg { color: var(--cyan); }
.try-window { border-radius: var(--radius); background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden; }
.try-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-faint); }
.try-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.try-bar span { margin-left: 8px; }
.try-body { padding: 22px; display: grid; gap: 14px; min-height: 420px; align-content: start; }
.bubble-u { justify-self: end; max-width: 85%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: rgba(79, 141, 255, 0.22); border: 1px solid rgba(79, 141, 255, 0.45); }
.bubble-a { max-width: 95%; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink-soft); }
.bubble-a p + p { margin-top: 8px; }
.thinking { display: inline-flex; gap: 5px; padding: 6px 2px; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: dot 1s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: 0.15s; }
.thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev { border-radius: 12px; padding: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); font-size: 0.74rem; color: var(--ink-faint); }
.ev .ph { aspect-ratio: 16 / 9; border-radius: 8px; margin-bottom: 6px; background: linear-gradient(135deg, #18284a, #0b1427); position: relative; overflow: hidden; }
.ev .ph::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)); }
.ev .ph::after { content: ""; position: absolute; left: var(--x, 40%); top: var(--y, 25%); width: var(--w, 18%); height: var(--h, 55%); border: 1.5px solid var(--c, var(--cyan)); border-radius: 4px; }
.ev b { color: var(--cyan); margin-right: 4px; }
.try-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 14px; }
@media (max-width: 980px) { .try { grid-template-columns: 1fr; } .try-body { min-height: 360px; } }
@media (max-width: 520px) { .evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); } .evidence .ev:nth-child(3) { display: none; } }

/* ── split feature rows ───────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }
.split .lead { margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--ink-soft); }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: rgba(52, 211, 153, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2334d399' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; border: 1px solid rgba(52, 211, 153, 0.35); }
.frame { border-radius: var(--radius); padding: 10px; background: linear-gradient(160deg, rgba(79, 141, 255, 0.18), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.frame img { border-radius: 14px; width: 100%; height: auto; }
.frame .zoom { cursor: zoom-in; display: block; border: 0; padding: 0; background: none; width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* ── privacy diagram ──────────────────────────────────────────────────── */
.onprem { border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); background: radial-gradient(800px 400px at 0% 0%, rgba(34, 211, 238, 0.12), transparent 60%), linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line-strong); }
.site-diagram { display: grid; grid-template-columns: 1fr auto 1.4fr auto 1fr; gap: 14px; align-items: center; margin-top: 40px; }
.node { padding: 18px; border-radius: 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); text-align: center; font-size: 0.9rem; color: var(--ink-soft); }
.node svg { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--cyan); }
.node strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.node.core { border-color: rgba(79, 141, 255, 0.6); background: linear-gradient(160deg, rgba(79, 141, 255, 0.22), rgba(34, 211, 238, 0.06)); box-shadow: 0 0 60px -20px rgba(56, 132, 255, 0.8); }
.node.out { border-style: dashed; grid-column: 5; }
.wire { width: 48px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); position: relative; overflow: hidden; }
.wire::after { content: ""; position: absolute; top: -2px; left: -12px; width: 12px; height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px var(--cyan); animation: packet 2.2s linear infinite; }
.site-diagram .wire.dim { grid-column: 4; justify-self: center; }
.wire.dim { background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.wire.dim::after { display: none; }
@keyframes packet { to { left: 100%; } }
.boundary { grid-column: 1 / 4; border: 1px dashed rgba(52, 211, 153, 0.5); border-radius: 22px; padding: 6px 12px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); text-align: center; }
@media (max-width: 900px) { .site-diagram { grid-template-columns: 1fr; } .wire { width: 2px; height: 32px; margin: 0 auto; background: linear-gradient(180deg, var(--blue), var(--cyan)); } .wire::after { left: -2px; top: -12px; width: 6px; height: 12px; animation-name: packet-v; } .wire.dim { background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); } .boundary, .node.out, .site-diagram .wire.dim { grid-column: auto; } }
@keyframes packet-v { to { top: 100%; } }

/* ── cards ────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border-radius: var(--radius); padding: 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: border-color 0.3s, transform 0.3s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card .icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(79, 141, 255, 0.24), rgba(34, 211, 238, 0.1)); border: 1px solid var(--line-strong); }
.card .icon svg { width: 24px; height: 24px; color: var(--cyan); }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .example { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border-left: 2px solid var(--cyan); font-size: 0.88rem; color: var(--ink); font-style: italic; }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }

/* industries (home): horizontal snap on phones */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sector { position: relative; border-radius: var(--radius); padding: 28px; min-height: 230px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; text-decoration: none; transition: transform 0.3s, border-color 0.3s; }
.sector:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.sector .glyph { position: absolute; top: 22px; right: 22px; width: 64px; height: 64px; color: rgba(140, 180, 255, 0.22); }
.sector h3 { font-size: 1.25rem; }
.sector p { color: var(--ink-soft); font-size: 0.93rem; }
.sector .q { font-size: 0.84rem; color: var(--cyan); font-style: italic; }
@media (max-width: 1000px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .sectors { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * clamp(18px, 4vw, 32px)); padding: 0 clamp(18px, 4vw, 32px) 10px; scrollbar-width: none; }
  .sector { flex: 0 0 82%; scroll-snap-align: start; padding-top: 96px; }
  .sector { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ── EdgeBox product render (pure CSS) ────────────────────────────────── */
.edgebox-stage { position: relative; display: grid; place-items: center; min-height: 380px; perspective: 1200px; }
.edgebox-stage::before { content: ""; position: absolute; width: 70%; height: 30px; bottom: 50px; border-radius: 50%; background: radial-gradient(rgba(56, 132, 255, 0.55), transparent 70%); filter: blur(14px); }
.edgebox { position: relative; width: min(420px, 86%); aspect-ratio: 1.9; border-radius: 22px; background: linear-gradient(160deg, #1d2740 0%, #0d1424 55%, #080d18 100%); border: 1px solid rgba(160, 190, 255, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -20px 40px rgba(0, 0, 0, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.9); transform: rotateX(14deg) rotateY(-18deg); transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.edgebox-stage:hover .edgebox { transform: rotateX(6deg) rotateY(-6deg); }
.edgebox .vent { position: absolute; left: 8%; right: 38%; top: 24%; bottom: 24%; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0 4px, rgba(255, 255, 255, 0.05) 4px 9px); border-radius: 10px; }
.edgebox .logo { position: absolute; right: 9%; top: 26%; width: 22%; display: flex; align-items: center; gap: 8px; font: 600 0.8rem/1 var(--font-display); color: rgba(220, 232, 255, 0.85); }
.edgebox .logo i { width: 20px; height: 20px; border-radius: 6px; background: var(--grad); flex: none; }
.edgebox .leds { position: absolute; right: 9%; bottom: 24%; display: flex; gap: 8px; }
.edgebox .leds i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.2s infinite; }
.edgebox .leds i:nth-child(2) { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation-delay: 0.7s; }
.edgebox .leds i:nth-child(3) { background: var(--blue); box-shadow: 0 0 10px var(--blue); animation-delay: 1.4s; }
.edgebox .ports { position: absolute; left: 8%; bottom: 9%; display: flex; gap: 6px; }
.edgebox .ports i { width: 18px; height: 12px; border-radius: 3px; background: #04070d; border: 1px solid rgba(160, 190, 255, 0.25); }
.edgebox .ports i.poe { border-color: rgba(34, 211, 238, 0.6); }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.spec { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.spec span { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.spec b { font-weight: 600; }
@media (max-width: 520px) { .spec-grid { grid-template-columns: 1fr; } }

/* tiers table (EdgeBox page) */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tier { border-radius: var(--radius); padding: 30px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; position: relative; }
.tier.featured { border-color: rgba(79, 141, 255, 0.6); background: linear-gradient(170deg, rgba(79, 141, 255, 0.16), rgba(255, 255, 255, 0.02)); box-shadow: 0 0 80px -30px rgba(56, 132, 255, 0.8); }
.tier .badge { position: absolute; top: -12px; left: 30px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #021018; font: 700 0.72rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.tier h3 { font-size: 1.5rem; }
.tier .gpu { font-family: var(--font-display); font-size: 1.05rem; color: var(--cyan); }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@media (max-width: 980px) { .tiers { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 0.74rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); background: rgba(255, 255, 255, 0.025); }
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 500; }
tr:last-child td { border-bottom: 0; }

/* ── product tour gallery ─────────────────────────────────────────────── */
.tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tour figure { margin: 0; }
.tour button { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0a1222; cursor: zoom-in; display: block; width: 100%; transition: border-color 0.3s, transform 0.3s; }
.tour button:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tour img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; width: 100%; }
.tour figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .tour { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tour { grid-template-columns: 1fr; } }

/* ── stat band ────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 24px 0; border-top: 1px solid var(--line-strong); }
.stat b { display: block; font: 600 clamp(2rem, 4vw, 3rem)/1 var(--font-display); letter-spacing: -0.03em; margin-bottom: 10px; }
.stat span { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; transition: border-color 0.3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 1.05rem/1.4 var(--font-display); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.4rem; line-height: 1; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 7vw, 88px); text-align: center; background: radial-gradient(600px 300px at 50% 0%, rgba(79, 141, 255, 0.35), transparent 70%), radial-gradient(500px 260px at 50% 110%, rgba(34, 211, 238, 0.25), transparent 70%), linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-strong); }
.cta h2 { max-width: 18ch; margin: 0 auto 18px; }
.cta .lead { margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }
.cta .fine { margin-top: 22px; font-size: 0.88rem; color: var(--ink-faint); }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding-block: 56px 36px; margin-top: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid p { color: var(--ink-faint); font-size: 0.93rem; margin-top: 16px; max-width: 34ch; }
.foot-grid h4 { font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.foot-grid a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── video modal + lightbox ───────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 10, 0.88); backdrop-filter: blur(10px); }
.overlay[hidden] { display: none; }
.overlay video, .overlay img { max-width: min(1280px, 100%); max-height: 86vh; border-radius: 16px; box-shadow: var(--shadow); background: #000; }
.overlay-close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.08); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.overlay-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--ink-soft); font-size: 0.92rem; padding-inline: 20px; }

/* ── scroll reveal ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2, .8, .2, 1), transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.40s; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .bbox { opacity: 1; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 18px 36px; }
}
