:root {
  --bg: #101010;
  --fg1: #F3F3F3;
  --fg2: #949494;
  --accent-amber: #E7C59A;
  --border-subtle: #333333;
  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: grid;
  place-items: center;
}

::selection {
  background: var(--accent-amber);
  color: #101010;
}

/* Canvas background */
#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Center content */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
  text-align: center;
  animation: reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Wordmark row */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Dot matrix logo mark — 5×5 grid, dots injected by JS */
.dot-matrix {
  display: grid;
  grid-template-columns: repeat(5, 6px);
  grid-template-rows: repeat(5, 6px);
  gap: 3px;
  flex-shrink: 0;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  opacity: 0.08;
  transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand name */
.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.4px;
  color: var(--fg1);
  line-height: 1;
}

/* Tagline */
.tagline {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg2);
  max-width: 440px;
  margin: 0;
}

/* Subtle bottom anchor */
.bottom-mark {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.037em;
  color: var(--border-subtle);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Mobile */
@media (max-width: 767px) {
  #grid-canvas {
    display: none;
  }

  .brand-name {
    font-size: 22px;
  }

  .tagline {
    font-size: 15px;
    max-width: 320px;
  }
}

/* Respect motion preference */
@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }

  .dot {
    transition: none;
  }
}
