:root {
  --bg: #020617;
  --surface: #020F2F;
  --text: #E0F2FE;
  --muted: #7DD3FC;
  --primary: #38BDF8;
  --secondary: #818CF8;
  --accent: #22D3EE;
  --border: rgba(224,242,254,0.12);
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --terminal: var(--primary);
  --cli: var(--secondary);
  --developer: var(--accent);
  --monospace: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --hacker: var(--primary);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--monospace);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 8% -10%, rgba(56,189,248,0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 92% 20%, rgba(129,140,248,0.1) 0%, transparent 40%),
    linear-gradient(165deg, #020617 0%, #04102a 50%, #020617 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(34,211,238,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 14px,
      rgba(56,189,248,0.02) 14px,
      rgba(56,189,248,0.02) 15px
    );
}

.terminal,
.cli,
.developer,
.monospace,
.hacker {
  --style-kit: 1;
}

[data-ui="terminal cli developer monospace hacker"] {
  --style-kit: 1;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

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

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

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

.disclosure-banner {
  position: relative;
  width: 100%;
  background: #e0f2fe;
  color: #020617;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px 14px;
  line-height: 1.5;
  z-index: 50;
  font-family: var(--font-mono);
}

.disclosure-banner svg {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 12px;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-lockup:hover {
  color: var(--primary);
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-name .caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
  50% { opacity: 0; }
}

@keyframes typewriter {
  from { max-width: 0; }
  to { max-width: 100%; }
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  animation: typewriter 2.2s steps(28) 0.3s forwards;
  border-right: 2px solid var(--accent);
}

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

.nav-links a {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 12px;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.72);
  z-index: 150;
}

.nav-backdrop.is-open {
  display: block;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 160;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer a {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-mono);
  text-align: center;
  min-width: 180px;
}

.nav-drawer a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  font-family: var(--font-mono);
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  margin-bottom: 24px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
  align-items: center;
}

.footer-badges img {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

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

.footer-company,
.footer-compliance,
.footer-updated,
.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 920px;
}

.footer-copy {
  margin-top: 8px;
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  border-radius: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  font-weight: 700;
}

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

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

.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(2,6,23,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.is-hidden {
  display: none;
}

body.age-locked {
  overflow: hidden;
}

.age-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.age-dialog h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary);
}

.age-dialog p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1 1 280px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.is-hidden {
  display: none !important;
}

.page-hero {
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(56,189,248,0.08), transparent);
}

.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(22px, 4vw, 32px);
  color: var(--primary);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted);
  font-size: 14px;
}

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

.legal-content h2 {
  font-size: 18px;
  color: var(--accent);
  margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.contact-form {
  max-width: 560px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 14px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
  min-height: 18px;
}

.contact-success {
  padding: 24px;
  border: 1px solid var(--accent);
  background: rgba(34,211,238,0.08);
  color: var(--text);
  font-size: 14px;
}

.go-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.go-ad {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.go-page h1 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
}

.go-page > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.go-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.go-compliance {
  font-size: 12px;
  color: var(--muted);
}

.go-compliance p {
  margin-bottom: 8px;
}

.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.error-page h1 {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

.decor-img {
  max-width: 500px;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.decor-wrap {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .brand-name {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .decor-wrap {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    width: 100%;
    max-height: 200px;
    height: auto;
  }

  .hero-band {
    min-height: 140px;
    background-size: cover;
    background-position: center;
  }

  .footer-badges img {
    max-width: 100%;
  }
}
