@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Manrope:wght@400;500;600&display=swap');

:root {
  --bg: #07080c;
  --bg2: #0d0f15;
  --text: #f3f1ec;
  --muted: #a9a7a0;
  --faint: #6d6c68;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #5d7dff;
  --accent2: #2bb6ff;
  --grad: linear-gradient(135deg, #8a5cff, #5d7dff 50%, #2bb6ff);
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --max: 1200px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.05; }
h1 { font-size: clamp(40px, 6.4vw, 88px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }
p { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
ul, ol { color: var(--muted); padding-left: 1.4rem; }
li { margin-bottom: .4rem; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; background: rgba(255,255,255,.06); padding: .1em .4em; border-radius: 5px; color: var(--text);
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent2); font-weight: 600; display: block;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 620px; }
main { flex: 1; }
section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin: 10px 0 14px; }
.section-head p { font-size: 17px; }

/* ---------- Nav ---------- */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 16px 0;
  background: linear-gradient(rgba(7,8,12,.92), rgba(7,8,12,0));
  transition: background .3s ease, backdrop-filter .3s ease;
}
nav.solid { background: rgba(7,8,12,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .06em; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.links a { color: var(--muted); }
.links a:hover, .links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000;
  padding: 10px 18px 10px 14px; border-radius: 12px; line-height: 1.1; transition: transform .15s, opacity .15s;
}
.store:hover { transform: translateY(-2px); text-decoration: none; }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 10px; font-weight: 600; opacity: .7; letter-spacing: .02em; }
.store b { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; }
.store.pending { opacity: .45; pointer-events: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 14px; color: #fff; background: var(--grad); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(93,125,255,.35); text-decoration: none; }
.btn.ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); color: var(--text); }
.btn.ghost:hover { box-shadow: none; background: rgba(255,255,255,.1); }

/* ---------- Hero (video stage) ---------- */
.hero {
  position: relative; height: 100svh; min-height: 720px; max-height: 1040px;
  display: flex; align-items: flex-start; overflow: hidden; isolation: isolate; padding: 0;
}
.stage {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px;
  transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: center;
  background: url(assets/stage-poster.jpg) center/cover;
}
.stage video { position: absolute; inset: 0; width: 1280px; height: 720px; object-fit: fill; opacity: 0; transition: opacity .9s linear; }
.stage .screen { position: absolute; left: 0; top: 0; width: 1400px; height: 1050px; transform-origin: 0 0; filter: brightness(.88) saturate(.95); opacity: .96; }
.stage .screen.lap { width: 1600px; height: 1005px; filter: brightness(.62) saturate(.9); opacity: .94; }
.stage .glow { position: absolute; left: 0; top: 0; width: 1400px; height: 1050px; transform-origin: 0 0; background: radial-gradient(60% 60% at 50% 50%, rgba(140,180,255,.16), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.hero .scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,8,12,.96) 0%, rgba(7,8,12,.86) 26%, rgba(7,8,12,.45) 44%, rgba(7,8,12,.08) 60%, rgba(7,8,12,0) 80%, rgba(7,8,12,.9) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 118px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin-top: 14px; max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.hero .lead { margin: 18px auto 24px; color: #d9d7d1; text-shadow: 0 1px 20px rgba(0,0,0,.7); }
.hero .ctas { justify-content: center; }
.hero .note { position: absolute; right: 32px; bottom: 20px; z-index: 2; font-size: 12px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .stage video { display: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 150px 0 40px; }
.page-head h1 { margin: 12px 0 16px; font-size: clamp(36px, 5.4vw, 68px); }
.page-head .lead { max-width: 680px; }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); padding: 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip .cell { padding: 36px 28px; border-left: 1px solid var(--line); }
.strip .cell:first-child { border-left: 0; padding-left: 0; }
.strip .tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.strip h3 { margin: 6px 0 8px; }
.strip p { font-size: 14.5px; }

/* ---------- Diagram ---------- */
.diagram { position: relative; height: 640px; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.diagram svg path { fill: none; stroke: rgba(255,255,255,.13); stroke-width: 1.5; }
.node { position: absolute; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.node .lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.node img { display: block; border-radius: 8px; width: 100%; }
.node.text { padding: 18px 20px; }
.node.text h4 { margin-bottom: 4px; }
.node.text p { font-size: 13px; line-height: 1.45; }
.ipad {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 440px; padding: 12px;
  background: #111; border-radius: 22px; border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px #000, 0 40px 100px rgba(0,0,0,.7), 0 0 80px rgba(93,125,255,.25);
}
.ipad img { display: block; width: 100%; border-radius: 12px; }
.ipad .lab { position: absolute; left: 50%; transform: translateX(-50%); bottom: -34px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); font-weight: 600; white-space: nowrap; }
.pulse {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px 4px rgba(93,125,255,.8), 0 0 30px 8px rgba(43,182,255,.35);
  offset-rotate: 0deg; animation: travel 3.2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; display: none; } }

/* ---------- Photo band ---------- */
.band { position: relative; min-height: 620px; display: flex; align-items: center; isolation: isolate; overflow: hidden; padding: 0; }
.band .bg { position: absolute; inset: 0; background: url(assets/nord.jpg) center 40%/cover no-repeat; }
.band .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,12,.96) 0%, rgba(7,8,12,.85) 35%, rgba(7,8,12,.2) 70%, rgba(7,8,12,.5) 100%); }
.band .wrap { position: relative; z-index: 1; padding: 90px 32px; }
.band h2 { max-width: 12ch; margin: 10px 0 18px; }
.band ul { list-style: none; padding: 0; display: grid; gap: 14px; max-width: 520px; margin-top: 26px; }
.band li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: 15.5px; }
.band li i { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin-top: 3px; }
.band li i svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card svg.ic { width: 26px; height: 26px; stroke: var(--accent2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; }
.card p:last-child { margin-bottom: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: var(--bg2); margin-bottom: 20px; }
.panel h2 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 14px; }
.panel p { margin-bottom: 12px; }
.panel ul { margin-bottom: 8px; }
.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.frame img { display: block; width: 100%; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 7fr 5fr; }
.split.flip .copy { order: 2; }
.split h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 10px 0 14px; }
.split p { font-size: 16px; }

