:root {
  --bg: #12011A;
  --surface: #1F022B;
  --text: #F3E8FF;
  --muted: #A855F7;
  --primary: #D8B4FE;
  --secondary: #7E22CE;
  --accent: #2DD4BF;
  --border: rgba(216,180,254,0.15);
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --terminal: var(--accent);
  --cli: var(--primary);
  --developer: var(--secondary);
  --monospace: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --hacker: var(--accent);
  --max-w: 1200px;
  --nav-h: 52px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.terminal.cli.developer.monospace.hacker {
  font-family: var(--monospace);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(45, 212, 191, 0.12) 0%, transparent 42%),
    radial-gradient(ellipse at 92% 18%, rgba(126, 34, 206, 0.18) 0%, transparent 40%),
    linear-gradient(168deg, #12011A 0%, #1F022B 48%, #12011A 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 16px);
}

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

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

.keyword-mark {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.keyword-mark::after {
  content: "terminal cli developer monospace hacker";
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(18, 1, 26, 0.18) 2px,
      rgba(18, 1, 26, 0.18) 3px
    );
  opacity: 0.45;
}

body > * {
  position: relative;
  z-index: 1;
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--monospace);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--primary);
}

.disclosure {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 120;
  background: rgba(18, 1, 26, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.brand-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--accent);
}

.brand-name .caret {
  display: inline-block;
  width: 7px;
  height: 0.9em;
  margin-left: 3px;
  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.4s steps(28) 0.2s forwards;
  border-right: 2px solid var(--accent);
}

.nav-tabs {
  display: flex;
  flex: 1;
  align-items: stretch;
  justify-content: space-evenly;
  height: 100%;
  min-width: 0;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  color: var(--text);
  text-align: center;
}

.nav-tab:hover {
  color: var(--accent);
}

.nav-ico {
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent);
  display: block;
  position: relative;
}

.nav-ico::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--accent);
  opacity: 0.7;
}

.nav-lbl {
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--monospace);
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 1, 26, 0.72);
  z-index: 130;
}

.nav-scrim.open {
  display: block;
}

.nav-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--nav-h);
  z-index: 140;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

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

.nav-drawer a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 10px;
  text-align: center;
}

.nav-drawer a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  margin: -40px -24px 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 8px,
    transparent 8px 16px
  );
  opacity: 0.35;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

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

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

.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: 20px;
}

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

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

.footer-company,
.footer-risk,
.footer-audience,
.footer-note,
.footer-updated,
.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  max-width: 920px;
  text-align: left;
}

.footer-note a {
  color: var(--accent);
}

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

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

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

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

.age-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 1, 26, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.active {
  display: flex;
}

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

.age-title {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--accent);
}

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

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

.age-blocked {
  display: none;
  font-size: 13px;
  color: var(--primary);
}

.age-blocked.visible {
  display: block;
}

.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--nav-h);
  z-index: 200;
  background: rgba(31, 2, 43, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: var(--max-w);
  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(--primary);
  flex: 1 1 280px;
}

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

.accept,
.reject {
  font-family: var(--monospace);
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--border);
}

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

.reject {
  background: transparent;
  color: var(--muted);
}

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

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

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

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

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

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

.legal-content h3 {
  font-size: 15px;
  color: var(--primary);
  margin: 20px 0 8px;
}

.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;
  text-align: left;
}

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

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

.field-error {
  display: none;
  font-size: 12px;
  color: var(--primary);
  margin-top: 6px;
}

.field-error.visible {
  display: block;
}

.contact-success {
  display: none;
  padding: 24px;
  border: 1px solid var(--accent);
  background: rgba(45, 212, 191, 0.08);
  color: var(--text);
  font-size: 14px;
  margin-top: 24px;
}

.contact-success.visible {
  display: block;
}

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

.redirect-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 24px;
}

.redirect-card h1 {
  font-size: 22px;
  color: var(--accent);
  margin: 16px 0 12px;
  text-align: center;
}

.redirect-card p {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
}

#AD {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  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); }
}

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

.error-page h1 {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}

.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;
}

.info-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
}

.info-cta:hover {
  background: rgba(45, 212, 191, 0.12);
  color: var(--primary);
}

.cli-prompt {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .nav-tab:nth-child(n+6) {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .typewriter {
    white-space: normal;
    max-width: 100%;
    animation: none;
    border-right: 0;
    overflow: visible;
  }
}

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

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

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

  .disclosure {
    font-size: 11px;
  }

  .hero::before {
    width: 100%;
    left: 0;
  }
}
