:root {
  --bg: #050814;
  --bg-elevated: #0b1126;
  --bg-card: rgba(13, 21, 46, 0.86);
  --border: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --cyan: #00f2fe;
  --amber: #f59e0b;
  --magenta: #ec4899;
  --gold: #fbbf24;
  --emerald: #10b981;
  --radius: 16px;
  --max-w: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 15% 0%, rgba(0, 242, 254, 0.12), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.1), transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header & 4-Column Mega-Menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 20, 0.88);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: 0 0 14px var(--cyan);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.nav-links a:hover, .nav-trigger:hover { color: var(--text); }
.nav-dropdown { position: relative; }
.nav-trigger {
  background: none;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  padding: 10px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mega-menu {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 72px;
  width: min(1180px, calc(100vw - 32px));
  background: #091024;
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.72);
  grid-template-columns: 1.1fr 1fr 1.35fr 1fr;
  gap: 20px;
  z-index: 80;
}
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu,
.nav-dropdown.open .mega-menu { display: grid; }
.mega-col h4 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.mega-item {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.mega-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.mega-item strong { color: var(--text); display: block; font-weight: 600; }
.mega-action-card {
  background: radial-gradient(120% 120% at 0% 0%, rgba(0, 242, 254, 0.2), rgba(13, 21, 46, 0.96));
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.lang-pill.active, .lang-pill:hover {
  background: rgba(0, 242, 254, 0.16);
  color: var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #3b82f6);
  color: #040814;
}
.btn-gold {
  background: linear-gradient(135deg, #fde047, var(--amber));
  color: #080604;
}
.btn-emerald {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #03120d;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}
.btn-sm { padding: 8px 13px; font-size: 0.82rem; border-radius: 8px; }

/* Sections & Hero */
section { padding: 64px 0; }
.hero { padding: 72px 0 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--cyan);
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 auto 18px;
  max-width: 960px;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 28px;
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* 8-Step HTML/CSS/SVG Flywheel (Zero-Text-Baked-In-Images) */
.flywheel-section { padding: 48px 0 64px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin: 0 0 10px; }
.section-head p { color: var(--text-muted); max-width: 720px; margin: 0 auto; }

.flywheel-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(0, 242, 254, 0.28);
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.1), rgba(9, 15, 36, 0.94) 65%);
}
.flywheel-core-banner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  margin: 4px auto 8px;
  max-width: 480px;
}
.flywheel-core-banner h3 { margin: 0; font-size: 1.05rem; color: var(--emerald); }
.flywheel-core-banner p { margin: 2px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.flywheel-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  position: relative;
}
.flywheel-step .step-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 6px;
}
.flywheel-step h3 { margin: 0 0 6px; font-size: 1rem; }
.flywheel-step p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* Grids & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.card-cyan { border-color: rgba(0, 242, 254, 0.42); }
.card-gold { border-color: rgba(251, 191, 36, 0.45); }
.card-emerald { border-color: rgba(16, 185, 129, 0.45); }
.card-magenta { border-color: rgba(236, 72, 153, 0.45); }
.card-amber { border-color: rgba(245, 158, 11, 0.45); }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
  align-self: flex-start;
}
.card h3 { margin: 0; font-size: 1.18rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.search-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #080f22;
  color: var(--text);
  font-size: 0.98rem;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill.active {
  background: rgba(0, 242, 254, 0.16);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Product & Article Prose */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.tier-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.tier-box {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.tier-box small { display: block; color: var(--cyan); font-weight: 700; text-transform: uppercase; font-size: 0.68rem; }
.prose { max-width: 820px; margin: 0 auto; font-size: 1.03rem; }
.prose h2, .prose h3 { margin-top: 32px; }
.prose p { color: #dbe4f0; }
.prose img { max-width: 100%; border-radius: 14px; border: 1px solid var(--border); }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
}
.faq-item h4 { margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 960px) {
  .mega-menu { grid-template-columns: 1fr 1fr; max-height: 78vh; overflow-y: auto; }
  .flywheel-wrap { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .tier-strip { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .flywheel-wrap { grid-template-columns: 1fr; }
  .lang-switcher { display: none; }
}
