/* ============================================================
   Airdrop Kart - Main Stylesheet
   Single-page static site with i18n support
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors - HSL */
  --background: 260 30% 5%;
  --foreground: 270 20% 96%;
  --card: 262 30% 9%;
  --card-foreground: 270 20% 96%;
  --popover: 262 30% 9%;
  --popover-foreground: 270 20% 96%;
  --primary: 265 85% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 262 24% 14%;
  --secondary-foreground: 270 15% 92%;
  --muted: 262 20% 12%;
  --muted-foreground: 265 10% 65%;
  --accent: 285 90% 65%;
  --accent-foreground: 260 30% 8%;
  --destructive: 0 84% 55%;
  --destructive-foreground: 0 0% 98%;
  --border: 262 22% 18%;
  --input: 262 22% 18%;
  --ring: 265 85% 60%;
  --success: 150 70% 50%;
  --warning: 45 95% 60%;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --spacing: 0.25rem;

  /* Radius */
  --radius: 0.75rem;
  --radius-sm: calc(0.75rem - 4px);
  --radius-md: calc(0.75rem - 2px);
  --radius-lg: 0.75rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  /* Shadows / Glow */
  --glow-primary: 0 0 30px rgba(139, 66, 240, 0.45);
  --glow-primary-strong: 0 0 60px rgba(206, 85, 246, 0.55);
  --glow-card: 0 20px 60px -15px hsla(265, 85%, 60%, 0.45);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1400px;
  --container-padding: 2rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  background-image:
    radial-gradient(circle at 10% 0%, rgba(139, 66, 240, 0.12), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(206, 85, 246, 0.10), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(59, 26, 230, 0.08), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

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

.text-gradient {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-gradient-bg {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}

.glow {
  box-shadow: var(--glow-primary);
}

.glow:hover {
  box-shadow: var(--glow-primary-strong);
}

.glass {
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.6);
}

/* ---------- Grid Background Pattern ---------- */
.grid-bg {
  background-image:
    linear-gradient(hsl(var(--border) / 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ---------- Animations ---------- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow-primary); }
  50% { box-shadow: var(--glow-primary-strong); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.float { animation: float 6s ease-in-out infinite; }

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(var(--border) / 0.4);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo-icon {
  position: relative;
  width: 36px;
  height: 36px;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  border-radius: 12px;
  filter: blur(8px);
  opacity: 0.6;
  transition: opacity var(--transition);
}

.logo:hover .logo-icon::before {
  opacity: 0.9;
}

.logo-icon img {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid hsl(var(--primary) / 0.4);
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.6);
}

.nav-link.active {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--glow-primary);
  transition: opacity var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  opacity: 0.9;
  box-shadow: var(--glow-primary-strong);
}

.nav-cta svg { width: 14px; height: 14px; }

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  transition: all var(--transition);
}

.lang-toggle:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--secondary));
}

.lang-flag { font-size: 0.9rem; line-height: 1; }
.lang-arrow { width: 12px; height: 12px; transition: transform var(--transition); }

.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 0.375rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.8);
  text-align: left;
  transition: all var(--transition);
}

.lang-option:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.lang-option.active {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  font-weight: 600;
}

.lang-option .flag-icon { font-size: 1rem; }

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: hsl(var(--foreground));
  transition: background var(--transition);
}

.mobile-menu-btn:hover {
  background: hsl(var(--secondary));
}

.mobile-menu-btn svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  padding: 1rem 2rem;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(24px);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0; }
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-bg-glow .glow-orb-1 {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: hsl(var(--primary) / 0.15);
  border-radius: 50%;
  filter: blur(140px);
}

.hero-bg-glow .glow-orb-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: hsl(var(--accent) / 0.15);
  border-radius: 50%;
  filter: blur(120px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  z-index: -1;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.1);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition);
}

.hero-badge:hover {
  background: hsl(var(--primary) / 0.15);
}

.hero-badge svg { width: 12px; height: 12px; color: hsl(var(--primary)); }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-top: 1.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  color: hsl(var(--muted-foreground));
  margin-top: 1.25rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

.hero-subtitle strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--glow-primary);
  transition: opacity var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: var(--glow-primary-strong);
  transform: translateY(-1px);
}

