:root {
  --bg: #0e0f12;
  --surface: #191b20;
  --raised: #1f2228;
  --line: #2a2e36;
  --text: #f2f3f5;
  --muted: #9aa0ab;
  --accent: #ff6a1a;
  --accent-2: #ffb36b;
  --ok: #3ddc84;
  /* Motion identity: one signature curve, three durations. */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --quick: 160ms;
  --standard: 420ms;
  --slow: 640ms;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Figtree, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }

/* Ambient layer: slow drifting glows behind everything. */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.18;
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient span:nth-child(1) { background: var(--accent); top: -25vmax; right: -15vmax; }
.ambient span:nth-child(2) { background: #6a5cff; bottom: -30vmax; left: -20vmax; animation-duration: 32s; opacity: 0.12; }
.ambient span:nth-child(3) { background: var(--accent-2); top: 40%; left: 45%; width: 30vmax; height: 30vmax; animation-duration: 22s; opacity: 0.08; }
@keyframes drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.08); } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color var(--quick) var(--ease); }
.links a:hover { color: var(--text); }
.lang {
  background: var(--raised); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font: 600 14px Figtree, sans-serif; cursor: pointer;
  transition: transform var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.lang:hover { border-color: var(--accent); }
.lang:active { transform: scale(0.96); }
@media (max-width: 720px) { .links { display: none; } .lang { margin-left: auto; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 48px) 60px;
}
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 84px); font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: #c9cdd4; font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  background: var(--text); color: var(--bg); border-radius: 14px; font-weight: 700; font-size: 17px;
}
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; opacity: 0.7; }
.store.soon { opacity: 0.92; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Hero stage: TV + phone mock, floating gently. */
.stage { position: relative; height: 440px; }
.tv { position: absolute; right: 0; top: 30px; width: min(100%, 520px); animation: float 7s ease-in-out infinite; }
.tv-screen {
  aspect-ratio: 16 / 9; border-radius: 16px; background: linear-gradient(160deg, #1b1e25, #121419);
  border: 1px solid var(--line); padding: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px #0a0b0d;
  overflow: hidden;
}
.tv-foot { width: 32%; height: 10px; margin: 12px auto 0; border-radius: 0 0 10px 10px; background: #0a0b0d; }
.guide { display: grid; gap: 8px; font-size: 12px; }
.g-head, .g-row { display: grid; grid-template-columns: 80px repeat(6, 1fr); gap: 6px; align-items: center; }
.g-head b { color: var(--accent); }
.g-head i { color: var(--muted); font-style: normal; grid-column: span 2; }
.g-row em { font-style: normal; color: var(--muted); }
.g-row span { background: var(--raised); border-radius: 8px; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-row span.on { background: linear-gradient(90deg, rgba(255, 106, 26, 0.35), rgba(255, 106, 26, 0.12)); box-shadow: inset 0 0 0 1px rgba(255, 106, 26, 0.6); }
.w1 { grid-column: span 1; } .w2 { grid-column: span 2; } .w3 { grid-column: span 3; } .w4 { grid-column: span 4; }
.phone {
  position: absolute; left: 4%; bottom: 0; width: 168px; height: 330px; border-radius: 30px;
  background: #121419; border: 1px solid var(--line); padding: 14px 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 5px #0a0b0d;
  animation: float 7s ease-in-out infinite; animation-delay: -3.5s;
}
.ph-notch { width: 54px; height: 6px; background: #0a0b0d; border-radius: 6px; margin: 0 auto 12px; }
.ph-hero { height: 110px; border-radius: 14px; background: linear-gradient(140deg, #3a2417, #1f2228 70%); position: relative; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.ph-badge { font-size: 10px; font-weight: 700; color: var(--accent); }
.ph-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.ph-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); animation: progress 6s var(--ease) infinite; }
.ph-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ph-row i { aspect-ratio: 2 / 3; border-radius: 8px; background: var(--raised); }
.ph-row i:nth-child(2) { background: #2a2f38; }
.ph-sync { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes progress { 0% { width: 18%; } 70%, 100% { width: 74%; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@media (max-width: 520px) { .stage { height: 360px; } .phone { width: 136px; height: 270px; } }

/* Marquee strip */
.strip { border-block: 1px solid var(--line); overflow: hidden; background: rgba(25, 27, 32, 0.5); }
.strip-in { display: flex; gap: 22px; width: max-content; padding: 16px 0; color: var(--muted); font-weight: 600; animation: marquee 38s linear infinite; }
.strip-in b { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px) 0; }
.sub { color: var(--muted); font-size: 19px; margin: 12px 0 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--surface), rgba(25, 27, 32, 0.6));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform var(--standard) var(--ease), border-color var(--standard) var(--ease), box-shadow var(--standard) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 26, 0.45); box-shadow: 0 24px 50px -30px rgba(255, 106, 26, 0.45); }
.card .ic { font-size: 26px; margin-bottom: 14px; }
.card p, .dev p, .prem p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.split-copy > p { color: #c9cdd4; font-size: 19px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; color: #d5d8de; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 106, 26, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 106, 26, 0.6); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.cipher { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.node { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border-radius: 14px; background: var(--raised); }
.node span { font-size: 24px; }
.node small { color: var(--muted); font-size: 14px; line-height: 1.3; }
.node.srv { box-shadow: inset 0 0 0 1px rgba(255, 106, 26, 0.5); }
.wire { position: relative; height: 54px; width: 2px; background: var(--line); display: flex; align-items: center; }
.wire i { position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: packet 2.6s var(--ease) infinite; }
.wire:last-of-type i { animation-delay: 1.3s; }
.wire code { position: absolute; left: 16px; font: 12px ui-monospace, Menlo, monospace; color: var(--accent-2); white-space: nowrap; }
@keyframes packet { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 50px; opacity: 0; } }

.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.dev { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.dev b { font-size: 30px; display: block; margin-bottom: 12px; }
.soon-tag {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-2); background: rgba(255, 179, 107, 0.1); border: 1px solid rgba(255, 179, 107, 0.35);
  padding: 3px 10px; border-radius: 999px;
}

.prem { border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 106, 26, 0.22), transparent 55%), var(--surface); border: 1px solid rgba(255, 106, 26, 0.3); }
.prem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 32px; }

.faq { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform var(--standard) var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

.final { text-align: center; padding-bottom: 40px; }
.final p { color: var(--muted); font-size: 19px; }

.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 60px 16px 40px; color: var(--muted); font-size: 14px; }
.foot a { text-decoration: none; color: var(--text); }
.muted { opacity: 0.7; }

/* Entrance: fade + rise, staggered by JS via --d. Premium, no overshoot. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: #c9cdd4; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc th { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
