:root {
  --ink: #142e2a;
  --muted: #53645e;
  --acid: #c9ef79;
  --paper: #f7f8f3;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #44856b; outline-offset: 4px; }
.wrap { width: min(1200px, 90%); margin-inline: auto; }
.top { border-bottom: 1px solid #d6ddd1; }
.bar, .brand, nav, .actions, .foot { display: flex; align-items: center; }
.bar, .foot { justify-content: space-between; }
.bar { min-height: 76px; }
.brand { gap: 10px; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--acid); background: var(--ink); font: bold 27px Georgia, serif; }
nav { gap: 32px; font-size: 14px; font-weight: 600; }
nav a:hover, .secondary:hover, footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-action { padding: 10px 16px; border: 1px solid #a4b4a5; border-radius: 7px; }
.nav-action span, .actions span { margin-left: 9px; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4%; align-items: center; padding-block: 52px 56px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12px/1.4 Consolas, monospace; letter-spacing: .13em; }
.eyebrow i { display: block; width: 25px; height: 3px; background: #619746; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(52px, 5.65vw, 84px); line-height: 1.24; letter-spacing: -.065em; margin: 23px 0 16px; }
h1 span { color: #6f9e48; }
.lead { font-size: clamp(21px, 2.2vw, 31px); letter-spacing: -.055em; font-weight: 550; }
.summary, .preview-copy > p { font-size: 16px; line-height: 1.9; color: var(--muted); }
.summary { margin-top: 17px; }
.actions { gap: 24px; margin-top: 32px; font-size: 15px; font-weight: 650; }
.primary { background: var(--ink); color: white; padding: 15px 23px; border-radius: 8px; }
.primary:hover { background: #275648; }
.secondary { padding-block: 11px; }
.stage, .screen-stage { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; border-radius: 20px; }
.stage { min-height: 462px; background-color: #113f36; background-image: linear-gradient(#a1dba714 1px, transparent 1px), linear-gradient(90deg,#a1dba714 1px,transparent 1px), radial-gradient(ellipse at 20% 10%, #306454, transparent 80%); background-size: 24px 24px, 24px 24px, auto; }
#graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.instrument { width: 254px; padding: 17px 17px 20px; border: 1px solid #8c9d8e; border-radius: 20px; background: linear-gradient(125deg,#425650,#233d35 60%,#263f35); transform: rotate(-7deg); box-shadow: 1px 2px 0 #596d60, 2px 6px 0 #182e26, 3px 9px 0 #10291f, 10px 21px 19px #051e1bb3; scroll-margin-block: 50px; }
.instrument:focus-within { outline: 2px solid var(--acid); outline-offset: 5px; }
.instrument-top { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 11px; color: #dee5d8; font: 700 10px Consolas, monospace; letter-spacing: .12em; }
.instrument-top b { margin-right: 5px; font: bold 16px Georgia, serif; color: var(--acid); }
.power { height: 12px; width: 39px; border: 1px solid #182f28; border-radius: 3px; background: repeating-linear-gradient(90deg,#546155 0 8px,#324238 8px 10px); }
.display { padding: 10px 12px 8px; border: 3px solid #1a3029; border-radius: 8px; background: linear-gradient(145deg,#cbd9a9,#dde6b9); color: #273d28; text-align: right; box-shadow: inset 1px 2px 4px #61714e55; }
#expression { display: block; height: 15px; font: 12px/15px Consolas, monospace; }
#result { display: block; height: 41px; font: 38px/41px Consolas, monospace; letter-spacing: -.06em; }
#result.long { font-size: 22px; }
.keys { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 13px; }
.keys button { display: grid; place-items: center; height: 35px; border: 1px solid #81908455; border-bottom-color: #253b31; border-radius: 6px; background: #52645b; color: #f3f5e9; font: 17px/1 Consolas, monospace; box-shadow: 0 2px 0 #172e25; }
.keys .util { background: #67776b; font-size: 14px; }
.keys .op { background: #819586; color: #102e21; font-size: 22px; }
.keys .equals { background: var(--acid); color: #223927; font-size: 22px; }
.keys button:hover { filter: brightness(1.14); }
.keys button:active { transform: translateY(2px); box-shadow: none; }
.features { padding: 45px 0 50px; border-block: 1px solid #dbe0d5; background: #eef1e8; }
h2 { font-size: clamp(28px, 2.8vw, 39px); letter-spacing: -.055em; line-height: 1.3; }
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 25px; }
.cards article { border: 1px solid #d6dccf; border-radius: 13px; background: #fafbf6; padding: 23px; }
.symbol { border-radius: 10px; height: 42px; width: 42px; display: grid; place-items: center; background: #e4ecd9; color: #34563d; font: 28px/1 Georgia, serif; }
.math { font-style: italic; }
h3 { font-size: 20px; margin: 17px 0 8px; }
.cards p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.preview { padding-block: 72px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; align-items: center; }
.preview h2 { margin: 14px 0 12px; }
.choices { display: grid; gap: 7px; margin-top: 24px; }
.choices button { padding: 14px 18px; text-align: left; border: 1px solid #d3dacf; border-radius: 7px; color: var(--ink); background: transparent; }
.choices button span { float: right; }
.choices button[aria-pressed=true] { color: white; background: var(--ink); border-color: var(--ink); }
.screen-stage { padding: 28px; background-color: #e3eadc; background-image: radial-gradient(#8da68b70 .8px, transparent .8px); background-size: 14px 14px; }
.screen-stage img { width: 202px; height: auto; display: block; border: 5px solid #223c32; border-radius: 20px; box-shadow: 0 12px 24px #2f48342b; }
footer { padding-block: 30px; border-top: 1px solid #d6ddd1; }
.foot > div { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13px; }
@media (max-width: 850px) {
  .wrap { width: 92%; }
  .hero { gap: 16px; }
  .stage { min-height: 410px; }
  .cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .bar { min-height: 63px; }
  nav { gap: 13px; font-size: 12px; }
  .brand { font-size: 16px; gap: 7px; }
  .mark { width: 29px; height: 29px; font-size: 22px; }
  .nav-action { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 35px 30px; gap: 29px; }
  h1 { margin: 15px 0 10px; }
  .summary { margin-top: 9px; font-size: 14px; }
  .desktop-break { display: none; }
  .actions { margin-top: 20px; gap: 18px; font-size: 14px; }
  .primary { padding: 12px 17px; }
  .stage { min-height: 396px; border-radius: 14px; }
  .instrument { transform: rotate(-4deg); }
  .features { padding-block: 30px; }
  .cards { gap: 10px; margin-top: 17px; }
  .cards article { padding: 15px; }
  h3 { font-size: 17px; }
  .cards p { font-size: 13px; }
  .preview { grid-template-columns: 1fr; gap: 20px; padding-block: 36px; }
  .choices { grid-template-columns: repeat(2,1fr); margin-top: 15px; }
  .foot { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
