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

:root {
  --bg: #f5f0e8;
  --tan: #d4c5a0;
  --blue: #1E5DB8;
  --blue-dark: #143F80;
  --red: #C8252D;
  --black: #1a1a1a;
  --white: #fdfcf9;
  --font-heading: 'Rubik Mono One', monospace;
  --font-body: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ===== NOTEBOOK PAPER LINES ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 31px,
      rgba(180, 170, 150, 0.18) 31px,
      rgba(180, 170, 150, 0.18) 32px
    );
}

/* ===== RETRO GRAIN OVERLAY ===== */
.paper-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.25 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 280px 280px;
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6px, 4px); }
  50%  { transform: translate(5px, -3px); }
  75%  { transform: translate(-3px, -5px); }
  100% { transform: translate(0, 0); }
}

/* ===== CRT SCANLINES ===== */
.retro-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0px,
    rgba(0, 0, 0, 0.35) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

/* ===== VIGNETTE + SEPIA WARMTH ===== */
.retro-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  background:
    radial-gradient(
      ellipse at center,
      rgba(80, 50, 20, 0) 40%,
      rgba(60, 35, 10, 0.18) 75%,
      rgba(40, 20, 0, 0.40) 100%
    ),
    linear-gradient(
      180deg,
      rgba(220, 180, 110, 0.06),
      rgba(180, 130, 70, 0.05)
    );
  mix-blend-mode: multiply;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: lowercase;
  margin-bottom: 12px;
  color: var(--black);
  text-align: center;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 40px;
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 80px;
  text-align: center;
}

.banner-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto 40px;
  display: block;
  border-radius: 12px;
  border: 3px solid var(--black);
}

.wodad-pfp {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  background: var(--white);
  border: 4px solid var(--black);
  box-shadow: 8px 8px 0 var(--blue);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  padding: 14px 14px 40px;
}

.wodad-pfp:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-pfp-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  padding: 10px 10px 30px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 3px 3px 0 var(--black);
  letter-spacing: -2px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #888;
  font-style: italic;
  margin-bottom: 36px;
}

/* ===== BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  border: 3px solid var(--black);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--black);
  color: var(--blue);
}

.btn-outline {
  background: transparent;
  color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--bg);
}

/* ===== CA BOX ===== */
.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 3px solid var(--black);
  padding: 12px 20px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ca-label {
  font-weight: 700;
  text-transform: uppercase;
}

.ca-address {
  color: #666;
  word-break: break-all;
  font-size: 0.75rem;
}

.copy-btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--black);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: var(--black);
  color: var(--blue);
}

.copy-btn.copied {
  background: var(--black);
  color: var(--blue);
}

/* ===== ABOUT ===== */
.about {
  background: rgba(212, 197, 160, 0.15);
}

.about-text-center {
  text-align: center;
  margin-bottom: 10px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.about-text-center p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ===== DAD LIFE GALLERY ===== */
.dad-life {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.gallery-card {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 12px 12px 16px;
  box-shadow: 6px 6px 0 var(--blue);
  transition: transform 0.25s ease;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--black);
}

.gallery-card figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  font-style: italic;
}

/* ===== DAD JOKES ===== */
.dad-jokes {
  background: rgba(212, 197, 160, 0.15);
}

.jokes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.joke-card {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 24px 22px;
  transition: transform 0.2s ease;
  position: relative;
}

.joke-card::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 14px;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
}

.joke-q {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
  padding-top: 8px;
}

.joke-a {
  font-size: 0.9rem;
  color: var(--blue);
  font-style: italic;
}

/* ===== TOKENOMICS ===== */
.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.token-card {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 28px 16px;
  text-align: center;
  transition: transform 0.2s ease;
}

.token-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 8px;
}

.token-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--blue);
}

/* ===== CARD TILTS ===== */
.card-tilt-left {
  transform: rotate(-1.5deg);
}

.card-tilt-right {
  transform: rotate(1.5deg);
}

.card-tilt-left:hover,
.card-tilt-right:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ===== HOW TO BUY ===== */
.how-to-buy {
  background: rgba(212, 197, 160, 0.15);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.step-card {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 28px 24px;
  transition: transform 0.2s ease;
}

.step-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--red);
  margin-bottom: 8px;
  line-height: 1;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: lowercase;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
}

/* ===== COMMUNITY ===== */
.community {
  text-align: center;
}

.chat-bubbles {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  border: 3px solid var(--black);
  padding: 24px 40px;
  border-radius: 20px 20px 20px 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.bubble-tilt-left {
  transform: rotate(-2deg);
}

.bubble-tilt-right {
  transform: rotate(2deg);
}

.chat-bubble:hover {
  transform: rotate(0deg) scale(1.05);
  background: var(--blue);
  color: var(--white);
}

.bubble-icon {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--blue);
  transition: color 0.2s ease;
}

.chat-bubble:hover .bubble-icon {
  color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 3px solid var(--tan);
}

.footer p {
  font-size: 0.72rem;
  color: #999;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .token-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .jokes-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .chat-bubbles {
    flex-direction: column;
    align-items: center;
  }

  .chat-bubble {
    width: 220px;
  }

  .wodad-pfp {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .token-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .ca-box {
    flex-direction: column;
    gap: 8px;
  }
}
