:root {
  color-scheme: dark;
  --atom-bg: #0b0b0c;
  --atom-fg: #e7e8eb;
  --atom-muted: #9da2ad;
  --atom-line: rgba(255, 255, 255, 0.12);
  --atom-accent: #29a1e2;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--atom-bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 90% 10%, rgb(41 161 226 / 14%), transparent 48%),
    var(--atom-bg);
  color: var(--atom-fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.atom-topbar {
  height: 75px;
  border-bottom: 1px solid var(--atom-line);
  display: flex;
  align-items: center;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  background: rgb(11 11 12 / 86%);
  backdrop-filter: blur(12px);
}

.atom-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.atom-brand img { display: block; width: auto; height: 52px; }
.atom-brand strong { font: inherit; }
.atom-brand span span { color: rgb(231 232 235 / 42%); }

.atom-page {
  width: min(1120px, calc(100% - 2 * clamp(1.25rem, 4vw, 3rem)));
  min-height: calc(100svh - 75px);
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(360px, 1.35fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.atom-intro { position: relative; z-index: 1; }
.atom-eyebrow { margin: 0 0 1rem; color: var(--atom-accent); font-size: 0.72rem; font-weight: 720; letter-spacing: 0.12em; text-transform: uppercase; }
.atom-intro h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 560; line-height: 0.95; letter-spacing: -0.06em; }
.atom-intro p:last-child { max-width: 28rem; margin: 1.5rem 0 0; color: var(--atom-muted); font-size: 0.9rem; line-height: 1.65; }

.atom-stage {
  width: min(100%, 620px);
  height: min(620px, calc(100svh - 130px));
  min-height: 420px;
  justify-self: center;
  position: relative;
  cursor: grab;
  touch-action: none;
}

.atom-stage:active { cursor: grabbing; }
.atom-stage canvas { display: block; width: 100%; height: 100%; }

@media (max-width: 760px) {
  .atom-brand { gap: 0.75rem; }
  .atom-page { min-height: auto; grid-template-columns: 1fr; gap: 0.5rem; padding-top: 3rem; }
  .atom-intro { text-align: center; }
  .atom-intro p:last-child { margin-inline: auto; }
  .atom-stage { width: min(100%, 520px); height: min(520px, 70svh); min-height: 340px; }
}

@media (max-width: 420px) {
  .atom-stage { min-height: 300px; height: 56svh; }
}
