:root {
  --bg: #eef1f6;
  --surface: #f7f8fb;
  --surface-2: #e9edf4;
  --text: #2f3540;
  --muted: #6f7887;
  --border: #dde2ea;
  --accent: #6d9e1c;
  --accent-2: #7fb524;
  --shadow: 8px 8px 18px #d3d8e2, -8px -8px 18px #fff;
  --shadow-in: inset 4px 4px 9px #d1d7e1, inset -4px -4px 9px #fff;
  color-scheme: light;
}

:root[data-theme="clay-dark"] {
  --bg: #16181d;
  --surface: #20232a;
  --surface-2: #262a32;
  --text: #eef0f4;
  --muted: #929aa8;
  --border: #333842;
  --accent: #c6f24e;
  --accent-2: #a8d93a;
  --shadow: 8px 8px 18px rgba(0,0,0,.45), -6px -6px 16px rgba(255,255,255,.025);
  --shadow-in: inset 4px 4px 9px rgba(0,0,0,.5), inset -4px -4px 9px rgba(255,255,255,.03);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--accent); color: #101409;
}
.brand-mark svg { width: 17px; height: 17px; }
nav { display: flex; gap: 22px; margin-left: auto; color: var(--muted); font-size: 13px; }
nav a:hover { color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; border-radius: 12px;
  font-size: 13px; font-weight: 600; transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #101409; box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); }
.icon-btn {
  min-width: 40px; min-height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
}
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 14px; }

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px);
  align-items: center; max-width: 1200px; margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 64px);
}
.eyebrow {
  display: inline-block; font: 11px/1.4 ui-monospace, monospace; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.04em; margin: 0 0 20px; }
h1 span { color: var(--accent); }
.lead { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 12px; margin-top: 16px; }

.hero-art { display: grid; place-items: center; }
.window {
  width: min(100%, 460px); border-radius: 22px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.window-bar span { margin-left: auto; font: 10px ui-monospace, monospace; color: var(--muted); }
.window-body { padding: 18px; }
.preview {
  position: relative; height: 190px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #3d7a18, #94c93a 35%, #d9e86b 55%, #4a7d20);
  box-shadow: var(--shadow-in);
}
.preview > span {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); font: 10px ui-monospace, monospace; color: var(--accent);
}
.play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 38px; opacity: .9; }
.tabs { display: flex; gap: 6px; margin: 14px 0; font: 10px ui-monospace, monospace; color: var(--muted); }
.tabs b, .tabs span { padding: 6px 10px; border-radius: 9px; }
.tabs b { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.panel { border-radius: 14px; background: var(--surface-2); box-shadow: var(--shadow-in); padding: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 12px; }
.row.small { margin: 10px 0 0; font: 10px ui-monospace, monospace; color: var(--muted); }
.switch { width: 34px; height: 18px; border-radius: 99px; background: var(--accent); }
.chips { display: flex; gap: 6px; font: 10px ui-monospace, monospace; }
.chips b { padding: 6px 12px; border-radius: 9px; background: var(--surface); }
.chips .active { background: var(--accent); color: #101409; }
.bar { height: 8px; border-radius: 99px; background: var(--bg); box-shadow: var(--shadow-in); overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

.section { max-width: 1100px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 64px); }
.section h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.card { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #101409; font-size: 18px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font: 11px ui-monospace, monospace; color: var(--muted); text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.tag { font: 10px ui-monospace, monospace; padding: 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.steps article { padding: 22px; border-radius: 20px; background: var(--surface-2); box-shadow: var(--shadow-in); }
.steps b { font: 12px ui-monospace, monospace; color: var(--accent); }
.steps h3 { margin: 8px 0 6px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }
footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 30px clamp(16px, 5vw, 64px) 50px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
footer a { margin-left: auto; color: var(--accent); }

@media (max-width: 860px) {
  nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
