/* Reset, document defaults, and global typography. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(109, 255, 63, 0.28);
  color: #fff;
}

/* Film grain — a fine noise tiled over the hero only (borrowed from
   latitude.so). The grain is baked into the SVG's *alpha* (white speckles on a
   transparent ground) and composited with normal blend, so it renders evenly
   over the dark base AND the colored hero gradient — unlike an overlay blend,
   which cancels out over mid-tones. It's an absolute layer scoped to the hero
   region at z-index:0, so it sits above the gradient/grid but below the hero
   copy and the product screenshot (both z-index:1), and never reaches the
   sections below. The bottom edge is masked so it fades out, not hard-cuts. */
.bg-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 820px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

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

/* mono body copy (Inter headers are the default) */
.hero-subtitle,
.section-copy,
.price-copy {
  font-family: var(--mono);
}

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

/* shared, visible focus ring for every link (buttons define their own) */
a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

header[id],
section[id] {
  scroll-margin-top: 76px;
}

.mono {
  font-family: var(--mono);
}

/* skip link — off-screen until focused, then visible top-left */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 9px;
  background: #1c1c1c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.skip-link:not(:focus):not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
