﻿:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.66);
  --text: #172235;
  --muted: #5d6a80;
  --line: rgba(23, 34, 53, 0.1);
  --brand: #0d8a76;
  --brand-strong: #0a6859;
  --brand-soft: rgba(13, 138, 118, 0.12);
  --accent: #ffb347;
  --shadow: 0 22px 48px rgba(20, 32, 48, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
  --font-sans: "Satoshi", "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08121b;
    --surface: rgba(10, 20, 31, 0.9);
    --surface-soft: rgba(15, 26, 39, 0.76);
    --text: #edf3fb;
    --muted: #a0abc0;
    --line: rgba(237, 243, 251, 0.1);
    --brand: #43d6bb;
    --brand-strong: #25b099;
    --brand-soft: rgba(67, 214, 187, 0.14);
    --accent: #ffd08a;
    --shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(13, 138, 118, 0.16), transparent 28%),
    radial-gradient(circle at right 18%, rgba(255, 179, 71, 0.14), transparent 24%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.shell { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header__inner, .site-footer__inner, .nav, .hero-actions, .button-row, .footer-links, .meta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.site-header__inner, .site-footer__inner {
  min-height: 72px; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #062119; font-weight: 800;
}
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); background: var(--brand-soft); }
.hero { padding: 54px 0 24px; }
.hero--compact { padding-bottom: 10px; }
.hero__grid, .split, .grid--3, .grid--2, .metrics { display: grid; gap: 18px; }
.hero__grid, .split { grid-template-columns: 1.24fr 0.96fr; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero__copy, .hero__panel, .panel, .card, .tool, .article, .timeline, .notice, .metric {
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius-lg);
}
.hero__copy, .hero__panel, .panel, .tool, .article, .timeline, .notice { padding: 28px; }
.card, .metric, .timeline__entry { padding: 22px; }
.timeline__entry { border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-soft); }
.eyebrow, .pill, .status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; }
.eyebrow { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.pill, .status { background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.45rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 2.5vw, 1.52rem); }
p { margin: 0 0 16px; color: var(--muted); }
.lede { max-width: 62ch; font-size: 1.06rem; }
.button, .button--ghost, .button--soft {
  min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; cursor: pointer;
}
.button { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); }
.button--ghost { color: var(--text); background: transparent; border-color: var(--line); }
.button--soft { color: var(--brand-strong); background: var(--brand-soft); }
.button:hover, .button--ghost:hover, .button--soft:hover, .card:hover { transform: translateY(-1px); }
.card { transition: 0.18s ease; }
.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700;
}
.section { padding: 18px 0 38px; }
.section__head {
  display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px;
}
.tool, .article { display: grid; gap: 18px; }
.tool__controls, .tool__aside, .stack { display: grid; gap: 16px; }
.label-row, .article__meta, .timeline__meta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; color: var(--muted); font-size: 0.95rem;
}
input[type='range'] { width: 100%; accent-color: var(--brand); }
select, input[type='text'], input[type='email'], textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
.canvas-wrap {
  border-radius: var(--radius-md); overflow: hidden; min-height: 220px; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 138, 118, 0.08), transparent),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    color-mix(in srgb, var(--bg) 76%, black 4%);
  background-size: auto, 32px 32px, 32px 32px, auto;
}
canvas { width: 100%; height: 220px; }
.notice {
  background: radial-gradient(circle at top right, rgba(255, 179, 71, 0.14), transparent 30%), var(--surface);
}
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); }
.site-footer__inner { padding: 18px 0 34px; align-items: flex-start; }
.site-footer__copy { max-width: 46ch; }
.empty { padding: 24px; border-radius: var(--radius-md); border: 1px dashed var(--line); color: var(--muted); }
.list { margin: 0; padding-left: 18px; color: var(--muted); }
.list li + li { margin-top: 8px; }
.article blockquote { margin: 0; padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 0 18px 18px 0; background: var(--brand-soft); color: var(--text); }
.article p:last-child, .card p:last-child, .panel p:last-child { margin-bottom: 0; }
@media (max-width: 960px) {
  .hero__grid, .split, .grid--3, .grid--2, .metrics { grid-template-columns: 1fr; }
  .site-header__inner, .site-footer__inner, .section__head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .shell { width: min(calc(100% - 20px), var(--content)); }
  .hero { padding-top: 34px; }
  .hero__copy, .hero__panel, .panel, .tool, .article, .timeline, .notice { padding: 22px; }
  h1 { font-size: 2.4rem; }
}
