/* WavePod web page. No external requests: fonts are self-hosted (SIL OFL). */
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --panel: rgb(22 25 36 / 0.72);
  --panel-solid: #151824;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #eef0f6;
  --muted: #9aa1b4;
  --dim: #6b7286;
  --blue: #5c8dff;
  --cyan: #4fc3f7;
  --amber: #ffb74d;
  --green: #81c784;
  --violet: #ba68c8;
  --pink: #f06292;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 30%, var(--violet) 60%, var(--pink) 80%, var(--amber));
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }
kbd, code {
  font: 0.86em "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}
h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }

/* ------------------------------------------------------------ ambient layers */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; mix-blend-mode: screen;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--blue), transparent 65%); top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--violet), transparent 65%); top: -10vmax; right: -25vmax; animation-delay: -9s; animation-duration: 32s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--pink), transparent 65%); bottom: -35vmax; left: 20vmax; opacity: .18; animation-delay: -17s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(-4vmax, 8vmax) scale(.95); }
}
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-1%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); }
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgb(92 141 255 / 0.14), transparent 60%);
  transform: translate(var(--cx, -999px), var(--cy, -999px));
  transition: opacity .4s;
}

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.top::before {
  content: ""; position: absolute; inset: 8px 12px; z-index: -1; border-radius: 16px;
  background: rgb(10 11 17 / 0.6); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); opacity: 0; transition: opacity .3s;
}
.top.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.2rem "Space Grotesk", sans-serif; text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.top nav a:hover { color: var(--text); }
.top nav .nav-cta {
  color: var(--text); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.04);
}
.top nav .nav-cta:hover { border-color: var(--blue); box-shadow: 0 0 24px rgb(92 141 255 / .35); }

main, footer { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }

/* ------------------------------------------------------------ hero */
.hero { padding-top: 40px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.04);
  color: var(--text); text-decoration: none; font-size: .9rem; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.pill::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.12), transparent);
  animation: sweep 4s 1.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgb(255 77 94 / .6); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(255 77 94 / .6); } 100% { box-shadow: 0 0 0 10px rgb(255 77 94 / 0); } }
.pill-arrow { color: var(--muted); transition: transform .25s var(--ease); }
.pill:hover .pill-arrow { transform: translateX(3px); color: var(--text); }

h1 {
  font-size: clamp(2.5rem, 6.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700;
  margin: 0 auto 24px;
}
h1 .line { display: block; }
.shine {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
  padding-bottom: .08em;
}
@keyframes shine { to { background-position: -200% 0; } }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; margin: 0 auto 36px; }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.button {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; text-decoration: none; color: var(--text);
  transform: translate(var(--mx), var(--my)); transition: transform .25s var(--ease), box-shadow .3s, border-color .3s;
  isolation: isolate;
}
.button span { position: relative; z-index: 1; }
.button.primary { color: #fff; background: linear-gradient(135deg, #3f6cff, #8a5cff 55%, #e0569a); box-shadow: 0 10px 40px -8px rgb(110 90 255 / .7), inset 0 1px 0 rgb(255 255 255 / .25); }
.button.primary::before {
  content: ""; position: absolute; inset: -2px; border-radius: 16px; z-index: -1;
  background: var(--grad); background-size: 200% 100%; filter: blur(14px); opacity: .55;
  animation: shine 6s linear infinite;
}
.button.primary:hover { box-shadow: 0 16px 60px -8px rgb(140 100 255 / .9), inset 0 1px 0 rgb(255 255 255 / .3); }
.button.ghost { border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.04); backdrop-filter: blur(8px); }
.button.ghost:hover { border-color: rgb(255 255 255 / .3); background: rgb(255 255 255 / 0.07); }

