/* ==========================================================================
   Balth Studios — design system
   ========================================================================== */

:root {
  --bg: #07080c;
  --bg-2: #0a0c12;
  --surface: #0f121a;
  --surface-2: #141823;
  --surface-3: #1a1f2c;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eceef3;
  --muted: #a3aabb;
  --dim: #737b8e;
  --violet: #7b61ff;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #7b61ff 0%, #22d3ee 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-h: 68px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(123, 97, 255, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary {
  background: #fff;
  color: #07080c;
  box-shadow: 0 6px 24px -8px rgba(123, 97, 255, 0.55);
}
.btn-primary:hover { background: #e9ebf2; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; }
.btn[data-copied] { border-color: rgba(34, 211, 238, 0.6); color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 8, 12, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(7, 8, 12, 0.86); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 32px; height: 32px; }
.brand-name { font-size: 18px; letter-spacing: -0.02em; color: var(--muted); font-weight: 450; }
.brand-name b { color: var(--text); font-weight: 700; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav ul a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.lang:hover { color: var(--text); border-color: var(--border-strong); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--border); }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 24px 28px;
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul a { padding: 12px 8px; font-size: 17px; }
  .nav-actions { justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
  .nav-actions .btn { height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow, .hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: "";
  width: 720px;
  height: 720px;
  right: -180px;
  top: -260px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.22), transparent 62%);
}
.hero-glow {
  width: 640px;
  height: 640px;
  left: -260px;
  bottom: -340px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 62%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero .lead { max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; list-style: none; }
.hero-tags li {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(123, 97, 255, 0.8);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); line-height: 1.65; }

/* pixel art visual */
.hero-visual { position: relative; }
.visual-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.visual-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.visual-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.visual-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.pixel-field {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  aspect-ratio: 1;
}
.px {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.025);
}
.px.on {
  background: var(--c);
  border-color: transparent;
  box-shadow: 0 0 18px -4px var(--c);
  animation: pxIn 0.9s var(--ease) both;
}
.px.tw { animation: twinkle 5s ease-in-out infinite; }
.px.on.d0 { animation-delay: 0.05s; } .px.on.d1 { animation-delay: 0.12s; } .px.on.d2 { animation-delay: 0.19s; }
.px.on.d3 { animation-delay: 0.26s; } .px.on.d4 { animation-delay: 0.33s; } .px.on.d5 { animation-delay: 0.4s; }
.px.tw.d0 { animation-delay: 0s; } .px.tw.d1 { animation-delay: 0.8s; } .px.tw.d2 { animation-delay: 1.6s; }
.px.tw.d3 { animation-delay: 2.4s; } .px.tw.d4 { animation-delay: 3.2s; } .px.tw.d5 { animation-delay: 4s; }
@keyframes pxIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes twinkle {
  0%, 100% { background: rgba(255, 255, 255, 0.035); box-shadow: none; }
  45%, 55% { background: var(--c); box-shadow: 0 0 16px -4px var(--c); opacity: 0.75; }
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(15, 18, 26, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.float-chip .icon { width: 18px; height: 18px; color: var(--cyan); }
.float-chip.c1 { left: -28px; bottom: 64px; }
.float-chip.c2 { right: -18px; top: 70px; }
.float-chip.c2 .icon { color: var(--violet); }

@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .float-chip.c1 { left: -8px; }
  .float-chip.c2 { right: -8px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 88px 0 56px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-glow {
  left: auto;
  right: -200px;
  top: -380px;
  bottom: auto;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.18), transparent 60%);
}
.page-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.032em;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 860px;
}
.page-hero .lead { max-width: 720px; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; font-weight: 680; }
.section-lead { margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.3s var(--ease), background-color 0.25s;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card h3 { font-size: 1.2rem; margin: 22px 0 10px; letter-spacing: -0.015em; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .check-list { margin-top: 20px; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(var(--surface-3), var(--surface-3)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px -10px rgba(123, 97, 255, 0.7);
}
.card-icon .icon { width: 22px; height: 22px; }

.card-feature { padding: 36px; }
.card-feature h3 { font-size: 1.4rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.card-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.card-link:hover .icon { transform: translateX(3px); }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.97rem; }
.check-list .icon { color: var(--cyan); margin-top: 3px; width: 17px; height: 17px; }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* split layout */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .section-head { position: static; }
}

.cap-list { display: grid; gap: 12px; list-style: none; }
.cap-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s, background-color 0.25s;
}
.cap-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.cap-item h3 { font-size: 1.08rem; margin: 2px 0 6px; }
.cap-item p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-num { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--dim); font-variant-numeric: tabular-nums; }
.step-icon { color: var(--cyan); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Products / coming soon ---------- */
.soon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(123, 97, 255, 0.16), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(34, 211, 238, 0.09), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.soon h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.soon p { color: var(--muted); margin: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); } }
.platforms { display: grid; gap: 12px; list-style: none; }
.platforms li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-weight: 600;
}
.platforms li span { display: block; font-weight: 400; font-size: 13px; color: var(--dim); }
.platforms .icon { color: var(--muted); }
@media (max-width: 860px) { .soon { grid-template-columns: 1fr; padding: 32px; } }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(123, 97, 255, 0.7), rgba(34, 211, 238, 0.5)) border-box;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.2), transparent 65%);
  pointer-events: none;
}
.cta-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.028em; margin-bottom: 10px; }
.cta-copy p { color: var(--muted); margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; } }

