:root {
  --color-bg: #000000;
  --color-bg-alt: #05050a;
  --color-text: #f0f0f0;
  --color-text-muted: #848484;
  --color-text-subtle: #303040;
  --color-border: #111118;
  --color-accent: #00e5ff;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 600px) {
  .site-nav { gap: 1.25rem; }
  .site-nav a { font-size: 0.8125rem; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: clamp(6rem, 14vw, 10rem) 0 clamp(4rem, 10vw, 7rem);
  text-align: center;
  background: transparent;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 0 60px rgba(0, 229, 255, 0.15);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Sections ──────────────────────────────────────── */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.82);
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(5, 5, 12, 0.88);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(0, 229, 255, 0.45);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 720px;
  color: var(--color-text);
}

.section-body {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 680px;
}

.section-body + .section-body {
  margin-top: 1rem;
}

/* ── Card grid ─────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #111118;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.06), inset 0 0 20px rgba(0, 229, 255, 0.02);
  transform: translateY(-3px);
}

.card-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(0, 229, 255, 0.3);
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.card-body {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ── Links ─────────────────────────────────────────── */
.link {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  padding-bottom: 1px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.link:hover {
  opacity: 0.7;
  border-color: var(--color-accent);
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 0;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(0, 229, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ── Legal pages ───────────────────────────────────── */
.legal {
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
  margin-bottom: 3rem;
  color: rgba(0, 229, 255, 0.25);
}

.legal h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.legal p,
.legal li {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.65;
}

.legal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 229, 255, 0.35);
}

.legal strong {
  color: var(--color-text);
  font-weight: 600;
}
