/* ==========================================
   SparkBox Marketing Site
   ========================================== */

:root {
  --bg: #0a0a0f;
  --bg-subtle: #0e0e15;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a24;
  --bg-input: #1a1a24;
  --border: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(255, 255, 255, 0.1);

  --text: #f0f0f5;
  --text-secondary: #9494a8;
  --text-muted: #5a5a6e;

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-glow: rgba(99, 102, 241, 0.25);

  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.1);
  --cyan-glow: rgba(34, 211, 238, 0.2);

  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.1);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --transition: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  --max-width: 1140px;
  --section-pad: 120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   NAV
   ========================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 40px 24px;
}

.mobile-menu.open { display: flex; flex-direction: column; gap: 24px; }

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--text); }

/* ==========================================
   HERO
   ========================================== */

.hero {
  position: relative;
  padding: 160px 24px 120px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.2;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Install command */
.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 36px;
  position: relative;
  transition: border-color var(--transition);
}

.install-cmd:hover { border-color: rgba(255, 255, 255, 0.15); }

.install-cmd code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--cyan);
  user-select: all;
}

.install-cmd .copy-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.install-cmd .copy-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.install-cmd .copy-btn.copied {
  color: var(--green);
  border-color: var(--green-soft);
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 32px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ==========================================
   SECTION COMMON
   ========================================== */

section {
  padding: var(--section-pad) 24px;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   FEATURES
   ========================================== */

.features {
  background: var(--bg-subtle);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: background var(--transition-slow);
}

.feature-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.feature-icon.privacy { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.feature-icon.media { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.feature-icon.cloud { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.feature-icon.vpn { background: linear-gradient(135deg, #34d399, #059669); }
.feature-icon.dashboard { background: linear-gradient(135deg, #a78bfa, #ec4899); }
.feature-icon.apps { background: linear-gradient(135deg, #f97316, #eab308); }

/* SVG-like shapes inside icons */
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.feature-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* App Showcase inside feature cards */
.app-showcase {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.app-item:last-child {
  border-bottom: none;
}

.app-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
}

.app-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-detail strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.app-detail span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   HARDWARE BUNDLES
   ========================================== */

.hardware {
  background: var(--bg-subtle);
  padding: var(--section-pad) 0;
}

.bundles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bundle-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.bundle-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
}

.bundle-tier {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bundle-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.bundle-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.bundle-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.bundle-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.bundle-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.bundle-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.bundle-item strong {
  font-size: 0.85rem;
  color: var(--text);
  width: 100%;
}

.bundle-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bundle-item-price {
  margin-left: auto;
  font-weight: 600;
  color: var(--cyan) !important;
}

.bundle-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.bundle-total span {
  color: var(--text-muted);
}

.bundle-total strong {
  color: var(--text);
}

.bundle-best-for {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.bundle-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 32px;
}

@media (max-width: 900px) {
  .bundles-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ==========================================
   PRICING
   ========================================== */

.pricing {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-slow);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.08);
}

.pricing-card.featured:hover {
  box-shadow: 0 8px 48px rgba(99, 102, 241, 0.15);
}

.pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.pricing-card.featured h3 { color: var(--accent-hover); }

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-amount .price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pricing-amount .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 24px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-features li .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .check {
  background: var(--green-soft);
  color: var(--green);
}

.pricing-card .check svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}

.pricing-card .pricing-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.pricing-card .pricing-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pricing-card.featured .pricing-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 0 24px var(--accent-glow);
}

.pricing-card.featured .pricing-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 32px var(--accent-glow);
}

/* ==========================================
   WHY NOT FREE
   ========================================== */

.why-paid {
  background: var(--bg-subtle);
  padding: 80px 0 var(--section-pad);
  border-top: 1px solid var(--border);
}

.why-paid-content {
  max-width: 760px;
  margin: 0 auto;
}

.why-paid-asterisk {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--text) !important;
  font-style: italic;
  margin-bottom: 32px !important;
}

.why-paid-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.why-paid-content p strong {
  color: var(--text);
}

.why-paid-closer {
  font-size: 1.1rem !important;
  color: var(--text) !important;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-top: 32px !important;
}

.pricing-asterisk {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  font-style: italic;
  transition: color var(--transition);
}

.pricing-asterisk:hover {
  color: var(--accent);
}

.supported-platforms {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.supported-platforms p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.supported-platforms strong {
  color: var(--text-secondary);
}

.why-paid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.why-stat {
  text-align: center;
}

.why-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.why-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.why-paid-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-paid-list li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.why-paid-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.why-paid-list li strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .why-paid-stats { grid-template-columns: repeat(2, 1fr); }
  .why-stat-number { font-size: 1.5rem; }
}

/* ==========================================
   HOW IT WORKS
   ========================================== */

.how-it-works {
  background: var(--bg-subtle);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 36px);
  right: calc(16.66% + 36px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: all var(--transition-slow);
}

.step:hover .step-number {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ==========================================
   FAQ
   ========================================== */

.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: var(--border-bright); }

.faq-item.open { border-color: rgba(99, 102, 241, 0.3); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: var(--bg-card);
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-chevron svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-card);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand .brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand .brand-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-bright);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  :root { --section-pad: 80px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before { display: none; }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 130px 24px 80px; }

  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }

  .install-cmd {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    width: 100%;
  }

  .install-cmd code { font-size: 0.78rem; }

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

  .feature-card { padding: 28px 24px; }

  .section-title { font-size: 1.6rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ==========================================
   DOCS PAGE
   ========================================== */

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 24px 60px;
  gap: 48px;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.docs-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 24px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

.docs-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 0 16px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav-group {
  margin-bottom: 8px;
}

.docs-nav-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  padding: 10px 16px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.docs-nav-group-title:hover {
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav-group-title.active {
  color: var(--accent-hover);
}

.docs-nav a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 5px 16px 5px 28px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  border-left: 2px solid transparent;
  margin-left: 8px;
}

.docs-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav a.active {
  color: var(--accent-hover);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Mobile sidebar toggle ---- */
.docs-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  font-size: 1.2rem;
  transition: transform var(--transition), background var(--transition);
}

.docs-sidebar-toggle:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.docs-sidebar-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Docs content ---- */
.docs-content {
  padding: 24px 0 80px;
  max-width: 860px;
  min-width: 0;
}

.docs-content > section {
  padding: 0 0 80px;
}

.docs-content > section:last-child {
  padding-bottom: 0;
}

/* Guide titles (h1 level) */
.docs-content .guide-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-top: 24px;
}

.docs-content .guide-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Headings */
.docs-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.docs-content h2:first-child,
.docs-content section > h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.docs-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

.docs-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

/* Paragraphs & text */
.docs-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.docs-content p strong {
  color: var(--text);
  font-weight: 600;
}

.docs-content a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  text-underline-offset: 2px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.docs-content a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

/* Lists */
.docs-content ul,
.docs-content ol {
  margin: 0 0 16px 20px;
  list-style: disc;
}

.docs-content ol { list-style: decimal; }

.docs-content li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

.docs-content li strong {
  color: var(--text);
}

.docs-content li code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
}

/* Inline code */
.docs-content p code,
.docs-content td code,
.docs-content h3 code,
.docs-content h4 code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--cyan);
  border: 1px solid var(--border);
}

/* Code blocks */
.docs-code-block {
  position: relative;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.docs-code-block .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.docs-code-block .code-lang {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.docs-code-block .code-copy {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.docs-code-block .code-copy:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.docs-code-block .code-copy.copied {
  color: var(--green);
  border-color: var(--green-soft);
}

.docs-code-block pre {
  padding: 16px 20px;
  overflow-x: auto;
  background: #0d0d14;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}

.docs-code-block pre::-webkit-scrollbar { height: 4px; }
.docs-code-block pre::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

.docs-code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #c9d1d9;
  white-space: pre;
}

/* Syntax-like coloring for code blocks */
.docs-code-block code .cmd { color: var(--cyan); }
.docs-code-block code .flag { color: var(--accent-hover); }
.docs-code-block code .string { color: var(--green); }
.docs-code-block code .comment { color: var(--text-muted); font-style: italic; }

/* Tables */
.docs-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}

.docs-table-wrap::-webkit-scrollbar { height: 4px; }
.docs-table-wrap::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.docs-content thead {
  background: rgba(255, 255, 255, 0.03);
}

.docs-content th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-bright);
  white-space: nowrap;
}

.docs-content td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.docs-content tr:last-child td {
  border-bottom: none;
}

.docs-content tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Callouts / notes */
.docs-note {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 0 0 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  border-left: 3px solid;
}

.docs-note p {
  margin: 0;
  color: inherit;
}

.docs-note.info {
  background: rgba(34, 211, 238, 0.06);
  border-color: var(--cyan);
  color: var(--text-secondary);
}

.docs-note.warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: #f59e0b;
  color: var(--text-secondary);
}

