/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --card: #1a1a26;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #a855f7;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.noise-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Glass ────────────────────────────────────────────────── */
.glass {
  background: rgba(26,26,38,.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  transition: .3s;
}
.navbar.scrolled {
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: .3s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 40px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.15), transparent);
  top: -10%; left: -10%;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,.12), transparent);
  bottom: -5%; right: -5%;
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,.08), transparent);
  top: 40%; left: 50%; transform: translate(-50%,-50%);
  animation-delay: -14s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(30px,-40px) scale(1.05); }
  50% { transform: translate(-20px,20px) scale(.95); }
  75% { transform: translate(40px,30px) scale(1.02); }
}
.hero-content {
  position: relative; max-width: 700px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-badge {
  display: inline-block; padding: 6px 18px;
  border-radius: 20px; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(168,85,247,.2));
  border: 1px solid rgba(168,85,247,.25);
  color: var(--primary-light);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -.03em;
  background: linear-gradient(135deg, #e8e8f0 0%, #818cf8 50%, #a855f7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  border: none; transition: .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99,102,241,.45);
}
.btn-glow { animation: glowPulse 3s ease-in-out infinite; }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(99,102,241,.35); }
  50% { box-shadow: 0 4px 30px rgba(99,102,241,.55); }
}
.btn-secondary {
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ── Hero Stats ───────────────────────────────────────────── */
.hero-stats {
  display: flex; gap: 40px; margin-top: 24px; padding: 20px 40px;
  border-radius: var(--radius); background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 50px 24px; }
.section-inner { max-width: 800px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--primary-light); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 32px;
  letter-spacing: -.02em;
}
.intro-card { padding: 32px; line-height: 1.8; color: var(--text-muted); }

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 28px; text-align: center; cursor: default;
  transition: .3s; border-radius: var(--radius);
  background: rgba(26,26,38,.4); border: 1px solid rgba(255,255,255,.05);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.3); }
.feature-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Tutorial ─────────────────────────────────────────────── */
.tutorial-content { padding: 32px; line-height: 1.8; color: var(--text-muted); }
.tutorial-content h1, .tutorial-content h2, .tutorial-content h3 { color: var(--text); margin: 24px 0 12px; }
.tutorial-content h2 { font-size: 1.3rem; }
.tutorial-content h3 { font-size: 1.1rem; }
.tutorial-content p { margin-bottom: 12px; }
.tutorial-content ol, .tutorial-content ul { margin: 12px 0 12px 24px; }
.tutorial-content li { margin-bottom: 6px; }
.tutorial-content code {
  background: rgba(99,102,241,.12); padding: 2px 8px; border-radius: 4px;
  font-size: .9em; color: var(--primary-light);
}
.tutorial-content img {
  max-width: 100%; border-radius: var(--radius-sm);
  margin: 16px 0; border: 1px solid var(--border);
}

/* ── Download Section ─────────────────────────────────────── */
.section-download { position: relative; }
.download-subtitle { color: var(--text-muted); margin-bottom: 24px; }
.download-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 32px; flex-wrap: wrap;
}
.download-info { display: flex; align-items: center; gap: 20px; }
.download-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.download-info p { font-size: .85rem; color: var(--text-muted); }
.download-safe { display: flex; align-items: center; gap: 4px; margin-top: 6px !important; color: var(--green) !important; }
.download-note { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 16px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 32px 24px; text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; margin-bottom: 8px;
}
.footer-text { font-size: .8rem; color: var(--text-muted); }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  padding: 12px 28px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  pointer-events: none; opacity: 0; transition: .4s; z-index: 200;
  background: rgba(26,26,38,.9); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1); color: var(--text);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,15,.95); backdrop-filter: blur(20px);
    flex-direction: column; padding: 12px; gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }
  .hero-stats { gap: 20px; padding: 16px 24px; }
  .download-card { flex-direction: column; text-align: center; }
  .download-info { flex-direction: column; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
}
