/* ============================================
   BASE STYLES — concrete-jungle.jp
   Depends on: tokens.css
   ============================================ */

/* --- Body --- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: var(--lh-normal);
  cursor: none;
}

/* --- Typography Utilities --- */
.text-display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-tight);
  text-transform: uppercase;
}

.text-section {
  font-family: var(--font-heading);
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-tight);
}

.text-subtitle {
  font-family: var(--font-heading);
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.text-jp {
  font-family: var(--font-jp);
}

/* --- Color Utilities --- */
.text-neon-pink { color: var(--color-neon-pink); }
.text-neon-cyan { color: var(--color-neon-cyan); }
.text-neon-purple { color: var(--color-neon-purple); }
.text-neon-green { color: var(--color-neon-green); }
.text-muted { color: var(--color-text-muted); }

/* --- Neon Glow Text --- */
.glow-pink { text-shadow: var(--color-glow-pink); }
.glow-cyan { text-shadow: var(--color-glow-cyan); }
.glow-purple { text-shadow: var(--color-glow-purple); }

/* --- Layout Utilities --- */
.section {
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-center {
  display: grid;
  place-items: center;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

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

/* --- Scanline Overlay --- */
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.05) 2px,
      rgba(0, 0, 0, 0.05) 4px
    );
  background-size: 100% 4px;
  animation: scanline-scroll 10s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes scanline-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 400px; }
}

/* --- Noise Overlay (SVG feTurbulence) --- */
.noise::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* --- Selection --- */
::selection {
  background: var(--color-neon-pink);
  color: var(--color-bg-primary);
}
