/* ComplianceGate — Gilded Service design system */

:root {
  --bg: #0a0908;
  --surface: #12100e;
  --surface-raised: #1a1714;
  --border: rgba(196, 160, 82, 0.18);
  --border-strong: rgba(196, 160, 82, 0.35);
  --gold: #c4a052;
  --gold-dim: #8f7340;
  --gold-glow: rgba(196, 160, 82, 0.12);
  --cream: #f5f0e6;
  --ink: #e8e2d6;
  --muted: #9a9288;
  --muted-dark: #6b655c;
  --watch: #d4a843;
  --concern: #c97a3a;
  --blocker: #c44a4a;
  --success: #6b9e6b;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --max-width: 72rem;
  --header-height: 4rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold-glow);
  color: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--cream);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin: 0 0 var(--space-sm);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 var(--space-xs);
}

p {
  margin: 0 0 var(--space-sm);
  max-width: 65ch;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--gold);
  background: rgba(196, 160, 82, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 9, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.logo:hover .logo-mark {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(196, 160, 82, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease-out);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--cream);
}

.nav-links .btn-primary {
  color: var(--bg);
}

.nav-links .btn-primary:hover {
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.nav-toggle:hover {
  color: var(--cream);
  border-color: var(--gold-dim);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(245, 240, 230, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(196, 160, 82, 0.1);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.6875rem;
}

/* Hero */

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 68% 10%, rgba(196, 160, 82, 0.1), transparent 65%),
    radial-gradient(ellipse 45% 35% at 15% 88%, rgba(196, 160, 82, 0.05), transparent 65%),
    radial-gradient(ellipse 30% 30% at 85% 75%, rgba(196, 74, 74, 0.03), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 160, 82, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 160, 82, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 65% 30%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-compat {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.hero-compat span {
  color: var(--muted);
}

.hero-compat span::before {
  content: "·";
  margin-right: 0.6rem;
  color: var(--muted-dark);
}

.hero-compat span:first-child::before {
  display: none;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-product-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hero-visual .demo-panel {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* Demo panel */

.demo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}

.demo-panel:hover {
  border-color: rgba(196, 160, 82, 0.3);
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.demo-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted-dark);
}

.demo-dot:nth-child(1) { background: #6b4a4a; }
.demo-dot:nth-child(2) { background: #8a7340; }
.demo-dot:nth-child(3) { background: #4a6b4a; }

.demo-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.demo-body {
  padding: var(--space-md);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.severity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

.legend-item {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.legend-item.watch {
  color: var(--watch);
  border-color: rgba(212, 168, 67, 0.35);
}

.legend-item.concern {
  color: var(--concern);
  border-color: rgba(201, 122, 58, 0.35);
}

.legend-item.blocker {
  color: var(--blocker);
  border-color: rgba(196, 74, 74, 0.35);
}

.demo-tab {
  padding: 0.35rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.demo-tab.active,
.demo-tab:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-glow);
}

.demo-message {
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  animation: messageIn 0.5s var(--ease-out) forwards;
  border-radius: var(--radius-sm);
}

.demo-message .speaker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.demo-concern {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  border: 1px solid;
}

.demo-concern .severity-tag {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 0.35rem;
}

.demo-concern.watch {
  border-color: rgba(212, 168, 67, 0.4);
  background: rgba(212, 168, 67, 0.08);
  color: var(--watch);
}

.demo-concern.concern {
  border-color: rgba(201, 122, 58, 0.4);
  background: rgba(201, 122, 58, 0.08);
  color: var(--concern);
}

.demo-concern.blocker {
  border-color: rgba(196, 74, 74, 0.4);
  background: rgba(196, 74, 74, 0.08);
  color: var(--blocker);
}

.demo-doc {
  margin-top: auto;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.demo-doc strong {
  color: var(--success);
}

@keyframes messageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

.section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin-inline: auto;
}

/* Problem section — editorial list layout */

.problem-header {
  margin-bottom: var(--space-xl);
}

.problem-header h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: var(--cream);
}

.problem-header .lead {
  max-width: 56ch;
}

.problem-list {
  display: flex;
  flex-direction: column;
}

.problem-item {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.problem-item:last-child {
  border-bottom: 1px solid var(--border);
}

.problem-label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.problem-item p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  max-width: 48ch;
}

/* Features numbered */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

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

.feature-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-dim);
  line-height: 1;
}

.feature-item h3 {
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.code-block {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--cream);
  overflow-x: auto;
  line-height: 1.7;
}

.code-block .comment {
  color: var(--muted-dark);
}

/* Sample output */

.sample-output {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.sample-output summary {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
}

.sample-output summary::-webkit-details-marker {
  display: none;
}

.sample-output[open] summary {
  margin-bottom: var(--space-sm);
}

.sample-block {
  margin-top: 0;
  line-height: 1.6;
}

/* Commands */

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.command-chip {
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-align: left;
}

.command-chip:hover,
.command-chip.active {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-glow);
}

.command-detail {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 6rem;
  border-radius: var(--radius-sm);
}

.command-detail h4 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.command-detail p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Install */

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.install-card-note {
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.install-card {
  padding: var(--space-md);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease-out);
}

.install-card:hover {
  border-color: var(--border-strong);
}

.install-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.install-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.install-cmd {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream);
  overflow-x: auto;
  white-space: nowrap;
  display: block;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.copy-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

.copy-btn.copied {
  color: var(--success);
  border-color: var(--success);
}

.install-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--muted);
}

/* FAQ */

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 var(--space-md);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease-out);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  cursor: pointer;
  padding: var(--space-md) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  list-style: none;
  line-height: 1.3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  line-height: 1.65;
}

/* Vision / domain / about */

.about-panel {
  padding: var(--space-xl);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(196, 160, 82, 0.05), transparent 50%),
    var(--surface);
}

.about-meta {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* CTA band */

.cta-band {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(196, 160, 82, 0.14), transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(196, 160, 82, 0.05), transparent 70%),
    var(--surface-raised);
}

.cta-band h2 {
  margin-bottom: var(--space-sm);
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.cta-band .lead {
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.footer-family {
  margin-top: 0.5rem !important;
  font-size: 0.8125rem !important;
  color: var(--muted-dark) !important;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 var(--space-sm);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom a {
  color: var(--gold);
}

.footer-bottom a:hover {
  color: var(--cream);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-dark);
}

/* Reveal animations — visible by default; JS adds motion when user allows it */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.7s var(--ease-out-expo),
      transform 0.7s var(--ease-out-expo);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .problem-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 900px) {
  .install-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item {
    grid-template-columns: 1fr;
  }

  .feature-num {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-md);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
    gap: var(--space-sm);
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }
}
