/* CubeAnvil — site v2 */

@font-face { font-family: "Onest"; src: url("../fonts/Onest-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/Onest-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/Onest-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #06050c;
  --bg-2: #0a0914;
  --panel: #0e0d18;
  --panel-2: #131222;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f2fc;
  --muted: #9b96b0;
  --dim: #6d6985;
  --violet: #9b6bff;
  --violet-soft: #c4a8ff;
  --blue: #4a86ff;
  --crystal: #7fd8ff;
  --green: #5fe3a1;
  --red: #ff7a90;
  --amber: #ffcf6b;
  --grad: linear-gradient(135deg, #b878ff 0%, #6a7bff 55%, #3f94ff 100%);
  --grad-text: linear-gradient(100deg, #e4cdff 0%, #b88bff 35%, #6f9bff 75%, #7fd8ff 100%);
  --radius: 22px;
  --radius-sm: 12px;
  --shell: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(155, 107, 255, 0.45); }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: #fff; color: #000; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 14px; }

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

/* ───────────── ambient background ───────────── */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.ambient::before { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(124, 77, 255, 0.55), transparent 65%); }
.ambient::after { width: 55vw; height: 55vw; right: -20vw; top: 35vh; background: radial-gradient(circle, rgba(56, 120, 255, 0.35), transparent 65%); }
.noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───────────── header ───────────── */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center; pointer-events: none;
}
.site-header .bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(14, 13, 24, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; filter: drop-shadow(0 0 12px rgba(140, 100, 255, 0.55)); }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color 0.25s, background 0.25s;
}
.site-header nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ───────────── buttons ───────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, border-color 0.25s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-primary {
  color: #0a0716; background: linear-gradient(135deg, #f1e4ff, #c9adff 45%, #92b4ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 8px 30px rgba(130, 100, 255, 0.4), 0 0 60px rgba(120, 100, 255, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 14px 44px rgba(130, 100, 255, 0.55), 0 0 80px rgba(120, 100, 255, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.25); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ───────────── typography helpers ───────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet-soft);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--violet-soft)); }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title {
  font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin-top: 18px;
}
.section-lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 620px; line-height: 1.55; }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* ───────────── hero ───────────── */
.hero { position: relative; padding: 112px 0 0; overflow: clip; }
.hero-field {
  position: absolute; left: 0; right: 0; top: 0; height: min(1080px, 125vh); z-index: 0; pointer-events: none; opacity: 0.85;
  -webkit-mask-image: radial-gradient(ellipse 80% 66% at 50% 42%, #000 18%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 66% at 50% 42%, #000 18%, transparent 78%);
}
.hero-field canvas { width: 100%; height: 100%; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 52% 40% at 50% 36%, rgba(6, 5, 12, 0.78), transparent 72%); }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); font-size: 14px; color: var(--muted);
  backdrop-filter: blur(8px);
}
.pill b { font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #0a0716; font-size: 12px; letter-spacing: 0.04em; }
.hero h1 {
  margin: 26px auto 0; max-width: 1000px;
  font-size: clamp(46px, 7.6vw, 100px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 600;
}
.hero h1 .line { display: block; }
/* background-clip:text paints only inside the box, and at line-height .98 that box ends above the descenders of "g" and "y";
   pad the box and pull the layout back so the text stays where it was */
.hero h1 .gradient-text { filter: drop-shadow(0 0 40px rgba(150, 110, 255, 0.35)); padding: 0.04em 0.08em 0.2em; margin: -0.04em -0.08em -0.2em; }
.hero-sub { margin: 24px auto 0; max-width: 640px; font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); line-height: 1.55; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 24px; display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--violet-soft); }

.stage { position: relative; z-index: 2; margin-top: 28px; perspective: 1800px; padding-bottom: 20px; }
.stage-glow {
  position: absolute; left: 50%; top: 40%; width: 80%; height: 70%; translate: -50% -50%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(130, 90, 255, 0.55), rgba(60, 120, 255, 0.2) 45%, transparent 70%);
  filter: blur(60px);
}
.stage-tilt { transform-style: preserve-3d; transform: rotateX(var(--rx, 14deg)) scale(var(--sc, 0.94)); transform-origin: 50% 0; will-change: transform; }

