/* =========================================================
   Furries.World — design system
   Paper, ink, signal orange. No external fonts or trackers.
   ========================================================= */

:root {
  --paper: #f3eee3;
  --paper-deep: #e9e1d1;
  --paper-light: #fbf8f1;
  --ink: #17130f;
  --ink-soft: #322b24;
  --muted: #73695d;
  --muted-light: #9a8f80;
  --line: rgba(23, 19, 15, 0.15);
  --line-strong: rgba(23, 19, 15, 0.28);
  --orange: #ff5a1f;
  --orange-deep: #d83c06;
  --orange-soft: #ffe0d2;
  --acid: #d9f56a;
  --acid-deep: #b8d83e;
  --green: #2a8a58;
  --red: #c43c2a;
  --blue: #355bd8;
  --white: #fffdf8;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 0 rgba(23, 19, 15, 0.06), 0 14px 34px rgba(23, 19, 15, 0.06);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

::selection { background: var(--orange); color: var(--white); }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; }
code { font-family: var(--mono); font-size: 0.9em; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10000;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.section-pad {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
  padding-block: 112px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}
.button svg { width: 18px; height: 18px; flex: 0 0 auto; margin-left: 9px; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 0 var(--orange-deep);
}
.button-primary:hover { background: #ff6b36; box-shadow: 0 6px 0 var(--orange-deep); }
.button-dark { background: var(--ink); color: var(--paper-light); box-shadow: 0 4px 0 #000; }
.button-dark:hover { background: #2b241d; box-shadow: 0 6px 0 #000; }
.button-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.55); border-color: var(--ink); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.button-full { width: 100%; }
.button-arrow { font-size: 16px; }
.button[disabled], .button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
.text-link:hover { background: rgba(23, 19, 15, 0.06); }

/* Utility */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-slash { color: var(--muted-light); }
.eyebrow-light { color: rgba(243, 238, 227, 0.56); }
.nowrap { white-space: nowrap; }
.pulse-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.14);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.13); }
  50% { box-shadow: 0 0 0 7px rgba(255, 90, 31, 0.02); }
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex: 0 0 auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 227, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-inner {
  width: min(var(--max), calc(100% - 64px));
  height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: var(--ink);
  border-radius: 10px;
  transform: rotate(-3deg);
  transition: transform 200ms ease;
}
.brand:hover .brand-mark { transform: rotate(4deg) scale(1.04); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-word {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.055em;
}
.brand-word span { color: var(--muted); font-weight: 500; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.desktop-nav a {
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink-soft);
  padding: 8px 13px;
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease;
}
.desktop-nav a:hover { color: var(--ink); background: rgba(23, 19, 15, 0.06); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
}
.status-pill.is-degraded .status-dot { background: var(--orange); }
.status-pill.is-offline .status-dot { background: var(--red); }
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 11px 10px;
}
.menu-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform 180ms ease; }
.mobile-nav { display: none; }

/* Hero */
.hero {
  position: relative;
  padding-top: 68px;
  padding-bottom: 34px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -100px auto auto 44%;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.16), rgba(255, 90, 31, 0) 68%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}
.hero-copy { padding-top: 18px; min-width: 0; }
.hero h1 {
  margin: 28px 0 25px;
  font-family: var(--display);
  font-size: clamp(58px, 7.3vw, 108px);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.065em;
}
.hero h1 .scribble {
  position: relative;
  color: var(--orange);
  font-style: italic;
  white-space: nowrap;
}
.hero h1 .scribble::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: -4px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 12' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8c65-6 130-4 194-2 39 1 80 3 202-3' fill='none' stroke='%23ff5a1f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero-lead {
  max-width: 530px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  letter-spacing: -0.012em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof svg { width: 14px; height: 14px; color: var(--green); }

/* Console */
.hero-console-wrap { position: relative; padding: 26px 0 22px; min-width: 0; width: 100%; }
.console {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #17130f;
  color: #f5efe4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -28px rgba(23, 19, 15, 0.5), 0 2px 0 rgba(255, 255, 255, 0.08) inset;
}
.console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 75% 0%, rgba(255, 90, 31, 0.15), transparent 52%);
}
.console-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}
.window-dots { display: flex; gap: 5px; }
.window-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.window-dots span:first-child { background: var(--orange); }
.console-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, 0.055); }
.console-tab {
  border: 0;
  background: transparent;
  color: rgba(245, 239, 228, 0.5);
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 5px 9px;
  border-radius: 5px;
}
.console-tab:hover { color: rgba(245, 239, 228, 0.85); }
.console-tab.is-active { color: #17130f; background: var(--acid); font-weight: 600; }
.console-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 228, 0.46);
}
.console-live span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.console-body { position: relative; z-index: 1; padding: 20px 22px 18px; min-width: 0; }
.console-body pre, .hero-code { max-width: 100%; }
.request-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.method {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--acid);
  border: 1px solid rgba(217, 245, 106, 0.28);
  border-radius: 4px;
  padding: 3px 6px;
}
.path { font-family: var(--mono); font-size: 12px; color: rgba(245, 239, 228, 0.88); }
.code-block {
  margin: 0;
  overflow: auto;
  color: #dcd3c5;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  tab-size: 2;
}
.hero-code { min-height: 99px; padding-bottom: 4px; }
.response-code { padding-bottom: 2px; color: #bcb2a3; }
.response-code code { color: #bcb2a3; }
.console-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 228, 0.34);
}
.console-divider::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.console-divider span:last-child { margin-left: auto; }
.console-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(245, 239, 228, 0.38);
  font-family: var(--mono);
  font-size: 9px;
}
.console-foot span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.key-indicator { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.orbit-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-light);
  box-shadow: 0 8px 22px rgba(23, 19, 15, 0.12);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.orbit-chip strong { color: var(--orange); }
.orbit-chip-top { top: -2px; right: -10px; transform: rotate(2.5deg); }
.orbit-chip-bottom { bottom: 0; left: -20px; animation-delay: -3s; transform: rotate(-2deg); }
.mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.hero-marquee {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 76px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.marquee-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em; color: var(--muted-light); }
.marquee-items { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.marquee-items span { font-size: 13px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink-soft); }
.marquee-items i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.marquee-note { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--muted-light); }

