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

:root {
  --bg: #0e0f11;
  --bg-card: #161820;
  --bg-card-hover: #1c1f2a;
  --surface: #1a1c24;
  --border: #2a2d38;
  --text: #e4e4e7;
  --text-dim: #9ca3af;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dark: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.15);
  --coffee: #ffdd00;
  --paypal: #00457C;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

code {
  font-family: var(--mono);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-light);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 15, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.logo-icon {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-github { color: var(--text-dim) !important; }
.nav-github:hover { color: var(--text) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: 0.2s;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-platforms {
  font-size: 0.82rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--bg);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== SECTIONS ===== */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== PLATFORMS ===== */
.platforms {
  padding: 100px 0;
  background: var(--surface);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.platform-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: all 0.25s;
}
.platform-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.platform-card svg { color: var(--accent); margin-bottom: 16px; }
.platform-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.platform-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

.platform-wip { border-color: rgba(250, 204, 21, 0.3); }
.platform-wip svg { color: var(--text-dim); opacity: 0.6; }

.wip-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

.wip-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #facc15;
  opacity: 0.8;
  line-height: 1.4;
}

.platform-cta { text-align: center; }

/* ===== AI PROVIDERS ===== */
.ai-section {
  padding: 80px 0;
}

.provider-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.provider-list span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s;
}
.provider-list span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== SUPPORT / DONATE ===== */
.support {
  padding: 100px 0;
  background: var(--surface);
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.donate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.25s;
  color: var(--text);
}
.donate-card:hover {
  transform: translateY(-3px);
  color: var(--text);
}

.donate-coffee:hover { border-color: var(--coffee); }
.donate-coffee svg { color: var(--coffee); }

.donate-paypal:hover { border-color: #0070ba; }
.donate-paypal svg { color: #0070ba; }

.donate-card h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.donate-card p { font-size: 0.85rem; color: var(--text-dim); }

/* ===== CRYPTO ===== */
.crypto-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.crypto-grid > :last-child:nth-child(3n+1) {
  grid-column: 2;
}

.crypto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.crypto-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.crypto-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.qr-canvas {
  border-radius: 6px;
  image-rendering: pixelated;
}

.crypto-addr {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  word-break: break-all;
  text-align: center;
  line-height: 1.5;
  width: 100%;
}

.copy-btn {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font);
}
.copy-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
}

.footer-copy {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(14, 15, 17, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 0 70px; }
  .hero h1 { font-size: 1.75rem; }

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

  .crypto-grid { grid-template-columns: 1fr; }
  .crypto-grid > :last-child:nth-child(3n+1) { grid-column: 1; }

  .crypto-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .crypto-addr {
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand { flex-direction: column; gap: 4px; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .donate-grid { grid-template-columns: 1fr; }
}
