/* StyleSnap Pro website. Obsidian-Violet studio design system.
   Palette: obsidian #06050B, surfaces #0B0915 / #120F24, neon violet #7C3AED / #A855F7,
   hot pink #EC4899, laser cyan #06B6D4. Type: Space Grotesk / Plus Jakarta Sans / JetBrains Mono. */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #06050B;
  --s1: #0B0915;
  --s2: #120F24;
  --s3: #1A1533;
  --s4: #241D45;
  --line: rgba(167, 139, 250, 0.13);
  --line-2: rgba(167, 139, 250, 0.26);
  --text: #F4F2FF;
  --muted: #A9A3C7;
  --dim: #716A93;
  --violet: #7C3AED;
  --violet-2: #A855F7;
  --violet-3: #C4B5FD;
  --pink: #EC4899;
  --pink-2: #F9A8D4;
  --cyan: #06B6D4;
  --cyan-2: #67E8F9;
  --green: #34D399;
  --amber: #FBBF24;
  --red: #FB7185;
  --grad: linear-gradient(100deg, #7C3AED 0%, #A855F7 45%, #EC4899 100%);
  --grad-text: linear-gradient(95deg, #C4B5FD 0%, #F0ABFC 40%, #67E8F9 100%);
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.45), 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-3); text-decoration: none; }
a:hover { color: var(--text); }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: 0.88em; color: var(--pink-2); background: rgba(236, 72, 153, 0.08); padding: 0.1em 0.38em; border-radius: 6px; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; margin: 0 0.1em;
  font-size: 0.78em; line-height: 1.5; text-align: center; color: var(--text);
  background: linear-gradient(#211A3D, #17122C); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
::selection { background: rgba(236, 72, 153, 0.55); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 3px; border-radius: 6px; }
.hidden, [hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--violet); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }

