/* ============================================================
   Zerava · base.css
   Design tokens, resets, typography baseline, utilities, animations.
   ============================================================ */

:root {
  --bg: #060D1A;
  --surface: #0D1525;
  --surface-strong: #111B2E;
  --border: #1A2540;
  --cyan: #0EA5E9;
  --cyan-strong: #38BDF8;
  --violet: #7C3AED;
  --muted: #64748B;
  --body: #CBD5E1;
  --headline: #F8FAFC;
  --white: #FFFFFF;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 76%);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: calc(100% - 32px);
  max-width: var(--container);
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--headline);
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 800;
  text-wrap: balance;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-media img {
    animation: floatIn 700ms ease both;
  }

  @keyframes floatIn {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 80ms; }

.fade-in-delay-2 { transition-delay: 160ms; }

.fade-in-delay-3 { transition-delay: 240ms; }
