/* b8q Design System — main.css */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06000f;
  --bg-alt: #0a0118;
  --bg-card: rgba(15, 0, 30, 0.7);
  --bg-card-solid: #0d0520;
  --purple: #c084fc;
  --magenta: #e879f9;
  --deep-purple: #7c3aed;
  --border: rgba(192, 132, 252, 0.3);
  --glow: rgba(192, 132, 252, 0.35);
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.7);
  --text-mid: rgba(255,255,255,0.8);
  --gradient: linear-gradient(135deg, #7c3aed 0%, #c084fc 50%, #e879f9 100%);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-w: 1200px;
  --nav-h: 64px;
  --radius: 16px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--purple); text-decoration: none; transition: color .2s; }
a:hover { color: var(--magenta); }

img { max-width: 100%; height: auto; display: block; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(6,0,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192,132,252,0.1);
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(6,0,15,0.95);
  border-color: rgba(192,132,252,0.25);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 8px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
  background: rgba(192,132,252,0.08);
}
.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
}
.nav-cta:hover { opacity: 1; filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,237,0.4); }

/* mobile menu */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 6px; position: relative;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-mid);
  position: absolute; left: 4px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(6,0,15,0.97);
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .3s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: 14px 16px; }
  .nav-links { gap: 8px; }
}
/* hide old nav-links when new nav-menu is used */
.nav-inner:has(.nav-menu) .nav-links { display: none; }
.nav-inner:has(.nav-menu) .nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-inner:has(.nav-menu) .nav-toggle { display: block; }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important;
  z-index: 0; display: block; pointer-events: none;
}
.hero-overlay,
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(ellipse 50% 45% at 50% 45%, rgba(6,0,15,0.35) 0%, rgba(6,0,15,0.65) 60%, rgba(6,0,15,0.9) 100%),
    linear-gradient(to bottom, rgba(6,0,15,0.1) 0%, rgba(6,0,15,0.15) 50%, rgba(6,0,15,1) 95%);
}
.hero-bg {
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124,58,237,0.18), transparent),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(232,121,249,0.07), transparent),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(124,58,237,0.05), transparent);
}
/* Frozen explosion emoji */
.hero-icons {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none; overflow: hidden;
}
.hero-icon {
  position: absolute;
  top: 50%; left: 50%;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: calc(var(--s) * 1.6rem);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  opacity: 0.35;
  filter: drop-shadow(0 0 12px rgba(192,132,252,0.3));
  transition: transform 0.1s linear;
  will-change: transform;
  line-height: 1;
  user-select: none;
}
.hero-content { position: relative; z-index: 5; max-width: 800px; }
@media (max-width: 768px) {
  .hero-icon { opacity: 0.2; font-size: calc(var(--s) * 1rem); }
}
@media (max-width: 480px) {
  .hero-icons { display: none; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(192,132,252,0.3);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--purple);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:.4; } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(124,58,237,0.5); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(192,132,252,0.08);
  border-color: var(--purple);
}
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }

/* ─── SECTIONS ─── */
.section {
  padding: 100px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-wide {
  padding: 100px 24px;
}
.section-dark { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── CARDS / GRID ─── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,0.12);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── FEATURE BLOCKS ─── */
.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-visual {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 4rem;
}
.feature-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-mid);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .feature-row, .feature-row:nth-child(even) {
    flex-direction: column;
    gap: 32px;
  }
}

/* ─── BENTO GRID ─── */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .3s, transform .3s;
}
.bento-item:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}
.bento-item.span-2 { grid-column: span 2; }
.bento-item.span-3 { grid-column: span 3; }
.bento-item.span-full { grid-column: 1 / -1; }
.bento-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.bento-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.bento-item p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2,1fr); } .bento-item.span-3 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento-item.span-2, .bento-item.span-3 { grid-column: span 1; } }

