/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f172a;
  --bg-light: #1e293b;
  --text: #e2e8f0;
  --accent: #6d28d9;
  --accent-light: #a78bfa;
  --card-bg: #1e293b;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-light);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-switcher select {
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-light);
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 1));
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.2s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.2s forwards;
  font-size: 1.1rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(0);
  box-shadow: 0 4px 12px var(--shadow);
}

.feature-card h3 {
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px var(--shadow);
}

.avatar {
  width: 100px;
  height: 100px;
  background: var(--accent-light);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.role {
  font-size: 0.95rem;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.bio {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Roadmap */
.bg-light {
  background: var(--bg-light);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.roadmap-item h3 {
  margin-bottom: 0.75rem;
  color: var(--accent-light);
  font-size: 1.25rem;
}

/* Tech */
.tech-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.tech-list li {
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.tech-list li::before {
  content: "✓ ";
  color: var(--accent-light);
  font-weight: bold;
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-note {
  margin-top: 0.5rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

/* Mobile First */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    font-size: 1.5rem;
    text-align: center;
  }

  .header-right {
    justify-content: center;
    width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
    max-width: 90%;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .btn-large {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }

  .features-grid,
  .team-grid,
  .roadmap-grid,
  .tech-list ul {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .card,
  .roadmap-item {
    padding: 1.25rem;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .bio {
    font-size: 0.9rem;
  }

  .footer p {
    font-size: 0.9rem;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .container {
    max-width: 1200px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }
}

/* Extra small screens (very narrow phones) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .btn-large {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .bio {
    font-size: 0.85rem;
  }
}

/* Avatar image */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--accent-light);
}

/* Footer links */
.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.donation-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.donation-card:hover {
  transform: translateY(0);
  box-shadow: 0 4px 12px var(--shadow);
}

.donation-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.donation-card h3 {
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.donation-address {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(109, 40, 217, 0.1);
  border-radius: 6px;
  user-select: text;
}

.btn-copy {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.btn-copy:hover {
  opacity: 0.9;
}

/* Success feedback */
.copied {
  background: rgba(45, 212, 191, 0.2) !important;
  color: #2dd4bf !important;
}