:root {
  --bg: #08090b;
  --border: #1d222a;
  --text: #eef0f3;
  --muted: #858e9d;
  --dim: #4c5564;
  --accent: #3ddc84;

  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

::selection {
  background: rgba(61, 220, 132, 0.22);
  color: #fff;
}

/* Faint precision grid */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 88%);
}

/* Ambient moving code lines & trace pulses (masked clear of center text) */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 340px 210px at 50% 50%, rgba(0, 0, 0, 0.12) 0%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse 340px 210px at 50% 50%, rgba(0, 0, 0, 0.12) 0%, #000 100%);
}

/* Dead-Center Viewport Stage */
.stage {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(14px);
  animation: riseIn 0.8s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: lowercase;
  color: var(--dim);
  margin-bottom: 1.2rem;
}

.brand-title {
  font-family: var(--mono);
  font-size: clamp(3.6rem, 8.5vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  color: var(--text);
}

.brand-title .tld {
  color: var(--accent);
}

/* Clean moving hairline divider */
.divider {
  width: 140px;
  height: 1px;
  background: var(--border);
  margin: 1.65rem 0;
  position: relative;
  overflow: hidden;
}

.divider-pulse {
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: sweep 2.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sweep {
  0% { left: -45%; }
  100% { left: 100%; }
}

.statement {
  font-size: clamp(1.1rem, 2.1vw, 1.34rem);
  line-height: 1.58;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.statement .hi {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 500;
}

.statement .sub-strong {
  color: var(--text);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
