/* Eidos Fit - Dark Monolith Web System */

:root {
  --bg-primary: #050505;
  --bg-secondary: #0C0C0C;
  --bg-elevated: #141414;
  --bg-interactive: #1A1A1A;
  --bg-inverted: #FAFAFA;

  --text-primary: #FAFAFA;
  --text-secondary: #B0B0B0;
  --text-tertiary: #707070;
  --text-muted: #505050;
  --text-on-inverted: #050505;

  --accent: #00E5FF;
  --accent-50: rgba(0, 229, 255, 0.5);
  --accent-30: rgba(0, 229, 255, 0.3);
  --accent-10: rgba(0, 229, 255, 0.1);

  --border: #1A1A1A;
  --border-strong: #2A2A2A;

  --success: #22C55E;
  --error: #EF4444;
  --warning: #F59E0B;

  --font-display: "Clash Display", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

::selection { background: var(--accent-30); color: var(--text-primary); }

/* ========== Typography ========== */

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* ========== Layout ========== */

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) { .wrap { padding: 0 48px; } }

/* ========== Header ========== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 768px) { .site-header__inner { padding: 16px 48px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.brand img { height: 28px; width: auto; }

.brand__mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.brand:hover .brand__mark { color: var(--text-primary); transition: color 180ms ease; }

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-50);
}

.btn--primary {
  background: var(--bg-inverted);
  color: var(--text-on-inverted);
}
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--ghost:hover { border-color: var(--accent-50); color: var(--accent); }

.btn--sm { padding: 10px 16px; min-height: 40px; font-size: 12px; }

.btn svg { width: 18px; height: 18px; }

/* ========== Footer ========== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 80px;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.site-footer__links a {
  padding: 8px 0;
  color: var(--text-tertiary);
  transition: color 180ms ease;
}

.site-footer__links a:hover { color: var(--text-primary); }

.site-footer__sep { padding: 0 12px; color: var(--text-muted); }

.site-footer__disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.6;
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .site-footer { padding: 64px 48px 40px; }
}

/* ========== Doc pages (privacy/terms/account-deletion) ========== */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 40px;
}

@media (min-width: 768px) { .doc { padding: 160px 48px 64px; } }

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 0;
  margin-bottom: 32px;
  transition: color 180ms ease;
}
.doc__back:hover { color: var(--accent); }
.doc__back svg { width: 12px; height: 12px; }

.doc__header { margin-bottom: 48px; }
.doc__header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.doc__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.doc__intro {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.doc section {
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.doc section:first-of-type { border-top: 0; padding-top: 0; }

.doc h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.doc h2 + p, .doc h2 + ul, .doc h2 + ol { margin-top: 0; }

.doc section > p,
.doc section > ul,
.doc section > ol {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.doc section > p + p,
.doc section > p + ul,
.doc section > p + ol,
.doc section > ul + p,
.doc section > ol + p { margin-top: 14px; }

.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text-primary); font-weight: 600; }
.doc a { color: var(--text-primary); border-bottom: 1px solid var(--border-strong); transition: border-color 180ms ease, color 180ms ease; }
.doc a:hover { color: var(--accent); border-color: var(--accent-50); }

.callout {
  padding: 20px 24px;
  margin: 20px 0;
  background: var(--bg-secondary);
  border-left: 2px solid var(--border-strong);
}
.callout--warn { border-left-color: var(--error); }
.callout--warn p { color: var(--text-primary); }
.callout p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
