:root { color-scheme: dark; --ink: #f5f7ff; --muted: #a8afc7; --line: #293149; --blue: #84a8ff; --panel: #131827; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #090c14; font-family: Inter, "Noto Sans JP", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 8%, #273660 0, transparent 33rem), radial-gradient(circle at 85% 38%, #1b294d 0, transparent 28rem); }
main, footer { width: min(1120px, calc(100% - 40px)); margin: auto; }
.site-nav { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .08em; }.brand span { color: var(--blue); }
.nav-links { display: flex; gap: 22px; }.nav-links a, footer a { color: var(--muted); text-decoration: none; font-size: .88rem; }.nav-links a:hover, footer a:hover { color: var(--ink); }
.github-link { display: inline-flex; align-items: center; gap: .38em; }.github-link img { width: 1.05em; height: 1.05em; opacity: .86; }.github-link:hover img { opacity: 1; }
.hero { padding: 102px 0 120px; max-width: 820px; }.eyebrow { margin: 0 0 17px; color: var(--blue); font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }.hero-title { margin-bottom: 29px; font-size: clamp(3.7rem, 10vw, 8rem); line-height: .88; letter-spacing: -.075em; color: #18213a; font-weight: 800; }.hero-title em { color: #596b9d; font-style: normal; }
.hero-copy { max-width: 630px; color: #c1c8dc; font-size: 1.08rem; line-height: 1.8; }.hero-copy code { color: var(--blue); }.japanese { color: var(--muted); font-size: .96rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }.button { border: 1px solid var(--line); border-radius: 99px; padding: 12px 20px; text-decoration: none; font-size: .9rem; font-weight: 700; }.primary { background: var(--ink); color: #111525; border-color: var(--ink); }.secondary { color: var(--ink); }
.demo-section, .install-section { border-top: 1px solid var(--line); padding: 88px 0; }.section-heading h2 { margin-bottom: 11px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.06em; }.section-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.playground { display: grid; grid-template-columns: 1.4fr .6fr; margin-top: 36px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }.stage { min-height: 410px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #3864cf, #824ed5 65%, #dd668f); }.stage-label { margin: 0; font: 500 .73rem "DM Mono", monospace; color: #fff; opacity: .8; }.demo-text { margin: 0; color: #253b77; font-weight: 800; font-size: clamp(3.2rem, 8vw, 6rem); letter-spacing: -.08em; line-height: .82; }
.controls { padding: 30px; display: grid; align-content: center; gap: 28px; }.controls label { display: grid; gap: 10px; color: #dfe5f7; font-size: .85rem; font-weight: 600; }.controls input[type="range"] { accent-color: var(--blue); width: 100%; }.controls output { color: var(--blue); font: .8rem "DM Mono", monospace; }.controls input[type="color"] { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }.toggle-row { grid-template-columns: auto 1fr; align-items: center; }.toggle-row small { color: var(--muted); font-weight: 400; }
.code-card { position: relative; margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #101522; overflow: auto; }.small-code { margin-top: 14px; }.code-card pre { margin: 0; color: #d5e1ff; font: .78rem/1.75 "DM Mono", monospace; white-space: pre-wrap; }.copy-button { position: absolute; top: 12px; right: 12px; border: 1px solid #3a4565; border-radius: 7px; padding: 6px 9px; color: var(--muted); background: #1b2234; cursor: pointer; font-size: .72rem; }
.download-row { margin: 14px 0 0; }.download-link { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 15px; border: 1px solid #667eaf; border-radius: 9px; color: #d5e1ff; background: linear-gradient(145deg, #3a496b, #26314b 55%, #182033); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .15), inset -2px -2px 0 rgba(0, 0, 0, .38), 0 3px 8px rgba(1, 5, 16, .12); text-decoration: none; font-size: .82rem; font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, .42); transition: transform .18s ease, border-color .18s ease; }.download-link:hover { transform: translateY(-1px); border-color: #84a8ff; }.download-link:active { transform: translateY(0); box-shadow: inset 2px 2px 4px rgba(0, 0, 0, .28), inset -1px -1px 0 rgba(255, 255, 255, .05); }
.corner-control[hidden] { display: none; }
footer { padding: 30px 0 44px; color: #68728d; font-size: .8rem; }
.footer-copy { text-align: center; }
.footer-copy img { vertical-align: middle; height: 2lh; margin: 0 .5em; }


/* Soft skeuomorphism: a clear beveled edge with restrained drop shadows. */
.button, .copy-button, .code-card, .playground, .controls, .controls input[type="color"] {
  border-color: #4f638e;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .16), inset -2px -2px 0 rgba(0, 0, 0, .42), 0 6px 14px rgba(1, 5, 16, .14);
}
.button {
  background: linear-gradient(145deg, #303c59 0%, #222b42 48%, #151b2b 100%);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .38);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button.primary {
  background: linear-gradient(145deg, #ffffff 0%, #e8edff 45%, #bac9ee 100%);
  color: #151c30;
  border-color: #f5f7ff;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}
.button:hover, .copy-button:hover {
  transform: translateY(-1px);
  border-color: #84a8ff;
}
.button:active, .copy-button:active {
  transform: translateY(0);
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, .28), inset -1px -1px 0 rgba(255, 255, 255, .05);
}
.playground {
  border-color: #536895;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .15), inset -2px -2px 0 rgba(0, 0, 0, .42), 0 10px 22px rgba(1, 5, 16, .16);
}
.controls {
  background: linear-gradient(145deg, #202a40 0%, #161d2d 55%, #101522 100%);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .11), inset -2px -2px 0 rgba(0, 0, 0, .36);
}
.controls input[type="range"] { accent-color: #9db9ff; }
.controls input[type="color"] { background: #151b2a; }
.code-card {
  background: linear-gradient(145deg, #202a40, #121827 65%, #0d1220);
  border-color: #4f638e;
}

.vanilla-preview {
  margin-top: 3em;
}