/* Section headings */
.section-heading { max-width: 720px; }
.section-heading h2 {
  margin: 20px 0 20px;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.section-heading > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

/* Capabilities */
.capabilities { padding-top: 120px; border-top: 1px solid var(--line); }
.bento {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  margin-top: 54px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.68);
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 45px rgba(23, 19, 15, 0.09); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 52px; }
.card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-light);
}
.card-icon svg { width: 20px; height: 20px; }
.card-index { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--muted-light); }
.bento-card h3 { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -0.035em; }
.bento-card > p { max-width: 430px; margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.bento-search { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }
.bento-search .card-index { color: rgba(243, 238, 227, 0.4); }
.bento-search .card-icon { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.bento-search > p { color: rgba(243, 238, 227, 0.58); }
.bento-search:hover { box-shadow: 0 30px 55px rgba(23, 19, 15, 0.2); }
.search-mock { margin-top: auto; padding-top: 30px; }
.search-mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 238, 227, 0.72);
  font-size: 11.5px;
}
.mock-cursor { width: 1.5px; height: 15px; background: var(--acid); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-enter { margin-left: auto; color: rgba(243, 238, 227, 0.35); font-family: var(--mono); font-size: 10px; }
.search-mock-results { margin-top: 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; }
.mock-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}
.mock-result:last-child { border-bottom: 0; }
.mock-result div { min-width: 0; }
.mock-rank { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 5px; background: rgba(255, 255, 255, 0.07); color: var(--acid); font-family: var(--mono); font-size: 9px; }
.mock-result b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 500; color: rgba(243, 238, 227, 0.9); }
.mock-result small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 8.5px; color: rgba(243, 238, 227, 0.34); }
.mock-score { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--green); }
.bento-extract { background: var(--orange-soft); }
.transform-mock { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 28px; }
.transform-source, .transform-target { flex: 1; min-width: 0; padding: 15px; border-radius: 10px; background: var(--paper-light); border: 1px solid rgba(23, 19, 15, 0.12); }
.transform-target { background: #fff7ef; }
.transform-arrow { font-family: var(--mono); color: var(--orange-deep); font-size: 19px; }
.file-tag { display: inline-block; margin-bottom: 13px; font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 6px; border-radius: 3px; background: var(--paper-deep); color: var(--muted); }
.tag-json { color: var(--orange-deep); background: rgba(255, 90, 31, 0.1); }
.skeleton { height: 6px; border-radius: 3px; background: rgba(23, 19, 15, 0.1); margin-top: 8px; }
.w80 { width: 80%; } .w60 { width: 60%; } .w90 { width: 90%; } .w45 { width: 45%; }
.json-line { font-family: var(--mono); font-size: 8.5px; line-height: 1.7; white-space: nowrap; overflow: hidden; color: var(--ink-soft); }
.json-line.indent { padding-left: 8px; }
.json-line em { color: var(--orange-deep); font-style: normal; }
.json-line span { color: #3b724e; }
.json-line i { font-style: normal; color: var(--muted); }
.bento-vision { background: var(--paper-light); }
.vision-mock { margin-top: auto; padding-top: 28px; }
.vision-art { position: relative; height: 142px; overflow: hidden; border-radius: 10px; background: linear-gradient(150deg, #243a3b, #6f876d 60%, #d6b987); }
.vision-sun { position: absolute; top: 24px; right: 44px; width: 26px; height: 26px; border-radius: 50%; background: #f7d28a; box-shadow: 0 0 30px #f7d28a; }
.vision-hill { position: absolute; border-radius: 50% 50% 0 0; }
.hill-a { left: -20px; bottom: -25px; width: 230px; height: 100px; background: #2d4c3e; transform: rotate(7deg); }
.hill-b { right: -20px; bottom: -45px; width: 250px; height: 120px; background: #1e3a31; transform: rotate(-9deg); }
.vision-box { position: absolute; border: 1px solid var(--acid); background: rgba(217, 245, 106, 0.08); color: var(--acid); font-family: var(--mono); font-size: 7px; padding: 2px 4px; }
.box-a { top: 38px; left: 22px; width: 57px; height: 35px; }
.box-b { right: 66px; bottom: 26px; width: 64px; height: 22px; }
.vision-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.vision-tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.bento-research { background: #e6ead9; }
.report-mock { margin-top: auto; padding: 17px 18px; border-radius: 10px; border: 1px solid rgba(23, 19, 15, 0.13); background: rgba(255, 253, 248, 0.75); }
.report-kicker { font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; color: var(--muted); }
.report-title { margin: 8px 0 13px; font-family: var(--display); font-size: 19px; line-height: 1.15; letter-spacing: -0.03em; }
.report-line { display: flex; gap: 9px; align-items: flex-start; padding-top: 9px; border-top: 1px solid var(--line); }
.report-line + .report-line { margin-top: 9px; }
.report-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; background: var(--orange); flex: 0 0 auto; }
.report-line b { display: block; font-size: 10.5px; font-weight: 650; }
.report-line small { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); }
.report-meter { display: flex; gap: 4px; margin-top: 14px; }
.report-meter span { height: 3px; flex: 1; border-radius: 2px; background: var(--green); }
.report-meter span.off { background: rgba(23, 19, 15, 0.12); }
.report-confidence { margin-top: 8px; font-family: var(--mono); font-size: 8px; color: var(--muted); text-align: right; }
.report-confidence b { color: var(--green); }

/* Demo */
.demo-section { background: var(--ink); color: var(--paper-light); }
.demo-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
.demo-copy h2 {
  margin: 24px 0 24px;
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.demo-copy h2 em { color: var(--acid); font-style: italic; }
.demo-copy > p { max-width: 390px; color: rgba(243, 238, 227, 0.56); font-size: 14.5px; line-height: 1.8; }
.demo-points { display: flex; flex-direction: column; gap: 0; margin-top: 42px; }
.demo-points div { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(243, 238, 227, 0.13); font-size: 12.5px; color: rgba(243, 238, 227, 0.7); }
.demo-points span { font-family: var(--mono); font-size: 9px; color: var(--orange); }
.demo-panel { border: 1px solid rgba(243, 238, 227, 0.16); border-radius: 18px; background: #211b15; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25); overflow: hidden; }
.demo-form { padding: 27px 28px 17px; border-bottom: 1px solid rgba(243, 238, 227, 0.12); }
.demo-form label { display: block; margin-bottom: 11px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: rgba(243, 238, 227, 0.4); text-transform: uppercase; }
.demo-input-row { display: flex; gap: 9px; }
.demo-input-row input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(243, 238, 227, 0.18);
  border-radius: 9px;
  background: rgba(243, 238, 227, 0.055);
  color: var(--paper-light);
  font-size: 13px;
  outline: none;
}
.demo-input-row input::placeholder { color: rgba(243, 238, 227, 0.27); }
.demo-input-row input:focus { border-color: var(--orange); background: rgba(243, 238, 227, 0.08); }
.demo-submit { min-height: 48px; border-radius: 9px; padding: 0 18px; font-size: 12.5px; box-shadow: none; }
.demo-hint-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 11px; font-family: var(--mono); font-size: 8.5px; color: rgba(243, 238, 227, 0.3); }
.demo-hint-row span:last-child { color: var(--green); }
.demo-result { min-height: 340px; padding: 28px; }
.demo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 282px; text-align: center; }
.demo-empty p { max-width: 250px; margin-top: 20px; color: rgba(243, 238, 227, 0.38); font-size: 11.5px; }
.demo-orbit { position: relative; width: 104px; height: 104px; display: grid; place-items: center; border: 1px dashed rgba(243, 238, 227, 0.18); border-radius: 50%; }
.demo-orbit::before { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(243, 238, 227, 0.11); border-radius: 50%; }
.orbit-core { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--display); font-size: 22px; font-style: italic; }
.orbit-item { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); }
.orbit-one { top: 6px; left: 21px; }
.orbit-two { right: 3px; top: 46px; background: var(--orange); }
.orbit-three { bottom: 12px; left: 17px; background: rgba(243, 238, 227, 0.4); }
.demo-loading { display: flex; flex-direction: column; justify-content: center; min-height: 282px; }
.loading-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.loading-steps span { padding: 6px 10px; border: 1px solid rgba(243, 238, 227, 0.12); border-radius: 999px; font-family: var(--mono); font-size: 9px; color: rgba(243, 238, 227, 0.35); }
.loading-steps span.is-on { border-color: rgba(217, 245, 106, 0.35); color: var(--acid); background: rgba(217, 245, 106, 0.05); }
.loading-line { height: 2px; margin-top: 28px; border-radius: 2px; background: rgba(243, 238, 227, 0.1); overflow: hidden; }
.loading-line span { display: block; width: 32%; height: 100%; background: var(--orange); animation: loading 1.5s ease-in-out infinite; }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(420%); } }
.demo-answer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; color: var(--acid); }
.live-tag span { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }
.demo-answer-head > span:last-child { font-family: var(--mono); font-size: 8.5px; color: rgba(243, 238, 227, 0.3); }
.answer-content { color: rgba(243, 238, 227, 0.83); font-size: 13.5px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-content strong { color: var(--paper-light); }
.demo-sources { margin-top: 23px; padding-top: 18px; border-top: 1px solid rgba(243, 238, 227, 0.12); }
.sources-title { margin-bottom: 9px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; color: rgba(243, 238, 227, 0.36); }
.sources-title span { color: var(--orange); }
.demo-sources ol { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.demo-sources a { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 11px; color: rgba(243, 238, 227, 0.65); }
.demo-sources a:hover { color: var(--acid); }
.demo-sources .source-num { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: rgba(243, 238, 227, 0.07); font-family: var(--mono); font-size: 8px; color: var(--orange); }
.demo-sources .source-domain { margin-left: auto; font-family: var(--mono); font-size: 8px; color: rgba(243, 238, 227, 0.28); }
.demo-answer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(243, 238, 227, 0.12); font-family: var(--mono); font-size: 8px; color: rgba(243, 238, 227, 0.3); }
.demo-answer-foot a { color: var(--acid); }
.demo-error { padding: 28px 0; }
.demo-error strong { color: var(--orange); font-size: 14px; }
.demo-error p { margin-top: 8px; color: rgba(243, 238, 227, 0.5); font-size: 12px; line-height: 1.7; }

/* Workflow */
.workflow { padding-top: 112px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 55px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { position: relative; padding: 30px 30px 34px 0; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
.step-number { font-family: var(--mono); font-size: 9px; color: var(--orange); }
.step-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-top: 27px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-light); }
.step-icon svg { width: 18px; height: 18px; }
.step h3 { margin-top: 17px; font-size: 18px; letter-spacing: -0.03em; }
.step p { margin-top: 8px; max-width: 310px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.step code { padding: 1px 4px; border-radius: 3px; background: rgba(23, 19, 15, 0.06); font-size: 0.9em; }
.code-lab { margin-top: 45px; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper-light); }
.code-lab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 30px; border-bottom: 1px solid rgba(243, 238, 227, 0.12); }
.code-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--orange); }
.code-lab-head h3 { margin-top: 7px; font-size: 19px; font-weight: 550; letter-spacing: -0.03em; }
.code-lang-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.code-lang-tabs button { border: 0; background: transparent; color: rgba(243, 238, 227, 0.4); font-family: var(--mono); font-size: 9px; border-radius: 5px; padding: 6px 10px; }
.code-lang-tabs button.is-active { background: var(--paper-light); color: var(--ink); }
.code-lab-body { display: grid; grid-template-columns: 1fr 235px; }
.code-pane { min-width: 0; padding: 26px 30px; }
.code-pane .code-block { font-size: 12px; line-height: 1.8; }
.code-aside { padding: 27px 25px; border-left: 1px solid rgba(243, 238, 227, 0.12); background: rgba(255, 255, 255, 0.025); }
.code-aside-title { font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: rgba(243, 238, 227, 0.36); }
.code-aside ul { list-style: none; margin: 15px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.code-aside li { display: flex; gap: 8px; color: rgba(243, 238, 227, 0.7); font-size: 11px; }
.code-aside li span { color: var(--acid); }
.code-aside a { display: inline-flex; gap: 6px; color: var(--acid); font-size: 11px; border-bottom: 1px solid rgba(217, 245, 106, 0.3); padding-bottom: 3px; }

/* Pricing */
.pricing-section { border-top: 1px solid var(--line); }
.pricing-heading { max-width: 680px; }
.pricing-grid { display: grid; grid-template-columns: 0.84fr 1.16fr; gap: 16px; align-items: stretch; margin-top: 52px; }
.pricing-card { display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-light); }
.pricing-card > .button { margin-top: auto; }
.pricing-metered { background: var(--orange-soft); border-color: rgba(255, 90, 31, 0.25); }
.plan-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--muted); }
.pricing-card h3 { margin-top: 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.04em; }
.price { display: flex; align-items: baseline; gap: 3px; margin-top: 26px; }
.price > span { font-family: var(--display); font-size: 22px; }
.price strong { font-family: var(--display); font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -0.065em; }
.price small { color: var(--muted); font-size: 11px; }
.pricing-card-head > p { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 31px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.plan-features li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-soft); }
.plan-features li::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid rgba(42, 138, 88, 0.3); border-radius: 50%; color: var(--green); font-size: 9px; }
.price-list { margin: 27px 0 26px; border-top: 1px solid var(--line); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-row b { display: block; font-size: 12.5px; font-weight: 620; }
.price-row small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.price-row > strong { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.estimator {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.7fr;
  gap: 40px;
  align-items: center;
  margin-top: 18px;
  padding: 29px 33px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.62);
}
.estimator-copy h3 { margin-top: 8px; font-size: 17px; letter-spacing: -0.03em; }
.estimator-copy p { margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.estimator-controls label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 8px; color: var(--muted); }
.estimator-controls select { width: 100%; height: 35px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-light); font-size: 11.5px; padding: 0 8px; }
.range-head { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.range-head label { margin: 0; }
.range-head output { font-family: var(--mono); font-size: 10px; color: var(--ink); }
.estimator input[type="range"] { width: 100%; height: 4px; margin: 14px 0 5px; accent-color: var(--orange); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 7.5px; color: var(--muted-light); }
.estimate-total { text-align: right; }
.estimate-total > span { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); }
.estimate-total strong { display: block; margin-top: 3px; font-family: var(--display); font-size: 42px; font-weight: 500; line-height: 1.1; letter-spacing: -0.05em; }
.estimate-total small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.estimate-total small span { font-family: var(--mono); }

