:root {
  color-scheme: dark;
  --bg: #07150e;
  --panel: #0d2418;
  --line: rgba(202, 239, 212, 0.16);
  --text: #f4fbf5;
  --muted: #acc7b3;
  --leaf: #91dc9e;
  --soil: #d7aa79;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 78% 0%, #143923 0, var(--bg) 42rem); color: var(--text); }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(7, 21, 14, 0.9); backdrop-filter: blur(12px); }
.site-header .shell { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--leaf); }
nav { display: flex; flex-wrap: wrap; gap: 20px; }
nav a { color: var(--muted); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--text); }
.hero { padding: 96px 0 72px; }
.hero.compact { padding: 72px 0 56px; }
.kicker { margin: 0; color: var(--leaf); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 18px 0 0; font-size: clamp(3rem, 8vw, 6.7rem); line-height: 0.94; letter-spacing: -0.065em; }
.lede { max-width: 720px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; padding: 0 18px; background: var(--panel); font-weight: 800; text-decoration: none; }
.button.primary { border-color: var(--leaf); background: var(--leaf); color: #092012; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-top: 34px; color: var(--muted); font-size: 0.9rem; }
.status::before { width: 9px; height: 9px; border-radius: 99px; background: var(--leaf); box-shadow: 0 0 0 5px rgba(145, 220, 158, 0.12); content: ""; }
.section { padding: 68px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(260px, 480px); align-items: end; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.045em; }
.section-copy { margin: 0; color: var(--muted); line-height: 1.7; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: linear-gradient(145deg, rgba(18, 48, 32, 0.92), rgba(13, 36, 24, 0.84)); }
.card h3 { margin: 16px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }
.tag { display: inline-flex; border: 1px solid rgba(145, 220, 158, 0.36); border-radius: 99px; padding: 5px 9px; color: var(--leaf); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.code { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #030b07; color: #d9efe0; font: 0.92rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.notice { margin-top: 28px; border-left: 3px solid var(--soil); padding: 18px 20px; background: rgba(215, 170, 121, 0.08); color: var(--muted); line-height: 1.65; }
.notice strong { color: var(--text); }
.list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.list code { color: var(--leaf); }
.list span { color: var(--muted); line-height: 1.6; }
footer { border-top: 1px solid var(--line); padding: 32px 0 52px; color: var(--muted); font-size: 0.86rem; }
footer .shell { display: flex; justify-content: space-between; gap: 20px; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr); gap: 28px; align-items: start; }
.map-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.map-form label { display: grid; gap: 7px; color: var(--muted); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; }
.map-form input { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #030b07; color: var(--text); font: inherit; }
.map-form .button { align-self: end; cursor: pointer; }
.map-status { color: var(--muted); font-size: 0.88rem; }
.pedon-map { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: #030b07; }
.map-background { fill: #091b12; }
.pedon-point { fill: var(--soil); stroke: #07150e; stroke-width: 2; cursor: pointer; }
.pedon-point:hover, .pedon-point:focus, .pedon-point.selected { fill: var(--leaf); stroke: #fff; stroke-width: 3; outline: none; }
.detail-panel { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--panel); }
.detail-panel h2 { margin-top: 12px; font-size: 1.8rem; }
.observation-table { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 0.78rem; }
.observation-table th, .observation-table td { border-bottom: 1px solid var(--line); padding: 9px 6px; text-align: left; vertical-align: top; }
.observation-table th { color: var(--leaf); }
.observation-table td { color: var(--muted); }
@media (max-width: 760px) {
  .site-header .shell, footer .shell { align-items: flex-start; flex-direction: column; padding-block: 18px; }
  .hero { padding-top: 66px; }
  .section-head, .grid, .demo-layout, .map-form { grid-template-columns: 1fr; }
  .detail-panel { position: static; max-height: none; }
  .list li { grid-template-columns: 1fr; gap: 6px; }
}
