/* ============================================================
   Oh Wow Cloud — Base Reset & Typography
   ============================================================ */

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Grain overlay ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.028;
  mix-blend-mode: overlay;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--clr-white);
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-8xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-6xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: clamp(var(--text-xl), 2vw, var(--text-3xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--clr-text-muted);
  max-width: 68ch;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--clr-white); }

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ── Utility classes ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--sm {
  max-width: var(--container-sm);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-40));
}

.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-24));
}

/* Label / eyebrow text */
.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.label--dim {
  color: var(--clr-text-dim);
}

/* Accent gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid line texture overlay for sections */
.grid-texture {
  position: relative;
}
.grid-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,230,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,230,200,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.grid-texture > * { position: relative; z-index: 1; }

/* Glow orb decorative */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb--cyan  { background: rgba(0,230,200,0.12); }
.orb--blue  { background: rgba(0,170,255,0.10); }
.orb--violet{ background: rgba(123,94,167,0.12); }

/* Thin horizontal rule */
.rule {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin-block: var(--space-8);
}

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

/* Scroll lock */
body.no-scroll { overflow: hidden; }
