@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/plex-mono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/plex-mono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #06070a; --fg: #f2f4f7; --fg2: rgba(242, 244, 247, 0.66); --fg3: rgba(242, 244, 247, 0.4);
  --line: rgba(255, 255, 255, 0.1); --line2: rgba(255, 255, 255, 0.24); --panel: #0c0e13; --panel2: #12151c;
  --accent: #7df9ff; --on-accent: #04070a; --ok: #5dffa6; --violet: #8576ff; --bad: #ff6b6b; --grid: rgba(255, 255, 255, 0.03);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef0f3; --fg: #0a0b0d; --fg2: rgba(10, 11, 13, 0.66); --fg3: rgba(10, 11, 13, 0.42);
    --line: rgba(10, 11, 13, 0.11); --line2: rgba(10, 11, 13, 0.28); --panel: #f8f9fb; --panel2: #ffffff;
    --accent: #2b32ff; --on-accent: #fff; --ok: #0a8f4e; --violet: #5142e0; --bad: #d42a2a; --grid: rgba(10, 11, 13, 0.04);
    color-scheme: light;
  }
}
* { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; }
/* Side guide lines, like a drawing sheet */
.frame { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.cap { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; font-weight: 650; }
h1 { font-size: clamp(40px, 6.6vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h1 span, h2 span { color: var(--fg3); }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
h3 span { color: var(--fg2); font-weight: 450; }
p { margin: 0; color: var(--fg2); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 14px/1 var(--mono); letter-spacing: 0.18em; }
.brand img { width: 26px; height: 26px; }
.top nav { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--fg2); }
.top nav a:hover { color: var(--fg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border: 1px solid var(--line2); text-decoration: none; cursor: pointer;
  font: 700 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); background: none; transition: background 0.15s, color 0.15s, box-shadow 0.2s; }
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 40px -10px var(--accent); }
.btn.primary:hover { background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 50px -8px var(--accent); }
.top .btn { padding: 9px 13px; font-size: 11px; box-shadow: none; }
.btn[aria-disabled='true'] { opacity: 0.75; cursor: default; }

/* Corner ticks */
.tick { position: relative; }
.tick::before, .tick::after { content: ''; position: absolute; width: 11px; height: 11px; pointer-events: none; z-index: 2; }
.tick::before { left: -1px; top: -1px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.tick::after { right: -1px; bottom: -1px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }

/* Hero */
.hero { text-align: center; padding: 84px 0 40px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 11px; border: 1px solid var(--line2); font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); margin-bottom: 26px; }
.pill i { width: 7px; height: 7px; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.hero .lead { font-size: 19px; max-width: 600px; margin: 22px auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero small { display: block; margin-top: 18px; color: var(--fg3); font: 12px/1.4 var(--mono); }

/* Demo */
.tabs { display: inline-flex; margin: 54px auto 0; border: 1px solid var(--line2); background: var(--panel); }
.tabs button { border: 0; border-right: 1px solid var(--line); background: none; padding: 11px 18px; cursor: pointer; font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); position: relative; }
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected='true'] { background: var(--fg); color: var(--bg); }
.tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent); animation: fill var(--dur, 9s) linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.stage { margin: 22px auto 0; border: 1px solid var(--line2); background: var(--panel); height: min(600px, 62vw); min-height: 300px; position: relative; overflow: hidden; }
.stage video { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; display: block; }
.stage-note { margin-top: 14px; font: 12px/1.5 var(--mono); color: var(--fg3); }