/* live studio */
.studio-wrap { margin: 56px auto 0; max-width: 1120px; perspective: 1600px; }
.studio-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #11131a; border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .03), 0 0 120px -40px rgb(92 141 255 / .6);
  transform: rotateX(var(--tilt, 14deg)) scale(var(--scale, .96)); transform-origin: 50% 0;
  transition: transform .15s linear;
}
.studio-frame::before {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgb(255 255 255 / .22), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.studio-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0d0f15; font-size: .85rem; color: var(--muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e3b; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.studio-title { flex: 1; text-align: center; }
.rec-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .75rem "JetBrains Mono", monospace; color: #ff5d6c; letter-spacing: .08em; }
.rec-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
#studio { display: block; width: 100%; height: 440px; cursor: ew-resize; touch-action: pan-y; }
.studio-hint { color: var(--dim); font-size: .9rem; margin: 20px auto 0; max-width: 70ch; }

/* ------------------------------------------------------------ marquee */
.marquee-sec { padding: 40px 0 24px; }
.eyebrow { font: 600 .78rem "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow.center { text-align: center; }
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  white-space: nowrap; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.025); color: var(--muted); font: 500 .95rem "Space Grotesk", sans-serif;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 56px 0; }
.stat { text-align: center; padding: 24px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgb(255 255 255 / .035), transparent); }
.stat b {
  display: block; font: 700 clamp(2rem, 4.4vw, 3.2rem)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.03em;
  background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------ features */
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 56px; text-align: center; }
h2 .dim { color: var(--dim); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --x: 50%; --y: 50%;
  position: relative; padding: 26px; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgb(92 141 255 / .16), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--x) var(--y), rgb(160 140 255 / .9), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { transform: translateY(-4px); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.card h3 { margin: 18px 0 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); }
.card em { color: var(--text); font-style: normal; }

.viz { height: 120px; border-radius: 14px; background: rgb(0 0 0 / .28); border: 1px solid var(--line); position: relative; overflow: hidden; }