/* ─── COMPARISON TABLE ─── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(192,132,252,0.1);
}
.compare-table th {
  color: var(--purple);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.compare-table td { color: var(--text-mid); }
.compare-table tr:hover td { background: rgba(124,58,237,0.08); }
.compare-table td:first-child { font-weight: 500; color: var(--text); }
.compare-check { color: #22c55e; font-weight: 700; }
.compare-x { color: rgba(255,255,255,0.35); }

/* ─── STATS ─── */
.stats { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; padding: 48px 0; }
.stat { text-align: center; }
.stat-num {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ─── TABS ─── */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; flex-wrap: wrap; }
.tab {
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(124,58,237,0.08);
  color: var(--text-mid);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s;
}
.tab:hover { border-color: var(--border); }
.tab.active {
  background: rgba(124,58,237,0.2);
  color: var(--purple);
  border-color: var(--purple);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── ACCORDION / FAQ ─── */
.faq-item {
  border-bottom: 1px solid rgba(192,132,252,0.1);
}
.faq-q {
  width: 100%;
  padding: 20px 0;
  background: none; border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 0 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── CTA SECTION ─── */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(124,58,237,0.15), transparent);
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid rgba(192,132,252,0.1);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.85rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 1px solid rgba(192,132,252,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-mid);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15,0,30,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color .2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(192,132,252,0.3);
}
.form-inline {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.form-inline .form-input { flex: 1; border-radius: 999px; padding: 14px 24px; }
.form-inline .btn { border-radius: 999px; }

/* ─── ARTICLE / BLOG ─── */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 24px 100px;
}
.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.article-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(192,132,252,0.1);
}
.article h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.article p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.article ul, .article ol {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 24px;
}
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 3px solid var(--purple);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(124,58,237,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-mid);
  font-style: italic;
}
.article code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(124,58,237,0.12);
  padding: 2px 8px;
  border-radius: 4px;
}
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 40px;
}
.article-toc h4 {
  font-size: 0.9rem;
  color: var(--purple);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article-toc ol { padding-left: 20px; }
.article-toc li { margin-bottom: 6px; }
.article-toc a { color: var(--text-mid); font-size: 0.95rem; }

/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  padding: calc(var(--nav-h) + 24px) 24px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* ─── PRICING ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: border-color .3s, transform .3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(124,58,237,0.2), 0 0 80px rgba(124,58,237,0.08), inset 0 1px 0 rgba(192,132,252,0.15);
  background: linear-gradient(180deg, rgba(124,58,237,0.06) 0%, var(--bg-card) 40%);
  position: relative;
}
.pricing-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 48px rgba(124,58,237,0.3), 0 0 96px rgba(124,58,237,0.1), inset 0 1px 0 rgba(192,132,252,0.2);
}
.pricing-card.featured::before {
  content: 'Популярный';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
}
.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 16px 0;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.pricing-features {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(192,132,252,0.06);
  color: var(--text-mid);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } .pricing-card.featured { order: -1; } }

/* ─── TIMELINE ─── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--deep-purple), var(--magenta));
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -37px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--bg);
}
.timeline-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 4px;
}
.timeline-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.timeline-item p { color: var(--text-dim); font-size: 0.95rem; }

/* ─── MISC ─── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(124,58,237,0.12);
  color: var(--purple);
  border: 1px solid rgba(192,132,252,0.2);
}
.divider {
  width: 100%;
  height: 1px;
  background: rgba(192,132,252,0.1);
  margin: 80px 0;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.hidden { display: none; }

/* ─── AURORA BG ─── */
.aurora {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: -1;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: aurora-float 20s ease-in-out infinite;
  will-change: transform;
}
.aurora-blob:nth-child(1) {
  width: 600px; height: 600px;
  background: rgba(124,58,237,0.3);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.aurora-blob:nth-child(2) {
  width: 500px; height: 500px;
  background: rgba(232,121,249,0.2);
  top: 50%; right: -150px;
  animation-delay: -7s;
}
.aurora-blob:nth-child(3) {
  width: 400px; height: 400px;
  background: rgba(124,58,237,0.2);
  bottom: -100px; left: 30%;
  animation-delay: -14s;
}
@keyframes aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(124,58,237,0.2), transparent);
}
.page-header-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── FOCUS-VISIBLE ─── */
a:focus-visible, .btn:focus-visible, .tab:focus-visible, .faq-q:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 2px;
}
.form-input:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
a.card:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
a.card { color: inherit; }
.nav-links a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: var(--radius-sm); }
.footer-col a:focus-visible, .nav-logo:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ─── FAQ HOVER ─── */
.faq-q:hover { color: var(--purple); }

/* ─── MOBILE STATS ─── */
@media (max-width: 600px) {
  .stats { gap: 32px; padding: 32px 0; }
  .stat-num { font-size: 2.25rem; }
  .feature-visual { min-height: 200px; font-size: 3rem; padding: 24px; }
}

