:root {
  --bg-page: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-subtle: #efede6;
  --bg-darkroom: #0f1419;
  --bg-darkroom-elevated: #182028;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-inverse: #f8fafc;

  --accent: #0b5fff;
  --accent-hover: #0047cc;
  --accent-soft: #eaf1ff;

  --pass: #059669;
  --pass-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --fail: #dc2626;
  --fail-soft: #fef2f2;

  --border: #e2dfd5;
  --border-strong: #cbd5e1;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.14);

  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Floating Navigation */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding: 0 16px;
  margin-top: 14px;
}

.nav-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-darkroom);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 38px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: background-color 160ms ease, color 160ms ease;
}

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

.lang-link.is-active {
  background: var(--bg-darkroom);
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(11, 95, 255, 0.22);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

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

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

.btn-dark {
  background: var(--bg-darkroom);
  color: #ffffff;
}

.btn-dark:hover:not(:disabled) {
  background: #1e293b;
}

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

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  padding: 40px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-pill svg {
  color: var(--pass);
  flex-shrink: 0;
}

/* Upload Card */
.upload-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(180deg, #faf9f6 0%, #ffffff 100%);
  transition: border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone h2 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.dropzone p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sample-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.alert-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--fail-soft);
  border: 1px solid #fecaca;
  color: var(--fail);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Studio Workspace */
.studio-section {
  padding: 24px 0 64px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  max-width: 60ch;
}

.ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
}

.status-dot.ready {
  background: var(--pass);
}

.status-dot.fallback {
  background: var(--accent);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

/* Left: Darkroom Viewfinder */
.viewfinder-card {
  background: var(--bg-darkroom);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #24303c;
}

.viewfinder-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #24303c;
  margin-bottom: 16px;
}

.spec-readout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.spec-chip {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-darkroom-elevated);
  border: 1px solid #2c3947;
}

.viewfinder-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dark-toggle {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-darkroom-elevated);
  border: 1px solid #2e3d4c;
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.dark-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: 20px 12px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(11, 95, 255, 0.12), transparent 65%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 24px
    );
}

.canvas-frame {
  position: relative;
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  touch-action: none;
  cursor: grab;
  max-width: 100%;
}

.canvas-frame:active {
  cursor: grabbing;
}

#studioCanvas {
  display: block;
  max-width: 100%;
  max-height: 440px;
  width: auto;
  height: auto;
  background: #ffffff;
}

.icao-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(15, 20, 25, 0.9);
  color: #e2e8f0;
  gap: 12px;
}

.stage-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Right: Controls + Compliance + Checkout */
.controls-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.preset-btn {
  text-align: left;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #faf9f6;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

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

.preset-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.preset-btn-name {
  display: block;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.preset-btn-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.preset-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 9px 11px;
  border-radius: var(--radius-sm);
}

/* Background Chips */
.bg-chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bg-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bg-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.swatch-original {
  background: conic-gradient(#cbd5e1 0 25%, #64748b 25% 50%, #cbd5e1 50% 75%, #64748b 75% 100%);
}

/* Sliders */
.slider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-row {
  display: grid;
  grid-template-columns: 112px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
}

.slider-row label {
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  min-height: 28px;
}

.slider-val {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Compliance Checklist */
.score-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pass-soft);
  color: var(--pass);
}

.score-badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.compliance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  font-size: 0.825rem;
}

.compliance-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.compliance-dot.pass {
  background: var(--pass-soft);
  color: var(--pass);
}

.compliance-dot.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.compliance-dot.fail {
  background: var(--fail-soft);
  color: var(--fail);
}

.compliance-label {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
}

.compliance-detail {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Free Export & AdSense Slots */
.free-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pass-soft);
  color: var(--pass);
  font-size: 0.78rem;
  font-weight: 700;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.export-feedback {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: var(--pass-soft);
  color: var(--pass);
  font-size: 0.82rem;
  font-weight: 600;
}

.share-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.share-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ad-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}

.ad-wrapper-wide {
  margin: 0 auto 24px;
  max-width: var(--container-max);
}

.ad-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ad-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot-banner {
  min-height: 100px;
}

.ad-slot-rect {
  min-height: 250px;
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: #faf9f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.ad-placeholder strong {
  color: var(--text-secondary);
}

.ad-placeholder span {
  font-size: 0.75rem;
}

/* Info Sections */
.content-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Dimensions Table */
.table-wrap {
  margin-top: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 620px;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #faf9f6;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

/* Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.compare-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.compare-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(11, 95, 255, 0.08);
}

.compare-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.faq-trigger {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-panel {
  padding: 0 18px 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Internal SEO Cross-Link Grid */
.seo-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.seo-link-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.seo-link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.seo-link-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.seo-link-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links button {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 20, 25, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.camera-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f1419;
  aspect-ratio: 3 / 4;
  max-height: 400px;
  margin: 0 auto 14px;
}

#cameraVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}

.camera-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
  }

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

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

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

@media (min-width: 1024px) {
  .studio-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
  }

  .viewfinder-card {
    position: sticky;
    top: 86px;
  }

  .bg-chip-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
