/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

body {
  font-family: 'Inter', sans-serif;
  background: #060810;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── VARIABLES ── */
:root {
  --accent:        #6366f1;
  --accent-2:      #8b5cf6;
  --accent-3:      #ec4899;
  --accent-hover:  #818cf8;
  --green:         #10b981;
  --surface:       rgba(255,255,255,0.028);
  --surface-hover: rgba(255,255,255,0.055);
  --border:        rgba(255,255,255,0.07);
  --border-light:  rgba(255,255,255,0.12);
  --text-muted:    #4b5563;
  --text-soft:     #94a3b8;
}

/* ── BACKGROUND ── */
.bg-canvas { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(140px); pointer-events: none; }
.glow-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 65%);
  top: -300px; right: -300px;
  animation: floatGlow 20s ease-in-out infinite;
}
.glow-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 65%);
  bottom: -200px; left: -200px;
  animation: floatGlow 28s ease-in-out infinite reverse;
}
.glow-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.07) 0%, transparent 65%);
  top: 40%; left: 35%;
  animation: floatGlow 18s ease-in-out infinite;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.97); }
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

/* ── CONTAINER ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.4rem 2rem;
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: white;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em;
}
.nav-logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 16px rgba(99,102,241,0.3); }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
  color: var(--text-soft); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); border-radius: 99px; transition: width 0.25s;
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.85rem; }
.btn-nav-ghost {
  color: var(--text-soft); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 0.52rem 1.1rem; border-radius: 10px; transition: all 0.2s;
  border: 1px solid var(--border);
}
.btn-nav-ghost:hover { color: white; border-color: var(--border-light); background: var(--surface); }
.btn-nav-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; text-decoration: none;
  font-size: 0.88rem; font-weight: 700; padding: 0.55rem 1.3rem;
  border-radius: 10px; transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.btn-nav-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.45); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 8rem 2rem 5rem; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  color: #34d399; padding: 0.45rem 1.1rem; border-radius: 99px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 2.2rem;
  animation: fadeUp 0.8s ease both;
}
.badge-dot {
  width: 7px; height: 7px; background: #10b981; border-radius: 50%;
  box-shadow: 0 0 8px #10b981; flex-shrink: 0;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero-title {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 900; line-height: 1.03;
  letter-spacing: -0.04em; margin-bottom: 1.6rem;
  animation: fadeUp 0.9s 0.1s ease both;
}
.hero-gradient {
  background: linear-gradient(135deg, #818cf8, #a855f7 40%, #ec4899 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-sub {
  max-width: 600px; font-size: 1.12rem; color: var(--text-soft);
  margin-bottom: 2.8rem; line-height: 1.75;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 4.5rem;
  animation: fadeUp 1s 0.3s ease both;
}
.btn-primary-lg {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: 0.95rem 2.2rem;
  border-radius: 14px; transition: all 0.25s;
  box-shadow: 0 6px 30px rgba(99,102,241,0.4);
}
.btn-primary-lg:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(99,102,241,0.55); }
.btn-ghost-lg {
  color: var(--text-soft); text-decoration: none; font-size: 1rem; font-weight: 600;
  padding: 0.95rem 2.2rem; border-radius: 14px;
  border: 1px solid var(--border); transition: all 0.25s; background: var(--surface);
}
.btn-ghost-lg:hover { color: white; border-color: var(--border-light); background: var(--surface-hover); }

.hero-stats {
  display: inline-flex; align-items: center; gap: 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 1.3rem 3rem; border-radius: 20px;
  backdrop-filter: blur(16px);
  animation: fadeUp 1s 0.4s ease both;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hstat { text-align: center; }
.hstat strong { display: block; font-size: 1.8rem; font-weight: 900; color: white; letter-spacing: -0.02em; }
.hstat span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.hstat-divider { width: 1px; height: 44px; background: var(--border); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── SECTIONS ── */
.section { padding: 110px 0; }
.section-dark { background: rgba(0,0,0,0.25); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-cta { padding: 90px 0; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--accent); margin-bottom: 1.2rem;
  padding: 0.35rem 0.9rem; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); border-radius: 99px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.3rem;
}
.section-desc { color: var(--text-soft); font-size: 1.05rem; max-width: 540px; line-height: 1.7; }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; margin-top: 4rem;
}
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 2.2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0; transform: translateY(24px);
  position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.feat-card:hover::before { opacity: 1; }
.feat-card.visible { opacity: 1; transform: translateY(0); }
.feat-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(99,102,241,0.1); }
.feat-large { grid-column: span 2; }
.feat-icon { font-size: 2.4rem; margin-bottom: 1.2rem; }
.feat-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.feat-card p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.7; }
.feat-list { list-style: none; margin-top: 1.3rem; }
.feat-list li {
  color: var(--text-soft); font-size: 0.88rem; padding: 0.4rem 0;
  border-top: 1px solid var(--border); display: flex; align-items: center; gap: 0.6rem;
}
.feat-list li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── GUIDE STEPS ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem; margin-top: 4rem;
}
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 2.2rem;
  opacity: 0; transform: translateY(24px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.step-card.visible { opacity: 1; transform: translateY(0); }
.step-card:hover { border-color: var(--border-light); transform: translateY(-4px); }
.step-num {
  font-size: 0.72rem; font-weight: 800; color: var(--accent);
  letter-spacing: 3px; margin-bottom: 1rem; text-transform: uppercase;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 99px;
}
.step-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.65rem; }
.step-card p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.3rem; }
.step-cmd {
  background: rgba(0,0,0,0.5); border: 1px solid rgba(99,102,241,0.2);
  color: #a5b4fc; font-family: 'JetBrains Mono', 'Courier New', monospace;
  padding: 0.6rem 1rem; border-radius: 10px; font-size: 0.88rem;
  display: inline-block; margin-bottom: 0.5rem;
}
.step-note { font-size: 0.78rem; color: var(--text-muted); }

/* ── MODULES TABLE ── */
.modules-table-wrap {
  margin-top: 3rem; overflow-x: auto; border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.modules-table { width: 100%; border-collapse: collapse; }
.modules-table th {
  background: rgba(0,0,0,0.4); padding: 1rem 1.4rem;
  text-align: left; font-size: 0.74rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px;
}
.modules-table td {
  padding: 0.9rem 1.4rem; font-size: 0.88rem;
  border-top: 1px solid var(--border); color: var(--text-soft);
  transition: background 0.15s;
}
.modules-table tr:hover td { background: var(--surface); }
.modules-table code {
  background: rgba(99,102,241,0.15); color: #a5b4fc;
  padding: 0.22rem 0.6rem; border-radius: 6px; font-size: 0.84rem;
  font-family: 'JetBrains Mono', monospace;
}

/* ── CTA SECTION ── */
.cta-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(139,92,246,0.07));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 28px; padding: 5rem 3rem; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 0 80px rgba(99,102,241,0.08);
}
.cta-box::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-icon { width: 88px; height: 88px; border-radius: 24px; margin-bottom: 1.8rem; box-shadow: 0 0 30px rgba(99,102,241,0.35); }
.cta-box h2 { font-size: 2.6rem; font-weight: 900; margin-bottom: 1rem; letter-spacing: -0.03em; }
.cta-box p { color: var(--text-soft); margin-bottom: 2.5rem; font-size: 1.05rem; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border); padding: 3rem 0;
  background: rgba(0,0,0,0.3);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; }
.footer-brand img { width: 30px; border-radius: 8px; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feat-large { grid-column: span 1; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; padding: 1.2rem 2rem; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .cta-box { padding: 3rem 1.5rem; }
}
