/* Monkey Buddys — Enhanced Modern Design with Smooth Animations
   Improved color scheme, typography, and user experience */

:root {
  /* Enhanced color palette with better contrast */
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #e2e8f0;
  --card: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --primary: #10b981; /* emerald green */
  --primary-hover: #059669;
  --accent: #6366f1; /* indigo blue */
  --accent-hover: #4f46e5;
  --border: #e5e7eb;
  --ring: rgba(16, 185, 129, 0.3);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-surface: linear-gradient(135deg, var(--surface) 0%, var(--card) 100%);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #334155;
    --card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #334155;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Enhanced Header with Glass Effect */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(15, 23, 42, 0.9);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.brand:hover {
  text-decoration: none;
  color: var(--primary);
  transform: translateY(-1px);
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.brand:hover .brand-icon {
  box-shadow: var(--shadow-lg);
  transform: rotate(5deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-links a[aria-current="page"] {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: var(--surface);
}

.nav-toggle .bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Enhanced Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.875rem;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
}

.btn:active {
  transform: translateY(-1px);
}

.btn.cta {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.btn.cta:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-hover) 100%);
  color: white;
  box-shadow: var(--shadow-xl);
}

.btn.secondary {
  background: var(--surface);
  border-color: var(--border);
}

.btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--primary);
}

/* Enhanced Hero Section */
.hero {
  padding: 6rem 0;
  background: var(--gradient-surface);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  width: fit-content;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-description {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 500px;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  animation: slideUp 0.8s ease-out 1s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: slideUp 0.8s ease-out 0.8s both;
}

.hero-art {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--border);
  background: var(--gradient-surface);
  animation: float 6s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-art:hover .hero-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  pointer-events: none;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.8s both;
}

/* Enhanced Card Layouts */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header.centered h2 {
  margin-bottom: 1rem;
}

.rating-display {
  margin-top: 1rem;
}

.stars {
  margin-bottom: 0.5rem;
}

.star {
  color: #fbbf24;
  font-size: 1.25rem;
  margin: 0 1px;
}

.rating-text {
  color: var(--muted);
  font-size: 0.875rem;
}

.cards {
  display: grid;
  gap: 2rem;
}

.cards.three {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards.two {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.card.surface {
  background: var(--surface);
}

.card h2,
.card h3 {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Enhanced Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--surface);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Enhanced Split Section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 5rem 0;
}

.panel {
  padding: 3rem;
  border-radius: 1.5rem;
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.highlight-panel {
  background: var(--gradient-surface);
}

.cta-panel {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.cta-panel h2,
.cta-panel p {
  color: white;
}

.panel-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--text);
}

.checklist svg {
  color: var(--primary);
  flex-shrink: 0;
}

.primary-btn {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.primary-btn:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* Competitive Page Styles */
.competitive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.competitive-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.competitive-hero {
  margin-bottom: 4rem;
}

.competitive-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.competitive-info {
  display: grid;
  gap: 2rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.info-card.primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: var(--primary);
}

.info-card.highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-color: var(--accent);
}

.mode-list {
  display: grid;
  gap: 1.5rem;
}

.mode-item {
  padding: 1rem;
  background: var(--surface);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.mode-item:hover {
  background: var(--surface-2);
  transform: translateX(8px);
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.mode-emoji {
  font-size: 1.5rem;
}

.event-details {
  display: grid;
  gap: 1rem;
}

.event-time {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.help-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.competitive-visual {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.competitive-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container:hover .competitive-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem;
}

.image-caption {
  color: white;
  font-weight: 600;
  margin: 0;
}

.competitive-features {
  margin-top: 4rem;
}

/* Socials Page Styles */
.socials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.socials-hero {
  margin-bottom: 2rem;
}

.socials-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.community-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-badge {
  text-align: center;
  padding: 1rem;
  background: var(--surface);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-badge .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-badge .stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.socials-content {
  display: grid;
  gap: 4rem;
}

.social-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.section-icon {
  margin-right: 0.5rem;
}

.social-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.social-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.social-card:hover::before {
  left: 100%;
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: inherit;
}

.social-card.discord:hover {
  border-color: var(--accent);
}

.social-card.youtube:hover {
  border-color: #ef4444;
}

.social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.social-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.social-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 600;
}

.social-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.social-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.join-text {
  font-weight: 600;
  color: var(--primary);
}

.social-arrow {
  font-size: 1.25rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-card:hover .social-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* Video Section */
.videos-section {
  margin-bottom: 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.video-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.video-cta {
  background: var(--gradient-primary);
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  color: white;
}

.cta-content h3 {
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.primary-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Privacy and Credits Page Styles */
.doc {
  max-width: 4rem;
  margin: 0 auto;
}

.doc .card {
  margin-bottom: 2rem;
}

.doc h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.doc h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.doc ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.doc li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  margin-top: auto;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .competitive-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin: 1rem;
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .community-stats {
    gap: 2rem;
  }
  
  .cta-row {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .social-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-art {
    width: 280px;
    height: 280px;
  }
  
  .panel {
    padding: 2rem;
  }
  
  .video-cta {
    padding: 2rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Performance optimizations */
* {
  will-change: auto;
}

.card:hover,
.btn:hover,
.social-card:hover {
  will-change: transform, box-shadow;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero::before {
    animation: none;
  }
  
  .hero-art {
    animation: none;
  }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}