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

:root {
  --primary: #5865F2;
  --primary-dark: #4752C4;
  --secondary: #57F287;
  --danger: #ED4245;
  --warning: #FEE75C;
  --bg: #0d0d1a;
  --bg2: #111126;
  --bg3: #1a1a35;
  --card: #16162a;
  --border: rgba(88, 101, 242, 0.2);
  --text: #e0e0f0;
  --text-muted: #8888aa;
  --gold: #F1C40F;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.3rem; font-weight: 800; color: #fff; text-decoration: none; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 1rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(88,101,242,0.4); }
.btn-outline { background: transparent; color: #fff; border: 1px solid var(--border); }
.btn-outline:hover { background: var(--card); }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; border-radius: 12px; }
.btn-xl { padding: 1.1rem 2.8rem; font-size: 1.1rem; border-radius: 14px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(88,101,242,0.35) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(87,242,135,0.1) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.3); border-radius: 999px; font-size: 0.8rem; color: #a0a8ff; margin-bottom: 1.5rem; }
.hero-badge span { width: 8px; height: 8px; background: var(--secondary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 1.5rem; }
h1 .gradient { background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, var(--secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; margin-top: 4rem; flex-wrap: wrap; }
.hero-stat h3 { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stat p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ─── SECTIONS ─── */
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 580px; line-height: 1.7; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ─── FEATURES GRID ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.75rem; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(88,101,242,0.2); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag { font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 6px; background: rgba(88,101,242,0.15); color: #a0a8ff; }

/* ─── COMMANDS TABLE ─── */
.commands-section { background: var(--bg2); }
.commands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.cmd-group { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cmd-group-header { padding: 0.9rem 1.25rem; background: rgba(88,101,242,0.1); font-weight: 700; font-size: 0.9rem; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.cmd-list { padding: 0.75rem; }
.cmd-item { padding: 0.4rem 0.5rem; font-size: 0.82rem; color: var(--text-muted); border-radius: 6px; }
.cmd-item code { color: var(--primary); font-family: monospace; }
.cmd-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }

/* ─── SETUP STEPS ─── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; max-width: 700px; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.step-content p { font-size: 0.9rem; color: var(--text-muted); }
.step-content code { background: var(--bg3); padding: 0.2rem 0.5rem; border-radius: 5px; font-size: 0.85rem; color: var(--secondary); }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(135deg, rgba(88,101,242,0.2) 0%, rgba(168,85,247,0.15) 100%);
  border: 1px solid rgba(88,101,242,0.3); border-radius: 24px;
  padding: 4rem 2rem; text-align: center; margin: 0 1rem;
}
.cta-banner h2 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }

/* ─── FOOTER ─── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; max-width: 280px; }
.footer-links h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ─── PRIVACY / TERMS ─── */
.legal-page { padding: 8rem 2rem 5rem; max-width: 860px; margin: 0 auto; }
.legal-page h1 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.legal-date { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 3rem; }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 2.5rem 0 0.75rem; border-left: 3px solid var(--primary); padding-left: 0.75rem; }
.legal-page p, .legal-page li { color: var(--text-muted); line-height: 1.8; margin-bottom: 0.75rem; font-size: 0.95rem; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page a { color: var(--primary); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem; }
  .nav-links { display: none; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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

/* ─── ANIMATIONS ─── */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