.viz-meters { display: flex; align-items: flex-end; gap: 6px; padding: 14px 16px; }
.viz-meters i {
  flex: 1; height: 100%; border-radius: 4px; transform-origin: bottom;
  background: linear-gradient(0deg, #2fbf71 0 60%, #e8d04a 60% 82%, #ff5d6c 82%);
  animation: meter 1s ease-in-out infinite alternate; opacity: .9;
}
.viz-meters i:nth-child(4n+1) { animation-duration: .7s; } .viz-meters i:nth-child(4n+2) { animation-duration: 1.1s; animation-delay: -.3s; }
.viz-meters i:nth-child(4n+3) { animation-duration: .9s; animation-delay: -.6s; } .viz-meters i:nth-child(4n) { animation-duration: 1.3s; animation-delay: -.2s; }
.viz-meters i:nth-child(5), .viz-meters i:nth-child(6), .viz-meters i:nth-child(11), .viz-meters i:nth-child(15) { animation-name: meter-low; }
@keyframes meter { 0% { transform: scaleY(.15); } 35% { transform: scaleY(.7); } 70% { transform: scaleY(.45); } 100% { transform: scaleY(.85); } }
@keyframes meter-low { 0% { transform: scaleY(.04); } 100% { transform: scaleY(.2); } }

.viz-shield svg { width: 100%; height: 100%; }
.viz-shield .pulse { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: ecg 2.4s linear infinite; filter: drop-shadow(0 0 6px var(--green)); }
@keyframes ecg { 0% { stroke-dashoffset: 320; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -320; } }

.viz-split .clip { position: absolute; top: 34px; height: 52px; border-radius: 8px; background: linear-gradient(180deg, rgb(255 183 77 / .35), rgb(255 183 77 / .18)); border-top: 2px solid var(--amber); }
.viz-split .clip::after { content: ""; position: absolute; inset: 10px 8px; background: repeating-linear-gradient(90deg, var(--amber) 0 2px, transparent 2px 5px); -webkit-mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000 40%, transparent 70%); mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000 40%, transparent 70%); opacity: .8; }
.viz-split .a { left: 16px; width: calc(50% - 20px); animation: split-a 3s var(--ease) infinite; }
.viz-split .b { right: 16px; width: calc(50% - 20px); animation: split-b 3s var(--ease) infinite; }
.viz-split .blade { position: absolute; left: 50%; top: 14px; bottom: 14px; width: 2px; background: #fff; box-shadow: 0 0 12px #fff; animation: blade 3s var(--ease) infinite; }
@keyframes split-a { 0%, 35% { transform: translateX(4px); } 55%, 85% { transform: translateX(-10px); } 100% { transform: translateX(4px); } }
@keyframes split-b { 0%, 35% { transform: translateX(-4px); } 55%, 85% { transform: translateX(10px); } 100% { transform: translateX(-4px); } }
@keyframes blade { 0% { transform: scaleY(0); opacity: 0; } 20%, 40% { transform: scaleY(1); opacity: 1; } 55%, 100% { transform: scaleY(1); opacity: 0; } }

.viz-eq svg { width: 100%; height: 100%; }
.viz-eq .line { fill: none; stroke: var(--cyan); stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--cyan)); vector-effect: non-scaling-stroke; }
.viz-eq .fill { fill: url(#none); fill: rgb(79 195 247 / .12); }

.viz-lufs { display: grid; place-items: center; }
.viz-lufs svg { position: absolute; inset: 10px 0 0; width: 100%; height: calc(100% - 4px); }
.viz-lufs .track, .viz-lufs .arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.viz-lufs .track { stroke: rgb(255 255 255 / .07); }
.viz-lufs .arc { stroke: url(#none); stroke: var(--green); stroke-dasharray: 158; stroke-dashoffset: 158; filter: drop-shadow(0 0 6px var(--green)); transition: stroke-dashoffset .1s linear; }
.viz-lufs b { position: relative; top: 14px; font: 700 1.7rem "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.viz-lufs small { position: absolute; bottom: 10px; color: var(--muted); font: 600 .7rem "JetBrains Mono", monospace; letter-spacing: .12em; }

.viz-chips { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 14px; }
.viz-chips span {
  font: 500 .82rem "JetBrains Mono", monospace; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .04); color: var(--muted); animation: float 4s ease-in-out infinite;
}
.viz-chips span:nth-child(odd) { animation-delay: -2s; }
.viz-chips span:nth-child(3n) { color: var(--amber); border-color: rgb(255 183 77 / .35); }
.viz-chips span:nth-child(3n+1) { color: var(--cyan); border-color: rgb(79 195 247 / .35); }
@keyframes float { 50% { transform: translateY(-5px); } }

.viz-term { padding: 16px 18px; }
.viz-term pre { margin: 0; font: .86rem/1.9 "JetBrains Mono", monospace; white-space: pre-wrap; color: var(--text); }
.viz-term .p { color: var(--cyan); } .viz-term .ai { color: var(--violet); } .viz-term .ai-out { color: var(--green); }
.caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -2px; background: var(--text); animation: blink 1s steps(2) infinite; }

.viz-pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.viz-pads i { border-radius: 8px; background: rgb(255 255 255 / .05); border: 1px solid var(--line); animation: pad 3.2s infinite; }
.viz-pads i:nth-child(1) { --c: var(--pink); animation-delay: 0s; } .viz-pads i:nth-child(2) { --c: var(--amber); animation-delay: .4s; }
.viz-pads i:nth-child(3) { --c: var(--green); animation-delay: 1.6s; } .viz-pads i:nth-child(4) { --c: var(--cyan); animation-delay: 2.2s; }
.viz-pads i:nth-child(5) { --c: var(--violet); animation-delay: .9s; } .viz-pads i:nth-child(6) { --c: var(--blue); animation-delay: 2.7s; }
.viz-pads i:nth-child(7) { --c: var(--amber); animation-delay: 1.2s; } .viz-pads i:nth-child(8) { --c: var(--pink); animation-delay: 2s; }
@keyframes pad { 0%, 8% { background: var(--c); box-shadow: 0 0 24px var(--c); border-color: transparent; } 20%, 100% { background: rgb(255 255 255 / .05); box-shadow: none; } }

/* ------------------------------------------------------------ tour */
.tabs { position: relative; display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: -24px auto 36px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .03); overflow-x: auto; }
.tabs button { position: relative; z-index: 1; font: 500 .95rem Inter, sans-serif; color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 10px; cursor: pointer; transition: color .25s; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); }
.tab-ink { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 10px; background: rgb(255 255 255 / .09); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); transition: transform .45s var(--ease), width .45s var(--ease); }
.tilt { perspective: 1400px; max-width: 1080px; margin: 0 auto; }
.tilt-inner {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; display: grid; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: #11131a;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .2s ease-out;
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / .9), 0 0 100px -40px rgb(186 104 200 / .55);
}
.shot { grid-area: 1 / 1; margin: 0; opacity: 0; transform: scale(1.02); transition: opacity .6s var(--ease), transform .8s var(--ease); display: grid; place-items: center; background: #11131a; }
.shot.active { opacity: 1; transform: none; }
.shot img { width: 100%; }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx) var(--gy), rgb(255 255 255 / .1), transparent 40%); mix-blend-mode: overlay; }
.tour-caption { text-align: center; color: var(--muted); margin: 26px auto 0; min-height: 1.6em; }

/* ------------------------------------------------------------ open source */
.oss { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.oss h2 { text-align: left; margin-bottom: 20px; }
.oss-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.platform-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 10px; }
.platform-list li { color: var(--muted); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgb(255 255 255 / .025); }
.platform-list b { color: var(--text); display: inline-block; min-width: 90px; font-family: "Space Grotesk", sans-serif; }
.terminal { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0d13; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9), 0 0 90px -40px rgb(79 195 247 / .5); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font: .8rem "JetBrains Mono", monospace; }
.terminal pre { margin: 0; padding: 22px; font: .9rem/2 "JetBrains Mono", monospace; color: var(--text); white-space: pre-wrap; word-break: break-all; min-height: 196px; }
.terminal .p { color: var(--cyan); } .terminal .ok { color: var(--green); }

