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

:root {
  --bg:        #0a0a0f;
  --bg-card:   #111118;
  --bg-card2:  #16161f;
  --border:    #1e1e2e;
  --border-h:  #2e2e4e;
  --accent:    #7c3aed;
  --accent-h:  #6d28d9;
  --accent-l:  #a78bfa;
  --accent-gl: rgba(124, 58, 237, 0.15);
  --green:     #22c55e;
  --text:      #f1f0ff;
  --text-2:    #a8a4c0;
  --text-3:    #6b6785;
  --radius:    12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =========================================================
   Typography
   ========================================================= */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-l);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
p  { color: var(--text-2); line-height: 1.75; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover { background: var(--accent-h); box-shadow: 0 0 32px rgba(124, 58, 237, 0.6); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}
.btn-outline:hover { border-color: var(--accent-l); color: var(--accent-l); background: var(--accent-gl); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* =========================================================
   Nav
   ========================================================= */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo span { color: var(--accent-l); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; color: var(--text-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); }
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 1rem 1.5rem; list-style: none;
}
.mobile-menu.open { display: flex; }
.mobile-menu li a { display: block; padding: 0.75rem 0; color: var(--text-2); font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child a { border-bottom: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-gl); border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 999px; font-size: 0.8rem; color: var(--accent-l);
  margin-bottom: 1.5rem; font-weight: 500;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-l); animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .highlight { color: var(--accent-l); }
.hero > .container > p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-terminal {
  margin: 4rem auto 0;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.1);
}
.terminal-bar {
  background: var(--bg-card2); padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-body { padding: 1.5rem; font-family: 'Fira Code', 'Cascadia Code', monospace; font-size: 0.85rem; line-height: 2; }
.t-dim   { color: var(--text-3); }
.t-cmd   { color: #93c5fd; }
.t-ok    { color: var(--green); }
.t-out   { color: var(--text-2); }
.t-acc   { color: var(--accent-l); }
.t-str   { color: #fde68a; }

/* =========================================================
   Stats bar
   ========================================================= */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.75rem 0;
}
.stats-inner { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.stat-label { font-size: 0.8rem; color: var(--text-3); margin-top: 0.1rem; }

/* =========================================================
   Problem section
   ========================================================= */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.problem-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.problem-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.problem-list .icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.after-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.after-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem; background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2); border-radius: var(--radius-sm);
}
.after-list .icon { font-size: 1.25rem; flex-shrink: 0; color: var(--green); margin-top: 0.1rem; }

/* =========================================================
   Section headers
   ========================================================= */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { max-width: 540px; margin: 0.75rem auto 0; font-size: 1.05rem; }

/* =========================================================
   Product cards
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}
.product-card .card-preview {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.product-card .card-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .card-preview img {
  transform: scale(1.02);
}
.product-card .card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
  background: var(--accent-gl); border: 1px solid rgba(124,58,237,0.2);
}
.product-card h3 { margin-bottom: 0.5rem; }
.product-card .card-desc { font-size: 0.9rem; margin-bottom: 1.25rem; flex: 1; }
.card-features { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.card-features li { font-size: 0.82rem; color: var(--text-2); display: flex; gap: 0.5rem; align-items: baseline; }
.card-features li::before { content: '→'; color: var(--accent-l); font-size: 0.75rem; flex-shrink: 0; }
.card-pricing { margin-bottom: 1.25rem; }
.card-price-from { font-size: 0.75rem; color: var(--text-3); }
.card-price { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.card-price-full { font-size: 0.8rem; color: var(--text-3); }
.product-card .btn { width: 100%; justify-content: center; }

/* =========================================================
   Bundles
   ========================================================= */
.bundles-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bundle-featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(109,28,209,0.08));
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
}
.bundle-featured-badge {
  display: inline-block; margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem; background: var(--accent); border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.bundle-featured h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.bundle-featured p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.bundle-includes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.bundle-includes li { font-size: 0.82rem; color: var(--text-2); display: flex; gap: 0.5rem; align-items: center; }
.bundle-includes li::before { content: '✓'; color: var(--green); font-weight: 700; }
.bundle-price-block { text-align: right; white-space: nowrap; }
.bundle-was { font-size: 0.85rem; color: var(--text-3); text-decoration: line-through; }
.bundle-now { font-size: 2.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; margin: 0.25rem 0; }
.bundle-save { font-size: 0.8rem; color: var(--green); font-weight: 600; margin-bottom: 1.25rem; }

.bundles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.bundle-card {
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.bundle-card:hover { border-color: var(--border-h); }
.bundle-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.bundle-card .bundle-desc { font-size: 0.82rem; margin-bottom: 1rem; flex: 1; }
.bundle-card .bundle-includes-sm { list-style: none; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.bundle-card .bundle-includes-sm li { font-size: 0.78rem; color: var(--text-3); display: flex; gap: 0.4rem; align-items: center; }
.bundle-card .bundle-includes-sm li::before { content: '→'; color: var(--accent-l); font-size: 0.7rem; }
.bundle-card .bundle-card-price { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.bundle-card .btn { width: 100%; justify-content: center; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-card2); }
.faq-chevron { flex-shrink: 0; transition: transform 0.2s; color: var(--text-3); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; font-size: 0.9rem; color: var(--text-2); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* =========================================================
   Footer
   ========================================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-card);
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; max-width: 260px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--text-2); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-3); }

/* =========================================================
   Animations
   ========================================================= */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .bundles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .hamburger { display: block; }
  .problem-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bundle-featured { grid-template-columns: 1fr; }
  .bundle-price-block { text-align: left; }
  .bundle-includes { grid-template-columns: 1fr; }
  .bundles-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .stats-inner { gap: 2rem; }
}