/* ───────────── app window (illustration of the real UI) ───────────── */
.win {
  position: relative; border-radius: 16px; background: #0d0d10; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 120px rgba(120, 90, 255, 0.25);
  font-size: 12.5px; line-height: 1.4; text-align: left; color: #e8e6ee;
}
.win::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.win-title { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: #0a0a0d; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 12px; }
.win-title img { width: 17px; height: 17px; }
.win-title b { font-weight: 600; }
.win-title span { color: #8a8794; }
.win-title .ctl { margin-left: auto; display: flex; gap: 22px; color: #9b98a5; font-size: 13px; letter-spacing: 2px; }
.win-body { display: grid; grid-template-columns: 44px 220px minmax(0, 1fr) 330px; height: 560px; }
.rail { background: #0a0a0d; border-right: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; align-items: center; padding-top: 12px; gap: 10px; }
.rail i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #8d8a98; }
.rail i.on { color: #fff; background: rgba(255, 255, 255, 0.07); box-shadow: -2px 0 0 #4a86ff inset; }
.rail svg { width: 16px; height: 16px; }
.rail .lang { margin-top: auto; margin-bottom: 12px; font-size: 10.5px; color: #9b98a5; }
.explorer { padding: 10px 6px; border-right: 1px solid rgba(255, 255, 255, 0.05); background: #0c0c0f; overflow: hidden; }
.explorer h6 { margin: 0 8px 8px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; color: #8d8a98; }
.tree { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.tree li { display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 8px; border-radius: 6px; color: #cfcdd8; white-space: nowrap; }
.tree li svg { width: 13px; height: 13px; flex: none; color: #8d8a98; }
.tree li.d { color: #e8e6ee; }
.tree .i1 { padding-left: 22px; } .tree .i2 { padding-left: 36px; } .tree .i3 { padding-left: 50px; } .tree .i4 { padding-left: 64px; }
.tree li.new { background: rgba(95, 227, 161, 0.1); color: #bff5da; animation: popIn 0.6s var(--ease) both; }
.tree li.new::after { content: "+"; margin-left: auto; color: var(--green); font-weight: 700; }
.tree li.hide { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.center-pane { position: relative; display: flex; flex-direction: column; background: #0f0f12; min-width: 0; }
.tabs { display: flex; align-items: center; height: 38px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: #0c0c0f; padding-left: 6px; }
.tab { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; font-size: 12.5px; border-bottom: 2px solid #4a86ff; background: rgba(255, 255, 255, 0.025); }
.tab svg { width: 14px; height: 14px; color: #9b98a5; }
.toolbar { margin-left: auto; display: flex; align-items: center; gap: 12px; padding-right: 10px; color: #8d8a98; font-size: 12px; }
.run-btn { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 13px; border-radius: 7px; background: #2563eb; color: #fff; font-weight: 600; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; transition: box-shadow 0.4s, transform 0.2s; }
.run-btn svg { width: 11px; height: 11px; }
.run-btn.press { transform: scale(0.95); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 24px rgba(74, 134, 255, 0.9); }
.toolbar .dim { opacity: 0.55; white-space: nowrap; }
.game { position: relative; flex: 1; overflow: hidden; background: #0b0d18; }
.game canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.game .idle { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: #0f0f12; transition: opacity 0.8s ease, visibility 0.8s; }
.game .idle.gone { opacity: 0; visibility: hidden; }
.idle .ico { width: 46px; height: 46px; border-radius: 12px; background: #17171c; border: 1px solid rgba(255, 255, 255, 0.07); display: grid; place-items: center; margin: 0 auto 12px; color: #4a86ff; }
.idle .ico svg { width: 22px; height: 22px; }
.idle b { display: block; font-size: 14px; font-weight: 600; }
.idle small { color: #8d8a98; font-size: 12px; }
.hud { z-index: 3; position: absolute; left: 0; right: 0; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; transition: opacity 0.8s 0.3s; }
.game.live .hud { opacity: 1; }
.hotbar { display: flex; gap: 3px; padding: 3px; background: rgba(20, 20, 24, 0.7); border: 2px solid #1a1a1f; image-rendering: pixelated; }
.hotbar i { width: 34px; height: 34px; background: rgba(120, 120, 130, 0.28); border: 2px solid rgba(8, 8, 10, 0.7); display: grid; place-items: center; }
.hotbar i.sel { border-color: #e9e9ee; background: rgba(160, 160, 170, 0.35); }
.hotbar canvas { width: 24px; height: 24px; image-rendering: pixelated; }
.crosshair { position: absolute; left: 50%; top: 44%; width: 16px; height: 16px; translate: -50% -50%; opacity: 0; transition: opacity 0.8s 0.4s; }
.game.live .crosshair { opacity: 0.85; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: #fff; mix-blend-mode: difference; }
.crosshair::before { left: 7px; top: 0; width: 2px; height: 16px; }
.crosshair::after { top: 7px; left: 0; height: 2px; width: 16px; }
.mc-hand { position: absolute; right: 3%; bottom: -10%; width: 34%; max-width: 230px; image-rendering: pixelated; opacity: 0; transform: translateY(40px) rotate(14deg); transition: opacity 0.9s 0.5s, transform 1s var(--ease) 0.5s; filter: drop-shadow(0 0 30px rgba(110, 200, 255, 0.55)); }
.game.live .mc-hand { opacity: 1; transform: translateY(0) rotate(0deg); animation: bob 4.2s ease-in-out 1.6s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -4px -8px; rotate: -2.5deg; } }
.toast { position: absolute; left: 14px; top: 14px; padding: 8px 12px; border-radius: 9px; background: rgba(12, 12, 16, 0.78); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 11.5px; display: flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(-6px); transition: all 0.5s var(--ease); backdrop-filter: blur(8px); }
.toast.on { opacity: 1; transform: none; }
.toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.chat { display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, 0.06); background: #0c0c0f; min-width: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.chat-head b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.chat-head small { color: #8d8a98; font-size: 11px; }
.chat-head .act { color: #a9a6b3; font-size: 12px; display: flex; gap: 12px; align-items: center; }
.feed { flex: 1; overflow: hidden; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.msg { animation: msgIn 0.55s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; max-width: 92%; padding: 9px 12px; border-radius: 12px 12px 3px 12px; background: #1b1a26; border: 1px solid rgba(255, 255, 255, 0.07); color: #ece9f5; }
.msg.agent { color: #cfcbdc; padding: 0 2px; }
.msg.agent p + p { margin-top: 6px; }
.msg.agent strong { color: #fff; font-weight: 600; }
.act-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px; background: #121217; border: 1px solid rgba(255, 255, 255, 0.055); font-size: 11.5px; }
.act-row .k { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 5px; color: var(--violet-soft); background: rgba(155, 107, 255, 0.13); }
.act-row .k.edit { color: var(--amber); background: rgba(255, 207, 107, 0.12); }
.act-row .k.new { color: var(--green); background: rgba(95, 227, 161, 0.12); }
.act-row .k.ok { color: var(--crystal); background: rgba(127, 216, 255, 0.12); }
.act-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d9d6e4; }
.act-row .t small { color: #7e7a8c; margin-left: 6px; }
.act-row .st { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--violet-soft); animation: spin 0.8s linear infinite; flex: none; }
.act-row.done .st { animation: none; border: 0; background: var(--green); display: grid; place-items: center; }
.act-row.done .st::after { content: ""; width: 6px; height: 3px; border-left: 1.8px solid #06210f; border-bottom: 1.8px solid #06210f; rotate: -45deg; translate: 0 -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.composer { margin: 8px 10px 10px; padding: 10px 12px 8px; border-radius: 14px; background: #111115; border: 1px solid rgba(255, 255, 255, 0.07); }
.composer .ph { color: #7e7a8c; min-height: 18px; font-size: 12px; }
.composer .ph .typed { color: #e9e6f3; }
.caret { display: inline-block; width: 1.5px; height: 13px; background: var(--violet-soft); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer .row { margin-top: 10px; display: flex; align-items: center; gap: 10px; color: #8d8a98; font-size: 11.5px; }
.composer .row .model { margin-left: auto; }
.composer .send { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2a2a34; color: #bdb9c9; transition: background 0.3s; }
.composer .send.ready { background: #e8dcff; color: #14102a; }
.composer svg { width: 13px; height: 13px; }

/* ───────────── strip ───────────── */
.strip { position: relative; z-index: 2; padding: 70px 0 10px; }
.strip p { text-align: center; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-family: var(--mono); }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025); color: #c4c0d3; font-size: 14.5px;
}
.chip i { width: 7px; height: 7px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 10px rgba(130, 110, 255, 0.8); }
.chip code { font-family: var(--mono); font-size: 13px; color: var(--violet-soft); }

/* ───────────── scrollytelling loop ───────────── */
.loop-steps, .step { min-width: 0; }
.loop { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); margin-top: 70px; align-items: start; }
.loop-steps { display: flex; flex-direction: column; }
.step {
  padding: 40px 0 40px 28px; border-left: 1px solid var(--line); position: relative; min-height: 46vh;
  display: flex; flex-direction: column; justify-content: center; opacity: 0.38; transition: opacity 0.5s var(--ease);
}
.step::before { content: ""; position: absolute; left: -1px; top: 50%; height: 0; width: 2px; background: var(--grad); translate: 0 -50%; transition: height 0.6s var(--ease); box-shadow: 0 0 14px rgba(140, 110, 255, 0.8); }
.step.on { opacity: 1; }
.step.on::before { height: 70%; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--violet-soft); letter-spacing: 0.1em; }
.step h3 { margin-top: 12px; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
.step p { margin-top: 14px; color: var(--muted); max-width: 440px; font-size: 17.5px; }
.loop-visual { position: sticky; top: 18vh; height: 64vh; min-height: 440px; max-height: 600px; }
.vis {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), #0b0a15;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 80px rgba(110, 90, 255, 0.12);
  opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none;
}
.vis.on { opacity: 1; transform: none; pointer-events: auto; }
.vis-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); font-family: var(--mono); }
.vis-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.vis-bar span { margin-left: 8px; }
.vis-body { padding: 24px; height: calc(100% - 40px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }

.proj { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); transition: transform 0.4s var(--ease), border-color 0.3s; }
.proj:hover { transform: translateX(4px); border-color: var(--line-strong); }
.proj .gem { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 17px; background: var(--grad); color: #0a0716; flex: none; }
.proj.alt .gem { background: linear-gradient(135deg, #3f94ff, #7fd8ff); }
.proj.alt2 .gem { background: linear-gradient(135deg, #ff9d6b, #ff6b8e); }
.proj b { display: block; font-weight: 600; font-size: 16px; }
.proj small { color: var(--dim); font-size: 13.5px; }
.proj .tag { margin-left: auto; font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.proj.new { border-style: dashed; background: transparent; color: var(--muted); justify-content: center; font-weight: 500; }
.vis-body .composer-lg { margin-top: auto; padding: 18px; border-radius: 18px; background: #111118; border: 1px solid var(--line-strong); }
.composer-lg p { font-size: 17px; line-height: 1.5; color: #ece9f5; min-height: 78px; }
.composer-lg .chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.composer-lg .mini { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.composer-lg .mini svg { width: 13px; height: 13px; }
.composer-lg .go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e8dcff; color: #14102a; }
.composer-lg .go svg { width: 16px; height: 16px; }

.diff { font-family: var(--mono); font-size: 13px; line-height: 1.75; border-radius: 14px; border: 1px solid var(--line); background: #08080f; overflow: hidden; }
.diff .fh { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; background: rgba(255, 255, 255, 0.02); }
.diff .fh em { margin-left: auto; font-style: normal; color: var(--green); }
.diff .ln { display: flex; padding: 0 16px; white-space: pre; color: #a7a3b8; }
.diff .ln span.no { width: 26px; color: #4d4a60; flex: none; user-select: none; }
.diff .ln.add { background: rgba(95, 227, 161, 0.09); color: #c3f7de; box-shadow: 3px 0 0 var(--green) inset; }
.diff .ln.del { background: rgba(255, 122, 144, 0.09); color: #ffc4cd; box-shadow: 3px 0 0 var(--red) inset; }
.diff .kw { color: #c4a8ff; } .diff .ty { color: #7fd8ff; } .diff .st { color: #ffcf6b; } .diff .cm { color: #5f5b78; }
.undo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); font-size: 14.5px; }
.undo-bar .btn { margin-left: auto; min-height: 34px; padding: 0 16px; font-size: 14px; }
.dot-ok { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); flex: none; }

.console { font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: #a7a3b8; padding: 16px 18px; border-radius: 14px; background: #07070d; border: 1px solid var(--line); }
.console .ok { color: var(--green); } .console .hl { color: var(--crystal); } .console .mt { color: #5f5b78; }
.runcard { flex: 1; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--line); background: #0b0d18; min-height: 160px; }
.runcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.runcard .badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(8, 8, 14, 0.7); border: 1px solid var(--line-strong); font-size: 12.5px; display: inline-flex; gap: 8px; align-items: center; backdrop-filter: blur(8px); }

/* ───────────── bento ───────────── */
.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--panel);
  padding: 30px; overflow: hidden; isolation: isolate; transition: border-color 0.4s, transform 0.5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(140, 110, 255, 0.16), transparent 55%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 24px; letter-spacing: -0.025em; font-weight: 600; line-height: 1.2; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 480px; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(155, 107, 255, 0.12); border: 1px solid rgba(155, 107, 255, 0.28); color: var(--violet-soft); }
.card .ic svg { width: 20px; height: 20px; }
.c-a { grid-column: span 4; min-height: 380px; }
.c-b { grid-column: span 2; }
.c-c { grid-column: span 2; }
.c-d { grid-column: span 2; }
.c-e { grid-column: span 2; }
.c-f { grid-column: span 3; }
.c-g { grid-column: span 3; }
.card-visual { margin-top: 26px; }

.term { font-family: var(--mono); font-size: 13px; line-height: 1.9; border-radius: 14px; background: #07070d; border: 1px solid var(--line); padding: 16px 18px; color: #b3afc4; overflow: hidden; }
.term .l { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); }
.in-view .term .l { animation: lineIn 0.6s var(--ease) forwards; animation-delay: calc(var(--i) * 0.28s + 0.2s); }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.term .p { color: var(--violet-soft); } .term .g { color: var(--green); } .term .c { color: var(--crystal); } .term .m { color: #5f5b78; } .term .y { color: var(--amber); }

.code-card { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; border-radius: 14px; background: #07070d; border: 1px solid var(--line); padding: 14px 16px; color: #a7a3b8; white-space: pre; overflow: hidden; }
.code-card .kw { color: #c4a8ff; } .code-card .ty { color: #7fd8ff; } .code-card .st { color: #ffcf6b; } .code-card .cm { color: #5f5b78; } .code-card .fn { color: #8fb4ff; }

.timeline { position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--violet), transparent); }
.timeline .ev { position: relative; font-size: 14.5px; color: #c8c4d6; display: flex; align-items: center; gap: 10px; }
.timeline .ev::before { content: ""; position: absolute; left: -22px; top: 50%; width: 11px; height: 11px; border-radius: 50%; translate: 0 -50%; background: var(--bg); border: 2px solid var(--violet); }
.timeline .ev.cur::before { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.timeline .ev small { color: var(--dim); font-size: 12.5px; margin-left: auto; font-family: var(--mono); }
.timeline .ev .ub { font-size: 12px; font-family: var(--mono); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--violet-soft); }

.toggle2 { display: inline-flex; padding: 5px; border-radius: 999px; background: #08080f; border: 1px solid var(--line); gap: 4px; }
.toggle2 button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-size: 15px; color: var(--muted); font-family: var(--mono); transition: all 0.4s var(--ease); }
.toggle2 button.on { background: var(--grad); color: #0a0716; font-weight: 600; box-shadow: 0 6px 24px rgba(120, 100, 255, 0.4); }
.profile-info { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-info div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.profile-info b { display: block; color: var(--text); font-size: 16px; font-family: var(--mono); font-weight: 500; margin-top: 3px; transition: opacity 0.3s; }

.pix-wrap { display: flex; align-items: center; gap: 22px; }
.pix { width: 128px; height: 128px; flex: none; border-radius: 14px; background: conic-gradient(#171629 25%, #1d1c33 0 50%, #171629 0 75%, #1d1c33 0) 0 0 / 16px 16px; border: 1px solid var(--line); padding: 8px; }
.pix canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.prompt-pill { flex: 1; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); font-size: 14.5px; color: #cfcbdc; line-height: 1.5; }
.prompt-pill small { display: block; color: var(--dim); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }

.shield { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.shield + .shield { margin-top: 10px; }
.shield .ic2 { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.shield .ic2.ok { background: rgba(95, 227, 161, 0.12); color: var(--green); }
.shield .ic2.no { background: rgba(255, 122, 144, 0.12); color: var(--red); }
.shield svg { width: 18px; height: 18px; }
.shield b { display: block; font-size: 15px; font-weight: 600; }
.shield small { color: var(--dim); font-size: 13px; }

.files { display: flex; flex-wrap: wrap; gap: 10px; }
.file-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 14px; color: #cfcbdc; transition: transform 0.4s var(--ease), border-color 0.3s; }
.file-chip:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.file-chip b { font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 3px 6px; border-radius: 5px; letter-spacing: 0.04em; }
.file-chip .pdf { background: rgba(255, 122, 144, 0.14); color: var(--red); }
.file-chip .doc { background: rgba(74, 134, 255, 0.16); color: #86adff; }
.file-chip .xls { background: rgba(95, 227, 161, 0.14); color: var(--green); }
.file-chip .ppt { background: rgba(255, 170, 107, 0.15); color: #ffb084; }
.file-chip .zip { background: rgba(255, 207, 107, 0.14); color: var(--amber); }
.file-chip .img { background: rgba(155, 107, 255, 0.16); color: var(--violet-soft); }

/* ───────────── gallery ───────────── */
.section[hidden] { display: none; }
.gallery { margin-top: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.shot { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a0a0d; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.shot:hover { transform: translateY(-6px); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(120, 100, 255, 0.2); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-size: 14px; color: #d8d4e6; background: linear-gradient(transparent, rgba(5, 4, 10, 0.9)); }
.shot-1 { grid-column: span 8; aspect-ratio: 16 / 9.4; }
.shot-2 { grid-column: span 4; aspect-ratio: 4 / 5.2; }
.shot-3 { grid-column: span 12; aspect-ratio: 16 / 3.6; }
.shot-3 img { object-fit: cover; object-position: center; }

/* ───────────── control ───────────── */
.control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.points { margin-top: 36px; display: grid; gap: 22px; }
.point { display: flex; gap: 16px; }
.point .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(155, 107, 255, 0.12); border: 1px solid rgba(155, 107, 255, 0.28); color: var(--violet-soft); }
.point .ic svg { width: 19px; height: 19px; }
.point b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.point p { color: var(--muted); font-size: 15.5px; margin-top: 3px; }
.trace { border-radius: var(--radius); border: 1px solid var(--line-strong); background: #0b0a15; padding: 20px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 80px rgba(110, 90, 255, 0.14); }
.trace-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 16px; font-size: 14px; color: var(--muted); }
.trace-head span:last-child { font-family: var(--mono); font-size: 12px; color: var(--green); display: inline-flex; gap: 8px; align-items: center; }
.trace-list { display: grid; gap: 10px; }
.tr { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); opacity: 0; transform: translateY(14px); }
.in-view .tr { animation: lineIn 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 0.22s + 0.15s); }
.tr .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.tr b { display: block; font-size: 15px; font-weight: 600; }
.tr small { color: var(--dim); font-size: 12.5px; font-family: var(--mono); }
.tr .ok { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 227, 161, 0.14); color: var(--green); font-size: 12px; flex: none; }

/* ───────────── pricing ───────────── */
.plans { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--panel); }
.plan.featured { border-color: transparent; background: linear-gradient(180deg, rgba(120, 90, 255, 0.16), rgba(60, 120, 255, 0.04)), var(--panel-2); box-shadow: 0 30px 90px rgba(110, 90, 255, 0.22); transform: translateY(-14px); }
.plan.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan .badge { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--grad); color: #0a0716; font-weight: 600; }
.plan h3 { font-size: 20px; font-weight: 600; }
.plan .price { margin-top: 18px; font-size: 56px; letter-spacing: -0.04em; font-weight: 600; line-height: 1; }
.plan .price small { font-size: 16px; color: var(--dim); letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.plan .note { margin-top: 12px; color: var(--muted); font-size: 15.5px; min-height: 48px; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 13px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #d6d2e3; }
.plan li svg { width: 18px; height: 18px; color: var(--violet-soft); flex: none; margin-top: 3px; }
.fineprint { margin-top: 28px; text-align: center; color: var(--dim); font-size: 14.5px; }

/* ───────────── faq ───────────── */
.faq { max-width: 820px; margin: 56px auto 0; display: grid; gap: 12px; }
.qa { border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: border-color 0.3s, background 0.3s; }
.qa[open] { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; gap: 20px; font-size: 18.5px; font-weight: 500; letter-spacing: -0.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 300; color: var(--violet-soft); transition: transform 0.4s var(--ease); line-height: 1; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 26px 24px; color: var(--muted); font-size: 16.5px; max-width: 680px; }

/* ───────────── waitlist ───────────── */
.cta-section { padding-bottom: 60px; }
.cta { position: relative; border-radius: 34px; overflow: hidden; padding: clamp(40px, 7vw, 90px) clamp(24px, 6vw, 80px); border: 1px solid var(--line-strong); background: #0a0914; isolation: isolate; }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 120%, rgba(110, 80, 255, 0.5), transparent 60%), linear-gradient(180deg, rgba(6, 5, 12, 0.35), rgba(6, 5, 12, 0.75)); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.cta h2 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.cta .cta-lead { margin-top: 20px; color: #bdb8cf; font-size: 19px; max-width: 480px; }
.form { padding: 28px; border-radius: 24px; background: rgba(12, 11, 22, 0.72); border: 1px solid var(--line-strong); backdrop-filter: blur(20px); display: grid; gap: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.input { width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 16px; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(155, 107, 255, 0.18); background: rgba(255, 255, 255, 0.06); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); font-size: 14.5px; color: var(--muted); transition: all 0.25s; }
.seg input:checked + span { background: rgba(155, 107, 255, 0.18); border-color: var(--violet); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--violet-soft); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 22px; font-size: 14.5px; color: var(--muted); }
.form-msg.ok { color: var(--green); } .form-msg.err { color: var(--red); }
.form .btn { width: 100%; min-height: 54px; }
.form .tiny { font-size: 12.5px; color: var(--dim); text-align: center; }

/* ───────────── footer ───────────── */
.footer { padding: 50px 0 60px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 34px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14.5px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a:hover { color: var(--text); }

/* ───────────── reveal ───────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal, .no-js .term .l, .no-js .tr { opacity: 1; transform: none; }

/* ───────────── responsive ───────────── */
@media (max-width: 1100px) {
  .win-body { grid-template-columns: 44px 190px minmax(0, 1fr) 290px; height: 500px; }
}
@media (max-width: 960px) {
  .site-header nav { display: none; }
  .loop { grid-template-columns: minmax(0, 1fr); }
  .loop-visual { position: relative; top: 0; height: 520px; order: -1; }
  .step { min-height: auto; opacity: 1; padding: 26px 0 26px 22px; }
  .step::before { height: 70%; }
  .control, .cta-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-a, .c-f, .c-g { grid-column: span 2; }
  .c-b, .c-c, .c-d, .c-e { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .shot-1, .shot-2 { grid-column: span 12; }
  .shot-2 { aspect-ratio: 16 / 10; }
  .win-body { grid-template-columns: 40px minmax(0, 1fr) 280px; height: 480px; }
  .explorer { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .hero { padding-top: 120px; }
  .bento { grid-template-columns: 1fr; }
  .c-a, .c-b, .c-c, .c-d, .c-e, .c-f, .c-g { grid-column: span 1; }
  .card { padding: 24px; }
  .win-body { grid-template-columns: minmax(0, 1fr); height: 430px; }
  .rail, .center-pane { display: none; }
  .chat { border-left: 0; }
  .win-title .ctl { display: none; }
  .stage-tilt { --rx: 0deg !important; --sc: 1 !important; }
  .profile-info { grid-template-columns: 1fr; }
  .pix-wrap { flex-direction: column; align-items: stretch; }
  .pix { width: 112px; height: 112px; }
  .site-header .bar { gap: 14px; }
  .loop-visual { height: 480px; }
  .vis-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .reveal, .term .l, .tr { opacity: 1 !important; transform: none !important; }
  .step { opacity: 1; }
}

/* ───────────── refinements ───────────── */
section[id] { scroll-margin-top: 70px; }
.feed { -webkit-mask-image: linear-gradient(transparent 0, #000 44px); mask-image: linear-gradient(transparent 0, #000 44px); }
.act-row { padding: 5px 8px; }

.pill b { white-space: nowrap; }
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .pill { font-size: 13px; padding-right: 14px; }
  .site-header .bar { padding-left: 14px; }
  .vis { max-width: 100%; }
  .diff { font-size: 11.5px; }
  .diff .ln { padding: 0 10px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
}

.step .vis-body { height: auto; min-height: 380px; }
.step .vis .runcard { min-height: 200px; }

/* ───────────── real-screenshot viewer ───────────── */
.viewer { position: relative; margin-top: 56px; }
.viewer-tabs { position: relative; z-index: 2; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.viewer-tabs button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 15px; transition: all 0.35s var(--ease); }
.viewer-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.viewer-tabs button.on { background: var(--grad); color: #0a0716; border-color: transparent; font-weight: 600; box-shadow: 0 8px 30px rgba(120, 100, 255, 0.4); }
.viewer-glow { position: absolute; left: 50%; top: 58%; width: 78%; height: 62%; translate: -50% -50%; z-index: 0; background: radial-gradient(ellipse, rgba(130, 90, 255, 0.5), rgba(60, 120, 255, 0.18) 50%, transparent 72%); filter: blur(70px); pointer-events: none; }
.viewer-frame { position: relative; z-index: 1; padding: 12px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(180deg, #1a1925, #0f0e16); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.6); }
.viewer-frame::after { content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.viewer-stage { position: relative; aspect-ratio: 1500 / 878; background: #0f0f0f; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.vimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.vimg.on { opacity: 1; }
.vmodal { display: grid; place-items: center; }
.vmodal .vback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(5px) brightness(0.32); transform: scale(1.04); }
.vmodal .vfront { position: relative; width: min(42.3%, 634px); height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.viewer-cap { position: relative; z-index: 1; margin-top: 26px; text-align: center; color: var(--muted); font-size: 17px; max-width: 720px; margin-inline: auto; min-height: 56px; transition: opacity 0.3s; }
.viewer-cap b { color: var(--text); font-weight: 600; }

.c-h { grid-column: span 3; }
.c-i { grid-column: span 3; }
.shot-crop { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #0d0d10; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.shot-crop img { width: 100%; height: auto; display: block; }
.shot-crop.tall { max-height: 300px; position: relative; }
.shot-crop.tall img { object-fit: cover; object-position: top; }
.shot-crop.tall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, rgba(14, 13, 24, 0.95)); }
@media (max-width: 960px) { .c-h, .c-i { grid-column: span 2; } }
@media (max-width: 700px) {
  .c-h, .c-i { grid-column: span 1; }
  .viewer-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .viewer-tabs button { white-space: nowrap; flex: none; }
  .viewer-frame { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .viewer-stage { width: 900px; max-width: none; }
  .vmodal .vfront { width: 66%; }
  .swipe-hint { display: block; }
}

.swipe-hint { display: none; margin-top: 14px; text-align: center; font-size: 13px; color: var(--dim); font-family: var(--mono); }

@media (max-width: 700px) { .swipe-hint { display: block; } }

/* crisp screenshots: never upscale a crop beyond its native pixels */
.shot-crop.plan { width: min(100%, 432px); }
.vimg { image-rendering: auto; }
@media (max-width: 700px) { .viewer-frame { padding: 8px; border-radius: 18px; } }

/* let the real screenshots breathe: wider than the text column, up to their native 1500px */
@media (min-width: 1000px) { .viewer { margin-inline: calc((100% - min(1500px, 100vw - 48px)) / 2); } }

/* ───────────── hero demo v2: editor, texture lab, terminal, launch, combat ───────────── */
.tabs { overflow: hidden; }
.tabs .tab { flex: none; border-bottom-color: transparent; background: transparent; color: #8d8a98; transition: color 0.3s, background 0.3s, border-color 0.3s; }
.tabs .tab.on { border-bottom-color: #4a86ff; background: rgba(255, 255, 255, 0.04); color: #fff; }
.tabs .tab.on svg { color: #cfd6ff; }
.tab.file { display: none; }
.tab.file.show { display: flex; animation: tabIn 0.45s var(--ease) both; }
.tab.file span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes tabIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.views { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #0b0d18; }
.views > .game, .views > .view { position: absolute; inset: 0; flex: none; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s; }
.views > .game.on, .views > .view.on { opacity: 1; visibility: visible; }

.view.editor { background: #0d0d11; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: #cfcdd8; display: flex; flex-direction: column; }
.view.editor::after { content: ""; position: absolute; left: 0; right: 0; top: -70px; height: 70px; pointer-events: none; opacity: 0; background: linear-gradient(transparent, rgba(155, 107, 255, 0.16), transparent); }
.view.editor.scanning::after { animation: sweepDown 1.2s ease-in-out; }
@keyframes sweepDown { 0% { top: -70px; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.crumb { padding: 8px 16px; font-size: 10.5px; letter-spacing: 0.02em; color: #6d6985; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: #0b0b0e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code { flex: 1; padding: 10px 0; overflow: hidden; }
.cl { display: flex; white-space: pre; min-height: 20.4px; }
.cl .no { width: 46px; padding-right: 16px; text-align: right; color: #4d4a60; flex: none; user-select: none; }
.cl.cur { background: rgba(155, 107, 255, 0.09); }
.cl.cur .no { color: #a493dd; }
.cl.add { box-shadow: 3px 0 0 rgba(95, 227, 161, 0.85) inset; }
.cl.scan { opacity: 0; animation: lineIn 0.45s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms); }
.cl .caret { height: 14px; vertical-align: -3px; }
.editor .kw { color: #c4a8ff; } .editor .ty { color: #7fd8ff; } .editor .st { color: #ffcf6b; } .editor .cm { color: #5f5b78; } .editor .fn { color: #8fb4ff; } .editor .ky { color: #7fd8ff; }

.view.texture { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 42%, #17172e, #0d0d11 72%); }
.texwrap { text-align: center; }
.texbox {
  position: relative; width: 224px; height: 224px; margin: 0 auto; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14); background-color: #1a1a22;
  background-image: conic-gradient(#242430 25%, #1a1a22 0 50%, #242430 0 75%, #1a1a22 0); background-size: 28px 28px;
  box-shadow: 0 0 0 1px #000, 0 24px 60px rgba(0, 0, 0, 0.55); transition: box-shadow 0.9s var(--ease);
}
.texbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.texbox::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 14px 14px; }
.texbox.gen::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; z-index: 2; background: linear-gradient(transparent, rgba(127, 216, 255, 0.35), transparent); animation: sweepDown 1.1s linear infinite; }
.texbox.done { box-shadow: 0 0 0 1px #000, 0 0 80px rgba(127, 216, 255, 0.42), 0 24px 60px rgba(0, 0, 0, 0.55); }
.texcap { margin-top: 18px; font-size: 12px; color: #8d8a98; }
.texcap b { display: block; margin-bottom: 3px; font-family: var(--font); font-size: 13px; font-weight: 600; color: #e8e6ee; }

.termdock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 124px; padding: 8px 16px; overflow: hidden;
  background: #08080b; border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: #a7a3b8;
  transform: translateY(102%); transition: transform 0.55s var(--ease);
}
.termdock.on { transform: none; }
.termdock .th { margin-bottom: 4px; font-size: 10px; letter-spacing: 0.12em; color: #6d6985; }
.termdock div div { animation: msgIn 0.35s var(--ease) both; }
.termdock .ok { color: var(--green); } .termdock .mt { color: #5f5b78; } .termdock .hl { color: var(--crystal); }

.launch { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse at 50% 38%, #1b1738, #09090d 72%); opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; }
.launch.on { opacity: 1; visibility: visible; }
.launch img { margin: 0 auto 14px; filter: drop-shadow(0 0 22px rgba(140, 100, 255, 0.7)); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.launch .lg { margin-bottom: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--violet-soft); }
.launch .bar { width: 230px; height: 12px; margin: 0 auto; padding: 1px; background: #121218; border: 2px solid #2c2c3a; }
.launch .bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #5fe3a1 0 8px, #34b27a 8px 10px); transition: width 0.4s steps(10); }
.launch small { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: #6d6985; }

.mc-chat { position: absolute; left: 12px; bottom: 100px; z-index: 3; display: flex; flex-direction: column; gap: 2px; max-width: 80%; font-family: var(--mono); font-size: 11px; pointer-events: none; }
.mc-chat div { width: fit-content; padding: 2px 7px; color: #fff; background: rgba(0, 0, 0, 0.52); text-shadow: 1px 1px 0 #262626; animation: msgIn 0.4s var(--ease) both; }
.mc-chat .aq { color: #55ffff; font-weight: 400; }
.flash { position: absolute; inset: 0; z-index: 7; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: shutter 0.6s ease-out; }
@keyframes shutter { 0% { opacity: 0.9; } 100% { opacity: 0; } }

.hud .xp { width: 340px; height: 6px; background: #17171c; border: 1px solid #000; }
.hud .xp i { display: block; height: 100%; width: 41%; background: #7ee02f; box-shadow: 0 0 8px rgba(126, 224, 47, 0.6); }
.hud .icons { display: flex; justify-content: space-between; width: 340px; }
.hud .icons canvas { width: 140px; height: 17px; image-rendering: pixelated; }
.hotbar { margin-top: -2px; }
.hotbar i.pop canvas { animation: slotPop 0.6s var(--ease); }
@keyframes slotPop { 0% { transform: scale(0.3) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.3); } 100% { transform: none; opacity: 1; } }

.game.live .mc-hand { animation: bob 4.2s ease-in-out 1.6s infinite, glowPulse 2.4s ease-in-out 1.6s infinite; }
.game.live .mc-hand.swing { animation: swing 0.42s cubic-bezier(0.3, 1.3, 0.5, 1), glowPulse 2.4s ease-in-out infinite; }
@keyframes swing { 0% { transform: translateY(0) rotate(0); } 38% { transform: translate(-90px, -34px) rotate(-38deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes glowPulse { 0%, 100% { filter: drop-shadow(0 0 22px rgba(110, 200, 255, 0.45)); } 50% { filter: drop-shadow(0 0 44px rgba(150, 230, 255, 0.95)); } }
.game.shake { animation: shake 0.2s linear; }
@keyframes shake { 0% { transform: translate(0, 0); } 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 1px); } 75% { transform: translate(2px, 1px); } 100% { transform: none; } }

.fx { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.zomb {
  position: absolute; left: 33%; top: 66%; z-index: 2; width: 64px; image-rendering: pixelated; transform-origin: 50% 100%;
  opacity: 0; transform: translate(-50%, -100%) translateX(70px);
  transition: opacity 0.5s, transform 0.8s var(--ease), filter 0.12s;
}
.zomb.in { opacity: 1; transform: translate(-50%, -100%); }
.zomb.hit { filter: brightness(1.7) sepia(1) saturate(8) hue-rotate(-38deg); transform: translate(-50%, -100%) translateX(-16px); transition: transform 0.12s, filter 0.05s; }
.zomb.die { opacity: 0; filter: sepia(1) saturate(8) hue-rotate(-38deg); transform: translate(-50%, -100%) rotate(-88deg); transition: transform 0.7s ease-in, opacity 0.6s 0.35s, filter 0.2s; }
.dmg { position: absolute; z-index: 5; left: 33%; top: calc(66% - 150px); font-family: var(--mono); font-weight: 700; font-size: 20px; color: #ff5555; text-shadow: 2px 2px 0 #3a0a0a; pointer-events: none; animation: dmgUp 0.95s ease-out forwards; }
.dmg.crit { color: #ffd84a; font-size: 25px; }
@keyframes dmgUp { 0% { opacity: 0; transform: translate(-50%, 0) scale(0.6); } 16% { opacity: 1; transform: translate(-50%, -10px) scale(1.3); } 100% { opacity: 0; transform: translate(-50%, -62px) scale(1); } }
.mote { position: absolute; z-index: 1; width: 3px; height: 3px; background: #c9efff; box-shadow: 0 0 8px #7fd8ff; opacity: 0; pointer-events: none; animation: mote var(--t, 6s) linear infinite; animation-delay: var(--dl, 0s); }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 0.95; } 100% { opacity: 0; transform: translate(var(--dx, 20px), -130px); } }
.game:not(.live) .mote { display: none; }

.chat-prog { height: 2px; background: rgba(255, 255, 255, 0.04); }
.chat-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b878ff, #3f94ff, #7fd8ff); box-shadow: 0 0 10px rgba(130, 110, 255, 0.8); transition: width 0.7s var(--ease); }
.act-row .k.img { color: #ff9ad5; background: rgba(255, 154, 213, 0.12); }
.act-row .k.cmd { color: var(--amber); background: rgba(255, 207, 107, 0.12); }
.act-row .k.shot { color: var(--crystal); background: rgba(127, 216, 255, 0.12); }
.act-row .thumb { width: 22px; height: 22px; flex: none; border-radius: 5px; image-rendering: pixelated; border: 1px solid rgba(255, 255, 255, 0.1); background: #15151b; }
.undo-chip { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; font-size: 11.5px; color: #bff5da; background: rgba(95, 227, 161, 0.07); border: 1px solid rgba(95, 227, 161, 0.22); }
.undo-chip .u { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 11px; color: #e0dcef; }
.undo-chip .u svg { width: 11px; height: 11px; }

@media (prefers-reduced-motion: reduce) { .mote, .launch img { animation: none !important; } }

/* keep the window grid at its fixed height even when the chat feed gets long */
.win-body { grid-template-rows: minmax(0, 1fr); }
.chat, .center-pane, .explorer { min-height: 0; }

/* privacy / plain text pages */
.prose-page { padding-top: clamp(120px, 14vw, 170px); }
.prose { max-width: 720px; }
.prose .section-title { margin-top: 18px; }
.prose .updated { margin-top: 10px; color: var(--dim); font-size: 14.5px; }
.prose h2 { margin-top: 40px; font-size: 21px; letter-spacing: -0.01em; }
.prose p, .prose li { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.prose ul { margin: 6px 0 0; padding-left: 22px; }
.prose a { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: 0.9em; color: var(--text); }
.form .tiny a { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 2px; }
