@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #0a0712;
  --surface: #130f1e;
  --text: #f0eaf8;
  --dim: #9b8fb8;
  --accent: #8B5CF6;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --gold: #F59E0B;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --border: #2a2240;
  --radius: 12px;
  --surface-elevated: #1a1530;
}

html { scroll-behavior: smooth; color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: disc; padding-left: 1.5rem; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1.25rem; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.125rem; font-weight: 600; color: var(--accent);
}
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 0.875rem; font-weight: 600; padding: 0.5rem 1.25rem;
  border-radius: 9999px; background: var(--accent); color: #fff;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; margin: 5px 0; }
.nav-mobile { display: none; flex-direction: column; gap: 0.75rem; padding: 0 1.25rem 1rem; background: rgba(10, 7, 18, 0.95); }
.nav-mobile a { font-size: 1rem; padding: 0.5rem 0; color: var(--dim); }
.nav-mobile.open { display: flex; }

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

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: 64px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(139, 92, 246, 0.12), transparent),
              radial-gradient(ellipse 40% 40% at 70% 70%, rgba(245, 158, 11, 0.06), transparent);
}
.hero-orb {
  position: absolute; border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}
.hero-orb-1 {
  top: 5rem; left: 25%; width: 18rem; height: 18rem;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
}
.hero-orb-2 {
  bottom: 5rem; right: 25%; width: 24rem; height: 24rem;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
  animation-delay: 1.5s;
}
.hero-content {
  position: relative; z-index: 10; text-align: center;
  padding: 0 1.25rem; max-width: 768px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500; margin-bottom: 2rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent);
  animation: fade-in-up 0.7s ease-out both;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem;
  animation: fade-in-up 0.7s ease-out 0.1s both;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), #c084fc, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--dim); max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fade-in-up 0.7s ease-out 0.2s both;
}
.hero-buttons {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
  animation: fade-in-up 0.7s ease-out 0.3s both;
}
.btn-store {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.75rem; border-radius: 9999px;
  font-weight: 600; font-size: 1rem; transition: all 0.3s;
  background: var(--text); color: var(--bg);
}
.btn-store:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-store svg { width: 20px; height: 22px; fill: currentColor; }
.btn-gold { background: var(--gold); color: #0a0712; }

/* Sections */
.section { padding: 5rem 0; }
.section-lg { padding: 7rem 0; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; margin-bottom: 1rem; text-align: center;
}
.section-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.125rem);
  color: var(--dim); text-align: center; max-width: 560px; margin: 0 auto 3rem;
}
.accent { color: var(--accent); }
.gold { color: var(--gold); }

/* Features Grid */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 1.75rem; border-radius: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-2px); }
.feature-icon { font-size: 1.75rem; color: var(--accent); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--dim); line-height: 1.6; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; gap: 2rem; } }

.step { text-align: center; }
.step-num {
  width: 4rem; height: 4rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3); color: var(--accent);
}
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.step p { font-size: 0.875rem; color: var(--dim); line-height: 1.6; }

/* How-it-works bg */
.how-bg {
  position: relative;
}
.how-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04), transparent);
  pointer-events: none;
}

/* CTA */
.cta-card {
  padding: 3rem; border-radius: 1.5rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(19, 15, 30, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.25); text-align: center;
}
.cta-card .orb {
  position: absolute; top: 0; right: 0; width: 16rem; height: 16rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
}
.cta-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.cta-card p {
  color: var(--dim); max-width: 28rem; margin: 0 auto 2rem;
  position: relative; z-index: 1;
}
.cta-buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  position: relative; z-index: 1;
}

/* Policy pages */
.policy-section { padding: 5rem 0; }
.policy-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700;
  color: var(--accent); margin-bottom: 2rem;
}
.policy-section h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--text);
  margin-top: 2rem; margin-bottom: 0.75rem;
}
.policy-section p { color: var(--dim); margin-bottom: 1rem; font-size: 0.9375rem; line-height: 1.8; }
.policy-section ul { color: var(--dim); margin-bottom: 1rem; }
.policy-section li { margin-bottom: 0.5rem; font-size: 0.9375rem; line-height: 1.7; }
.policy-section strong { color: var(--text); }
.policy-section a { color: var(--accent); }
.policy-section a:hover { text-decoration: underline; }

/* FAQ */
.faq-item {
  border-radius: 0.75rem; overflow: hidden; margin-bottom: 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
}
.faq-question {
  width: 100%; text-align: left; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; font-weight: 500; color: var(--text);
  background: transparent; border: none; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}
.faq-question:hover { background: rgba(139, 92, 246, 0.05); }
.faq-arrow { color: var(--dim); transition: transform 0.2s; font-size: 1.125rem; flex-shrink: 0; margin-left: 1rem; }
.faq-arrow.open { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem 1rem; font-size: 0.875rem; color: var(--dim); line-height: 1.7;
  display: none;
}
.faq-answer.open { display: block; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* Footer */
.footer {
  padding: 2.5rem 1.25rem; border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; color: var(--accent); }
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--dim); }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.875rem; color: var(--dim); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