/* ---------- Remote layouts row ---------- */
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.row4 figure { text-align: center; }
.row4 .dev { background: #111; border-radius: 14px; padding: 7px; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.row4 .dev img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #000; border-radius: 8px; }
.row4 .soon { aspect-ratio: 4/3; display: grid; place-items: center; color: var(--faint); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border: 1px dashed var(--line); border-radius: 8px; }
.row4 figcaption { margin-top: 16px; font-family: var(--display); font-size: 18px; font-weight: 600; }
.row4 figcaption small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 400; }

/* ---------- Horizontal gallery ---------- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 560px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 32px 22px; margin: 0 -32px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.shot img { display: block; width: 100%; border-radius: 8px; }
.shot .cap { display: flex; justify-content: space-between; padding: 12px 6px 4px; font-size: 13px; }
.shot .cap b { font-family: var(--display); font-weight: 600; }
.shot .cap span { font-size: 11px; color: var(--accent2); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 120px; }
.cta .box { position: relative; border-radius: 28px; overflow: hidden; padding: 80px 48px; text-align: center; isolation: isolate; }
.cta .bg { position: absolute; inset: 0; background: url(assets/stage-still.jpg) center 55%/cover; filter: saturate(.7); }
.cta .scrim { position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 50%, rgba(7,8,12,.75), rgba(7,8,12,.95)); }
.cta .in { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 14px; }
.cta p { font-size: 17px; max-width: 520px; margin: 0 auto 30px; }
.cta .ctas { justify-content: center; }

/* ---------- Downloads ---------- */
.dl-list { display: flex; flex-direction: column; gap: 14px; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.dl h3 { margin-bottom: 4px; }
.dl p { margin-bottom: 8px; font-size: 15px; }
.dl .meta { font-size: 12px; color: var(--faint); display: flex; gap: 14px; flex-wrap: wrap; letter-spacing: .04em; }
.dl.soon { opacity: .55; }
.dl.soon .btn { pointer-events: none; }

/* ---------- Tables, docs, FAQ ---------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
td { color: var(--muted); }
.doc { max-width: 780px; }
.doc h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { margin: 28px 0 8px; }
.doc h4 { margin: 20px 0 6px; color: var(--text); }
.doc p, .doc ul, .doc ol { margin-bottom: 14px; }
.doc .callout { border-left: 3px solid var(--accent); background: rgba(93,125,255,.08); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 16px 0 24px; }
.doc .callout p:last-child, .doc .callout ul:last-child { margin-bottom: 0; }
.toc { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 40px; font-size: 15px; }
.toc strong { display: block; margin-bottom: 8px; font-family: var(--display); }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); margin-bottom: 10px; padding: 0 20px; }
summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--faint); font-weight: 400; font-size: 20px; }
details[open] summary::after { content: '–'; }
details p, details ul { padding-bottom: 16px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: 13px; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); margin-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  section { padding: 72px 0; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .cell { border-left: 0; padding: 26px 0; border-top: 1px solid var(--line); }
  .strip .cell:first-child { border-top: 0; }
  .diagram { height: auto; display: grid; gap: 14px; }
  .diagram svg, .pulse { display: none; }
  .node { position: static; width: 100%; }
  .ipad { position: relative; left: auto; top: auto; transform: none; width: 100%; }
  .ipad { margin: 0 0 44px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .band .scrim { background: linear-gradient(180deg, rgba(7,8,12,.3), rgba(7,8,12,.95) 60%); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
  .split.flip .copy { order: 0; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .cta .box { padding: 56px 24px; }
  .page-head { padding-top: 120px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid.cols-2, .grid.cols-3, .row4 { grid-template-columns: 1fr; }
  .panel, .card { padding: 22px; }
  .dl { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .scroller { padding: 6px 16px 22px; margin: 0 -16px; }
  .hero { min-height: 640px; }
  .hero .note { display: none; }
  .brand small { display: none; }
}
