:root {
  --bg: #f6f5f1;
  --ink: #1d1f24;
  --muted: #5b606b;
  --line: #dddad2;
  --card: #ffffff;
  --accent: #3a6df0;
  --accent-ink: #ffffff;
  --canvas: #fbfaf7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --ink: #eceae4;
    --muted: #9ba0aa;
    --line: #2a2e36;
    --card: #181b21;
    --accent: #6f95ff;
    --accent-ink: #0d1020;
    --canvas: #15181e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }

.top, main, .bottom { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.cube { width: 18px; height: 18px; background: var(--accent); border-radius: 3px; transform: rotate(45deg) scale(0.85); box-shadow: 4px 4px 0 -1px color-mix(in srgb, var(--accent) 45%, transparent); }
.top-link { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-link:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.tag { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.08); }

.demo { position: relative; margin: 0; }
#map { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--canvas); border: 1px solid var(--line); border-radius: 18px; touch-action: none; cursor: default; }
#map.rotatable { cursor: grab; }
#map.rotatable:active { cursor: grabbing; }
.demo-controls { position: absolute; top: 14px; right: 14px; display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.demo-controls button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.demo-controls button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.demo figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 72px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.features h2 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.status { max-width: 680px; padding-bottom: 72px; }
.status h2 { font-size: 26px; margin: 0 0 10px; letter-spacing: -0.02em; }
.status p { color: var(--muted); margin: 0; }

.bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.bottom a { color: inherit; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .top, main, .bottom { padding: 0 16px; }
  .bottom { padding-bottom: 32px; }
  .features { grid-template-columns: 1fr; }
  .top-link { display: none; }
}
