/* ============================================================
   BLAME — Neo-Brutalist Landing Page
   Design: Archivo Black + Space Mono, #CCFF00, 3px borders, 0 radius
   ============================================================ */

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

:root {
  --bg: #E5E5E5;
  --black: #000000;
  --white: #FFFFFF;
  --accent: #CCFF00;
  --surface: #F0F0F0;
  --muted: #666666;
  --danger: #FF4444;
  --border: 3px solid #000000;
  --shadow: 4px 4px 0px #000;
  --shadow-lg: 8px 8px 0px #000;
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Space Mono', monospace;
  --nav-h: 60px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@keyframes barGrow {
  from { height: 0; }
  to   { height: var(--bar-h); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

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

.anim-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-reveal[data-delay="1"] { transition-delay: 0.12s; }
.anim-reveal[data-delay="2"] { transition-delay: 0.24s; }
.anim-reveal[data-delay="3"] { transition-delay: 0.36s; }
.anim-reveal[data-delay="4"] { transition-delay: 0.48s; }
.anim-reveal[data-delay="5"] { transition-delay: 0.6s; }

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: var(--border);
  animation: slideDown 0.4s ease-out;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--white);
  letter-spacing: 2px;
  transform: skewX(-6deg);
  display: inline-block;
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav__link:hover,
.nav__link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: var(--border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn--accent {
  background: var(--accent);
  color: var(--black);
  box-shadow: var(--shadow);
}
.btn--accent:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000;
}
.btn--accent:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}
.btn--black {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.dot-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}

.hero__logo-img {
  width: clamp(160px, 28vw, 320px);
  height: auto;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4.5vw, 56px);
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: skewX(-4deg);
  margin-bottom: 20px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero__cta {
  font-size: 16px;
  padding: 18px 48px;
  box-shadow: var(--shadow-lg);
}
.hero__cta:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0px #000;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 1.5s infinite;
}
.hero__arrow {
  font-size: 28px;
  color: var(--muted);
}

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
}

.section__heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: skewX(-4deg);
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}
.section__heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 6px;
  background: var(--accent);
  border: 2px solid var(--black);
  margin: 16px auto 0;
}

/* --- GAMES GRID --- */
.games { background: var(--bg); }

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

.game-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--accent);
}
.game-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000;
}

.game-card__icon {
  width: 56px;
  height: 56px;
  color: var(--black);
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* --- TECH STACK --- */
.tech { background: var(--black); color: var(--white); }
.tech .section__heading { color: var(--white); }
.tech .section__heading::after { background: var(--accent); border-color: var(--accent); }

.tech__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.tech-card {
  background: rgba(255,255,255,0.05);
  border: 3px solid rgba(255,255,255,0.15);
  padding: 36px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tech-card:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(204,255,0,0.3);
}

.tech-card__icon-wrap {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}
.tech-card__icon {
  width: 100%;
  height: 100%;
}

.tech-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.tech-card__body {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* --- FEES --- */
.fees {
  background: var(--bg);
  padding: 100px 0;
}

.fees__inner {
  background: var(--accent);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.fees__heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 64px);
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: skewX(-6deg);
  margin-bottom: 40px;
  color: var(--black);
}

.fees__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.fees__percent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fees__number {
  font-family: var(--font-heading);
  font-size: clamp(64px, 12vw, 120px);
  line-height: 1;
  color: var(--black);
}
.fees__symbol {
  font-family: var(--font-heading);
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1;
  color: var(--black);
}
.fees__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 8px;
  border-bottom: 3px solid var(--black);
  padding-bottom: 4px;
}

.fees__text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  max-width: 640px;
}
.fees__text strong {
  font-weight: 700;
  background: var(--black);
  color: var(--accent);
  padding: 2px 8px;
}

.fees__bars {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 100%;
  padding: 0 40px 0 0;
  opacity: 0.15;
  z-index: 1;
}
.fees__bar {
  width: 20px;
  height: var(--bar-h);
  background: var(--black);
  border: 2px solid var(--black);
}
.fees__bars.animate .fees__bar {
  animation: barGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fees__bar:nth-child(1) { animation-delay: 0s; }
.fees__bar:nth-child(2) { animation-delay: 0.08s; }
.fees__bar:nth-child(3) { animation-delay: 0.16s; }
.fees__bar:nth-child(4) { animation-delay: 0.24s; }
.fees__bar:nth-child(5) { animation-delay: 0.32s; }
.fees__bar:nth-child(6) { animation-delay: 0.4s; }
.fees__bar:nth-child(7) { animation-delay: 0.48s; }
.fees__bar:nth-child(8) { animation-delay: 0.56s; }

/* --- PLAY / FLAPPY --- */
.play {
  background: var(--bg);
  text-align: center;
}

.play__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
}

.play__wrapper {
  display: flex;
  justify-content: center;
}

.play__frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 14;
  background: var(--bg);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

#flappy-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.play__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0,0,0,0.6);
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s;
}
.play__overlay.hidden { opacity: 0; pointer-events: none; }

.play__tap {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 3px;
  transform: skewX(-6deg);
  animation: pulse 1.5s infinite;
}
.play__hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

/* --- FOOTER --- */
.footer {
  background: var(--black);
  border-top: 4px solid var(--accent);
  padding: 60px 0 40px;
  color: var(--white);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--white);
  letter-spacing: 4px;
  transform: skewX(-6deg);
  display: inline-block;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.footer__link:hover {
  border-bottom-color: var(--accent);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (min-width: 768px) {
  .container { padding: 0 40px; }

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

  .tech__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fees__content {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .play__frame {
    max-width: 420px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer__copy { text-align: right; }
}

/* Desktop */
@media (min-width: 1024px) {
  .games__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fees__inner {
    padding: 80px 60px;
  }

  .fees__bars {
    padding-right: 60px;
  }

  .play__frame {
    max-width: 460px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --nav-h: 56px; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
  }
  .nav__links.open { display: flex; }

  .nav__hamburger { display: flex; }

  .hero__logo-img { width: clamp(100px, 30vw, 180px); }

  .section { padding: 72px 0; }

  .fees__inner { padding: 40px 24px; }

  .fees__bars { display: none; }

  .play__frame {
    max-width: 100%;
    aspect-ratio: 9 / 15;
  }

  .footer__links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}