/* ------------------------------------------------------------ download */
.download { text-align: center; }
.download h2 { margin-bottom: 16px; }
.muted { color: var(--muted); margin: 0 0 40px; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.platform {
  --x: 50%; --y: 50%;
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 20px 28px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  color: var(--text); text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.platform::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--x) var(--y), rgb(92 141 255 / .22), transparent 50%); }
.platform:hover { transform: translateY(-6px); border-color: rgb(92 141 255 / .6); box-shadow: 0 24px 60px -20px rgb(92 141 255 / .6); }
.platform:hover::before { opacity: 1; }
.platform svg { width: 40px; height: 40px; fill: var(--text); margin-bottom: 8px; position: relative; }
.platform strong { font: 700 1.35rem "Space Grotesk", sans-serif; position: relative; }
.platform span { color: var(--muted); font-size: .92rem; position: relative; }
.yours { display: none; position: absolute; top: 12px; right: 12px; font: 600 .68rem "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; font-style: normal; padding: 3px 8px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #3f6cff, #8a5cff); }
.platform.mine { border-color: rgb(92 141 255 / .55); box-shadow: 0 0 0 1px rgb(92 141 255 / .25), 0 20px 60px -24px rgb(92 141 255 / .7); }
.platform.mine .yours { display: block; }
.note { color: var(--dim); font-size: .92rem; max-width: 66ch; margin: 36px auto 0; }

/* ------------------------------------------------------------ footer */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding-top: 36px; padding-bottom: 48px; }
footer p { margin: 0 0 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.05rem "Space Grotesk", sans-serif; margin-bottom: 14px; }
.fine { color: var(--dim); font-size: .8rem; max-width: 80ch; margin-top: 18px !important; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

/* ------------------------------------------------------------ scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------ legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.legal h1 { text-align: left; max-width: none; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.03em; margin-bottom: 28px; }
.legal h2 { text-align: left; font-size: 1.3rem; margin: 40px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal address { font-style: normal; color: var(--text); padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .oss { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main, footer, .top { padding-left: 16px; padding-right: 16px; }
  .top nav a:not(.nav-cta) { display: none; }
  section { padding: 64px 0; }
  .bento, .platforms { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  #studio { height: 340px; }
  .studio-wrap { margin-top: 48px; }
  .tabs { justify-content: flex-start; }
  .cursor-glow { display: none; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .studio-frame { transform: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track span:nth-child(n+13) { display: none; }
  .marquee { -webkit-mask: none; mask: none; }
  .viz-meters i { transform: scaleY(.6); }
  .viz-shield .pulse { stroke-dashoffset: 0; }
  .viz-split .blade { opacity: 1; }
  .cursor-glow { display: none; }
  .grain { display: none; }
}

/* full-width feature card: demo on the left, text on the right */
.card.wide { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; }
.card.wide .viz { grid-row: 1 / 3; height: 100%; min-height: 140px; display: flex; align-items: center; }
.card.wide h3 { margin-top: 6px; }
@media (max-width: 640px) { .card.wide { display: block; } .card.wide .viz { height: 160px; } }

/* before/after enhancement demo */
.viz-enhance { padding: 0 18px; }
.viz-enhance .bars { position: absolute; inset: 18px 18px 34px; display: flex; align-items: center; gap: 3px; }
.viz-enhance .bars i {
  flex: 1; border-radius: 2px; height: var(--h); min-height: 2px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  transition: height 1.1s var(--ease), opacity 1.1s var(--ease), filter 1.1s;
}
.viz-enhance .ba { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .05); border: 1px solid var(--line); }
.viz-enhance .ba b { font: 600 .7rem "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; color: var(--dim); transition: background .5s, color .5s; }
.viz-enhance.raw .before, .viz-enhance:not(.raw) .after { color: #fff; background: linear-gradient(135deg, #3f6cff, #8a5cff); }
.viz-enhance.raw .bars i { --c1: #8a91a3; --c2: #5b6172; }
.viz-enhance:not(.raw) .bars i { --c1: var(--cyan); --c2: var(--violet); filter: drop-shadow(0 0 4px rgb(79 195 247 / .45)); }
