/* Dead Pilot Studios — Tema Escuro Editorial & Engenharia de Jogos */
:root {
  --bg-canvas: #090b10;
  --bg-elevated: #10141e;
  --bg-surface: #151b28;
  --bg-surface-hover: #1a2232;
  --bg-code: #0c1018;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #f97316;
  --accent-primary-hover: #fb923c;
  --accent-primary-soft: rgba(249, 115, 22, 0.14);
  --accent-cyan: #38bdf8;
  --accent-cyan-soft: rgba(56, 189, 248, 0.12);
  --accent-green: #22c55e;
  --accent-green-soft: rgba(34, 197, 94, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --font-display: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1140px;
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.78);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@view-transition {
  navigation: auto;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.08), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(56, 189, 248, 0.07), transparent 36%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent-primary);
  color: #090b10;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

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

/* Header & Single-Line Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
  flex-wrap: nowrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 20, 30, 0.88);
  border: 1px solid var(--border-subtle);
  flex-wrap: nowrap;
}

.nav-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(249, 115, 22, 0.42);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 280ms var(--ease-out),
    width 280ms var(--ease-out),
    opacity 180ms ease;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: rgba(16, 20, 30, 0.98);
  padding: 14px 24px 20px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-nav-link.is-active {
  background: var(--accent-primary-soft);
  color: var(--text-primary);
  border-left: 3px solid var(--accent-primary);
}

@media (max-width: 820px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* Smooth Page Transitions */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-main {
  flex: 1;
}

.page-transition {
  animation: pageFadeIn 380ms var(--ease-out) both;
}

.page-transition.page-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

/* Typography & Reusable Primitives */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: var(--accent-primary-soft);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text-primary);
}

p {
  margin: 0;
}

.section {
  padding: 68px 0;
}

.section-compact {
  padding: 44px 0;
}

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

.section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  margin-top: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 64ch;
  margin-top: 8px;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-primary);
  color: #090b10;
  box-shadow: 0 10px 24px -10px rgba(249, 115, 22, 0.7);
}

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

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

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
}

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

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.1rem, 4.3vw, 3.3rem);
  line-height: 1.08;
  margin-top: 16px;
}

.hero-title .accent {
  color: var(--accent-primary);
}

.hero-lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 26px;
}

.hero-panel {
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-green);
}

.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.metric-list {
  display: grid;
  gap: 12px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(9, 11, 16, 0.55);
  border: 1px solid var(--border-subtle);
}

.metric-label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-primary);
  text-align: right;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

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

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: var(--bg-surface);
}

.badge-active {
  color: var(--accent-green);
  background: var(--accent-green-soft);
  border-color: rgba(34, 197, 94, 0.32);
}

.badge-beta {
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
  border-color: rgba(56, 189, 248, 0.32);
}

.badge-concept {
  color: var(--accent-primary);
  background: var(--accent-primary-soft);
  border-color: rgba(249, 115, 22, 0.32);
}

.card-title {
  font-size: 1.24rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 6px;
}

.project-specs {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: grid;
  gap: 6px;
}

/* Discord Community Callout */
.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, rgba(249, 115, 22, 0.14), rgba(21, 27, 40, 0.96) 52%, rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(249, 115, 22, 0.28);
  flex-wrap: wrap;
}

.community-banner h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.community-banner p {
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 58ch;
}

/* Page Header Banner */
.page-hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.page-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.14;
  margin-top: 10px;
}

.page-lead {
  color: var(--text-secondary);
  max-width: 68ch;
  margin-top: 12px;
  font-size: 1.04rem;
}

/* Devlogs Filter Toolbar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 160ms ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--accent-primary-soft);
}

.search-input {
  width: 280px;
  max-width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

/* Article Reader */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
  z-index: 95;
  transition: width 80ms linear;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

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

.article-prose {
  max-width: 72ch;
}

.article-section + .article-section {
  margin-top: 38px;
}

.article-section h2 {
  font-size: 1.48rem;
  line-height: 1.28;
  margin-bottom: 14px;
  scroll-margin-top: 96px;
}

.article-section p {
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 16px;
}

.article-section ul {
  margin: 14px 0 18px;
  padding-left: 20px;
  color: var(--text-secondary);
  display: grid;
  gap: 8px;
}

.article-callout {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-left: 4px solid var(--accent-cyan);
}

.article-callout strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.code-block {
  margin: 20px 0;
  border-radius: var(--radius-md);
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.copy-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  tab-size: 2;
}

.article-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.sidebar-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.toc-list a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--text-primary);
}

/* Independence & Legal Boxes */
.notice-box {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-left: 4px solid var(--accent-primary);
}

.notice-box h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.notice-box p {
  color: var(--text-secondary);
}

.legal-doc {
  max-width: 78ch;
  display: grid;
  gap: 28px;
}

.legal-section h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  line-height: 1.78;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-section a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

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

.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: border-color 160ms ease;
}

.field-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-row input {
  margin-top: 4px;
  accent-color: var(--accent-primary);
}

.checkbox-row a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.form-feedback {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.is-success {
  background: var(--accent-green-soft);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.form-feedback.is-error {
  background: var(--danger-soft);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #fecaca;
}

/* Global Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 11, 16, 0.92);
  padding: 40px 0 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 44ch;
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.footer-nav a,
.footer-cookie-btn {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-cookie-btn:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 220;
  width: min(440px, calc(100vw - 32px));
  background: rgba(16, 20, 30, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms var(--ease-out);
}

.cookie-banner[hidden],
.cookie-modal-backdrop[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
}

.cookie-banner-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.cookie-banner-text a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(5, 7, 11, 0.76);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal {
  width: min(520px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
}

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

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.cookie-option-title {
  font-weight: 600;
  font-size: 0.94rem;
}

.cookie-option-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.cookie-switch {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent-primary);
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
