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

:root {
  --bg: #0b0b0b;
  --surface: #151515;
  --text: #fafafa;
  --muted: #a3a3a3;
  --primary: #dc2626;
  --secondary: #facc15;
  --accent: #16a34a;
  --border: rgba(250, 250, 250, 0.12);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

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

.disclosure {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
  color: var(--muted);
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(250, 250, 250, 0.03) 6px,
    rgba(250, 250, 250, 0.03) 12px
  );
}

.navbar {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 16px 5% 16px 10%;
  width: calc(95% - 10%);
  max-width: none;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

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

.nav-toggle {
  display: none;
}

.burger-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  transition: color 0.2s;
}

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

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}

.footer-nav h3,
.footer-badges h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--text);
  font-size: 14px;
}

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

.footer-badges {
  display: flex;
  flex-direction: column;
}

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

.badges-row a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.badges-row a:hover {
  opacity: 1;
}

.badges-row img {
  height: 40px;
  width: auto;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.page-hero-compact {
  background: var(--bg);
  padding: 0 24px;
  overflow: hidden;
}

.page-hero-compact h1,
.page-hero-compact .page-hero-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.page-subtitle-strip {
  background: var(--surface);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.legal-page .legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.legal-page p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-page ul {
  margin: 0 0 16px 24px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-page li {
  margin-bottom: 8px;
}

.not-found {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 18px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #b91c1c;
  color: var(--text);
}

.subpage-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 16px 5% 16px 10%;
  width: calc(95% - 10%);
  height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.subpage-header img {
  height: 32px;
}

@media (max-width: 900px) {
  .navbar {
    margin: 0;
    width: 100%;
    border-radius: 0;
    top: 0;
  }

  .burger-label {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99;
  }

  .nav-links a {
    font-size: 20px;
  }

  .navbar:has(.nav-toggle:checked) .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar:has(.nav-toggle:checked) .burger-line:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar:has(.nav-toggle:checked) .burger-line:nth-child(3) {
    opacity: 0;
  }

  .navbar:has(.nav-toggle:checked) .burger-line:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .page-hero-compact h1,
  .page-hero-compact .page-hero-heading {
    height: 80px;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .subpage-header {
    margin: 0;
    width: 100%;
    border-radius: 0;
    top: 0;
  }
}
