/* Palette and toy-box treatment from sub2api-plus/frontend/src/views/HomeView.vue. */
:root {
  color-scheme: light;
  --canvas: #f5f1ea;
  --panel: #fff;
  --text: #1e1a17;
  --muted: #6a635d;
  --border: #e4dcd0;
  --accent: #e8774f;
  --ink: #a34a2a;
  --box: #e46f45;
  --edge: #b9532f;
  --mint: #8fd3c1;
  --yellow: #ffd66b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #120c08;
  --panel: #1c130d;
  --text: #fceedd;
  --muted: #b49a84;
  --border: #3a2a1e;
  --accent: #ff9636;
  --ink: #ffb068;
  --box: #c95f22;
  --edge: #7a3a12;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.landing { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; padding: 100px clamp(24px, 5vw, 72px) 24px; overflow: hidden; }
.landing::before, .landing::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.landing::before { width: 430px; height: 430px; right: -140px; top: -170px; background: var(--yellow); opacity: .46; }
.landing::after { width: 380px; height: 300px; left: -220px; bottom: -220px; background: var(--mint); opacity: .42; }
:root[data-theme="dark"] .landing::before { opacity: .1; }
:root[data-theme="dark"] .landing::after { opacity: .08; }
.hero { width: 100%; max-width: 1160px; margin: auto; display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow, .edition, .box-caption { font: 700 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
h1 { margin: 24px 0 20px; font-size: clamp(44px, 6.7vw, 86px); line-height: 1.04; letter-spacing: -.065em; font-weight: 900; }
h1 span { color: var(--accent); }
.tagline { margin: 0 0 12px; font-size: clamp(20px, 2.3vw, 26px); font-weight: 850; letter-spacing: -.02em; }
.intro { max-width: 380px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 28px 0; }
.primary { display: inline-flex; align-items: center; gap: 18px; padding: 15px 21px; border-radius: 14px; background: #ad4d2b; color: #fff; font-weight: 750; box-shadow: 0 5px 0 #7d3420; transition: transform .15s; }
.primary:hover { transform: translateY(-2px); }
.secondary { padding: 12px 0; font-weight: 700; color: var(--ink); }
.endpoint { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; background: var(--panel); color: var(--muted); font-size: 11px; }
.endpoint code { color: var(--text); font-size: 13px; user-select: all; overflow-wrap: anywhere; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 14px 0 0; }
.figure { position: relative; width: 100%; max-width: 440px; justify-self: center; border-radius: 34px; padding: 48px 28px 26px; background: var(--box); box-shadow: 0 10px 0 var(--edge), 0 24px 44px rgb(120 40 10 / 15%); }
.hanger { position: absolute; width: 108px; height: 18px; left: 50%; top: 17px; transform: translateX(-50%); border-radius: 99px; background: var(--canvas); }
.box-head { display: flex; justify-content: space-between; align-items: baseline; color: #fff; gap: 8px; }
.box-head strong { font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; letter-spacing: -.055em; }
.box-head small { font-size: 13px; font-weight: 900; white-space: nowrap; }
.edition { margin: 10px 0 22px; color: #fff; font-size: 9px; }
.window { position: relative; display: grid; place-items: center; min-height: 250px; border: 2px solid rgb(255 255 255 / 65%); border-radius: 28px; background: rgb(255 255 255 / 14%); overflow: hidden; }
.window::after { position: absolute; content: ""; inset: 0; background: linear-gradient(115deg, transparent 61%, rgb(255 255 255 / 20%) 61%, rgb(255 255 255 / 20%) 70%, transparent 70%); pointer-events: none; }
.window img { width: 92%; height: auto; padding: 16px 0; filter: drop-shadow(0 15px 12px rgb(100 40 15 / 20%)); }
.badge { position: absolute; top: 130px; left: -23px; display: grid; place-content: center; width: 79px; height: 79px; border-radius: 50%; background: var(--mint); color: #152622; box-shadow: 0 4px 0 var(--edge); transform: rotate(-12deg); font-size: 24px; font-weight: 950; z-index: 1; }
.badge small { font: 700 9px/1.3 ui-monospace, monospace; text-align: center; }
.box-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 15px 13px; border-radius: 14px; background: #fff; color: #1e1a17; font-size: 10px; letter-spacing: .05em; }
.box-caption strong { color: #a34a2a; white-space: nowrap; }
.foot { max-width: 1160px; width: 100%; margin: 36px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.doc { max-width: 900px; margin: 0 auto; padding: 28px 24px 60px; }
.doc-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 850; }
.wordmark img { width: 42px; height: 42px; }
.doc h1 { font-size: clamp(38px, 6vw, 58px); letter-spacing: -.045em; }
.doc h2 { margin-top: 40px; font-size: 22px; }
.doc p, .doc li { color: var(--muted); line-height: 1.85; }
.doc li { margin-bottom: 10px; }
.doc pre { overflow-x: auto; padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; font-size: 13px; line-height: 1.8; }
.doc code { color: var(--text); }
.doc p a { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) {
  .landing { padding: 88px 24px 24px; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  h1 { font-size: clamp(44px, 12vw, 68px); margin-top: 20px; }
  .figure { max-width: 360px; margin: 0 10px; width: calc(100% - 20px); }
  .box-head strong { font-size: 42px; }
  .window { min-height: 220px; }
  .foot { margin-top: 32px; }
  .doc-nav { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .primary { transition: none; } }
