/* ═══════════════════════════════════════════
   HauhauCS Landing — CRT Theme
   Palette: bg #0a0e1a, terminal #00ff88, 
   accent #ff9500, danger #ff3366, 
   success #00ccff, border #1a2a4a
   ═══════════════════════════════════════════ */

:root {
  --bg: #0a0e1a;
  --bg-light: #0f1428;
  --bg-card: #111833;
  --terminal: #00ff88;
  --terminal-dim: #00cc6a;
  --accent: #ff9500;
  --danger: #ff3366;
  --success: #00ccff;
  --border: #1a2a4a;
  --text: #c8d6e5;
  --text-dim: #5a6a8a;
  --font-mono: 'Courier New', 'Fira Code', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body { overflow-x: hidden; }

a { color: var(--success); text-decoration: none; }
a:hover { color: var(--terminal); }

::selection { background: var(--terminal); color: var(--bg); }

/* ─── Container ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: bold;
  border: 2px solid;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary {
  background: var(--terminal);
  color: var(--bg);
  border-color: var(--terminal);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}
.btn-primary:hover {
  background: transparent;
  color: var(--terminal);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn-large {
  padding: 18px 48px;
  font-size: 20px;
}

/* ─── Section base ─── */
.section {
  padding: 80px 0;
}
.section-dark {
  background: var(--bg-light);
}
.section-title {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 48px;
}
.terminal-green { color: var(--terminal); }
.accent { color: var(--accent); }
.danger { color: var(--danger); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, #0f1830 0%, var(--bg) 70%);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
}

/* Scanline overlay */
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  z-index: 1;
}

.hero-ascii {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--terminal);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.2);
  white-space: pre;
  margin-bottom: 24px;
  animation: flicker 4s infinite;
}

@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  97.5% { opacity: 0.8; }
  98% { opacity: 1; }
  98.5% { opacity: 0.85; }
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 0;
  color: transparent;
  line-height: 0;
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
  font-style: italic;
  font-weight: normal;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--terminal);
  opacity: 0.6;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 16px;
}

.about-text strong {
  color: var(--terminal);
}

.quote-block {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0 !important;
  font-style: italic;
  color: var(--text-dim);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: var(--terminal);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.feature h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--terminal);
  margin-bottom: 6px;
}

.feature p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   SCREENSHOTS
   ═══════════════════════════════════════════ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screenshot-card {
  text-align: center;
}

.screenshot-placeholder {
  aspect-ratio: 16/10;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.screenshot-placeholder:hover {
  border-color: var(--terminal);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.placeholder-icon {
  font-size: 48px;
  opacity: 0.5;
}

.placeholder-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.screenshot-card p {
  font-size: 13px;
  color: var(--text-dim);
}

/* Real screenshot images override placeholder */
.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screenshot-placeholder:has(img) .placeholder-icon,
.screenshot-placeholder:has(img) .placeholder-label {
  display: none;
}

/* ═══════════════════════════════════════════
   TRUE STORY
   ═══════════════════════════════════════════ */
.true-story p {
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 800px;
}

.true-story strong {
  color: var(--accent);
}

.evidence-timeline {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 24px;
  font-size: 15px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--terminal);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}
.timeline-item-end::before {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  min-width: 100px;
  margin-right: 12px;
}

.timeline-text {
  color: var(--text);
}

.true-story-links {
  margin-top: 24px !important;
}

.link-accent {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.link-accent:hover {
  color: var(--terminal);
  border-color: var(--terminal);
}

/* ═══════════════════════════════════════════
   FEATURES LIST
   ═══════════════════════════════════════════ */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }

.feature-num {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--terminal);
  opacity: 0.4;
  min-width: 50px;
  line-height: 1;
  padding-top: 4px;
}

.feature-row h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 6px;
}

.feature-row p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.cta {
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta-terminal {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--terminal);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
  text-align: left;
  background: var(--bg-card);
  padding: 24px 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  max-width: 600px;
  line-height: 1.6;
}

.cta-note {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--terminal);
}

.footer-sub {
  color: var(--text-dim);
  margin-top: 4px;
}

.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-right a:hover { color: var(--terminal); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-ascii {
    font-size: 8px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .screenshots-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-row {
    gap: 16px;
  }
  .feature-num {
    font-size: 24px;
    min-width: 36px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-ascii {
    font-size: 6px;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .btn { padding: 12px 24px; font-size: 14px; }
  .btn-large { padding: 14px 36px; font-size: 16px; }
  .section { padding: 48px 0; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.6); }
}

.btn-primary {
  animation: glow-pulse 3s ease-in-out infinite;
}