.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--foreground));
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary) / 0.6);
}

.btn-secondary .icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary svg { width: 14px; height: 14px; color: white; }

.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ---------- Marquee / Ticker ---------- */
.marquee-section {
  position: relative;
  border-top: 1px solid hsl(var(--border) / 0.4);
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--card) / 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  overflow: hidden;
}

.marquee-wrapper {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.8);
  transition: color var(--transition);
}

.marquee-item:hover {
  color: hsl(var(--primary));
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--primary));
  flex-shrink: 0;
}

.hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hot-badge svg { width: 10px; height: 10px; }

/* ---------- Section Styles ---------- */
.section {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .section { padding: 4.5rem 0; }
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.1);
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-desc {
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.6);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px hsl(var(--primary) / 0.3);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: hsl(var(--primary) / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  color: hsl(var(--primary));
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ---------- Featured Airdrops ---------- */
.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.featured-header .section-desc {
  max-width: 42rem;
}

.airdrop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .airdrop-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.airdrop-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border));
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
}

.airdrop-card:hover {
  border-color: hsl(var(--primary) / 0.6);
  transform: translateY(-4px);
  box-shadow: var(--glow-card);
}

.airdrop-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: hsl(var(--secondary));
}

.airdrop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.airdrop-card:hover .airdrop-image img {
  transform: scale(1.05);
}

.airdrop-hot-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.airdrop-hot-tag svg { width: 12px; height: 12px; }

.airdrop-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.airdrop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.airdrop-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color var(--transition);
}

.airdrop-card:hover .airdrop-name {
  color: hsl(var(--primary));
}

.status-badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.status-ended {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.airdrop-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border) / 0.6);
  font-size: 0.75rem;
}

.info-icon { font-size: 0.875rem; flex-shrink: 0; }
.info-label { color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.info-value { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.airdrop-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-details, .btn-join {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-details {
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-details:hover {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
}

.btn-details svg { width: 14px; height: 14px; }

.btn-join {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  box-shadow: var(--glow-primary);
}

.btn-join:hover {
  opacity: 0.9;
  box-shadow: var(--glow-primary-strong);
}

.btn-join svg { width: 14px; height: 14px; }

.airdrop-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground) / 0.7);
  line-height: 1.4;
}

.airdrop-disclaimer svg {
  width: 12px;
  height: 12px;
  color: hsl(var(--warning) / 0.8);
  flex-shrink: 0;
}

/* ---------- Community Section ---------- */
.community-section {
  padding: 3.5rem 0;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .community-grid { grid-template-columns: repeat(4, 1fr); }
}

.community-card {
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.6);
  text-align: center;
  transition: all var(--transition);
}

.community-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px hsl(var(--primary) / 0.3);
}

.community-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: hsl(var(--primary) / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.community-icon svg { width: 24px; height: 24px; color: hsl(var(--primary)); }

.community-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.community-count {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.community-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: gap var(--transition);
}

.community-link:hover {
  gap: 0.5rem;
}

/* ---------- Promote Section ---------- */
.promote-section {
  padding: 3.5rem 0;
}

.promote-card {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.1));
  border: 1px solid hsl(var(--primary) / 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .promote-card { padding: 4rem 3rem; }
}

.promote-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: hsl(var(--primary) / 0.2);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.promote-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .promote-content { grid-template-columns: 1.5fr 1fr; }
}

.promote-text h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.promote-text p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.promote-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .promote-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.promote-cta {
  display: flex;
  justify-content: flex-end;
}

/* ---------- FAQ Section ---------- */
.faq-section {
  padding: 3.5rem 0;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.faq-item:first-child {
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: hsl(var(--foreground));
  transition: color var(--transition);
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
  transition: transform var(--transition), color var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: hsl(var(--primary));
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid hsl(var(--border) / 0.4);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 20rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  transition: all var(--transition);
}

.footer-social a:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.1);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid hsl(var(--border) / 0.4);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 639px) {
  .container { padding-inline: 1rem; }
  .hero { padding: 2.5rem 0; }
  .section { padding: 2.5rem 0; }
}

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

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

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

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

/* ---------- Selection ---------- */
::selection {
  background: hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
}

/* ---------- Focus ---------- */
*:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}