/* ---------- ambient background */
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(168, 85, 247, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.aurora span { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; }
.aurora span:nth-child(1) { width: 640px; height: 420px; left: -8%; top: -160px; background: #5B21B6; }
.aurora span:nth-child(2) { width: 520px; height: 380px; right: -6%; top: -80px; background: #9D174D; opacity: 0.35; }
.aurora span:nth-child(3) { width: 460px; height: 300px; left: 40%; top: 360px; background: #0E7490; opacity: 0.18; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--font-sans); letter-spacing: -0.005em;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: var(--grad); background-size: 140% 100%; box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 14px 36px -10px rgba(236, 72, 153, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: rgba(18, 15, 36, 0.7); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: #fff; border-color: rgba(168, 85, 247, 0.6); background: rgba(36, 29, 69, 0.8); }
.btn-soft { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: var(--line); }
.btn-soft:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: var(--line-2); }
.btn-sm { font-size: 13px; padding: 9px 13px; border-radius: 10px; }
.btn-lg { font-size: 16px; padding: 16px 24px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn kbd { font-size: 10px; background: rgba(0, 0, 0, 0.25); border-color: rgba(255, 255, 255, 0.2); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--violet-3); font: 600 13px var(--font-sans); cursor: pointer; padding: 10px 0 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(196, 181, 253, 0.4); }
.link-btn:hover { color: #fff; }
.link-btn.danger { color: var(--red); }
.chip-btn {
  font: 600 12px var(--font-sans); color: var(--muted); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all 0.15s ease;
}
.chip-btn:hover { color: #fff; border-color: var(--line-2); }
.chip-btn[aria-pressed="true"], .chip-btn.is-on { color: #fff; background: rgba(124, 58, 237, 0.28); border-color: rgba(168, 85, 247, 0.6); }

.lk {
  display: inline-block; font: 800 9px/1 var(--font-mono); letter-spacing: 0.08em; padding: 3px 5px; border-radius: 5px;
  color: #fff; background: linear-gradient(90deg, #DB2777, #9333EA); vertical-align: 1px;
}
.lk.big { font-size: 11px; padding: 5px 8px; margin-bottom: 14px; }
body.is-pro [data-pro-chip] { display: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--font-mono); color: var(--violet-3); letter-spacing: 0.02em; }
.spark { color: var(--pink); }
.spark.c { color: var(--cyan-2); }
.spark.p { color: var(--violet-2); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { font-size: 13px; color: var(--dim); margin-top: 12px; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(6, 5, 11, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font: 700 19px var(--font-display); letter-spacing: -0.02em; }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.ver { font: 600 10px var(--font-mono); color: var(--violet-3); padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(124, 58, 237, 0.12); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.plan-pill { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--font-mono); color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.plan-pill:hover { color: #fff; border-color: var(--line-2); }
.plan-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-2); box-shadow: 0 0 10px var(--cyan); }
body.is-pro .plan-pill { color: #fff; border-color: rgba(236, 72, 153, 0.5); background: rgba(236, 72, 153, 0.12); }
body.is-pro .plan-pill .dot { background: var(--pink); box-shadow: 0 0 10px var(--pink); }

/* ---------- hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; margin-top: 18px; }
.lede { margin-top: 22px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 560px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hero-proof li { padding: 12px 12px 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(11, 9, 21, 0.6); }
.hero-proof b { display: block; font: 700 20px var(--font-display); color: #fff; }
.hero-proof span { display: block; font-size: 11.5px; line-height: 1.35; color: var(--dim); margin-top: 3px; }

.hero-visual { position: relative; padding-bottom: 40px; }
.mock-browser { border-radius: 16px; border: 1px solid var(--line-2); background: #0D0B19; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #100D1F; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2347; }
.mock-bar span { margin-left: 10px; font: 500 11px var(--font-mono); color: var(--dim); background: rgba(255, 255, 255, 0.04); padding: 4px 10px; border-radius: 6px; flex: 1; }
.mock-page { position: relative; padding: 22px; background: #F7F6FB; min-height: 330px; }
.mock-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.mock-logo { width: 26px; height: 26px; border-radius: 8px; background: #111827; }
.mock-link { width: 46px; height: 8px; border-radius: 4px; background: #D9D6E8; }
.mock-h { width: 72%; height: 22px; border-radius: 6px; background: #1F1A33; margin-bottom: 12px; }
.mock-p { width: 88%; height: 9px; border-radius: 5px; background: #CFCBE0; margin-bottom: 8px; }
.mock-p.short { width: 60%; margin-bottom: 22px; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock-card { position: relative; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #E6E3F1; display: flex; flex-direction: column; gap: 8px; min-height: 118px; }
.mock-card.hot { border-color: #C4B5FD; }
.mock-chip { width: 34px; height: 10px; border-radius: 6px; background: #EDE9FE; }
.mock-line { width: 90%; height: 8px; border-radius: 4px; background: #E3E0EE; }
.mock-line.s { width: 60%; }
.mock-btn { margin-top: auto; align-self: flex-start; font: 600 11px var(--font-sans); color: #fff; background: #7C3AED; padding: 8px 14px; border-radius: 8px; }
.laser { position: absolute; border: 1.5px solid #A855F7; border-radius: 8px; box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.18); pointer-events: none; animation: laser 9s cubic-bezier(.7, 0, .2, 1) infinite; }
.laser-pad { position: absolute; inset: 0; background: rgba(6, 182, 212, 0.14); border-radius: 6px; }
.laser-tag { position: absolute; left: -1px; top: -24px; font: 600 10px var(--font-mono); color: #fff; background: #7C3AED; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
@keyframes laser {
  0%, 28% { left: 22px; top: 81px; width: 72%; height: 24px; }
  36%, 62% { left: calc(50% + 21px); top: 172px; width: calc(50% - 50px); height: 118px; }
  70%, 100% { left: calc(50% + 35px); top: 252px; width: 86px; height: 28px; }
}
.ruler-demo { position: absolute; left: calc(50% - 7px); top: 230px; width: 14px; height: 2px; }
.ruler-demo .r-line { position: absolute; inset: 0; background: #EC4899; }
.ruler-demo .r-label { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 700 10px var(--font-mono); color: #fff; background: #EC4899; padding: 1px 5px; border-radius: 4px; }
.mock-hud {
  position: absolute; right: -14px; bottom: 0; width: min(300px, 78%);
  padding: 14px; border-radius: 16px; background: rgba(13, 11, 25, 0.92); border: 1px solid rgba(168, 85, 247, 0.45);
  backdrop-filter: blur(14px); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(236, 72, 153, 0.08), 0 0 50px -10px rgba(168, 85, 247, 0.45);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-6px); } }
.mh-head { display: flex; justify-content: space-between; align-items: center; font: 600 12px var(--font-mono); }
.mh-tag { color: var(--violet-3); }
.mh-lock { color: var(--pink); font-size: 10px; }
.mh-swatches { display: flex; align-items: center; gap: 6px; margin: 10px 0; font: 500 11px var(--font-mono); color: var(--muted); }
.mh-swatches span { width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 1px solid rgba(255, 255, 255, 0.2); }
.mh-swatches span + * { margin-right: 6px; }
.mh-code { margin: 0; font-size: 11.5px; line-height: 1.7; padding: 10px 12px; border-radius: 10px; background: #07060D; border: 1px solid var(--line); white-space: pre-wrap; }
.t-k { color: var(--violet-3); }
.t-v { color: var(--cyan-2); }
.t-c { color: var(--pink-2); }
.mh-actions { display: flex; gap: 8px; margin-top: 10px; }
.mh-btn { flex: 1; text-align: center; font: 700 11px var(--font-sans); padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.mh-btn.pri { background: var(--grad); border: 0; }

/* ---------- sections */
.section { padding: clamp(56px, 7.5vw, 96px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin-top: 12px; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- studio */
.studio { border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0E0B1C, #090713); box-shadow: var(--shadow); overflow: hidden; }
.studio-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(18, 15, 36, 0.75); }
.studio-dots { display: flex; gap: 6px; }
.studio-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2B2348; }
.studio-dots i:nth-child(1) { background: #F43F5E; opacity: 0.75; }
.studio-dots i:nth-child(2) { background: #F59E0B; opacity: 0.75; }
.studio-dots i:nth-child(3) { background: #10B981; opacity: 0.75; }
.studio-url { flex: 1; min-width: 0; font: 500 12px var(--font-mono); color: var(--dim); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock-ico { color: var(--green); }
.studio-tools { display: flex; align-items: center; gap: 8px; }
.quota-pill { font: 600 11.5px var(--font-mono); color: var(--muted); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 182, 212, 0.07); white-space: nowrap; }
.quota-pill b { color: var(--cyan-2); }
.quota-pill.is-empty b { color: var(--red); }
body.is-pro .quota-pill { background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.4); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.canvas-wrap { position: relative; padding: 44px 28px 28px; background: radial-gradient(rgba(168, 85, 247, 0.12) 1px, transparent 1px) 0 0 / 20px 20px, #08070F; min-width: 0; }
.canvas-hint { position: absolute; top: 14px; left: 28px; right: 28px; font: 500 11.5px var(--font-mono); color: var(--dim); }
.canvas-hint kbd { font-size: 10px; }
.canvas { cursor: crosshair; }
.canvas * { cursor: crosshair !important; }

/* overlay: positioned relative to .canvas-wrap */
.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
/* Each layer paints only its own band (DevTools-style), so the element stays readable underneath. */
.ov-box { position: absolute; left: 0; top: 0; display: none; box-sizing: border-box; border-style: solid; border-width: 0; will-change: transform, width, height; }
.overlay.on .ov-box { display: block; }
.ov-margin { border-color: rgba(236, 72, 153, 0.28); }
.ov-border { border-color: rgba(251, 191, 36, 0.45); }
.ov-padding { border-color: rgba(6, 182, 212, 0.3); }
.ov-content { background: rgba(124, 58, 237, 0.14); outline: 1.5px solid #A855F7; }
.ov-lock { position: absolute; left: 0; top: 0; display: none; border: 2px dashed var(--pink); border-radius: 3px; }
.overlay.locked .ov-lock { display: block; }
.ov-rulers { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ov-rulers line { stroke: #FF3D9A; stroke-width: 1.5; }
.ov-rulers line.ext { stroke-dasharray: 3 3; stroke-width: 1; opacity: 0.8; }
.ov-rulers rect.lbl { fill: #FF3D9A; }
.ov-rulers text { font: 700 10.5px var(--font-mono); fill: #fff; }
.ov-rulers rect.tgt { fill: none; stroke: #FF3D9A; stroke-width: 1.5; }
.cursor-tip {
  position: absolute; z-index: 6; pointer-events: none; max-width: 280px;
  font: 600 11px/1.45 var(--font-mono); color: #fff; background: rgba(11, 9, 21, 0.94);
  border: 1px solid rgba(168, 85, 247, 0.6); border-radius: 9px; padding: 7px 9px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.8);
}
.cursor-tip .tt-tag { color: var(--violet-3); }
.cursor-tip .tt-dim { color: var(--dim); font-weight: 500; }
.cursor-tip .tt-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; border: 1px solid rgba(255, 255, 255, 0.3); }

/* HUD panel */
.hud { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 15, 36, 0.9), rgba(11, 9, 21, 0.95)); min-width: 0; }
.hud-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.hud-tag { font: 700 14px var(--font-mono); color: var(--violet-3); word-break: break-all; }
.hud-meta { font: 500 11.5px var(--font-mono); color: var(--dim); margin-top: 3px; }
.hud-state { flex-shrink: 0; font: 800 10px var(--font-mono); letter-spacing: 0.08em; color: var(--cyan-2); border: 1px solid rgba(6, 182, 212, 0.4); background: rgba(6, 182, 212, 0.1); padding: 4px 7px; border-radius: 6px; }
.hud-state.locked { color: var(--pink-2); border-color: rgba(236, 72, 153, 0.5); background: rgba(236, 72, 153, 0.12); }
.hud-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fact { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); min-width: 0; }
.fact span { display: block; font: 600 10px var(--font-mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.fact b { display: block; font: 600 12px var(--font-mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.fact .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; border: 1px solid rgba(255, 255, 255, 0.25); }
.fact .tw { color: var(--dim); font-weight: 500; }
.fact .ok { color: var(--green); }
.fact .warn { color: var(--amber); }
.fact .bad { color: var(--red); }

.hud-tabs, .token-tabs, .legal-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.hud-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font: 700 12px var(--font-sans); color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; white-space: nowrap; }
.hud-tab:hover { color: #fff; }
.hud-tab.is-on { color: #fff; background: linear-gradient(180deg, rgba(124, 58, 237, 0.45), rgba(124, 58, 237, 0.25)); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.5); }
.hud-body { min-height: 230px; }
.code {
  margin: 0; height: 100%; min-height: 230px; max-height: 300px; overflow: auto;
  font-size: 12.5px; line-height: 1.7; padding: 14px; border-radius: 12px;
  background: #06050C; border: 1px solid var(--line); color: var(--text); white-space: pre-wrap; word-break: break-word;
}
.c-dim { color: var(--dim); }
.c-prop { color: var(--cyan-2); }
.c-val { color: var(--pink-2); }
.c-punc { color: var(--dim); }
.c-sel { color: var(--violet-3); }
.tw-cls { display: inline-block; margin: 0 4px 6px 0; padding: 3px 8px; border-radius: 7px; background: rgba(124, 58, 237, 0.16); border: 1px solid rgba(168, 85, 247, 0.32); color: #E9DEFF; font: 500 12px var(--font-mono); }
.tw-cls.arb { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); color: #FDE68A; }
.tw-lock { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 6px 0; padding: 3px 9px; border-radius: 7px; border: 1px dashed rgba(236, 72, 153, 0.6); color: var(--pink-2); font: 600 12px var(--font-mono); background: rgba(236, 72, 153, 0.08); cursor: pointer; }
.tw-lock:hover { background: rgba(236, 72, 153, 0.16); }
.tw-note { display: block; margin-top: 8px; color: var(--dim); font: 500 11px var(--font-mono); }
.hud-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hud-actions .btn { flex: 1; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.seg-btn { font: 700 11.5px var(--font-mono); color: var(--muted); background: none; border: 0; padding: 6px 9px; border-radius: 6px; cursor: pointer; }
.seg-btn.is-on { color: #fff; background: rgba(6, 182, 212, 0.25); box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.55); }
.hud-keys { font: 500 11px var(--font-mono); color: var(--dim); line-height: 2; }
.hud-keys kbd { font-size: 9.5px; }

/* box model */
.boxmodel { font: 600 11px var(--font-mono); color: var(--text); text-align: center; padding: 8px 0; }
.bm { position: relative; padding: 20px 26px; border-radius: 6px; }
.bm > .bm-lbl { position: absolute; left: 7px; top: 4px; font-size: 9.5px; color: rgba(255, 255, 255, 0.6); text-transform: lowercase; }
.bm-m { background: rgba(236, 72, 153, 0.16); border: 1px dashed rgba(236, 72, 153, 0.55); }
.bm-b { background: rgba(251, 191, 36, 0.18); border: 1px solid rgba(251, 191, 36, 0.55); }
.bm-p { background: rgba(6, 182, 212, 0.18); border: 1px dashed rgba(6, 182, 212, 0.6); }
.bm-c { padding: 10px 6px; background: rgba(124, 58, 237, 0.3); border: 1px solid rgba(168, 85, 247, 0.7); border-radius: 4px; color: #fff; }
.bm-t, .bm-r, .bm-bt, .bm-l { position: absolute; font-size: 10.5px; }
.bm-t { top: 3px; left: 50%; transform: translateX(-50%); }
.bm-bt { bottom: 3px; left: 50%; transform: translateX(-50%); }
.bm-l { left: 6px; top: 50%; transform: translateY(-50%); }
.bm-r { right: 6px; top: 50%; transform: translateY(-50%); }
.bm-extra { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; }
.bm-extra div { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.bm-extra span { color: var(--dim); display: block; font-size: 9.5px; text-transform: uppercase; }

/* assets */
.assets { display: flex; flex-direction: column; gap: 8px; min-height: 230px; }
.asset { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.asset-prev { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: repeating-conic-gradient(#1A1533 0 25%, #120F24 0 50%) 0 0 / 12px 12px; }
.asset-prev img, .asset-prev svg { max-width: 36px; max-height: 36px; }
.asset-info { flex: 1; min-width: 0; font: 500 11.5px var(--font-mono); color: var(--muted); }
.asset-info b { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset .btn { flex-shrink: 0; }
.empty-note { font: 500 12px var(--font-mono); color: var(--dim); padding: 18px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; }

/* ---------- Nebula sample app (inspectable). Plain CSS so computed styles are real. */
.nb { font-family: var(--font-sans); color: #E7E5F4; background: #0F0D1D; border: 1px solid #2A2448; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.nb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nb-logo { display: flex; align-items: center; gap: 10px; }
.nb-brand { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.025em; color: #FFFFFF; }
.nb-tabs { display: flex; gap: 4px; padding: 4px; background: #17142B; border-radius: 9999px; }
.nb-tab { font-size: 12px; font-weight: 600; color: #9D97BD; padding: 6px 12px; border-radius: 9999px; }
.nb-tab.is-on { color: #FFFFFF; background: #7C3AED; }
.nb-avatar { width: 36px; height: 36px; border-radius: 9999px; border: 2px solid #22D3EE; }
.nb-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nb-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #6EE7B7; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); padding: 4px 12px; border-radius: 9999px; }
.nb-pulse { width: 8px; height: 8px; border-radius: 9999px; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25); }
.nb-title { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.025em; color: #FFFFFF; margin: 0; }
.nb-sub { font-size: 14px; line-height: 20px; color: #A39DC0; margin: 0; }
.nb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nb-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #1A1633, #13102A); border: 1px solid #2A2448; }
.nb-stat-label { font-size: 12px; font-weight: 500; color: #8E88B0; }
.nb-stat-value { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; color: #FFFFFF; }
.nb-delta { font-size: 12px; font-weight: 700; }
.nb-delta.up { color: #34D399; }
.nb-delta.down { color: #F472B6; }
.nb-row { display: flex; align-items: center; gap: 12px; }
.nb-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #0A0915; border: 1px solid #2A2448; color: #6E6890; min-width: 0; }
.nb-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #E7E5F4; font: 500 14px var(--font-sans); padding: 0; }
.nb-search input::placeholder { color: #6E6890; }
.nb-kbd { font-size: 11px; color: #A39DC0; background: #17142B; border: 1px solid #2A2448; border-radius: 6px; padding: 2px 6px; margin: 0; }
.nb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; background: #7C3AED; color: #FFFFFF; font: 600 14px/20px var(--font-sans); border: 0; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); white-space: nowrap; }
.nb-plan { padding: 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(236, 72, 153, 0.12)); border: 1px solid rgba(168, 85, 247, 0.4); }
.nb-plan-head { display: flex; align-items: center; justify-content: space-between; }
.nb-plan-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #DDD6FE; }
.nb-toggle { position: relative; width: 44px; height: 24px; border-radius: 9999px; background: #EC4899; }
.nb-knob { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 9999px; background: #FFFFFF; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.nb-plan-price { margin: 12px 0 0; font-size: 14px; color: #C4B5FD; }
.nb-plan-price b { font-family: var(--font-display); font-size: 36px; line-height: 40px; color: #FFFFFF; }
.nb-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nb-list li { font-size: 13px; color: #E7E5F4; padding-left: 20px; position: relative; }
.nb-list li::before { content: "✓"; position: absolute; left: 0; color: #22D3EE; font-weight: 800; }

/* ---------- converter */
.converter { margin-top: 28px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0E0B1C, #090713); padding: clamp(18px, 3vw, 28px); }
.conv-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.conv-head h3 { font-size: 22px; }
.conv-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 560px; }
.conv-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.conv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.conv-label { font: 700 11px var(--font-mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.conv-label-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.conv-stats { font: 500 11.5px var(--font-mono); color: var(--dim); }
.conv-in { display: flex; flex-direction: column; gap: 8px; }
.conv-in textarea {
  width: 100%; min-height: 240px; resize: vertical; padding: 14px; border-radius: 12px;
  font: 500 13px/1.7 var(--font-mono); color: var(--text); background: #06050C; border: 1px solid var(--line);
  tab-size: 2;
}
.conv-in textarea:focus { outline: none; border-color: rgba(168, 85, 247, 0.65); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); }
.conv-out { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tw-chips { flex: 1; min-height: 190px; padding: 14px; border-radius: 12px; background: #06050C; border: 1px solid var(--line); align-content: flex-start; }
.conv-actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.conv-sandbox { position: absolute; left: -10000px; top: 0; width: 640px; visibility: hidden; pointer-events: none; font: 16px/24px var(--font-sans); color: #000; }

/* ---------- bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 15, 36, 0.85), rgba(11, 9, 21, 0.85)); overflow: hidden; min-width: 0; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(168, 85, 247, 0.45), transparent 40%, transparent 70%, rgba(6, 182, 212, 0.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.6; }
.tile h3 { font-size: 20px; margin-top: 14px; }
.tile p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.tile-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 19px; color: #fff; background: linear-gradient(140deg, rgba(124, 58, 237, 0.55), rgba(236, 72, 153, 0.35)); border: 1px solid rgba(168, 85, 247, 0.5); }
.tile-hud { grid-column: span 3; }
.tile-tw { grid-column: span 3; }
.tile-box, .tile-ruler, .tile-assets { grid-column: span 2; }
.tile-tokens { grid-column: span 3; }
.tile-keys { grid-column: span 3; }
.tile-private { grid-column: span 6; }
.hud-mini { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.hm-row { display: flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); color: var(--text); padding: 8px 10px; border-radius: 9px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.hm-row i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.hm-row em { margin-left: auto; font-style: normal; color: var(--dim); }
.bench { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.bench-row { display: grid; grid-template-columns: 44px 1fr 56px; gap: 10px; align-items: center; font: 600 12px var(--font-mono); color: var(--muted); }
.bench-row b { color: #fff; text-align: right; }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #7C3AED, #EC4899 70%, #22D3EE); }
.bench small { font: 500 11px var(--font-mono); color: var(--dim); }
.box-demo { margin-top: 16px; font: 600 10px var(--font-mono); color: #fff; }
.bd-m { padding: 8px 14px; background: rgba(236, 72, 153, 0.15); border: 1px dashed rgba(236, 72, 153, 0.55); border-radius: 6px; text-align: center; }
.bd-b { margin-top: 4px; padding: 4px; background: rgba(251, 191, 36, 0.18); border-radius: 4px; }
.bd-p { padding: 6px 12px; background: rgba(6, 182, 212, 0.2); border-radius: 3px; }
.bd-c { margin-top: 4px; padding: 6px; background: rgba(124, 58, 237, 0.35); border-radius: 3px; }
.ruler-tile { margin-top: 18px; display: flex; align-items: center; height: 44px; }
.rt-a, .rt-b { width: 54px; height: 44px; border-radius: 9px; background: rgba(124, 58, 237, 0.3); border: 1.5px solid #A855F7; }
.rt-b { background: rgba(6, 182, 212, 0.2); border: 1.5px solid #FF3D9A; }
.rt-line { flex: 1; position: relative; height: 1.5px; background: #FF3D9A; }
.rt-line em { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font: 700 10.5px var(--font-mono); font-style: normal; background: #FF3D9A; padding: 2px 6px; border-radius: 5px; color: #fff; }
.swatch-strip { margin-top: 18px; display: flex; gap: 6px; }
.swatch-strip i { flex: 1; height: 38px; border-radius: 9px; background: var(--c); border: 1px solid rgba(255, 255, 255, 0.12); }
.keys { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13.5px; color: var(--muted); }

.compare { margin-top: 28px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(11, 9, 21, 0.7); }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.compare caption { text-align: left; padding: 18px 20px 6px; font: 700 16px var(--font-display); color: #fff; }
.compare th, .compare td { text-align: left; padding: 13px 20px; border-top: 1px solid var(--line); }
.compare thead th { font: 700 11px var(--font-mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; border-top: 0; }
.compare tbody th { font-weight: 600; color: var(--text); }
.compare td { color: var(--muted); }
.compare td.yes { color: #fff; font-weight: 600; }
.compare td.yes::before { content: "✓ "; color: var(--cyan-2); }
.compare td.no { color: var(--dim); }

/* ---------- tokens */
.tokens-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.tokens-copy h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.tokens-copy p:not(.eyebrow):not(.fine) { color: var(--muted); margin-bottom: 24px; }
.tokens-panel { border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0E0B1C, #090713); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); min-width: 0; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; min-height: 76px; }
.palette:empty::before { content: "Palette appears here"; grid-column: 1 / -1; display: grid; place-items: center; font: 500 12px var(--font-mono); color: var(--dim); border: 1px dashed var(--line-2); border-radius: 12px; }
.pal { border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.pal i { display: block; height: 40px; background: var(--c); }
.pal span { display: block; padding: 5px 7px; font: 600 10.5px/1.35 var(--font-mono); color: var(--text); }
.pal small { display: block; color: var(--dim); font-weight: 500; }
.token-code-wrap { position: relative; }
.token-code-wrap .code { min-height: 260px; max-height: 320px; }
.pro-veil { position: absolute; left: 1px; right: 1px; bottom: 1px; height: 62%; border-radius: 0 0 12px 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px; text-align: center; background: linear-gradient(180deg, rgba(6, 5, 12, 0) 0%, rgba(6, 5, 12, 0.92) 45%, #06050C 70%); font: 600 13px var(--font-sans); color: var(--text); }
.token-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(11, 9, 21, 0.7); }
.step-n { font: 700 13px var(--font-mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 19px; margin-top: 10px; }
.steps p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* ---------- pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: rgba(11, 9, 21, 0.75); }
.plan h3 { font-size: 18px; color: var(--muted); font-family: var(--font-mono); font-weight: 600; letter-spacing: 0; }
.plan-price { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; min-height: 60px; }
.plan-price .amt { font: 700 52px/1 var(--font-display); color: #fff; letter-spacing: -0.03em; }
.plan-price .per { font: 600 13px var(--font-mono); color: var(--dim); }
.plan-sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cyan-2); font-weight: 800; }
.ticks.pro li::before { content: "✦"; color: var(--pink); }
.plan-pro { border: 1px solid transparent; background: linear-gradient(180deg, #1B1338, #0E0A1F) padding-box, linear-gradient(160deg, #A855F7, #EC4899 55%, #22D3EE) border-box; box-shadow: 0 30px 80px -30px rgba(168, 85, 247, 0.6); }
.plan-pro h3 { color: var(--pink-2); }
.plan-flag { position: absolute; top: -12px; right: 22px; font: 800 10.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 10px; border-radius: 999px; }
.plan .link-btn { align-self: center; }

/* ---------- FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: rgba(11, 9, 21, 0.75); transition: border-color 0.2s ease; }
.faq details[open] { border-color: rgba(168, 85, 247, 0.45); background: rgba(18, 15, 36, 0.85); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font: 700 16.5px var(--font-display); color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 500 22px var(--font-mono); color: var(--violet-3); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--pink); }
.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* ---------- install */
.install-card { text-align: center; padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px); border-radius: 28px; border: 1px solid rgba(168, 85, 247, 0.45); background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 70%), linear-gradient(180deg, #120E26, #0A0816); box-shadow: 0 40px 100px -40px rgba(168, 85, 247, 0.7); }
.install-card h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 14px 0 12px; }
.install-card p:not(.eyebrow) { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.install-card .fine { margin: 14px auto 0; }

/* ---------- legal */
.legal { border-radius: 20px; border: 1px solid var(--line); background: rgba(11, 9, 21, 0.75); overflow: hidden; }
.legal-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(18, 15, 36, 0.8); }
.legal-head h2 { font-size: 18px; }
.legal-tabs { flex: 0 1 auto; }
.legal-tabs .hud-tab { flex: 0 0 auto; }
.legal-body { padding: 22px; max-height: 360px; overflow-y: auto; font-size: 14px; color: var(--muted); }
.legal-body h3 { font: 700 14px var(--font-sans); color: var(--text); margin: 16px 0 6px; letter-spacing: 0; }
.legal-body h3:first-child { margin-top: 0; }

/* ---------- footer */
.footer { border-top: 1px solid var(--line); background: #040309; padding: 44px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-by { margin-top: 12px; color: var(--text); font-weight: 600; font-size: 14px; }
.foot-love { color: var(--muted); font-size: 14px; margin-top: 2px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-content: flex-start; max-width: 560px; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-copy { margin-top: 28px; color: var(--dim); font-size: 12.5px; }

/* ---------- dialogs & toast */
.dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(168, 85, 247, 0.5); border-radius: 22px; background: linear-gradient(180deg, #15112B, #0C0A1A); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(168, 85, 247, 0.5); }
.dialog::backdrop { background: rgba(3, 2, 8, 0.75); backdrop-filter: blur(6px); }
.dlg-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.dlg-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; font-size: 14px; }
.dlg-x:hover { color: #fff; }
.dlg-body { padding: 30px 26px 26px; }
.dlg-body h2 { font-size: 24px; padding-right: 30px; }
.dlg-lede { color: var(--muted); font-size: 14.5px; margin: 10px 0 18px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font: 700 12px var(--font-sans); color: var(--text); margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border-radius: 11px; font: 500 15px var(--font-sans); color: #fff; background: #07060E; border: 1px solid var(--line-2); }
.field input#actReceipt { font-family: var(--font-mono); font-size: 14px; }
.field input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2); }
.field-err { color: var(--red); font-size: 13px; font-weight: 600; margin: -4px 0 12px; }
.done-badge { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--grad); font-size: 24px; margin-bottom: 14px; box-shadow: 0 12px 30px -8px rgba(236, 72, 153, 0.7); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; font: 600 14px var(--font-sans); color: #fff; background: rgba(18, 15, 36, 0.96); border: 1px solid rgba(168, 85, 247, 0.55); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9); }
.toast.ok { border-color: rgba(52, 211, 153, 0.6); }
.toast.warn { border-color: rgba(236, 72, 153, 0.7); }
.noscript { text-align: center; padding: 12px; color: var(--amber); }

/* ---------- responsive */
@media (max-width: 1080px) {
  .studio-grid { grid-template-columns: 1fr; }
  .hud { border-left: 0; border-top: 1px solid var(--line); }
  .nav-links { gap: 18px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .tokens-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-hud, .tile-tw, .tile-tokens, .tile-keys, .tile-private { grid-column: span 2; }
  .tile-box, .tile-ruler { grid-column: span 1; }
  .tile-assets { grid-column: span 2; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conv-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .studio-url { display: none; }
  .studio-bar { justify-content: space-between; }
  .canvas-wrap { padding: 52px 12px 14px; }
  .canvas-hint { left: 12px; right: 12px; }
  .nb { padding: 14px; gap: 14px; }
  .nb-tabs { display: none; }
  .nb-stats { gap: 8px; }
  .nb-stat { padding: 10px; }
  .nb-stat-value { font-size: 18px; line-height: 24px; }
  .nb-row { flex-wrap: wrap; }
  .nb-btn { width: 100%; justify-content: center; }
  .nb-list { grid-template-columns: 1fr; }
  .mock-hud { right: 0; }
  .plan { padding: 24px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-hud, .tile-tw, .tile-box, .tile-ruler, .tile-assets, .tile-tokens, .tile-keys, .tile-private { grid-column: span 1; }
  .keys { grid-template-columns: 1fr; }
  .nav-cta .btn { display: none; }
  .hero-actions .btn { width: 100%; }
  .hud-actions .seg { order: 3; }
  .mock-page { min-height: 300px; padding: 16px; }
  .mock-hud { position: relative; width: 100%; margin-top: -30px; right: auto; }
  .hero-visual { padding-bottom: 0; }
  .laser, .ruler-demo { display: none; }
  .quota-pill { font-size: 10.5px; padding: 5px 9px; }
}

/* Razorpay checkout: busy state on buy buttons while the order is created / payment verified */
.btn.is-busy { pointer-events: none; opacity: 0.85; cursor: progress; }
.btn.is-busy::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: ssp-spin 0.7s linear infinite; display: inline-block; vertical-align: -2px; }
@keyframes ssp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::before { animation: none; } }

/* Razorpay Checkout: our page is color-scheme: dark; a scheme mismatch makes Chrome paint the
   checkout iframe's transparent backdrop solid white. Force the injected container/frame to light. */
.razorpay-container, .razorpay-checkout-frame { color-scheme: light !important; }
