/* gabs.ai — Graffiti meets AI */
/* Colors: #7b8794 #ff2e63 #00e5ff #c5ccd6 #141b2d #1c2541 #3a4a6b #0a0e1a */
/* Fonts: Share Tech Mono (display), Inter (body) */

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ff2e63 #0a0e1a;
}

body {
  background: #0a0e1a;
  color: #c5ccd6;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Spray canvas overlay */
#spray-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}

/* Scanline overlay */
#scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* Noise overlay */
#noise-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  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='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 998;
  animation: noiseShift 0.5s steps(10) infinite;
}

@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(5%, -10%); }
  30% { transform: translate(-10%, 5%); }
  40% { transform: translate(10%, 10%); }
  50% { transform: translate(-5%, 5%); }
  60% { transform: translate(5%, -5%); }
  70% { transform: translate(-10%, -10%); }
  80% { transform: translate(10%, 5%); }
  90% { transform: translate(-5%, 10%); }
  100% { transform: translate(0, 0); }
}

/* Zones */
.zone {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Zone 1 — The Tag */
#zone-tag {
  background: linear-gradient(180deg, #0a0e1a 0%, #141b2d 100%);
  justify-content: center;
}

.zone-tag-content {
  width: 100%;
  padding: 0 8vw;
  position: relative;
}

.tag-drips {
  display: none;
}

.tag-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #ff2e63;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(255, 46, 99, 0.3);
}

.glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0);
}

.glitch-1 {
  color: #00e5ff;
  animation: glitch1 3s infinite;
}

.glitch-2 {
  color: #ff2e63;
  animation: glitch2 3s infinite;
}

@keyframes glitch1 {
  0%, 92%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(3px, -2px); opacity: 0.8; clip-path: inset(20% 0 60% 0); }
  94% { transform: translate(-3px, 2px); opacity: 0.8; clip-path: inset(40% 0 20% 0); }
  95% { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
  0%, 95%, 100% { transform: translate(0); opacity: 0; }
  96% { transform: translate(-4px, 1px); opacity: 0.6; clip-path: inset(30% 0 50% 0); }
  97% { transform: translate(4px, -1px); opacity: 0.6; clip-path: inset(60% 0 10% 0); }
  98% { transform: translate(0); opacity: 0; }
}

.tag-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(14px, 2vw, 20px);
  color: #7b8794;
  letter-spacing: 0.1em;
}

.blink-cursor {
  color: #00e5ff;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.tag-circuit-art {
  margin-top: 60px;
  width: 100%;
  max-width: 800px;
}

.circuit-svg {
  width: 100%;
  height: auto;
}

.circuit-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawCircuit 3s ease-out forwards;
}

.cp2 { animation-delay: 0.5s; }

@keyframes drawCircuit {
  to { stroke-dashoffset: 0; }
}

.node-dot {
  opacity: 0;
  animation: nodeAppear 0.5s ease-out forwards;
}

.nd1 { animation-delay: 1s; }
.nd2 { animation-delay: 1.5s; }
.nd3 { animation-delay: 2s; }
.nd4 { animation-delay: 1.2s; }

@keyframes nodeAppear {
  0% { opacity: 0; r: 0; }
  100% { opacity: 1; }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 8vw;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: #3a4a6b;
  letter-spacing: 0.15em;
}

.scroll-arrow {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Zone 2 — The Piece */
#zone-piece {
  background: #141b2d;
  border-top: 1px solid #1c2541;
}

.zone-piece-content {
  width: 100%;
  padding: 80px 8vw;
}

.piece-label, .throwup-label, .sig-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}

.zone-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: #ff2e63;
  border: 1px solid #ff2e63;
  padding: 4px 8px;
}

.zone-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: #3a4a6b;
  letter-spacing: 0.2em;
}

.piece-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.piece-heading {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: #c5ccd6;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.accent-cyan {
  color: #00e5ff;
}

.piece-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #7b8794;
  max-width: 500px;
  margin-bottom: 40px;
}

.piece-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 36px;
  color: #ff2e63;
  line-height: 1;
}

.stat-unit {
  font-family: 'Share Tech Mono', monospace;
  font-size: 20px;
  color: #ff2e63;
  display: inline;
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #3a4a6b;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.piece-illustration {
  display: flex;
  justify-content: center;
}

.neural-graffiti {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.nn-node {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.nn-node.visible {
  opacity: 1;
}

.nn-conn {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.5s ease;
}

.nn-conn.visible {
  stroke-dashoffset: 0;
}

/* Zone 3 — The Throw-up */
#zone-throwup {
  background: linear-gradient(180deg, #141b2d 0%, #0a0e1a 100%);
  border-top: 1px solid #1c2541;
}

.zone-throwup-content {
  width: 100%;
  padding: 80px 8vw;
}

.throwup-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.throwup-card {
  background: rgba(28, 37, 65, 0.4);
  border: 1px solid #1c2541;
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.throwup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: #ff2e63;
  transition: height 0.4s ease;
}

.throwup-card:hover {
  border-color: #3a4a6b;
  transform: translateY(-4px);
}

.throwup-card:hover::before {
  height: 100%;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  color: #c5ccd6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #7b8794;
  margin-bottom: 20px;
}

.card-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: #00e5ff;
  opacity: 0.6;
}

.throwup-equation {
  text-align: center;
  padding: 24px;
  border-top: 1px solid #1c2541;
  border-bottom: 1px solid #1c2541;
}

.eq-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(12px, 1.5vw, 16px);
  color: #3a4a6b;
  letter-spacing: 0.1em;
}

/* Zone 4 — The Signature */
#zone-signature {
  background: #0a0e1a;
  border-top: 1px solid #1c2541;
  min-height: 80vh;
}

.zone-signature-content {
  width: 100%;
  padding: 80px 8vw;
}

.sig-main {
  max-width: 700px;
}

.sig-tag-art {
  margin-bottom: 60px;
}

.sig-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.sig-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}

.sig-path.drawn {
  stroke-dashoffset: 0;
}

.sig-contact {
  margin-bottom: 40px;
}

.sig-line {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(28, 37, 65, 0.5);
}

.sig-prompt {
  color: #00e5ff;
}

.sig-key {
  color: #7b8794;
  margin-right: 12px;
}

.sig-val {
  color: #c5ccd6;
}

.sig-copyright {
  margin-top: 40px;
}

.copy-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #3a4a6b;
  letter-spacing: 0.15em;
}

.sig-ambient-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  opacity: 0.3;
}

.sig-ambient-lines svg {
  width: 100%;
  height: 100%;
}

/* Reveal animations */
.zone-piece-content,
.zone-throwup-content,
.zone-signature-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.zone-piece-content.revealed,
.zone-throwup-content.revealed,
.zone-signature-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .piece-grid {
    grid-template-columns: 1fr;
  }
  .throwup-columns {
    grid-template-columns: 1fr;
  }
  .piece-stats {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .tag-title {
    font-size: 48px;
  }
  .piece-heading {
    font-size: 28px;
  }
  .zone-tag-content,
  .zone-piece-content,
  .zone-throwup-content,
  .zone-signature-content {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}