/* EZO Labs Inc — shared styles */

:root {
  --bg: #000000;
  --bg-soft: #07080a;
  --text: #ededf0;
  --heading: #f6f7f9;
  --muted: #8a8f98;
  --muted-dim: #5f646d;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.055);
  --card: rgba(255, 255, 255, 0.018);
  --card-hover: rgba(255, 255, 255, 0.04);
  --accent: #3b6ef6;
  --accent-soft: #6f9bff;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

::selection { background: rgba(59, 110, 246, 0.35); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- monospace label / eyebrow ---------- */
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow .idx { color: var(--accent-soft); }
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline-soft);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 7vw, 80px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 30ch; margin: 0; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--heading); }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- legal / prose pages ---------- */
.page-hero {
  padding-top: calc(64px + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--hairline-soft);
}
.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 18px 0 10px;
}
.page-hero p { color: var(--muted); margin: 0; font-size: 14px; }

.prose {
  padding-block: clamp(40px, 6vw, 72px);
  max-width: 760px;
}
.prose h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-soft); }
.prose a:hover { color: #fff; }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: var(--hairline-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .brand-mark { width: 20px; height: 20px; }
.brand .dim { color: var(--muted-dim); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 38px);
}
.nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--heading); }
.nav a.cta-link { color: var(--accent-soft); }
.nav a.cta-link:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint .line { animation: none; }
  .glow-pulse { animation: none !important; }
}
