/* ==================== CSS Variables ==================== */
:root {
  /* Colors - BlockRun game theme (green, blue, orange) */
  --color-bg: #1a2520;
  --color-bg-secondary: #0f1a14;
  --color-bg-card: rgba(30, 50, 35, 0.6);

  --color-primary: #4CAF50;
  --color-primary-dark: #388E3C;
  --color-primary-light: #66BB6A;

  --color-secondary: #FF5722;
  --color-accent: #2196F3;

  --color-text: #ffffff;
  --color-text-secondary: #E8F5E9;
  --color-text-muted: #A5D6A7;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(76, 175, 80, 0.3), transparent 50%),
                   radial-gradient(ellipse at bottom, rgba(33, 150, 243, 0.2), transparent 50%);

  /* Spacing */
  --container-max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(76, 175, 80, 0.5);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==================== Utility Classes ==================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ==================== Header & Navigation ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 37, 32, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--spacing-md);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.nav-logo {
  /* Logo removed from nav */
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-menu a {
  color: var(--color-text-secondary);
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text);
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-secondary {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid var(--color-primary);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(76, 175, 80, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--spacing-md) var(--spacing-lg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 175, 80, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 175, 80, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: var(--spacing-md);
}

.badge-icon {
  font-size: 1.2rem;
}

.hero-logo-container {
  margin-bottom: var(--spacing-md);
}

.hero-logo {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(76, 175, 80, 0.5));
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(76, 175, 80, 0.3);
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(76, 175, 80, 0.4));
  animation: float 6s ease-in-out infinite;
}

.image-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.4), transparent 70%);
  filter: blur(60px);
  z-index: 1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

/* ==================== About Section ==================== */
.about {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--color-bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.section-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 24px;
  padding: var(--spacing-lg);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.feature-text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==================== Token Section ==================== */
.token {
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

.token::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(76, 175, 80, 0.15), transparent 70%);
  pointer-events: none;
}

.token-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.token-info {
  max-width: 550px;
}

.section-badge {
  display: inline-block;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.token-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.token-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.detail-item {
  text-align: left;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.token-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-circle {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.circle-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.4), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.token-symbol {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==================== Video Section ==================== */
.video-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--color-bg-secondary);
}

.video-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.game-video {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================== Footer ==================== */
.footer {
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  background: var(--color-bg);
  border-top: 1px solid rgba(76, 175, 80, 0.3);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo-image {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(76, 175, 80, 0.2);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
  .hero-content,
  .token-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .hero-image {
    order: -1;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .token-info {
    max-width: 100%;
    text-align: center;
  }

  .token-details {
    justify-content: center;
  }

  .section-header {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 6rem var(--spacing-sm) var(--spacing-md);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .stat {
    text-align: center;
  }

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

  .token-details {
    grid-template-columns: 1fr;
  }

  .token-circle {
    width: 250px;
    height: 250px;
  }

  .token-symbol {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: var(--spacing-md);
  }

  .token-circle {
    width: 200px;
    height: 200px;
  }

  .token-symbol {
    font-size: 2rem;
  }
}
