:root {
  color-scheme: dark;
  --ink: #050407;
  --ink-deep: #020102;
  --panel: rgba(18, 13, 16, 0.86);
  --panel-soft: rgba(34, 24, 27, 0.74);
  --border: rgba(255, 221, 189, 0.16);
  --border-strong: rgba(255, 193, 111, 0.36);
  --text: #fff7ed;
  --muted: #d5c4b4;
  --dim: #9b8678;
  --red: #d72235;
  --red-glow: #ff4a3d;
  --gold: #ffd166;
  --amber: #f6a53a;
  --teal: #68e6dd;
  --green: #3ddc97;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(2, 1, 3, 0.92), rgba(6, 4, 6, 0.72) 38%, rgba(55, 5, 11, 0.42) 72%, rgba(2, 1, 3, 0.88)),
    url("/assets/studio-control-room-red.jpg") center / cover fixed,
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 74, 61, 0.18), transparent 28%),
    radial-gradient(circle at 82% 62%, rgba(104, 230, 221, 0.08), transparent 22%),
    rgba(0, 0, 0, 0.22);
  z-index: -1;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #160b05;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 3, 5, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--ink-deep) url("/assets/favicon.png") center / 24px 24px no-repeat;
  box-shadow: 0 0 22px rgba(255, 74, 61, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.button {
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 74, 61, 0.98), rgba(122, 14, 26, 0.98));
  color: var(--text);
  box-shadow: 0 14px 38px rgba(255, 74, 61, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

.hero {
  width: min(100% - 32px, var(--max));
  min-height: 88vh;
  margin: 0 auto;
  padding: 96px 0 56px;
  display: grid;
  align-items: center;
}

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

.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red-glow);
  box-shadow: 0 0 18px rgba(255, 74, 61, 0.9);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  max-width: 760px;
  font-size: 62px;
  line-height: 1;
  font-weight: 950;
}

h2 {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 920;
}

h3 {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 880;
}

.lede {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 64px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.panel,
.legal-doc {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.panel {
  min-height: 168px;
  padding: 22px;
}

.panel p,
.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.panel .kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.status-item {
  min-height: 116px;
  padding: 22px;
  background: rgba(5, 4, 7, 0.86);
}

.status-item strong {
  display: block;
  font-size: 22px;
}

.status-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.page-title {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 72px 0 24px;
}

.page-title h1 {
  font-size: 46px;
}

.page-title p {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
}

.legal-doc {
  width: min(100% - 32px, 920px);
  margin: 0 auto 72px;
  padding: 32px;
}

.legal-doc h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 24px;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc ul,
.legal-doc ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-doc a {
  color: var(--gold);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 1, 2, 0.86);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 14px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

@media (max-width: 820px) {
  body {
    background-attachment: scroll;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 82vh;
    padding-top: 64px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 28px;
  }

  .lede {
    font-size: 18px;
  }

  .grid,
  .grid.two,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .legal-doc {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .nav-links a,
  .button {
    width: 100%;
  }

  .nav-links {
    width: 100%;
  }

  h1,
  .page-title h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }
}