/* Sections */
section { padding: 110px 0 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.head .cap { display: block; margin-bottom: 18px; }
.head p { font-size: 18px; margin-top: 18px; }
.rule { height: 1px; background: var(--line); margin-top: 110px; position: relative; }
.rule::before, .rule::after { content: '+'; position: absolute; top: -11px; font: 14px var(--mono); color: var(--fg3); }
.rule::before { left: -5px; } .rule::after { right: -5px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Before / after */
.ba { border: 1px solid var(--line2); background: var(--panel); }
.ba-bar { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.ba-bar button { border: 0; border-right: 1px solid var(--line); background: none; padding: 13px 18px; cursor: pointer; font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); }
.ba[data-on='0'] .ba-bar button[data-on='0'], .ba[data-on='1'] .ba-bar button[data-on='1'] { background: var(--fg); color: var(--bg); }
.ba-bar span { margin-left: auto; padding: 0 16px; font: 12px var(--mono); color: var(--fg2); text-align: right; }
.ba-view { display: flex; justify-content: center; align-items: flex-start; gap: 0; padding: 22px; height: 560px; overflow: hidden; }
.ba-feed { position: relative; height: 100%; aspect-ratio: 1138 / 1424; flex: none; border: 1px solid var(--line); }
.ba-feed img, .ba-panel img { display: block; height: 100%; width: 100%; object-fit: cover; object-position: top left; }
/* Covers the FetchX button in the "without" view. */
.ba-hide { position: absolute; left: 93.6%; top: 75.8%; width: 6.2%; height: 5%; background: #fff; opacity: 0; transition: opacity 0.3s; }
.ba-hide.top { top: 6%; height: 4.6%; }
.ba[data-on='0'] .ba-hide { opacity: 1; }
.ba-panel { height: 100%; width: 0; flex: none; overflow: hidden; opacity: 0; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, margin 0.6s; border: 1px solid transparent; }
.ba-panel img { width: auto; aspect-ratio: 712 / 1424; }
.ba[data-on='1'] .ba-panel { width: 259px; opacity: 1; margin-left: 14px; border-color: var(--accent); box-shadow: 0 0 50px -12px var(--accent); }

/* Four features */
.four { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; transition: border-color 0.2s; }
.card:hover { border-color: var(--line2); }
.four .card { padding: 0; gap: 0; }
.four .card img { display: block; width: 100%; height: 230px; object-fit: contain; background: #e9ebef; padding: 22px; border-bottom: 1px solid var(--line); }
.four .card h3 { padding: 20px 22px 22px; }
.viz { margin-top: auto; border: 1px solid var(--line); background: var(--panel2); padding: 14px; font: 12px/1.6 var(--mono); position: relative; }
.viz .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--fg2); }
.viz .row:last-child { border-bottom: 0; }
.viz .row b { color: var(--fg); font-weight: 600; } .viz .row.sel { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Local trio */
.trio .card { min-height: 250px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.keybox { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--ok); color: var(--fg); }
.keybox i { margin-left: auto; width: 18px; height: 18px; background: var(--ok); color: #04070a; display: grid; place-items: center; font: 700 11px var(--mono); font-style: normal; }
.gone { display: flex; gap: 7px; margin-top: 10px; }
.gone s { padding: 4px 7px; border: 1px solid var(--line); color: var(--fg3); }
.wire { display: flex; align-items: center; gap: 10px; }
.wire b { padding: 9px 11px; border: 1px solid var(--line2); font-weight: 600; color: var(--fg); }
.wire u { flex: 1; height: 1px; text-decoration: none; background: repeating-linear-gradient(90deg, var(--bad) 0 5px, transparent 5px 10px); }
.wire s { padding: 9px 11px; border: 1px solid var(--line); color: var(--fg3); }

/* Pricing */
.price { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; border: 1px solid var(--line2); background: var(--panel); padding: 56px 48px; }
.lic-wrap { perspective: 1100px; display: grid; place-items: center; min-height: 320px; }
.lic { width: min(420px, 100%); aspect-ratio: 1.58; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); transition: transform 0.15s ease-out; transform-style: preserve-3d; cursor: grab;
  color: #06070a; border: 1px solid rgba(255, 255, 255, 0.6);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 4px), linear-gradient(115deg, #c9fbff 0%, #f4f7fa 28%, #a9b4c4 52%, #f1f4f8 72%, #9defff 100%);
  box-shadow: 0 50px 90px -30px rgba(125, 249, 255, 0.45), 0 30px 60px -30px #000; }
.lic::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%); transform: translateX(var(--sx, -30%)); transition: transform 0.2s ease-out; pointer-events: none; }
.lic .lt { display: flex; justify-content: space-between; align-items: center; font: 700 13px var(--mono); letter-spacing: 0.18em; }
.lic .lt span { display: flex; align-items: center; gap: 8px; }
.lic .lt img { width: 22px; height: 22px; }
.lic .lt em { font: 700 10px var(--mono); font-style: normal; letter-spacing: 0.12em; padding: 5px 8px; border: 1px solid #06070a; }
.lic .amt { font: 700 64px/1 'Inter'; letter-spacing: -0.05em; }
.lic .amt small { font: 500 15px var(--mono); letter-spacing: 0; opacity: 0.6; margin-left: 6px; }
.lic .key { font: 600 13px var(--mono); letter-spacing: 0.06em; }
.lic .key small { display: block; font: 400 11px var(--mono); opacity: 0.6; margin-top: 4px; letter-spacing: 0; }
.incl { height: 300px; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.incl ul { list-style: none; margin: 0; padding: 0; animation: vmarq 20s linear infinite; }
.incl li { padding: 9px 0; font-size: 19px; color: var(--fg2); }
.incl li b { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 1px 7px; }
@keyframes vmarq { to { transform: translateY(-50%); } }
.price-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.price-foot p b { color: var(--fg); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 20px/1 var(--mono); color: var(--accent); }
details[open] summary::after { content: '–'; }
details p { margin-top: 10px; }

.final { text-align: center; padding: 120px 0; }
.final .cta { margin-top: 32px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 13px; color: var(--fg3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer a { color: var(--fg2); }

/* Privacy page */
.doc { max-width: 720px; padding: 56px 0 72px; }
.doc h1 { font-size: 40px; } .doc h2 { font-size: 22px; margin-top: 36px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--fg2); margin-top: 12px; } .doc ul { padding-left: 20px; }

@media (max-width: 900px) {
  .price, .trio, .four { grid-template-columns: 1fr; }
  .ba-view { height: 380px; padding: 12px; } .ba[data-on='1'] .ba-panel { width: 173px; margin-left: 8px; } .ba[data-on='1'] .ba-feed { display: none; } .ba-bar span { display: none; }
  .four .card img { height: 190px; }
  .top nav a:not(.btn) { display: none; }
  section { padding-top: 76px; } .rule { margin-top: 76px; }
  .price { padding: 32px 20px; } .hero { padding-top: 56px; }
  .tabs button { padding: 10px 11px; font-size: 10px; }
  .frame { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