.docs-note.tip {
  background: rgba(52, 211, 153, 0.06);
  border-color: var(--green);
  color: var(--text-secondary);
}

.docs-note strong {
  color: var(--text);
}

/* Checklist */
.docs-checklist {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.docs-checklist li {
  padding: 4px 0 4px 28px;
  position: relative;
}

.docs-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.03);
}

/* Back to top */
.docs-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.docs-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.docs-back-to-top:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.docs-back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Divider between guides */
.docs-guide-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 60px 0 20px;
}

/* ---- Docs responsive ---- */
@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .docs-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    z-index: 150;
    padding: 24px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-height: none;
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .docs-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(0, 0, 0, 0.5);
  }

  .docs-sidebar-overlay.open {
    display: block;
  }

  .docs-sidebar-toggle {
    display: flex;
  }

  .docs-content {
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .docs-content h2 {
    font-size: 1.25rem;
  }

  .docs-content .guide-title {
    font-size: 1.6rem;
  }

  .docs-code-block pre {
    padding: 12px 14px;
  }

  .docs-code-block code {
    font-size: 0.76rem;
  }
}

/* ==========================================
   LEGAL PAGES (Terms, Refund Policy)
   ========================================== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.legal-page .docs-content {
  padding: 0;
  max-width: 100%;
}

.legal-page .docs-content section {
  padding-bottom: 24px;
}

.legal-page .docs-content ol {
  list-style: decimal;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 88px 16px 60px;
  }
}