/* ---------- About ---------- */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mv .card { padding: 36px; }
.mv .card p { font-size: 1.05rem; color: var(--text); opacity: 0.86; }
.mv .card h3 { margin-top: 0; margin-bottom: 14px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.story-body p { color: var(--muted); font-size: 1.06rem; }
.story-body p strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 24px; } }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.info-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 32%; color: var(--muted); font-weight: 500; }
.info-table td a { color: var(--text); border-bottom: 1px solid rgba(34, 211, 238, 0.4); }
.info-table td a:hover { border-bottom-color: var(--cyan); }
@media (max-width: 640px) {
  .info-table th, .info-table td { display: block; width: 100%; padding: 6px 20px; border: 0; }
  .info-table th { padding-top: 16px; font-size: 0.85rem; }
  .info-table td { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.contact-label { margin: 20px 0 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 600; }
.contact-value { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; margin: 0; word-break: break-word; }
.contact-value.small { font-size: 1.02rem; font-weight: 500; line-height: 1.55; }
.contact-note { color: var(--muted); font-size: 0.95rem; margin: 10px 0 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.05);
  color: var(--muted);
  font-size: 0.96rem;
}
.notice .icon { color: var(--cyan); margin-top: 2px; }
.notice p { margin: 0; }
.notice strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq a, .prose a { color: var(--text); border-bottom: 1px solid rgba(34, 211, 238, 0.45); transition: border-color 0.2s; }
.faq a:hover, .prose a:hover { border-bottom-color: var(--cyan); }

/* ---------- Legal / prose ---------- */
.legal-wrap { padding-top: 64px; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; }
.legal-toc-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 600; margin-bottom: 12px; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.legal-toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.legal-toc a:hover { color: var(--text); }
.legal-toc a.active { color: var(--text); border-left-color: var(--cyan); }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; max-height: none; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
}

.prose { max-width: 780px; color: #cfd3de; font-size: 1.01rem; line-height: 1.75; }
.prose h2 { font-size: 1.4rem; color: var(--text); margin: 0 0 16px; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.08rem; color: var(--text); margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); font-weight: 600; }
.legal-section { padding: 36px 0; border-top: 1px solid var(--border); }
.legal-section:first-of-type { border-top: 0; padding-top: 8px; }
.legal-num { color: var(--dim); font-variant-numeric: tabular-nums; }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px 20px;
  margin-bottom: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--muted);
}
.legal-meta strong { color: var(--text); font-weight: 600; }
.prose .table-wrap { margin: 8px 0 20px; }
.prose .info-table { font-size: 0.95rem; }
.prose .info-table th { width: 30%; }
.prose .notice { margin: 8px 0 24px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.data-table thead th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* numbered process (deletion) */
.num-steps { list-style: none; counter-reset: n; display: grid; gap: 14px; padding: 0 !important; }
.num-steps li {
  counter-increment: n;
  position: relative;
  padding: 18px 20px 18px 66px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 0 !important;
}
.num-steps li::before {
  content: counter(n);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--grad);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 72px 0 36px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 360px; margin: 18px 0 20px; }
.footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-contact li, .footer-contact a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.94rem; }
.footer-contact a:hover { color: var(--text); }
.footer-contact .icon { width: 17px; height: 17px; color: var(--dim); }
.site-footer h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 600; margin-bottom: 16px; }
.site-footer ul.links { list-style: none; display: grid; gap: 10px; }
.site-footer ul.links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.site-footer ul.links a:hover { color: var(--text); }
.footer-legal {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  font-size: 0.86rem;
  color: var(--dim);
}
.footer-legal p { margin: 0; }
.footer-legal .legal-name { color: var(--muted); max-width: 720px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 96px 0; }
.nf-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin-bottom: 12px; }
.nf p { color: var(--muted); }
.nf .hero-actions { justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@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; }
  .js .reveal { opacity: 1; transform: none; }
  .px.tw { animation: none; }
}

@media print {
  .site-header, .site-footer, .legal-toc, .hero-glow, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; max-width: none; }
  .prose h2, .prose strong { color: #000; }
  .legal { display: block; }
}

/* ---------- Utilities ---------- */
.head-actions { margin: 28px 0 0; }
.mt { margin-top: 28px; }
.mt-sm { margin-top: 16px; }
.flush { margin-bottom: 0 !important; }
.container.narrow { max-width: 860px; }
.page-title.center { margin-inline: auto; }
.notice a { color: var(--text); border-bottom: 1px solid rgba(34, 211, 238, 0.45); }
.notice a:hover { border-bottom-color: var(--cyan); }
.prose a.btn, .faq a.btn { border-bottom: 0; color: #07080c; margin-top: 8px; }
.prose a.btn-ghost { color: var(--text); }
