/* NachtBlau Interactive — Professional Studio UI (Lumina palette) */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050818;
  --bg-elevated: #0a1020;
  --bg-surface: #111a2c;
  --bg-surface-2: #141e32;
  --header-bg: rgba(5, 8, 24, 0.94);
  --header-border: #1e2d48;
  --border: #243652;
  --border-subtle: #1a2840;
  --text: #e8eeff;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #5eeaff;
  --accent-hover: #8ef4ff;
  --accent-soft: rgba(94, 234, 255, 0.08);
  --accent-border: rgba(94, 234, 255, 0.32);
  --radius: 8px;
  --radius-sm: 6px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --max: 1080px;
  --bg-deep: var(--bg);
  --bg-main: var(--bg-elevated);
  --bg-card: var(--bg-surface);
  --accent-bright: var(--accent-hover);
  --accent-glow: var(--accent-soft);
  --border-bright: var(--accent-border);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-2: #f8fafc;
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-border: #e2e8f0;
  --border: #cbd5e1;
  --border-subtle: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #94a3b8;
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --accent-soft: rgba(8, 145, 178, 0.08);
  --accent-border: rgba(8, 145, 178, 0.28);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100vw - 2rem));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  opacity: 0.35;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible { opacity: 1; transform: none; }
.hidden { display: none !important; }

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
}

.logo { flex-shrink: 0; }

.logo-img {
  height: 32px;
  width: auto;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  padding: 0.45rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

.btn-nav-cta { margin-left: 0.25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

.theme-toggle {
  border: none;
  border-left: 1px solid var(--border-subtle);
  padding-left: 0.75rem;
  background: none;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 3rem;
  height: 1.55rem;
  padding: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: transform 0.2s;
}

[data-theme="light"] .theme-toggle-thumb { transform: translateX(100%); }

.theme-icon {
  position: relative;
  z-index: 1;
  justify-self: center;
  color: var(--text-faint);
}

.theme-toggle[data-mode="dark"] .theme-icon-moon,
.theme-toggle[data-mode="light"] .theme-icon-sun { color: var(--accent); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.75rem; }

.btn-primary {
  background: #1a4a6a;
  border-color: var(--accent-border);
  color: var(--text);
}

.btn-primary:hover {
  background: #1e5680;
  border-color: var(--accent);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-muted);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover { color: var(--accent); }

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: var(--font-display);
  margin-bottom: 0.65rem;
}

.hero-title-studio {
  display: block;
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.hero-title-studio-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.spec-bar {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
}

.hero-spec {
  flex: 1;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border-subtle);
}

.hero-spec:last-child { border-right: none; }

.hero-spec dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}

.hero-spec dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.hero-project {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.hero-project:hover { border-color: var(--accent-border); }

.hero-project-label {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.hero-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-size: 0.875rem;
}

.hero-project-meta strong { font-weight: 600; }

.status-pill {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  background: var(--accent-soft);
}

/* ─── Sections ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.section-actions {
  display: flex;
  gap: 0.4rem;
}

.play-section { background: var(--bg-elevated); }

/* ─── Play stage ─── */
.play-stage {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.lumina-poster { position: relative; }

.lumina-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 24, 0.55);
}

.lumina-video-inner {
  position: relative;
  width: 100%;
  height: min(52vh, 480px);
  background: var(--bg);
}

.lumina-video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.play-stage.is-expanded .lumina-video-inner {
  height: min(70vh, 600px);
}

.play-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-faint);
  background: var(--bg-elevated);
}

.play-stage-bar .btn { margin-left: auto; }

.play-hint { color: var(--text-faint); }

/* ─── Details grid ─── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.detail-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.detail-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.badge-accent {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.detail-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.detail-block { margin-top: 0.5rem; }

.detail-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tag-row span,
.platform-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.feature-list,
.planet-list,
.studio-list { display: flex; flex-direction: column; gap: 0.75rem; }

.feature-row strong,
.planet-row strong,
.studio-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.feature-row p,
.planet-row span,
.studio-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.planet-row {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.planet-row:last-child { border-bottom: none; padding-bottom: 0; }

/* ─── Studio ─── */
.studio-section { border-top: 1px solid var(--border-subtle); }

.studio-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.studio-block {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.studio-block-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.studio-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.studio-item:last-child { border-bottom: none; padding-bottom: 0; }

.studio-item.is-active strong { color: var(--accent); }

.studio-item-meta {
  font-size: 0.6875rem;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}

.studio-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

/* ─── Careers page ─── */
.page-main {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 4rem;
}

.page-header { max-width: 40rem; margin-bottom: 2rem; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.page-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.page-notice {
  font-size: 0.875rem;
  color: var(--text-faint);
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.careers-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: start;
}

.positions-panel,
.apply-panel {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.panel-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.positions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.position-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.position-item:last-child { border-bottom: none; padding-bottom: 0; }

.position-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
}

.position-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field > span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-border);
}

.form-field textarea { resize: vertical; min-height: 8rem; }

.form-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-check input { margin-top: 0.2rem; accent-color: var(--accent); }
.form-check a { color: var(--accent); text-decoration: underline; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.form-status.is-loading { color: var(--text-muted); }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #f87171; }

/* ─── Devlog ─── */
.log-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.changelog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  overflow: hidden;
}

.changelog-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.changelog-row time {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.changelog-row strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.changelog-row p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Contact ─── */
.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.contact-mail {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-mail:hover { color: var(--accent-hover); }

.contact-legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.contact-legal a { color: var(--text-muted); text-decoration: underline; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 8.5rem;
}

.social-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--bg-elevated);
  transition: border-color 0.15s, color 0.15s;
}

.social-link:hover { color: var(--accent); border-color: var(--accent-border); }

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0 1.25rem;
  background: var(--bg-elevated);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.footer-logo img { height: 28px; width: auto; opacity: 0.9; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
}

.footer-nav a,
.footer-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-nav a:hover { color: var(--accent); }

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.5;
  max-width: 36rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.6875rem;
  color: var(--text-faint);
}

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

/* ─── Legal pages ─── */
.legal-page { background: var(--bg); }

.legal-main {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3.5rem;
}

.legal-doc {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.legal-doc-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-doc-header h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.section-eyebrow,
.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.legal-lead { color: var(--text-muted); font-size: 0.875rem; }
.legal-block { margin-bottom: 1.25rem; }
.legal-block h2 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.legal-block p, .legal-block li { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.legal-block a { color: var(--accent); }
.legal-list { margin: 0.4rem 0 0 1rem; }
.legal-updated { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); font-size: 0.75rem; color: var(--text-faint); }

.maintenance {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-box { text-align: center; }
.maintenance-box p { color: var(--text-muted); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-grid,
  .details-grid,
  .studio-columns,
  .careers-layout { grid-template-columns: 1fr; }
  .hero-project { order: -1; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-links { flex-direction: row; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .btn-nav-cta { display: none; }
  .changelog-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .spec-bar { flex-direction: column; }
  .hero-spec { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .hero-spec:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav { flex-wrap: wrap; position: relative; }
  .nav-end { width: 100%; justify-content: flex-end; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem;
    margin-top: 0.35rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
  .nav-links.open { display: flex; }
  .lumina-video-inner { height: 240px; }
}
