/* 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: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  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);
}

/* ---------- 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.22em;
  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: 11px;
  letter-spacing: 0.2em;
  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; }

.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heading);
  border: 1px solid var(--hairline);
  padding: 14px 22px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  border-color: rgba(111, 155, 255, 0.6);
  background: rgba(59, 110, 246, 0.08);
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  width: 100%;
}
.hero-copy { max-width: 36rem; }
.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--heading);
  margin: 22px 0 0;
}
.hero h1 .soft { color: var(--muted); }
.hero p.lede {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  margin: 26px 0 36px;
  max-width: 30rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
}
.hero-visual .mark { width: min(78%, 440px); height: auto; }

.glow-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: glowpulse 5s ease-in-out infinite;
}
@keyframes glowpulse {
  0%, 100% { opacity: 0.7; transform: scale(0.97); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-dim);
}
.scroll-hint .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--muted-dim), transparent);
  animation: scrollpulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section {
  padding-block: clamp(72px, 11vw, 150px);
  border-top: 1px solid var(--hairline-soft);
}
.section-head { margin-bottom: clamp(34px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--heading);
  margin: 20px 0 0;
  max-width: 20ch;
}

.lead {
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.5;
  color: var(--text);
  max-width: 40ch;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.lead .muted { color: var(--muted); }

/* mission */
.mission-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.mission-grid .aside {
  color: var(--muted);
  font-size: 15px;
  border-left: 1px solid var(--hairline);
  padding-left: 22px;
}

/* platform cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}
.card {
  background: var(--bg);
  padding: clamp(26px, 3vw, 40px);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
}
.card:hover { background: var(--card-hover); }
.card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
}
.card h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--heading);
  margin: 18px 0 12px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card .spacer { flex: 1; }

/* commerce */
.commerce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 40px;
}
.stat .k {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.stat .v {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 6px;
}

/* ---------- 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: 10.5px;
  letter-spacing: 0.2em;
  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: 10.5px;
  letter-spacing: 0.16em;
  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; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: -1; max-width: 360px; margin-inline: auto; }
  .mission-grid,
  .commerce-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--hairline-soft); }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px 0;
  }
  .nav-toggle span { width: 22px; height: 1.5px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

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