/* Use cases */
.usecases { border-top: 1px solid var(--line); }
.usecase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 52px; }
.usecase-card { display: flex; flex-direction: column; min-height: 248px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(251, 248, 241, 0.5); transition: background 180ms ease, transform 180ms ease; }
.usecase-card:hover { background: var(--paper-light); transform: translateY(-3px); }
.usecase-tag { font-family: var(--mono); font-size: 8px; letter-spacing: 0.09em; color: var(--orange-deep); }
.usecase-card h3 { margin-top: 26px; font-size: 17px; line-height: 1.35; letter-spacing: -0.03em; }
.usecase-card p { margin-top: 9px; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.usecase-card code { margin-top: auto; padding-top: 25px; color: var(--muted-light); font-size: 9px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 80px; border-top: 1px solid var(--line); }
.faq-intro h2 { margin-top: 20px; font-family: var(--display); font-size: clamp(42px, 4.6vw, 64px); font-weight: 500; line-height: 1.03; letter-spacing: -0.055em; }
.faq-intro p { margin-top: 21px; color: var(--muted); font-size: 12.5px; }
.faq-intro a { border-bottom: 1px solid var(--line-strong); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 180ms ease; }
.faq-list summary span::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary span::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { max-width: 650px; padding: 0 34px 22px 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.faq-answer code { padding: 1px 4px; background: rgba(23, 19, 15, 0.06); border-radius: 3px; font-size: 0.9em; }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; background: var(--acid); margin-top: 10px; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.35), transparent 55%); }
.final-cta-inner { position: relative; z-index: 1; width: min(var(--max), calc(100% - 64px)); margin-inline: auto; padding: 96px 0 100px; }
.final-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em; color: rgba(23, 19, 15, 0.55); }
.final-cta h2 { margin-top: 24px; font-family: var(--display); font-size: clamp(48px, 6.5vw, 92px); font-weight: 500; line-height: 0.98; letter-spacing: -0.065em; }
.final-cta p { margin-top: 22px; font-size: 14px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.final-actions .button-ghost { border-color: rgba(23, 19, 15, 0.35); }
.final-actions .button-ghost:hover { background: rgba(255, 255, 255, 0.35); }
.final-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; font-family: var(--mono); font-size: 8.5px; color: rgba(23, 19, 15, 0.56); }
.final-mark { position: absolute; right: -25px; bottom: -95px; font-family: var(--display); font-size: 260px; font-style: italic; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(23, 19, 15, 0.2); pointer-events: none; user-select: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper-light); padding: 67px 0 25px; }
.footer-top, .footer-bottom { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; padding-bottom: 60px; }
.footer-brand .brand { color: var(--paper-light); }
.footer-brand .brand-mark { background: var(--orange); color: var(--ink); }
.footer-brand .brand-word span { color: rgba(243, 238, 227, 0.42); }
.footer-brand > p { max-width: 240px; margin-top: 19px; color: rgba(243, 238, 227, 0.4); font-size: 12px; line-height: 1.8; }
.footer-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; font-family: var(--mono); font-size: 8.5px; color: rgba(243, 238, 227, 0.34); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.footer-links h4 { margin: 0 0 17px; font-family: var(--mono); font-size: 8.5px; font-weight: 500; letter-spacing: 0.09em; color: rgba(243, 238, 227, 0.3); text-transform: uppercase; }
.footer-links a { display: block; margin: 9px 0; color: rgba(243, 238, 227, 0.66); font-size: 11.5px; }
.footer-links a:hover { color: var(--acid); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(243, 238, 227, 0.12); font-family: var(--mono); font-size: 8px; color: rgba(243, 238, 227, 0.27); }
.footer-made b { color: rgba(243, 238, 227, 0.5); font-weight: 500; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Shared subpage / forms / docs / app styles
   ========================================================= */

.subpage { min-height: 100vh; background: var(--paper); }
.subpage-main { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; padding: 64px 0 100px; }
.page-title { font-family: var(--display); font-size: clamp(46px, 6vw, 76px); line-height: 1; letter-spacing: -0.06em; font-weight: 500; }
.page-subtitle { max-width: 600px; margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.back-home { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 35px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.back-home:hover { color: var(--ink); }

/* Auth */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.02fr 0.98fr; background: var(--paper); }
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px 48px; background: var(--ink); color: var(--paper-light); }
.auth-side::before { content: ""; position: absolute; width: 640px; height: 640px; left: -220px; bottom: -340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, 0.35), transparent 66%); }
.auth-side .brand { color: var(--paper-light); position: relative; z-index: 1; }
.auth-side .brand-mark { background: var(--orange); color: var(--ink); }
.auth-side .brand-word span { color: rgba(243, 238, 227, 0.4); }
.auth-quote { position: relative; z-index: 1; max-width: 450px; margin: auto 0; padding: 60px 0; }
.auth-quote .eyebrow { color: rgba(243, 238, 227, 0.42); }
.auth-quote h2 { margin-top: 26px; font-family: var(--display); font-size: clamp(38px, 4.3vw, 58px); font-weight: 500; line-height: 1.04; letter-spacing: -0.055em; }
.auth-quote h2 em { color: var(--acid); font-style: italic; }
.auth-quote p { margin-top: 22px; max-width: 360px; color: rgba(243, 238, 227, 0.55); font-size: 13px; line-height: 1.8; }
.auth-points { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 32px; }
.auth-points span { padding: 6px 10px; border: 1px solid rgba(243, 238, 227, 0.16); border-radius: 999px; font-family: var(--mono); font-size: 8px; color: rgba(243, 238, 227, 0.55); }
.auth-foot { position: relative; z-index: 1; font-family: var(--mono); font-size: 8.5px; color: rgba(243, 238, 227, 0.28); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 30px; }
.auth-card { width: min(420px, 100%); }
.auth-back { display: inline-block; margin-bottom: 40px; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.auth-card h1 { font-family: var(--display); font-size: 47px; font-weight: 500; letter-spacing: -0.055em; line-height: 1.05; }
.auth-card > p { margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.auth-tabs { display: flex; gap: 3px; margin: 29px 0 25px; padding: 3px; border-radius: 9px; background: rgba(23, 19, 15, 0.06); }
.auth-tab { flex: 1; height: 35px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.auth-tab.is-active { background: var(--paper-light); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 19, 15, 0.08); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11px; font-weight: 600; }
.field label a { color: var(--muted); font-weight: 400; font-size: 10px; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.textarea { min-height: 105px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.1); }
.input::placeholder, .textarea::placeholder { color: var(--muted-light); }
.field-hint { margin-top: 5px; color: var(--muted-light); font-size: 9.5px; }
.form-error { display: none; padding: 10px 12px; border: 1px solid rgba(196, 60, 42, 0.25); border-radius: 7px; background: rgba(196, 60, 42, 0.06); color: var(--red); font-size: 11px; line-height: 1.5; }
.form-error.is-visible { display: block; }
.form-success { display: none; padding: 10px 12px; border: 1px solid rgba(42, 138, 88, 0.25); border-radius: 7px; background: rgba(42, 138, 88, 0.07); color: var(--green); font-size: 11px; }
.form-success.is-visible { display: block; }
.auth-submit { margin-top: 4px; }
.auth-legal { margin-top: 17px; font-size: 9px; line-height: 1.7; color: var(--muted-light); text-align: center; }
.auth-legal a { border-bottom: 1px solid var(--line); color: var(--muted); }
.trial-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 12px; border: 1px solid rgba(255, 90, 31, 0.2); border-radius: 8px; background: rgba(255, 90, 31, 0.05); color: var(--orange-deep); font-size: 10px; }
.trial-note .mini-dot { background: var(--orange); }

/* Docs */
.docs-mobile-toc { display: none; margin-bottom: 27px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-light); overflow: hidden; }
.docs-mobile-toc summary { padding: 12px 14px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 600; }
.docs-mobile-toc summary::-webkit-details-marker { display: none; }
.docs-mobile-toc div { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 0 14px 13px; }
.docs-mobile-toc a { padding: 5px 0; font-size: 10.5px; color: var(--muted); }
.docs-header { position: sticky; top: 0; z-index: 80; background: rgba(243, 238, 227, 0.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.docs-header-inner { width: min(1400px, calc(100% - 48px)); height: 62px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.docs-header .brand-word { font-size: 16px; }
.docs-header .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.docs-header .brand-mark svg { width: 21px; height: 21px; }
.docs-header-links { display: flex; align-items: center; gap: 8px; }
.docs-header-links a { font-size: 11px; font-weight: 550; padding: 7px 10px; border-radius: 6px; }
.docs-header-links a:hover { background: rgba(23, 19, 15, 0.06); }
.docs-shell { width: min(1400px, calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: 230px minmax(0, 1fr) 190px; gap: 52px; }
.docs-sidebar { position: sticky; top: 62px; align-self: start; max-height: calc(100vh - 62px); overflow: auto; padding: 40px 0 50px; }
.docs-sidebar-group { margin-bottom: 25px; }
.docs-sidebar-title { margin-bottom: 9px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: var(--muted-light); text-transform: uppercase; }
.docs-sidebar a { display: block; padding: 5px 9px; margin-left: -9px; border-radius: 5px; color: var(--muted); font-size: 11.5px; }
.docs-sidebar a:hover { color: var(--ink); background: rgba(23, 19, 15, 0.05); }
.docs-sidebar a.is-active { color: var(--orange-deep); background: rgba(255, 90, 31, 0.08); font-weight: 600; }
.docs-content { min-width: 0; padding: 57px 0 110px; }
.docs-kicker { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--orange-deep); }
.docs-content h1 { margin-top: 15px; font-family: var(--display); font-size: clamp(42px, 5.4vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -0.06em; }
.docs-intro { max-width: 660px; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.doc-section { padding-top: 64px; scroll-margin-top: 90px; }
.doc-section h2 { font-family: var(--display); font-size: 34px; font-weight: 550; letter-spacing: -0.045em; line-height: 1.1; }
.doc-section h3 { margin-top: 27px; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.doc-section p { margin-top: 13px; color: var(--muted); font-size: 12.5px; line-height: 1.85; }
.doc-section p a { color: var(--orange-deep); border-bottom: 1px solid rgba(216, 60, 6, 0.3); }
.doc-section ul, .doc-section ol { margin-top: 12px; padding-left: 19px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.doc-section li { margin: 4px 0; }
.doc-section code { padding: 1px 4px; border-radius: 3px; background: rgba(23, 19, 15, 0.065); font-size: 0.9em; color: var(--ink-soft); }
.doc-section pre { margin-top: 16px; padding: 19px; overflow: auto; border-radius: 10px; background: var(--ink); color: #dcd3c5; font-family: var(--mono); font-size: 11.5px; line-height: 1.75; }
.doc-section pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.endpoint-head { display: flex; align-items: center; gap: 9px; margin: 18px 0 11px; }
.http-method { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.05em; border-radius: 4px; padding: 4px 7px; background: var(--orange); color: var(--white); }
.endpoint-path { font-family: var(--mono); font-size: 12px; color: var(--ink); background: rgba(23, 19, 15, 0.06); border-radius: 5px; padding: 4px 8px; }
.endpoint-price { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.param-table { width: 100%; margin-top: 15px; border-collapse: collapse; border-top: 1px solid var(--line); }
.param-table th { padding: 9px 8px; text-align: left; font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; color: var(--muted-light); font-weight: 500; border-bottom: 1px solid var(--line); }
.param-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); font-size: 11px; line-height: 1.6; }
.param-table td:first-child { width: 26%; }
.param-table code { white-space: nowrap; }
.required { color: var(--orange-deep); font-family: var(--mono); font-size: 8px; }
.optional { color: var(--muted-light); font-family: var(--mono); font-size: 8px; }
.callout { margin-top: 18px; padding: 13px 15px; border: 1px solid rgba(255, 90, 31, 0.22); border-radius: 8px; background: rgba(255, 90, 31, 0.05); color: var(--ink-soft); font-size: 11.5px; line-height: 1.7; }
.callout b { color: var(--orange-deep); }
.docs-toc { position: sticky; top: 62px; align-self: start; padding: 62px 0; }
.docs-toc-title { margin-bottom: 12px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.09em; color: var(--muted-light); }
.docs-toc a { display: block; padding: 4px 0; font-size: 10px; color: var(--muted); }
.docs-toc a:hover { color: var(--orange-deep); }
.docs-footer-nav { display: flex; justify-content: space-between; gap: 15px; margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); }
.docs-footer-nav a { font-size: 11px; color: var(--muted); }
.docs-footer-nav a:hover { color: var(--ink); }

/* App */
.app-page { min-height: 100vh; background: #f0eadf; }
.app-topbar { position: sticky; top: 0; z-index: 80; height: 62px; background: rgba(243, 238, 227, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.app-topbar-inner { height: 100%; width: min(1440px, calc(100% - 40px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.app-topbar-right { display: flex; align-items: center; gap: 8px; }
.app-user { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--paper-light); color: var(--ink); }
.app-shell { width: min(1440px, calc(100% - 40px)); margin-inline: auto; display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 36px; padding: 28px 0 60px; }
.app-sidebar { align-self: start; position: sticky; top: 90px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav-title { margin: 21px 0 6px 10px; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.1em; color: var(--muted-light); }
.app-nav button { display: flex; align-items: center; gap: 10px; height: 37px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11.5px; text-align: left; }
.app-nav button:hover { background: rgba(23, 19, 15, 0.05); color: var(--ink); }
.app-nav button.is-active { background: var(--ink); color: var(--paper-light); font-weight: 560; }
.app-nav button svg { width: 16px; height: 16px; opacity: 0.7; }
.app-help { margin-top: 24px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(251, 248, 241, 0.55); }
.app-help b { display: block; font-size: 11px; }
.app-help p { margin-top: 5px; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.app-help a { display: inline-block; margin-top: 9px; color: var(--orange-deep); font-size: 9.5px; }
.app-main { min-width: 0; }
.app-view[hidden] { display: none; }
.app-view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.app-view-head h1 { font-family: var(--display); font-size: 37px; font-weight: 550; letter-spacing: -0.05em; line-height: 1; }
.app-view-head p { margin-top: 7px; color: var(--muted); font-size: 11px; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.app-action { display: inline-flex; align-items: center; gap: 7px; height: 35px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper-light); font-size: 10.5px; font-weight: 560; }
.app-action:hover { background: var(--white); }
.app-action.primary { background: var(--orange); border-color: var(--orange); color: var(--white); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 13px; }
.balance-card { position: relative; overflow: hidden; min-height: 226px; padding: 27px; border-radius: 15px; background: var(--ink); color: var(--paper-light); }
.balance-card::after { content: ""; position: absolute; right: -100px; bottom: -150px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, 0.3), transparent 64%); }
.balance-label { font-family: var(--mono); font-size: 8px; letter-spacing: 0.09em; color: rgba(243, 238, 227, 0.42); }
.balance-amount { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 5px; margin-top: 17px; font-family: var(--display); font-size: 68px; line-height: 1; letter-spacing: -0.06em; }
.balance-amount small { font-family: var(--sans); font-size: 20px; font-weight: 500; line-height: 1; margin-top: 8px; margin-left: 0; color: rgba(243, 238, 227, 0.5); }
.balance-amount span { line-height: 0.9; }
.balance-note { position: relative; z-index: 1; margin-top: 12px; color: rgba(243, 238, 227, 0.42); font-size: 10px; }
.balance-actions { position: absolute; z-index: 1; left: 27px; bottom: 24px; display: flex; gap: 8px; }
.balance-card .button { min-height: 34px; font-size: 10.5px; padding: 0 13px; box-shadow: none; }
.balance-card .button-ghost { color: var(--paper-light); border-color: rgba(243, 238, 227, 0.25); }
.balance-card .button-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.form-panel .balance-amount small { color: var(--muted); }
.stat-stack { display: flex; flex-direction: column; gap: 13px; }
.stat-card { flex: 1; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-light); }
.stat-label { font-family: var(--mono); font-size: 8px; letter-spacing: 0.07em; color: var(--muted); }
.stat-value { margin-top: 8px; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -0.04em; }
.stat-note { margin-top: 6px; color: var(--muted-light); font-size: 9px; }
.dash-card { margin-top: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-light); overflow: hidden; }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.dash-card-head h2 { font-size: 12.5px; font-weight: 650; letter-spacing: -0.01em; }
.dash-card-head a, .dash-card-head button { font-size: 9.5px; color: var(--muted); background: none; border: 0; padding: 0; }
.dash-card-head a:hover, .dash-card-head button:hover { color: var(--orange-deep); }
.dash-card-body { padding: 20px; }
.quickstart-code { position: relative; }
.quickstart-code pre { margin: 0; padding: 15px; border-radius: 8px; background: var(--ink); color: #d1c7b8; font-family: var(--mono); font-size: 10.5px; line-height: 1.7; overflow: auto; }
.copy-button { position: absolute; top: 8px; right: 8px; padding: 5px 7px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: rgba(243, 238, 227, 0.6); font-family: var(--mono); font-size: 8px; }
.copy-button:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.key-list { display: flex; flex-direction: column; }
.key-row { display: flex; align-items: center; gap: 15px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.key-row:last-child { border-bottom: 0; }
.key-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-deep); flex: 0 0 auto; }
.key-icon svg { width: 16px; height: 16px; }
.key-info { min-width: 0; flex: 1; }
.key-info b { display: block; font-size: 11.5px; font-weight: 600; }
.key-info small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 8.5px; color: var(--muted-light); }
.key-meta { text-align: right; font-family: var(--mono); font-size: 8px; color: var(--muted); }
.key-revoke { border: 0; background: transparent; color: var(--muted-light); font-size: 9px; margin-left: 10px; }
.key-revoke:hover { color: var(--red); }
.empty-state { padding: 38px 22px; text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px; border: 1px dashed var(--line-strong); border-radius: 50%; color: var(--muted); }
.empty-state b { display: block; font-size: 12px; }
.empty-state p { max-width: 300px; margin: 6px auto 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.empty-state .button { margin-top: 13px; min-height: 34px; font-size: 10px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 7.5px; font-weight: 500; letter-spacing: 0.05em; color: var(--muted-light); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--ink-soft); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.mono { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 4px; font-family: var(--mono); font-size: 7.5px; }
.badge-success { background: rgba(42, 138, 88, 0.09); color: var(--green); }
.badge-failed { background: rgba(196, 60, 42, 0.08); color: var(--red); }
.badge-pending { background: rgba(255, 90, 31, 0.09); color: var(--orange-deep); }
.table-scroll { overflow-x: auto; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-panel { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-light); }
.form-panel h2 { font-size: 13px; font-weight: 650; }
.form-panel > p { margin-top: 5px; color: var(--muted); font-size: 10px; }
.form-panel form { margin-top: 17px; display: flex; flex-direction: column; gap: 13px; }
.form-panel .button { min-height: 39px; font-size: 11px; }
.topup-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.topup-option { position: relative; }
.topup-option input { position: absolute; opacity: 0; }
.topup-option span { display: flex; align-items: center; justify-content: center; height: 41px; border: 1px solid var(--line); border-radius: 7px; font-family: var(--mono); font-size: 11px; background: var(--paper); cursor: pointer; }
.topup-option input:checked + span { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-deep); }
.payment-note { margin-top: 8px; color: var(--muted-light); font-size: 9px; line-height: 1.6; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row b { display: block; font-size: 11px; }
.settings-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.settings-row small a { color: var(--orange-deep); border-bottom: 1px solid rgba(216, 60, 6, 0.25); }
.app-notice { display: none; margin-bottom: 15px; padding: 11px 14px; border: 1px solid rgba(255, 90, 31, 0.22); border-radius: 8px; background: rgba(255, 90, 31, 0.06); color: var(--orange-deep); font-size: 10px; line-height: 1.6; }
.app-notice.is-visible { display: block; }

/* Playground */
.playground-card { border: 1px solid var(--line); border-radius: 14px; background: var(--paper-light); overflow: hidden; }
.playground-tabs { display: flex; gap: 3px; padding: 5px; border-bottom: 1px solid var(--line); background: rgba(23, 19, 15, 0.025); }
.playground-tabs button { border: 0; border-radius: 6px; background: transparent; padding: 7px 13px; font-size: 10.5px; color: var(--muted); }
.playground-tabs button.is-active { background: var(--ink); color: var(--paper-light); }
.playground-body { padding: 22px; }
.playground-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.playground-form { display: flex; flex-direction: column; gap: 13px; }
.playground-form .field label { font-size: 10px; }
.playground-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.playground-price { font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.playground-output { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.playground-output-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.playground-output pre { max-height: 480px; overflow: auto; margin: 0; padding: 16px; border-radius: 8px; background: var(--ink); color: #d5cbbb; font-family: var(--mono); font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.playground-empty { padding: 28px; text-align: center; color: var(--muted-light); font-size: 10px; }
.image-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 110px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 9px; background: var(--paper); text-align: center; cursor: pointer; }
.image-drop:hover { border-color: var(--orange); background: rgba(255, 90, 31, 0.025); }
.image-drop svg { width: 24px; height: 24px; color: var(--muted); margin-bottom: 8px; }
.image-drop b { font-size: 10.5px; }
.image-drop small { margin-top: 3px; color: var(--muted-light); font-size: 8.5px; }
.image-drop input { display: none; }
.image-preview { display: none; margin-top: 9px; }
.image-preview img { max-height: 150px; border-radius: 7px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); }
.image-preview.is-visible { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* CDKEY admin */
.code-input { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.admin-main { width: min(1180px, calc(100% - 48px)); margin-inline: auto; padding: 34px 0 80px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.admin-stats .stat-card { min-height: 110px; }
.admin-panel { margin-top: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-light); }
.admin-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.admin-panel-head h2 { margin-top: 5px; font-size: 17px; letter-spacing: -0.03em; }
.admin-generate { display: flex; flex-direction: column; gap: 15px; }
.admin-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 5px; }
.admin-submit-row p { max-width: 600px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.admin-submit-row .button { min-height: 40px; font-size: 11px; flex: 0 0 auto; }
.admin-result-panel { border-color: rgba(255, 90, 31, 0.3); background: #fff8ee; }
.admin-codes { max-height: 330px; overflow: auto; margin-top: 15px; padding: 17px; border-radius: 8px; background: var(--ink); color: #e7ddcd; font-family: var(--mono); font-size: 11px; line-height: 1.9; white-space: pre-wrap; letter-spacing: 0.04em; }
.admin-result-panel .key-revoke { margin-top: 13px; }
.admin-provider-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.admin-provider-row > span:nth-child(odd) { min-width: 100px; color: var(--ink-soft); }
.admin-provider-row .badge { margin-right: 18px; }
.admin-denied { min-height: calc(100vh - 62px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.admin-denied h1 { margin-top: 24px; font-family: var(--display); font-size: 38px; font-weight: 500; letter-spacing: -0.04em; }
.admin-denied p { max-width: 380px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-denied .button { margin-top: 20px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 20px; background: rgba(23, 19, 15, 0.55); backdrop-filter: blur(4px); }
.modal-backdrop.is-open { display: grid; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 15px; background: var(--paper-light); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 22px 23px 0; }
.modal-head h2 { font-family: var(--display); font-size: 27px; font-weight: 550; letter-spacing: -0.04em; }
.modal-head p { margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.modal-close { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 15px; }
.modal-body { padding: 20px 23px 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.modal .button { min-height: 38px; font-size: 11px; }
.secret-box { display: flex; align-items: center; gap: 8px; padding: 11px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--paper); }
.secret-box code { flex: 1; overflow-wrap: anywhere; font-size: 10.5px; }
.warning-box { margin-top: 11px; padding: 9px 11px; border-radius: 6px; background: rgba(255, 90, 31, 0.07); color: var(--orange-deep); font-size: 9.5px; line-height: 1.6; }
.qr-wrap { text-align: center; }
.qr-wrap img { width: 230px; height: 230px; margin: 8px auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px; }
.qr-amount { font-family: var(--display); font-size: 39px; line-height: 1; letter-spacing: -0.04em; }
.qr-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.qr-status .status-dot { background: var(--orange); animation: pulse 1.5s infinite; }
.qr-tip { margin-top: 9px; color: var(--muted); font-size: 9px; line-height: 1.7; }

/* Toast */
.toast-stack { position: fixed; bottom: 22px; right: 22px; z-index: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { max-width: 340px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper-light); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); font-size: 10.5px; line-height: 1.5; animation: toast-in 200ms ease; }
.toast.is-error { background: var(--red); }
.toast.is-success { background: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } }

/* Legal */
.legal-content { max-width: 760px; padding-top: 45px; }
.legal-content h2 { margin: 38px 0 12px; font-family: var(--display); font-size: 27px; font-weight: 550; letter-spacing: -0.03em; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.legal-content ul { margin: 10px 0; padding-left: 20px; }
.legal-meta { margin-top: 15px; font-family: var(--mono); font-size: 9px; color: var(--muted-light); }
.legal-callout { margin: 20px 0; padding: 14px 16px; border-left: 2px solid var(--orange); background: rgba(255, 90, 31, 0.05); color: var(--ink-soft); font-size: 12px; line-height: 1.7; }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.notfound-code { font-family: var(--display); font-size: clamp(100px, 20vw, 220px); line-height: 0.8; letter-spacing: -0.08em; color: var(--orange); font-style: italic; }
.notfound h1 { margin-top: 30px; font-family: var(--display); font-size: 40px; font-weight: 500; letter-spacing: -0.04em; }
.notfound p { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.notfound .button { margin-top: 24px; }

/* Responsive */
@media (max-width: 1100px) {
  .section-pad { width: min(var(--max), calc(100% - 48px)); padding-block: 88px; }
  .topbar-inner { width: calc(100% - 48px); }
  .hero-grid { gap: 38px; }
  .hero h1 { font-size: clamp(54px, 7.5vw, 84px); }
  .orbit-chip-top { right: 4px; }
  .orbit-chip-bottom { left: 2px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card { min-height: 370px; padding: 25px; }
  .card-top { margin-bottom: 38px; }
  .demo-inner { gap: 42px; }
  .estimator { grid-template-columns: 1fr 1.2fr 0.7fr; gap: 25px; }
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .faq { gap: 50px; }
  .docs-shell { grid-template-columns: 205px minmax(0, 1fr); gap: 36px; }
  .docs-toc { display: none; }
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 860px) {
  .desktop-nav, .desktop-only { display: none; }
  .status-pill { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.is-open { display: flex; flex-direction: column; padding: 6px 24px 18px; border-top: 1px solid var(--line); background: var(--paper); }
  .mobile-nav a { padding: 11px 4px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding-top: 47px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(56px, 11.5vw, 90px); margin-top: 24px; }
  .hero-console-wrap { max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-marquee { flex-wrap: wrap; gap: 12px 20px; margin-top: 56px; }
  .marquee-note { width: 100%; margin-left: 0; }
  .demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .demo-copy > p { max-width: 520px; }
  .demo-points { margin-top: 27px; }
  .steps { grid-template-columns: 1fr; border-bottom: 0; }
  .step { border-bottom: 1px solid var(--line); padding: 25px 0; }
  .step + .step { padding-left: 0; border-left: 0; }
  .step-icon { float: right; margin-top: -10px; }
  .step h3 { margin-top: 2px; }
  .step p { max-width: none; }
  .code-lab-body { grid-template-columns: 1fr; }
  .code-aside { border-left: 0; border-top: 1px solid rgba(243, 238, 227, 0.12); }
  .code-aside ul { flex-direction: row; flex-wrap: wrap; gap: 15px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .estimator { grid-template-columns: 1fr 1fr; }
  .estimate-total { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
  .faq { grid-template-columns: 1fr; gap: 36px; }
  .faq-list { margin-top: 5px; }
  .final-mark { font-size: 180px; opacity: 0.6; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { min-height: auto; padding: 25px 28px; }
  .auth-quote { display: none; }
  .auth-foot { display: none; }
  .auth-main { padding: 43px 24px; }
  .auth-back { margin-bottom: 25px; }
  .docs-shell { grid-template-columns: 1fr; width: calc(100% - 40px); }
  .docs-sidebar { display: none; }
  .docs-mobile-toc { display: block; }
  .docs-content { padding-top: 36px; }
  .docs-header-inner { width: calc(100% - 32px); }
  .app-shell { grid-template-columns: 1fr; width: calc(100% - 28px); padding-top: 16px; }
  .app-sidebar { position: static; overflow-x: auto; }
  .app-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .app-nav-title { display: none; }
  .app-nav button { flex: 0 0 auto; }
  .app-help { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .balance-card { min-height: 210px; }
  .panel-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-submit-row { align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (max-width: 600px) {
  .section-pad { width: calc(100% - 36px); padding-block: 68px; }
  .topbar-inner { width: calc(100% - 32px); height: 64px; gap: 10px; }
  .topbar-actions { gap: 7px; }
  .brand { min-width: 0; }
  .topbar-actions .button { min-height: 34px; padding: 0 12px; font-size: 11px; }
  .brand-word { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { padding-top: 35px; }
  .eyebrow { font-size: 9px; letter-spacing: 0.08em; gap: 7px; }
  .hero h1 { font-size: clamp(47px, 15vw, 70px); letter-spacing: -0.06em; line-height: 0.95; }
  .hero-lead { font-size: 14.5px; line-height: 1.8; }
  .hero-actions { margin-top: 25px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { gap: 10px 14px; font-size: 10px; }
  .hero-console-wrap { padding-top: 15px; }
  .orbit-chip { font-size: 8px; padding: 6px 9px; }
  .orbit-chip-top { right: -2px; top: 0; }
  .orbit-chip-bottom { left: -2px; bottom: -8px; }
  .console-bar { padding: 0 12px; gap: 9px; }
  .console-tabs button { padding: 4px 6px; font-size: 9px; }
  .console-live { font-size: 8px; }
  .console-body { padding: 16px 14px; }
  .code-block { font-size: 9.5px; }
  .hero-code { min-height: 88px; }
  .console-foot { padding: 10px 13px; font-size: 7.5px; }
  .hero-marquee { margin-top: 46px; }
  .marquee-items { gap: 10px; }
  .marquee-items span { font-size: 11px; }
  .section-heading h2 { font-size: 39px; }
  .section-heading > p { font-size: 13.5px; }
  .bento { grid-template-columns: 1fr; margin-top: 33px; }
  .bento-card { min-height: 345px; padding: 22px; }
  .card-top { margin-bottom: 35px; }
  .bento-card h3 { font-size: 20px; }
  .transform-mock { gap: 7px; }
  .transform-source, .transform-target { padding: 11px; }
  .demo-form { padding: 19px 17px 14px; }
  .demo-input-row { flex-direction: column; }
  .demo-submit { width: 100%; }
  .demo-hint-row { font-size: 7.5px; gap: 8px; }
  .demo-result { padding: 19px 17px; min-height: 310px; }
  .demo-answer-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .code-lab-head { flex-direction: column; align-items: flex-start; padding: 21px 18px; }
  .code-pane { padding: 19px 18px; }
  .code-pane .code-block { font-size: 9.5px; }
  .code-aside { padding: 19px 18px; }
  .pricing-card { padding: 24px; }
  .price strong { font-size: 55px; }
  .estimator { padding: 22px; gap: 22px; grid-template-columns: 1fr; }
  .estimate-total { grid-column: auto; }
  .estimate-total strong { font-size: 38px; }
  .usecase-grid { grid-template-columns: 1fr; }
  .usecase-card { min-height: 195px; }
  .faq-answer { padding-right: 25px; }
  .final-cta-inner { width: calc(100% - 36px); padding: 67px 0 72px; }
  .final-cta h2 { font-size: clamp(41px, 11vw, 58px); }
  .final-actions .button { width: 100%; }
  .final-meta { gap: 10px 15px; font-size: 7.5px; }
  .final-mark { font-size: 130px; bottom: -45px; }
  .footer-top, .footer-bottom { width: calc(100% - 36px); }
  .footer-top { grid-template-columns: 1fr; gap: 38px; padding-bottom: 38px; }
  .footer-links { gap: 20px; }
  .footer-links a { font-size: 10.5px; }
  .footer-bottom { flex-direction: column; gap: 9px; line-height: 1.6; }
  .site-footer { padding-top: 45px; }
  .subpage-main { width: calc(100% - 36px); padding-top: 40px; }
  .auth-main { padding: 32px 20px; }
  .auth-card h1 { font-size: 39px; }
  .docs-header-links a:first-child { display: none; }
  .docs-content h1 { font-size: 43px; }
  .doc-section h2 { font-size: 29px; }
  .doc-section pre { padding: 14px; font-size: 9.5px; }
  .app-topbar-inner { width: calc(100% - 28px); }
  .app-user span:not(.avatar) { display: none; }
  .app-view-head { flex-direction: column; align-items: flex-start; }
  .app-view-head h1 { font-size: 33px; }
  .balance-card { padding: 22px; }
  .balance-amount { font-size: 58px; }
  .balance-actions { left: 22px; bottom: 20px; }
  .balance-actions .button { padding: 0 11px; font-size: 9px; }
  .data-table th, .data-table td { padding: 9px 10px; }
  .key-meta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .topup-options { grid-template-columns: repeat(3, 1fr); }
  .modal { border-radius: 12px; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .admin-main { width: calc(100% - 28px); padding-top: 24px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-panel { padding: 18px; }
  .admin-panel-head { flex-direction: column; gap: 12px; }
  .admin-submit-row .button { width: 100%; }
  .admin-codes { font-size: 10px; }
}
