/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #07050f;
  --bg-darker: #040208;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --grad-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --grad-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  --grad-border: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Component Styles */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Fonts */
  --font-headings: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ----------------------------------------------------
   BASE STYLES & RESET
---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------
   BACKGROUND ANIMATION (GLOW BLOBS)
---------------------------------------------------- */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  animation-duration: 25s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(5%, 10%) scale(1.1) rotate(180deg);
  }

  100% {
    transform: translate(-5%, -5%) scale(0.95) rotate(360deg);
  }
}

/* ----------------------------------------------------
   LAYOUT & CONTAINER
---------------------------------------------------- */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}



/* ----------------------------------------------------
   MAIN HERO CARD
---------------------------------------------------- */
.main-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem 3rem;
  box-shadow: var(--glass-shadow);
  text-align: center;
  max-width: 880px;
  margin: 0 auto 3rem auto;
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.category-tag {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 3rem auto;
}

/* ----------------------------------------------------
   PIXEL ART CONSTRUCTION ANIMATION
---------------------------------------------------- */
.pixel-animation-container {
  max-width: 440px;
  margin: 0 auto 3rem auto;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  position: relative;
}

.pixel-construction {
  width: 100%;
  height: auto;
  display: block;
}

/* Animations */
.anim-bob {
  animation: bob 0.8s steps(2) infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(1px);
  }
}

.anim-dig-left {
  transform-origin: 10px 12px;
  animation: dig-left 1.6s steps(6) infinite;
}

@keyframes dig-left {

  0%,
  100% {
    transform: rotate(0deg) translate(0px, 0px);
  }

  25% {
    transform: rotate(35deg) translate(1px, 2px);
  }

  50% {
    transform: rotate(-10deg) translate(-1px, 1px);
  }

  70% {
    transform: rotate(-45deg) translate(-2px, -3px);
  }
}

.anim-dig-right {
  transform-origin: 10px 12px;
  animation: dig-right 1.6s steps(6) infinite;
  animation-delay: -0.8s;
}

@keyframes dig-right {

  0%,
  100% {
    transform: rotate(0deg) translate(0px, 0px);
  }

  25% {
    transform: rotate(35deg) translate(1px, 2px);
  }

  50% {
    transform: rotate(-10deg) translate(-1px, 1px);
  }

  70% {
    transform: rotate(-45deg) translate(-2px, -3px);
  }
}

/* Dirt Particles throwing */
.dirt-particle {
  opacity: 0;
}

.dirt-l-1 {
  animation: throw-dirt-left 1.6s steps(8) infinite;
}

.dirt-l-2 {
  animation: throw-dirt-left 1.6s steps(8) infinite;
  animation-delay: 0.1s;
}

.dirt-l-3 {
  animation: throw-dirt-left 1.6s steps(8) infinite;
  animation-delay: 0.2s;
}

@keyframes throw-dirt-left {

  0%,
  50% {
    opacity: 0;
    transform: translate(0, 0);
  }

  52% {
    opacity: 1;
    transform: translate(2px, -6px);
  }

  60% {
    opacity: 1;
    transform: translate(6px, -10px);
  }

  68% {
    opacity: 1;
    transform: translate(10px, 5px);
  }

  72%,
  100% {
    opacity: 0;
    transform: translate(12px, 12px);
  }
}

.dirt-r-1 {
  animation: throw-dirt-right 1.6s steps(8) infinite;
  animation-delay: -0.8s;
}

.dirt-r-2 {
  animation: throw-dirt-right 1.6s steps(8) infinite;
  animation-delay: -0.7s;
}

.dirt-r-3 {
  animation: throw-dirt-right 1.6s steps(8) infinite;
  animation-delay: -0.6s;
}

@keyframes throw-dirt-right {

  0%,
  50% {
    opacity: 0;
    transform: translate(0, 0);
  }

  52% {
    opacity: 1;
    transform: translate(-2px, -6px);
  }

  60% {
    opacity: 1;
    transform: translate(-6px, -10px);
  }

  68% {
    opacity: 1;
    transform: translate(-10px, 5px);
  }

  72%,
  100% {
    opacity: 0;
    transform: translate(-12px, 12px);
  }
}

/* Dirt pile growth animation */
.dirt-pile,
.dirt-pile-inner {
  transform-origin: 60px 48px;
  animation: pile-grow 3.2s ease-in-out infinite alternate;
}

@keyframes pile-grow {
  0% {
    transform: scale(0.95, 0.9);
  }

  100% {
    transform: scale(1.05, 1.1);
  }
}



/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: auto;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ----------------------------------------------------
   RESPONSIVE MEDIA QUERIES
---------------------------------------------------- */
@media (max-width: 900px) {
  h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 600px) {
  .wrapper {
    padding: 1.5rem 1rem;
  }

  .main-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .pixel-animation-container {
    max-width: 100%;
    padding: 0.75rem;
    margin-bottom: 2rem;
  }
}