:root {
  --bg: #121212;
  --bg-subtle: #171717;
  --bg-panel: #1b1b1b;
  --bg-elevated: #232323;
  --bg-hover: #292929;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ececec;
  --text-secondary: #b0b0b0;
  --text-muted: #7d7d7d;
  --accent: #f2f2f2;
  --accent-contrast: #121212;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

code,
.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--text-muted);
}

.sep {
  color: rgba(255, 255, 255, 0.2);
}

.icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.icon-xs {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d3d3d;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 54px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.brand-icon {
  display: block;
  border-radius: 4px;
  background: #ffffff;
  padding: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.14s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.14s ease;
}

.header-link:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
}

.btn-lg {
  height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

/* Main Page Layout */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-copy {
  max-width: 600px;
}

.hero-meta {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #f5f5f5;
}

.hero-lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-meta {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Interactive Studio Frame */
.studio-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.studio-topbar {
  height: 38px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.studio-doc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.doc-name {
  color: var(--text);
  font-weight: 500;
}

.doc-dims {
  font-size: 10.5px;
}

.template-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  gap: 2px;
}

.template-btn {
  padding: 3px 9px;
  border-radius: 3.5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color 0.12s ease, color 0.12s ease;
}

.template-btn:hover {
  color: var(--text);
}

.template-btn.active {
  background: var(--bg-elevated);
  color: var(--text);
}

.studio-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 232px;
  min-height: 490px;
}

/* Left Tool Rail */
.tool-rail {
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.tool-btn {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background-color 0.12s ease, color 0.12s ease;
}

.tool-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.tool-btn.active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.rail-sep {
  width: 18px;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.rail-spacer {
  flex: 1;
}

.swatch-stack {
  position: relative;
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.swatch-primary,
.swatch-secondary {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.swatch-primary {
  top: 0;
  left: 0;
  background: #141414;
  z-index: 2;
}

.swatch-secondary {
  bottom: 0;
  right: 0;
  background: #fafaf8;
  z-index: 1;
}

/* Center Canvas Viewport */
.viewport {
  position: relative;
  background: #131313;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  user-select: none;
}

.canvas-stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 960 / 600;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background:
    repeating-conic-gradient(#242424 0% 25%, #1c1c1c 0% 50%) 50% / 14px 14px;
  cursor: crosshair;
  touch-action: none;
}

.canvas-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#canvas-paper,
#canvas-guides,
#canvas-panels {
  pointer-events: none;
}

/* Right Dock Sidebar */
.dock-sidebar {
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.dock-panel {
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.dock-panel-grow {
  flex: 1;
  border-bottom: none;
}

.panel-header {
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.panel-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.slider-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-meta .mono {
  font-size: 11px;
  color: var(--text-muted);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: #2e2e2e;
  border-radius: 9999px;
}

input[type="range"]::-moz-range-track {
  height: 3px;
  background: #2e2e2e;
  border-radius: 9999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: none;
  border-radius: 9999px;
  margin-top: -3.5px;
  transition: transform 0.1s ease;
}

input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.18);
}

input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: none;
  border-radius: 9999px;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 2px;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.swatch[data-color="#141414"] { background: #141414; }
.swatch[data-color="#2563eb"] { background: #2563eb; }
.swatch[data-color="#dc2626"] { background: #dc2626; }
.swatch[data-color="#52525b"] { background: #52525b; }
.swatch[data-color="#059669"] { background: #059669; }

.swatch.active {
  box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 3px var(--accent);
}

/* Layers */
.layer-list {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.1s ease;
}

.layer-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.layer-row.active {
  background: var(--bg-hover);
}

.layer-eye {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.22);
}

.layer-eye.active {
  color: var(--text);
}

.layer-eye:hover {
  background: rgba(255, 255, 255, 0.07);
}

.layer-thumb {
  width: 28px;
  height: 19px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.thumb-user {
  background:
    repeating-conic-gradient(#303030 0% 25%, #232323 0% 50%) 50% / 6px 6px;
}

.thumb-panels {
  background: #fafaf8;
  position: relative;
  box-shadow: inset 0 0 0 2px #fafaf8, inset 0 0 0 3.5px #1c1c1c;
}

.thumb-guides {
  background: #fafaf8;
  box-shadow: inset 0 0 0 2.5px #fafaf8, inset 0 0 0 3.5px rgba(59, 130, 246, 0.55);
}

.thumb-paper {
  background: #fafaf8;
}

.layer-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.layer-name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* Studio Status Bar */
.studio-statusbar {
  height: 30px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  user-select: none;
}

.status-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-sep {
  color: rgba(255, 255, 255, 0.22);
}

.status-keys {
  font-size: 10.5px;
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text);
  line-height: 1.35;
}

.pressure-meter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
}

.pressure-track {
  width: 44px;
  height: 3px;
  border-radius: 9999px;
  background: var(--bg-hover);
  overflow: hidden;
}

.pressure-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.04s linear;
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 76px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f5;
}

h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

.link-muted {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.14s ease;
}

.link-muted:hover {
  color: var(--text);
}

/* Capabilities Editorial Grid (No Card Clutter) */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 36px;
}

.capability-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capability-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-muted);
}

.capability-item code {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Download Section */
.download-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.download-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab-btn {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  background: var(--bg-hover);
  color: var(--text);
}

.download-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.asset-row.recommended {
  border-color: var(--border-strong);
}

.asset-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.asset-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.asset-filename {
  font-size: 11.5px;
  color: var(--text-muted);
  word-break: break-all;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.badge-accent {
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.asset-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.asset-size {
  font-size: 11.5px;
  color: var(--text-muted);
}

.code-wrap {
  position: relative;
}

.code-block {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  overflow-x: auto;
  line-height: 1.65;
}

.download-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-empty p {
  margin: 0;
  font-size: 13.5px;
}

.download-footer {
  padding: 11px 18px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}

/* Formats & Shortcuts Specs */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.spec-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.format-table {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.format-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.format-row:first-child {
  padding-top: 0;
}

.format-row:last-child {
  border-bottom: none;
}

.format-row dt {
  font-size: 12.5px;
  color: var(--text-muted);
}

.format-row dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}

.shortcut-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Release History */
.release-history {
  display: flex;
  flex-direction: column;
}

.release-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.release-item:first-child {
  padding-top: 0;
}

.release-item:last-child {
  border-bottom: none;
}

.release-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.release-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.release-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.release-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-notes {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-notes-strong {
  color: var(--text);
  font-weight: 600;
}

.release-notes-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.release-notes-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.release-notes-heading--new {
  color: #6ee7b7;
}

.release-notes-heading--improvements {
  color: #7dd3fc;
}

.release-notes-heading--fixes {
  color: #fcd34d;
}

.release-notes-heading--other {
  color: var(--text-muted);
}

.release-notes-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.55;
}

.release-notes-para {
  margin: 0;
  line-height: 1.55;
  color: var(--text-muted);
}

.release-notes-code {
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text);
}

.release-assets-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-secondary);
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.asset-pill:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.footer-links a {
  transition: color 0.14s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 960px) {
  .studio-body {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 0;
  }

  .dock-sidebar {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
  }

  .dock-panel {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .dock-panel:last-child {
    border-right: none;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-cta {
    align-items: flex-start;
  }

  .hide-md {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .hide-sm {
    display: none;
  }

  .header-inner {
    padding: 0 16px;
  }

  .page {
    padding: 32px 16px 64px;
    gap: 64px;
  }

  .dock-sidebar {
    flex-direction: column;
  }

  .dock-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .viewport {
    padding: 14px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shortcut-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
