/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #08080f;
  --bg-alt: #0e0e1a;
  --fg: #e8e8f0;
  --fg-muted: #6b6b8a;
  --cyan: #00ffd4;
  --cyan-dim: rgba(0, 255, 212, 0.15);
  --magenta: #ff006e;
  --magenta-dim: rgba(255, 0, 110, 0.12);
  --yellow: #c8ff00;
  --yellow-dim: rgba(200, 255, 0, 0.1);
  --green: #00ff87;
  --orange: #ff8c00;
  --purple: #9d00ff;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 4px;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 255, 212, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 255, 212, 0.04) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,255,212,0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,255,212,0.03) 40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-grid-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--cyan);
  margin-bottom: 32px;
  opacity: 0.7;
}

.hero-headline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-coordinate {
  font-family: var(--font-mono);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 500;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(0, 255, 212, 0.3);
}

.hero-slash {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 80px);
  color: var(--fg-muted);
  line-height: 1;
}

.hero-pixel-count {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 500;
  color: var(--fg-muted);
  line-height: 1;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--fg-muted);
  margin-bottom: 56px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: var(--fg);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
}

.hero-scanlines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

/* === SECTION LABEL === */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--cyan);
  opacity: 0.6;
  margin-bottom: 48px;
  text-transform: uppercase;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 120px 24px;
  background: var(--bg-alt);
}

.how-it-works-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
}

.step {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.step:last-child { border-right: none; }

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === THE MAP === */
.the-map {
  padding: 120px 24px;
  border-top: 1px solid rgba(0, 255, 212, 0.1);
  border-bottom: 1px solid rgba(0, 255, 212, 0.1);
}

.the-map-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.map-visual {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid rgba(0,255,212,0.15);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 300px;
}

.map-cell {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.map-cell--accent {
  background: rgba(0, 255, 212, 0.08);
  border-color: rgba(0, 255, 212, 0.15);
}

.map-cell--filled-1 { background: rgba(0, 255, 212, 0.6); }
.map-cell--filled-2 { background: rgba(255, 0, 110, 0.5); }
.map-cell--filled-3 { background: rgba(200, 255, 0, 0.5); }
.map-cell--filled-4 { background: rgba(0, 255, 135, 0.5); }
.map-cell--filled-5 { background: rgba(157, 0, 255, 0.5); }
.map-cell--filled-6 { background: rgba(255, 140, 0, 0.5); }
.map-cell--filled-7 { background: rgba(0, 255, 212, 0.7); }

.map-cursor {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cyan);
  animation: cursor-blink 1.2s ease-in-out infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.map-info h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.map-info p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.map-coord-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coord-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  opacity: 0.6;
}

.coord-value {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--fg);
}

/* === PERMANENCE === */
.permanence {
  padding: 120px 24px;
  background: var(--bg-alt);
}

.permanence-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.permanence-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--magenta);
  margin-bottom: 24px;
}

.permanence-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.permanence-highlight {
  color: var(--cyan);
}

.permanence-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 560px;
}

.permanence-clock {
  text-align: center;
}

.clock-display {
  width: 120px;
  height: 120px;
  border: 2px solid var(--magenta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 40px rgba(255, 0, 110, 0.2), inset 0 0 40px rgba(255, 0, 110, 0.05);
}

.clock-symbol {
  font-size: 48px;
  color: var(--magenta);
  line-height: 1;
}

.clock-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--magenta);
  opacity: 0.7;
  text-transform: uppercase;
}

/* === PRICING === */
.pricing {
  padding: 120px 24px;
  border-top: 1px solid rgba(0, 255, 212, 0.1);
}

.pricing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--bg-alt);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px 28px;
  position: relative;
}

.pricing-card--featured {
  border-color: rgba(0, 255, 212, 0.3);
  background: linear-gradient(135deg, rgba(0, 255, 212, 0.05), transparent);
}

.pricing-size {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.pricing-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 10px;
}

.pricing-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 40px;
}

.popup-upsell {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.08), rgba(255, 0, 110, 0.05));
  border: 1px solid rgba(255, 140, 0, 0.2);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.popup-badge {
  background: var(--orange);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.popup-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.popup-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 140px 24px;
  background: var(--bg-alt);
  border-top: 1px solid rgba(0, 255, 212, 0.1);
}

.closing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
}

.closing-grid-art {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  grid-template-rows: repeat(3, 28px);
  gap: 4px;
}

.closing-pixel {
  width: 28px;
  height: 28px;
}

.p1 { background: rgba(0,255,212,0.8); }
.p2 { background: rgba(0,255,212,0.4); }
.p3 { background: rgba(255,0,110,0.6); }
.p4 { background: rgba(255,0,110,0.3); }
.p5 { background: rgba(200,255,0,0.7); }
.p6 { background: rgba(200,255,0,0.3); }
.p7 { background: rgba(157,0,255,0.5); }
.p8 { background: rgba(157,0,255,0.25); }
.p9 { background: rgba(0,255,135,0.6); }
.p10 { background: rgba(0,255,135,0.3); }
.p11 { background: rgba(255,140,0,0.5); }
.p12 { background: rgba(255,140,0,0.25); }

.closing-content {}

.closing-headline {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.closing-accent {
  color: var(--cyan);
}

.closing-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 520px;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-sep { color: rgba(255,255,255,0.15); }

.footer-coord {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--fg-muted);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.footer-coord-slash {
  color: rgba(255,255,255,0.2);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .step:last-child { border-bottom: none; }

  .the-map-inner,
  .permanence-inner,
  .closing-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .permanence-clock {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 60px 0;
  }
}
