/* SuiDock showcase. Sui-family theme tokens (dark default). */
@font-face {
  font-family: "Material Symbols Outlined";
  src: url("media/material-symbols-outlined.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --bg: #131417;
  --sidebar: #17181c;
  --surface: rgb(255 255 255 / 0.05);
  --surface-2: rgb(255 255 255 / 0.07);
  --surface-3: rgb(255 255 255 / 0.1);
  --surface-solid: #1c1d22;
  --line: rgb(255 255 255 / 0.07);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #ffffff;
  --text-2: rgb(255 255 255 / 0.62);
  --text-3: rgb(255 255 255 / 0.4);
  --accent: #3ba7ff;
  --accent-strong: #62b9ff;
  --accent-soft: rgb(59 167 255 / 0.16);
  --on-accent: #06121d;
  --danger: #ff453a;
  --ok: #30d158;
  --warn: #ffb340;
  --radius: 14px;
  --radius-md: 10px;
  --radius-sm: 9px;
  --shadow-menu: 0 14px 36px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.4);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.7%, 1.046 22.7%, 1.054 26.2%, 1.036 32.1%, 1.008 38%, 0.998 46%, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 140ms;
  --med: 260ms;
  --slow: 480ms;
  --wrap: 1180px;
}
@media (prefers-reduced-motion: reduce) {
  :root { --fast: 0ms; --med: 0ms; --slow: 0ms; }
  html { scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  overflow-x: clip;
}
input, textarea { user-select: text; }
img, a { -webkit-user-drag: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
kbd {
  display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 7px; text-align: center;
  font: 600 13px/1.5 var(--font); color: var(--text);
  background: linear-gradient(180deg, #2a2d36, #1e2027); border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 2px 0 #0c0d10;
}
code { font: 500 0.92em var(--mono); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; user-select: text; }

*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-button { display: none; }
*::-webkit-scrollbar-thumb { background: var(--line-strong) padding-box; border: 3px solid transparent; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-3) padding-box; }

.ms {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none;
  white-space: nowrap; direction: ltr; font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  display: inline-block; font-size: 22px;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* Ambient wallpaper behind the top of the page */
.aurora { position: absolute; inset: 0 0 auto 0; height: 1100px; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.aurora i:nth-child(1) { left: -8%; top: -10%; width: 720px; height: 560px; background: #1d4fd8; }
.aurora i:nth-child(2) { right: -6%; top: 0; width: 640px; height: 520px; background: #7a2bd6; opacity: 0.38; }
.aurora i:nth-child(3) { left: 30%; top: 420px; width: 760px; height: 420px; background: #0aa3b8; opacity: 0.3; }
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg) 96%); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand-link img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background var(--fast), color var(--fast); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent-strong); background: var(--accent-soft); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer;
  border: 1px solid transparent; transition: transform var(--fast) var(--ease), background var(--fast), box-shadow var(--med);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgb(59 167 255 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.35); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn .ms { font-size: 20px; }

/* Hero */
.hero { position: relative; z-index: 1; padding: 84px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero-title { font: 700 clamp(40px, 5vw, 62px)/1.04 var(--font-display); letter-spacing: -0.035em; }
.hero-title .accent { color: var(--accent); }
.hero-copy { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 540px; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-specs { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.spec-pill .ms { font-size: 17px; color: var(--accent-strong); }
.hero-visual { perspective: 1400px; }
.media-frame {
  border-radius: 18px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(59 167 255 / 0.08);
  transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; transition: transform var(--slow) var(--ease);
}
.media-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0b0c10; }
.media-caption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); }
.mono { font-family: var(--mono); }

/* Stat strip */
.stats { position: relative; z-index: 1; padding: 22px 0 10px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 700 34px/1.1 var(--font-display); letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--text-2); }

/* Sections */
.section { position: relative; z-index: 1; padding: 96px 0 0; scroll-margin-top: 64px; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-kicker { font: 600 13px var(--mono); color: var(--accent-strong); letter-spacing: 0.02em; margin-bottom: 12px; }
.section-title { font: 700 clamp(30px, 3.4vw, 42px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.section-lead { margin-top: 14px; font-size: 17px; color: var(--text-2); }

/* Playground */
.play { border-radius: 22px; border: 1px solid var(--line-strong); background: var(--sidebar); overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); }
.play-stage {
  position: relative; height: 440px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 18% 28%, #2f64e8 0, transparent 42%), radial-gradient(circle at 78% 22%, #8a3ee0 0, transparent 40%), radial-gradient(circle at 58% 92%, #0fb0c2 0, transparent 46%), #0c0f1c;
}
.play-stage .win {
  position: absolute; border-radius: 12px; background: rgb(18 20 28 / 0.84); border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.4); padding: 38px 18px 18px;
}
.play-stage .win::before { content: ""; position: absolute; left: 14px; top: 14px; width: 48px; height: 10px; background: radial-gradient(circle 5px at 5px 5px, #ff5f57 98%, transparent) 0 0/19px 10px no-repeat, radial-gradient(circle 5px at 5px 5px, #febc2e 98%, transparent) 19px 0/19px 10px no-repeat, radial-gradient(circle 5px at 5px 5px, #28c840 98%, transparent) 38px 0/10px 10px no-repeat; }
.play-stage .win i { display: block; height: 9px; border-radius: 5px; background: rgb(255 255 255 / 0.1); margin-bottom: 12px; }
.play-stage:has(.dock.top) .play-note { top: auto; bottom: 14px; }
.play-note { position: absolute; left: 16px; top: 14px; z-index: 3; font-size: 12px; color: rgb(255 255 255 / 0.7); background: rgb(0 0 0 / 0.35); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(8px); }

.dock {
  --h: 52px; --tile: 36px; --gap: 8px;
  --cb: rgb(255 255 255 / 0.1); --cbr: rgb(255 255 255 / 0.28); --ci: #f2f2f4; --sh: 1;
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 0 16px;
  transition: bottom var(--med) var(--ease), top var(--med) var(--ease);
}
.dock.top { bottom: auto; top: 14px; align-items: flex-start; }
.dock.size-s { --h: 44px; --tile: 30px; --gap: 6px; }
.dock.size-l { --h: 64px; --tile: 46px; --gap: 10px; }
.cap {
  position: relative; height: var(--h); display: flex; align-items: center; gap: var(--gap); padding: 0 calc(var(--gap) + 4px);
  border-radius: 999px; color: var(--ci); background: var(--cb); border: 1px solid var(--cbr);
  backdrop-filter: blur(20px) saturate(170%); box-shadow: 0 16px 40px rgb(0 0 0 / 0.4);
  transition: height var(--med) var(--ease), background var(--med), border-color var(--med), color var(--med), border-radius var(--med) var(--ease), box-shadow var(--med);
}
.cap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--sh); transition: opacity var(--med);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.2), transparent 55%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45); }
.dock.style-midnight { --cb: rgb(12 20 42 / 0.88); --cbr: rgb(98 185 255 / 0.32); --ci: #e8f2ff; --sh: 0; }
.dock.style-black { --cb: rgb(0 0 0 / 0.88); --cbr: rgb(255 255 255 / 0.1); --ci: #f2f2f4; --sh: 0; }
.dock.style-white { --cb: rgb(250 250 252 / 0.92); --cbr: rgb(0 0 0 / 0.08); --ci: #14161a; --sh: 0.2; }
/* Shapes: Docked and Flat sit on the screen edge as separate capsules (left, centre, right).
   Docked joins each capsule to the edge with concave shoulders of radius --fl; Flat has square
   corners at the edge. */
.dock.shape-docked, .dock.shape-flat { --fl: 10px; --r: 18px; bottom: 0; justify-content: space-between; padding: 0 var(--fl); }
.dock.shape-flat { padding: 0 8px; }
.dock.shape-docked.top, .dock.shape-flat.top { top: 0; }
.dock.shape-docked .cap, .dock.shape-flat .cap { border-radius: var(--r) var(--r) 0 0; border-bottom: 0; box-shadow: 0 -6px 24px rgb(0 0 0 / 0.25); }
.dock.shape-docked.top .cap, .dock.shape-flat.top .cap { border-radius: 0 0 var(--r) var(--r); border-bottom: 1px solid var(--cbr); border-top: 0; box-shadow: 0 6px 24px rgb(0 0 0 / 0.25); }
.dock.shape-docked .cap::after {
  content: ""; position: absolute; bottom: 0; left: calc(-1 * var(--fl) - 1px); right: calc(-1 * var(--fl) - 1px); height: var(--fl); pointer-events: none;
  background:
    radial-gradient(circle at 0 0, transparent calc(var(--fl) - 0.5px), var(--cbr) var(--fl), var(--cb) calc(var(--fl) + 1px)) left bottom / var(--fl) var(--fl) no-repeat,
    radial-gradient(circle at 100% 0, transparent calc(var(--fl) - 0.5px), var(--cbr) var(--fl), var(--cb) calc(var(--fl) + 1px)) right bottom / var(--fl) var(--fl) no-repeat;
}
.dock.shape-docked.top .cap::after {
  bottom: auto; top: 0;
  background:
    radial-gradient(circle at 0 100%, transparent calc(var(--fl) - 0.5px), var(--cbr) var(--fl), var(--cb) calc(var(--fl) + 1px)) left top / var(--fl) var(--fl) no-repeat,
    radial-gradient(circle at 100% 100%, transparent calc(var(--fl) - 0.5px), var(--cbr) var(--fl), var(--cb) calc(var(--fl) + 1px)) right top / var(--fl) var(--fl) no-repeat;
}

.tile {
  position: relative; width: var(--tile); height: var(--tile); border-radius: 28%; display: grid; place-items: center; color: #fff; border: 0; cursor: pointer; padding: 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 4px 10px rgb(0 0 0 / 0.3);
  transition: width var(--med) var(--ease), height var(--med) var(--ease), transform 220ms var(--spring);
  transform-origin: 50% 100%;
}
.dock.top .tile { transform-origin: 50% 0%; }
.tile .ms { font-size: calc(var(--tile) * 0.56); font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.tile.run::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 3px; background: currentColor; opacity: 0.8; }
.tile.run.active::after { width: 14px; margin-left: -7px; background: var(--accent-strong); opacity: 1; }
.dock.top .tile.run::after { bottom: auto; top: -7px; }
.t-amber { background: linear-gradient(150deg, #ffcf5a, #f08a1c); }
.t-blue { background: linear-gradient(150deg, #6cc4ff, #1b6fe0); }
.t-violet { background: linear-gradient(150deg, #b48cff, #6a3ee6); }
.t-pink { background: linear-gradient(150deg, #ff8ac2, #e0357d); }
.t-cyan { background: linear-gradient(150deg, #6ff2e6, #129fb3); }
.t-green { background: linear-gradient(150deg, #8ff08a, #24a449); }
.t-slate { background: linear-gradient(150deg, #5b6170, #22252e); }
.ib { width: var(--tile); height: var(--tile); border-radius: 50%; display: grid; place-items: center; color: inherit; background: transparent; border: 0; cursor: pointer; transition: background var(--fast); }
.ib:hover { background: rgb(127 127 127 / 0.16); }
.ib .ms { font-size: calc(var(--tile) * 0.58); }
.ib.start { background: rgb(59 167 255 / 0.22); }
.ib.start svg { width: 55%; height: 60%; }
.dstat { display: flex; align-items: center; gap: 4px; font-size: calc(var(--tile) * 0.4); font-weight: 600; padding: 0 3px; white-space: nowrap; }
.dstat .ms { font-size: calc(var(--tile) * 0.52); }
.dclock { text-align: right; line-height: 1.1; padding: 0 4px; }
.dclock b { display: block; font-size: calc(var(--tile) * 0.42); }
.dclock span { font-size: calc(var(--tile) * 0.3); opacity: 0.65; }
/* Pulse */
.dock.pulse .cap { animation: pulse 0.5s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 16px 40px rgb(0 0 0 / 0.4), 0 0 26px 2px var(--pc, #3ba7ff), inset 0 0 0 2px var(--pc, #3ba7ff); }
  100% { box-shadow: 0 16px 40px rgb(0 0 0 / 0.4), 0 0 6px 0 transparent, inset 0 0 0 1px transparent; }
}
.dock.pulse { animation: hue 8s linear infinite; }
@keyframes hue { 0% { --pc: #3ba7ff; } 33% { --pc: #b06bff; } 66% { --pc: #ff6bb5; } 100% { --pc: #3ba7ff; } }
@property --pc { syntax: "<color>"; inherits: true; initial-value: #3ba7ff; }
@media (prefers-reduced-motion: reduce) { .dock.pulse .cap, .dock.pulse { animation: none; } }

/* Tooltip on dock tiles */
.tip { position: absolute; z-index: 4; pointer-events: none; padding: 5px 10px; border-radius: 8px; background: var(--surface-solid); border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-menu); opacity: 0; transform: translate(-50%, 4px); transition: opacity var(--fast), transform var(--fast) var(--ease); }
.tip.show { opacity: 1; transform: translate(-50%, 0); }

.play-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; padding: 22px 24px 24px; border-top: 1px solid var(--line); }
.ctl label { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; letter-spacing: 0.02em; }
.seg { position: relative; display: flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; flex: 1; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; transition: color var(--med); }
.seg button[aria-pressed="true"] { color: var(--on-accent); }
.seg .pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 999px; background: var(--accent); transition: left 320ms var(--spring), width 320ms var(--spring); }
.toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--text); font: 600 14px var(--font); cursor: pointer; padding: 4px 0; }
.toggle .track { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background var(--med); }
.toggle .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 320ms var(--spring); }
.toggle[aria-pressed="true"] .track { background: var(--accent); }
.toggle[aria-pressed="true"] .track::after { transform: translateX(18px); }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform var(--med) var(--ease), border-color var(--med), background var(--med); transform-style: preserve-3d; }
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 16px; }
.card .icon .ms { font-size: 24px; }
.card h3 { font: 600 17px/1.3 var(--font-display); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-2); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr 1fr; }
.split.rev > :first-child { order: 2; }
.bullets { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.bullets li { display: flex; gap: 12px; font-size: 15px; color: var(--text-2); }
.bullets li .ms { color: var(--accent-strong); font-size: 20px; margin-top: 1px; }
.bullets b { color: var(--text); font-weight: 600; }

/* Command Bar demo */
.cmd { border-radius: 20px; padding: 14px; background: linear-gradient(180deg, rgb(30 33 42 / 0.92), rgb(18 20 26 / 0.96)); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(59 167 255 / 0.1); }
.cmd-field { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-radius: 13px; background: var(--surface-2); }
.cmd-field .ms { color: var(--accent-strong); font-size: 24px; }
.cmd-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 18px var(--mono); }
.cmd-field input::placeholder { color: var(--text-3); font-family: var(--font); }
.cmd-res { margin-top: 8px; min-height: 216px; display: grid; align-content: start; gap: 2px; }
.row { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 12px; border-radius: 11px; font-size: 15px; font-weight: 600; animation: rowin var(--med) var(--ease) both; }
.row.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgb(59 167 255 / 0.3); }
.row .ri { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.row small { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; }
.row .meta { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 500; }
.row.big { height: auto; padding: 14px 12px; font: 700 40px/1 var(--font-display); letter-spacing: -0.03em; }
.row.big small { font: 500 13px var(--font); letter-spacing: 0; margin-top: 6px; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
.prefixes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font: 600 13px var(--font); cursor: pointer; transition: background var(--fast), color var(--fast), border-color var(--fast); }
.chip code { background: none; border: 0; padding: 0; color: var(--accent-strong); font-weight: 700; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: rgb(59 167 255 / 0.4); color: var(--text); }

/* Widgets */
.wtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wcard { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); animation: rowin var(--med) var(--ease) both; }
.wcard .ms { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-strong); font-size: 21px; flex: none; }
.wcard b { display: block; font-size: 14px; font-weight: 600; }
.wcard span { font-size: 12px; color: var(--text-3); }

/* Pulse panel */
.pulse-card { border-radius: 20px; border: 1px solid var(--line-strong); background: var(--sidebar); padding: 28px; position: relative; overflow: hidden; }
.pulse-bars { display: flex; gap: 6px; align-items: flex-end; height: 120px; margin-top: 22px; }
.pulse-bars i { flex: 1; border-radius: 4px; background: linear-gradient(180deg, var(--accent-strong), rgb(59 167 255 / 0.25)); transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .pulse-bars i { animation: none; transform: scaleY(0.6); } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { height: 28px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.privacy-grid .card { display: flex; gap: 16px; }
.privacy-grid .card .icon { flex: none; margin: 0; }

/* Quick start */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--font); background: var(--accent); color: var(--on-accent); margin-bottom: 14px; }
.step h3 { font: 600 17px var(--font-display); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-2); }
.keys { margin-top: 18px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.keys div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 14px 20px; font-size: 14px; border-top: 1px solid var(--line); align-items: center; }
.keys div:first-child { border-top: 0; }
.keys div:nth-child(odd) { background: var(--surface); }
.keys span:first-child { color: var(--text-2); }
.callout { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); background: rgb(255 179 64 / 0.08); border: 1px solid rgb(255 179 64 / 0.25); font-size: 14px; color: var(--text-2); }
.callout .ms { color: var(--warn); }

/* CTA + footer */
.cta { margin: 110px 0 0; padding: 56px 40px; border-radius: 24px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 20% 0%, rgb(59 167 255 / 0.35), transparent 50%), radial-gradient(circle at 85% 100%, rgb(138 62 224 / 0.3), transparent 50%), var(--sidebar); }
.cta img { height: 64px; width: auto; margin: 0 auto 20px; }
.cta h2 { font: 700 clamp(28px, 3vw, 38px)/1.15 var(--font-display); letter-spacing: -0.03em; }
.cta p { margin-top: 10px; color: var(--text-2); }
.cta .hero-actions { justify-content: center; }
footer { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero-grid, .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .play-controls { grid-template-columns: repeat(2, 1fr); }
  .media-frame { transform: none; }
}
@media (max-width: 720px) {
  .stat-row, .steps, .privacy-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .play-controls { grid-template-columns: 1fr; }
  .play-stage { height: 360px; }
  .dock .dstat:not(.keep), .dock .dclock span { display: none; }
  .header-actions .btn-ghost { display: none; }
  .keys div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  .stat-row, .steps, .privacy-grid { grid-template-columns: 1fr; }
  .dock .tile:nth-child(n + 5) { display: none; }
  .dock, .dock.size-m, .dock.size-l { --h: 42px; --tile: 28px; --gap: 5px; gap: 6px; padding: 0 8px; }
  .dock .ib:not(.start), .dock .dclock { display: none; }
  .seg { overflow-x: auto; }
}
