/* ALIENDISTRICT51 — shared site styles */

:root {
  --bg: #0a0b0e;
  --bg-raised: #101218;
  --bg-panel: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f3;
  --text-dim: #a7adb8;
  --text-faint: #6b7280;
  --cyan: #33e0ff;
  --cyan-dim: #1a9fb8;
  --purple: #8b7bff;
  --purple-dim: #5d4fce;
  --focus: #4be0ff;
  --radius: 10px;
  --max-width: 1080px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(51, 224, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 800px 600px at 100% 0%, rgba(139, 123, 255, 0.07), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #74ebff;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #ffffff;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.75rem; }
h3 { font-size: 1.2rem; margin-top: 2rem; }

p { color: var(--text-dim); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

.brand .mark {
  color: var(--cyan);
  font-weight: 800;
}

.brand .full {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle:focus-visible ~ .nav-toggle-label {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--cyan);
}

.nav-toggle-label {
  display: none;
}

@media (max-width: 720px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text);
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav-links a {
    padding: 0.9rem 1.5rem;
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 320px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 5.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(51, 224, 255, 0.35);
  background: rgba(51, 224, 255, 0.06);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 60ch;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: #04141a;
}

.btn-primary:hover {
  color: #04141a;
  filter: brightness(1.08);
}

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

.btn-secondary:hover {
  color: #fff;
  border-color: var(--purple);
}

/* ---------- Sections / panels ---------- */

section {
  padding: 3.5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: #fff;
}

.panel h3 .accent {
  color: var(--purple);
}

.panel p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 1.5rem;
}

/* ---------- Content pages (privacy / terms / product) ---------- */

.doc {
  max-width: 74ch;
}

.doc h2 {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.doc ul, .doc ol {
  color: var(--text-dim);
  padding-left: 1.3rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc strong {
  color: var(--text);
}

.meta-line {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.callout {
  border: 1px solid rgba(139, 123, 255, 0.35);
  background: rgba(139, 123, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 2.5rem; }
  section { padding: 2.5rem 0; }
}