/* ─── SELECTION & SCROLLBAR ─── */
::selection { background: rgba(192,132,252,0.3); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(192,132,252,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(192,132,252,0.4); }
@supports (scrollbar-color: auto) { html { scrollbar-color: rgba(192,132,252,0.2) var(--bg); scrollbar-width: thin; } }

/* ─── TOUCH DEVICE ─── */
@media (hover: none) {
  .card:hover, .bento-item:hover, .pricing-card:hover { transform: none; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-badge .dot { animation: none; }
  .hero-canvas { opacity: 0.3; }
}

/* ─── SELECT STYLING ─── */
select.form-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c084fc' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}

/* ─── COMPARE TABLE MOBILE ─── */
@media (max-width: 600px) { .compare-table { font-size: 0.85rem; } .compare-table th, .compare-table td { padding: 10px 12px; white-space: nowrap; } }
.table-scroll-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.table-scroll-wrapper::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(to right, transparent, var(--bg)); pointer-events: none; }

/* ─── SECTION COMPACT ─── */
.section-compact { padding: 64px 24px; max-width: var(--max-w); margin: 0 auto; }

/* ─── STAGGER DELAYS ─── */
.hero-actions .btn:nth-child(2) { transition-delay: 0.1s; }

/* ─── MEGA NAV WITH DROPDOWNS ─── */
.nav-inner {
  gap: 16px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--purple);
  background: rgba(192,132,252,0.08);
}
.nav-menu > li > a .nav-arrow {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.nav-menu > li > a .nav-arrow::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}
.nav-menu > li:hover > a .nav-arrow { transform: rotate(180deg); }

/* dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 240px;
  background: rgba(13, 5, 32, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 12px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 60px rgba(124,58,237,0.1);
}
.nav-menu > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 400;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.nav-dropdown a:hover {
  background: rgba(192,132,252,0.1);
  color: var(--text);
}
.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,0.12);
  border-radius: 8px;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.nav-dropdown-text {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
}
.nav-dropdown-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(192,132,252,0.1);
  margin: 8px 0;
}

/* nav auth buttons */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-btn-login {
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-btn-login:hover {
  color: var(--purple);
  background: rgba(192,132,252,0.08);
}
.nav-btn-signup {
  display: inline-flex;
  align-items: center;
  background: var(--gradient);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.nav-btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  color: #fff;
}

/* mobile nav overrides */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6,0,15,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
    z-index: 150;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li > a {
    font-size: 1.05rem;
    padding: 12px 16px;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    background: rgba(124,58,237,0.04);
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    display: none;
    backdrop-filter: none;
  }
  .nav-menu > li.open .nav-dropdown {
    display: block;
  }
  .nav-menu > li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-auth {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(192,132,252,0.1);
    justify-content: center;
    gap: 12px;
  }
  .nav-auth-desktop { display: none; }
}
@media (min-width: 1025px) {
  .nav-toggle { display: none; }
  .nav-auth-mobile { display: none; }
}

/* ─── KEY ACCESS BLOCK ─── */
.key-access {
  text-align: center;
  padding: 48px 24px;
  margin: 0 24px;
  max-width: calc(var(--max-w) - 48px);
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(232,121,249,0.06));
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.key-access::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(192,132,252,0.15), transparent 60%);
  pointer-events: none;
}
.key-access-content {
  position: relative;
  z-index: 1;
}
.key-access h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.key-access p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.key-access .key-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

/* ─── CTA MODAL FORM ─── */
.cta-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,0,15,0.85);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 16px;
}
.cta-modal-overlay.open { opacity: 1; visibility: visible; }
.cta-modal {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%; max-width: 480px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform .3s;
  box-shadow: 0 24px 80px rgba(124,58,237,0.25);
}
.cta-modal-overlay.open .cta-modal { transform: translateY(0) scale(1); }
.cta-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
  transition: color .2s;
}
.cta-modal-close:hover { color: #fff; }
.cta-modal h3 {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 4px;
}
.cta-modal .cta-modal-desc {
  color: var(--text-dim); font-size: 0.9rem;
  margin-bottom: 20px;
}
.cta-modal .form-group { margin-bottom: 14px; }
.cta-modal .form-group label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--text-dim); margin-bottom: 4px;
}
.cta-modal .form-input {
  width: 100%; padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(192,132,252,0.2);
  color: #fff; font-size: 0.95rem;
  font-family: var(--font);
  outline: none; transition: border-color .2s;
}
.cta-modal .form-input:focus {
  border-color: var(--purple);
}
.cta-modal .form-input::placeholder { color: rgba(255,255,255,0.3); }
.cta-modal textarea.form-input { resize: vertical; min-height: 60px; }
.cta-modal .g-recaptcha { margin: 12px 0; }
.cta-modal .btn-primary {
  width: 100%; padding: 12px;
  font-size: 1rem; margin-top: 4px;
}
.cta-modal .cta-modal-note {
  text-align: center; font-size: 0.75rem;
  color: rgba(255,255,255,0.4); margin-top: 10px;
}
@media (max-width: 480px) {
  .cta-modal { padding: 24px 20px; }
}
