/* dark-override.css v2 — final say. Loaded LAST. Forces premium dark theme + readability. */

:root,
:root[data-theme="dark"],
:root[data-theme="light"],
html, html[data-theme="dark"], html[data-theme="light"] {
  --bg: #0b0f1a !important;
  --bg-alt: #131826 !important;
  --bg-light: #0b0f1a !important;
  --bg-dark: #0b0f1a !important;
  --bg-primary: #0b0f1a !important;
  --bg-secondary: #131826 !important;
  --bg-tertiary: #1a2030 !important;
  --card-bg: rgba(20, 26, 42, 0.72) !important;
  --card-background: rgba(20, 26, 42, 0.72) !important;
  --surface: #131826 !important;
  --surface-alt: #1a2030 !important;
  --text: #e7ecf5 !important;
  --text-light: #e7ecf5 !important;
  --text-dark: #e7ecf5 !important;
  --text-primary: #f4f6fb !important;
  --text-secondary: #b9c2d6 !important;
  --text-muted: #8892a8 !important;
  --heading-color: #ffffff !important;
  --border: rgba(255,255,255,0.08) !important;
  --border-color: rgba(255,255,255,0.08) !important;
  --divider: rgba(255,255,255,0.06) !important;
  --primary: #7c89ff !important;
  --primary-light: #a4adff !important;
  --primary-dark: #5663d8 !important;
  --secondary-color: #22d3ee !important;
  --accent: #22d3ee !important;
  --link-color: #8aa1ff !important;
  color-scheme: dark !important;
}

html, body {
  background: #0b0f1a !important;
  color: #e7ecf5 !important;
}

/* Section base — subtle gradient so they aren't pitch black slabs */
section, .section,
.hero-section, .vigthoria-products-section, .support-section,
.pricing-section, .ecosystem-visualization, .avatar-showcase-section {
  background: linear-gradient(180deg, #0b0f1a 0%, #0f1424 50%, #0b0f1a 100%) !important;
  color: #e7ecf5 !important;
  position: relative;
}
.vigthoria-products-section + .vigthoria-products-section,
section + section { border-top: 1px solid rgba(255,255,255,0.04); }

/* Containers stay transparent */
.container, .row, .hero-content, .hero-cta, .hero-visual,
.products-bg-effects, .ecosystem-bg, .ecosystem-container,
.section-header, .footer-content, .footer-top, .footer-bottom {
  background: transparent !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 { color: #ffffff !important; }
.section-header h2, .solar-system-header h2 { color:#ffffff !important; }
.section-header p, .solar-system-header p { color:#b9c2d6 !important; }

/* Body text */
p, li, span:not([class*="badge"]):not([class*="tag"]):not([class*="pill"]):not([class*="gradient"]) {
  color: #cfd6e6;
}

/* Anchors */
a, a:link, a:visited { color: #8aa1ff; }
a:hover { color: #b3c0ff; }

/* ---- footer link color hard-resets (kills inline #007ACC etc.) ---- */
.footer a, .footer-section a, .footer-section li a,
.footer-section a[style], .footer-section li a[style] {
  color: #b9c2d6 !important;
  transition: color .2s ease;
}
.footer a:hover { color: #ffffff !important; }

/* Product cards */
.product-card, .feature-card, .info-card, .glass-card {
  background: linear-gradient(160deg, rgba(124,137,255,0.07), rgba(34,211,238,0.03)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #e7ecf5 !important;
}
.product-card h3, .product-card h4, .feature-card h3, .feature-card h4 { color:#fff !important; }
.product-card p, .feature-card p, .product-card .product-description, .product-card .slogan {
  color:#b9c2d6 !important;
}
.product-card .product-url { color:#8aa1ff !important; font-weight:600; }
.product-card .feature-list li { color:#cfd6e6 !important; }
.product-card .feature-list li::before { color:#22d3ee !important; }

/* Avatar cards (re-stated from earlier patch + tag pills with white text) */
.avatar-card {
  cursor: pointer;
  border-radius: 18px !important;
  background: linear-gradient(160deg, rgba(124,137,255,0.10), rgba(34,211,238,0.04)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  padding: 1.25rem !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.avatar-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(124,137,255,0.45) !important;
  box-shadow: 0 18px 40px -12px rgba(124,137,255,0.35), 0 8px 20px -10px rgba(34,211,238,0.25);
}
.avatar-card:focus-visible { outline: 2px solid #7c89ff; outline-offset: 3px; }
.avatar-card img {
  border-radius: 14px; display:block; width:100%; height:auto;
  aspect-ratio: 1/1; object-fit: cover; background:#0b0f1a;
}
.avatar-card h3, .avatar-card h4 { color:#fff !important; margin:.85rem 0 .25rem !important; font-size:1.15rem !important; }
.avatar-card p { color:#b9c2d6 !important; font-size:.9rem !important; line-height:1.5 !important; margin:.4rem 0 .75rem !important; }

/* All tag/pill/badge with white text on tinted bg (overrides same-hue text) */
.avatar-card span[style*="rgba"],
.tag-pill, .feature-tag, .pill, .badge, .live-badge {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: .03em;
}
.avatar-card .badge, .avatar-card .live-badge {
  background: linear-gradient(135deg,#10b981,#059669) !important;
}

/* Pricing + support cards */
.pricing-section .card, .pricing-cta-section,
.support-section .card, .glass-card {
  background: linear-gradient(160deg, rgba(124,137,255,0.08), rgba(34,211,238,0.03)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color:#e7ecf5 !important;
}

/* Buttons (don't break gradient buttons that already have explicit bg) */
.btn:not([style*="gradient"]):not([style*="background"]),
button:not([style*="gradient"]):not([style*="background"]):not(.theme-toggle):not(.simple-theme-toggle) {
  background: linear-gradient(135deg,#7c89ff,#22d3ee) !important;
  color:#fff !important;
  border:none;
}
.btn-secondary, .btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color:#e7ecf5 !important;
}

/* Theme toggle UI nuke (already done by JS, belt+braces) */
#theme-toggle, .theme-toggle, .simple-theme-toggle, .simpler-theme-toggle,
[data-theme-toggle] { display:none !important; }

/* Sticky/scrolled header — kill any white pane */
header, .header, .site-header, .nav, nav.scrolled, header.scrolled {
  background: rgba(11,15,26,0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  color:#e7ecf5 !important;
}
.nav a, header a, .nav-links a { color:#cfd6e6 !important; }
.nav a:hover, header a:hover { color:#fff !important; }

/* Footer baseline */
.footer { background: #07090f !important; border-top: 1px solid rgba(255,255,255,0.05); }
.footer h3, .footer h4 { color:#fff !important; }
.footer p, .footer li { color:#8892a8 !important; }
.footer-bottom { color:#6b7488 !important; }

/* Selection */
::selection { background:#7c89ff; color:#fff; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(124,137,255,0.5) transparent; }
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background: #0b0f1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#3a4470,#22d3ee); border-radius:10px; }

/* ============================================================ */
/* Phase 4 — kill remaining light bleed-through                 */
/* ============================================================ */

/* Header / nav — force dark, no scrolled-white state */
header, .header, .site-header, .navbar, nav.main-nav,
.header.scrolled, header.scrolled, .navbar.scrolled, .site-header.scrolled,
.header[class*="light"], .site-header[class*="light"],
[data-theme="light"] .header, [data-theme="light"] header,
[data-theme="light"] .navbar, [data-theme="light"] .site-header {
  background: rgba(7, 9, 15, 0.85) !important;
  background-color: rgba(7, 9, 15, 0.85) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  color: #e7ecf5 !important;
  box-shadow: 0 4px 20px -10px rgba(0,0,0,0.6) !important;
}
header *, .header *, .site-header *, .navbar *, nav.main-nav * {
  color: #cfd6e6;
}
header a:hover, .header a:hover, .nav a:hover, .navbar a:hover { color:#fff !important; }
.brand, .logo, .site-logo, .header-logo { color:#fff !important; }

/* The "Get Started" / primary nav CTA - keep gradient */
.btn-primary, .btn.btn-primary, .nav .btn, header .btn, .header .btn,
a.btn-get-started, .get-started {
  background: linear-gradient(135deg,#7c89ff,#22d3ee) !important;
  color: #fff !important;
  border: none !important;
}

/* Support cards (Documentation, Help Center, Community, What's New) */
.support-card, .support-section .support-card,
[data-theme="light"] .support-card,
.pricing-cta-section, .pricing-cta-section .card,
.pricing-cta-section [class*="card"],
.pricing-cta, .cta-card, .info-card,
.feature-grid > *, .features-grid > *, .feature-card,
.docs-card, .help-card, .community-card, .updates-card {
  background: linear-gradient(160deg, rgba(124,137,255,0.08), rgba(34,211,238,0.03)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #e7ecf5 !important;
  border-radius: 16px !important;
}
.support-card *, .pricing-cta-section *, .pricing-cta-section .card *,
.feature-card *, .features-grid > * *, .info-card * {
  color: #cfd6e6 !important;
}
.support-card h1, .support-card h2, .support-card h3, .support-card h4,
.pricing-cta-section h1, .pricing-cta-section h2, .pricing-cta-section h3,
.pricing-cta-section h4, .feature-card h1, .feature-card h2,
.feature-card h3, .feature-card h4, .info-card h3, .info-card h4 {
  color: #ffffff !important;
}
.support-card a, .pricing-cta-section a, .feature-card a, .info-card a { color: #8aa1ff !important; }
.support-card a:hover, .pricing-cta-section a:hover, .feature-card a:hover { color:#b3c0ff !important; }
.support-card .btn-primary, .support-card a.btn-primary {
  background: linear-gradient(135deg,#7c89ff,#22d3ee) !important;
  color: #fff !important;
}

/* Light-text on light card fix — bullet items in feature lists */
.support-features li, .support-card ul li,
.pricing-cta-section ul li, .feature-card ul li, .features-grid ul li,
.feature-list li {
  color: #cfd6e6 !important;
  opacity: 1 !important;
}
.support-features li i, .support-features li .fa-check {
  color: #22d3ee !important;
}

/* Hero — tighten spacing, bring content closer */
.hero-section, .hero {
  min-height: auto !important;
  padding: 5rem 0 4rem !important;
}
.hero-content, .hero-text { padding: 0 1.5rem; }
.hero-section h1, .hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem) !important;
  line-height: 1.1 !important;
  margin: 0 0 1.25rem !important;
}
.hero-section .hero-subtitle, .hero-section p.subtitle, .hero p.lead {
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
  color: #b9c2d6 !important;
  max-width: 620px;
  margin: 0 0 2rem !important;
}

/* Universe section — reduce padding so text & viz feel connected */
#ecosystem-3d {
  padding: 3.5rem 0 3rem !important;
  min-height: auto !important;
}
#ecosystem-3d .ecosystem-3d-header { margin-bottom: 1rem !important; }
#ecosystem-3d .ecosystem-3d-header h2 { margin-bottom: .6rem !important; }
#ecosystem-3d .ecosystem-3d-header p {
  font-size: 1.02rem !important;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
#ecosystem-3d-canvas-wrap {
  height: 480px !important;
  margin-top: 0.5rem !important;
}
#ecosystem-3d .ecosystem-3d-cta { margin-top: 1.5rem !important; }

/* Avatar cards — restored 10 grid, premium visual treatment */
.avatar-card {
  cursor: pointer;
  border-radius: 18px !important;
  background: linear-gradient(160deg, rgba(124,137,255,0.10), rgba(34,211,238,0.04)) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  padding: 1rem !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.avatar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,137,255,0.5) !important;
  box-shadow: 0 22px 50px -12px rgba(124,137,255,0.4), 0 8px 20px -10px rgba(34,211,238,0.25);
}
.avatar-card .avatar-image-wrap,
.avatar-card > div:first-child {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0b0f1a;
}
.avatar-card img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
  filter: saturate(0.95) contrast(1.05);
}
.avatar-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.08);
}
/* Subtle gradient mask over image — kills the "AI plastic" look */
.avatar-card .avatar-image-wrap::after,
.avatar-card > div:first-child::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(11,15,26,0.55) 100%),
    radial-gradient(circle at 50% 30%, transparent 50%, rgba(11,15,26,0.25) 100%);
  pointer-events: none;
}
.avatar-card h3, .avatar-card h4 {
  color: #fff !important;
  font-size: 1.1rem !important;
  margin: .85rem 0 .25rem !important;
  letter-spacing: -0.01em;
}
.avatar-card .role,
.avatar-card > p:first-of-type {
  color: #8aa1ff !important;
  font-size: .8rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .5rem !important;
}
.avatar-card p {
  color: #b9c2d6 !important;
  font-size: .85rem !important;
  line-height: 1.5 !important;
}

/* LIVE badge stays on top-right of image, no longer plastic-pink */
.avatar-card .live-badge,
.avatar-card span[class*="LIVE"],
.avatar-card .badge {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  background: linear-gradient(135deg,#10b981,#059669) !important;
  color: #fff !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  padding: 0.25rem 0.55rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px -4px rgba(16,185,129,0.5);
  z-index: 2;
}
.avatar-card .live-badge::before {
  content: "● ";
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* Footer — solid, premium */
.footer { background: #050709 !important; padding-top: 3rem !important; }
.footer h3, .footer h4, .footer-section h3, .footer-section h4 {
  color: #fff !important;
  font-size: 0.95rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================ */
/* Phase 5 — hero, universe spacing, product cards, avatars 3   */
/* ============================================================ */

.hero-section {
  position: relative;
  min-height: 88vh !important;
  padding: 6rem 0 4rem !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  overflow: hidden;
}
.hero-wrap {
  position: relative; z-index: 2;
  max-width: 980px; width: 100%;
  margin: 0 auto; padding: 0 1.5rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1.1rem; border-radius: 999px;
  background: rgba(124,137,255,.10);
  border: 1px solid rgba(124,137,255,.30);
  color: #b3c0ff; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.75rem; backdrop-filter: blur(8px);
}
.hero-eyebrow .eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 10px #10b981;
  animation: heroDotPulse 1.6s ease-in-out infinite;
}
@keyframes heroDotPulse { 0%,100%{opacity:.4} 50%{opacity:1} }

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem) !important;
  line-height: 1.02 !important;
  margin: 0 0 1.5rem !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important; font-weight: 800 !important;
}
.hero-title-grad {
  background: linear-gradient(135deg, #7c89ff 0%, #a78bfa 35%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 30px rgba(124,137,255,.35));
}
.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important;
  line-height: 1.65 !important;
  color: #cfd6e6 !important;
  max-width: 760px; margin: 0 auto 2.5rem !important;
}

.hero-cta-row {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-cta-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2rem; border-radius: 999px;
  background: linear-gradient(135deg, #7c89ff 0%, #22d3ee 100%);
  color: #fff !important; font-weight: 700;
  text-decoration: none; font-size: 1.05rem;
  box-shadow: 0 18px 40px -12px rgba(124,137,255,.55), 0 0 30px -5px rgba(34,211,238,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-cta-primary:hover { transform: translateY(-2px);
  box-shadow: 0 22px 50px -10px rgba(124,137,255,.7), 0 0 40px -5px rgba(34,211,238,.55); }
.hero-cta-secondary {
  display: inline-flex; align-items: center;
  padding: 1rem 1.8rem; border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #ffffff !important; font-weight: 600;
  text-decoration: none; font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,.28);
  transition: all .2s ease;
}
.hero-cta-secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color:#ffffff !important; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  max-width: 720px; margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 800;
  background: linear-gradient(135deg, #7c89ff, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: .72rem; color: #8892a8;
  text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem;
}
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2,1fr); gap: 1.25rem; } }

.hero-orb-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124,137,255,.20), transparent 60%),
    radial-gradient(ellipse 40% 35% at 30% 30%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(ellipse 40% 35% at 75% 65%, rgba(167,139,250,.16), transparent 60%);
  animation: heroOrb 18s ease-in-out infinite alternate;
  filter: blur(40px);
}
@keyframes heroOrb {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.08) translate(2%,-1%); }
  100% { transform: scale(1.04) translate(-2%,1%); }
}

/* Universe — tighter top gap */
#ecosystem-3d { padding: 2.5rem 0 3rem !important; }
#ecosystem-3d .ecosystem-3d-header { margin-bottom: .25rem !important; }
#ecosystem-3d .ecosystem-3d-header h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem) !important; margin-bottom: .5rem !important; }
#ecosystem-3d .ecosystem-3d-header p { font-size: .98rem !important; max-width:600px !important; margin: .25rem auto 0 !important; }
#ecosystem-3d-canvas-wrap { height: 520px !important; margin-top: -0.5rem !important; }

/* Product card description boxes — kill light bg with light text */
.product-card .product-description,
.product-card > p,
.product-card .description,
.product-card .description-box,
.product-card [class*="description"],
.product-card [class*="summary"],
.product-card .slogan-box,
.product-card .product-tagline {
  background: linear-gradient(160deg, rgba(124,137,255,.10), rgba(34,211,238,.04)) !important;
  color: #d6dceb !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  padding: 1rem 1.25rem !important;
}
.product-card [style*="background: white"],
.product-card [style*="background:#fff"],
.product-card [style*="background: #fff"],
.product-card [style*="background-color: white"],
.product-card [style*="background-color:#fff"],
.product-card [style*="background-color: #fff"],
.product-card [style*="rgba(255,255,255"],
.product-card [style*="rgba(248"],
.product-card [style*="rgba(245"],
.product-card [style*="rgba(240"] {
  background: linear-gradient(160deg, rgba(124,137,255,.10), rgba(34,211,238,.04)) !important;
  color: #d6dceb !important;
}

/* Avatar showcase — 3-column intentional layout */
.avatar-showcase-section .row,
.avatar-showcase-section [class*="row"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 1.5rem !important;
  max-width: 1100px;
  margin: 1.5rem auto 0 !important;
}
@media (max-width: 880px) {
  .avatar-showcase-section .row,
  .avatar-showcase-section [class*="row"] { grid-template-columns: 1fr !important; max-width: 480px; }
}

/* Phase 5b — hero polish refinements */
.hero-stats { grid-template-columns: 0.8fr 1.4fr 0.8fr 0.8fr !important; }
@media (max-width:640px){ .hero-stats { grid-template-columns: repeat(2,1fr) !important; } }
.hero-stat-num { white-space: nowrap; }

/* Hero background — replace flat orbs with layered cosmic field */
.hero-section {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(124,137,255,.10), transparent 55%),
    linear-gradient(180deg, #060816 0%, #0a0e22 40%, #060816 100%) !important;
}
.hero-orb-bg {
  background:
    radial-gradient(circle at 20% 30%, rgba(124,137,255,.22), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(34,211,238,.18), transparent 35%),
    radial-gradient(circle at 60% 20%, rgba(167,139,250,.16), transparent 35%),
    radial-gradient(circle at 30% 80%, rgba(236,72,153,.10), transparent 30%) !important;
  filter: blur(60px) !important;
  opacity: .85;
}
/* Starfield overlay */
.hero-section::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 75% 65%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 20%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 55% 15%, #fff, transparent),
    radial-gradient(1px 1px at 85% 85%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 25% 55%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 65% 45%, #fff, transparent),
    radial-gradient(1px 1px at 5% 40%, rgba(255,255,255,.6), transparent);
  background-size: 100% 100%;
  animation: starTwinkle 6s ease-in-out infinite alternate;
  opacity: .65;
}
@keyframes starTwinkle { 0%{opacity:.4} 100%{opacity:.85} }
/* Subtle grid for tech feel */
.hero-section::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:
    linear-gradient(rgba(124,137,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,137,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

/* Phase 5c — force secondary CTA visible (override any cascade) */
a.hero-cta-secondary,
.hero-section a.hero-cta-secondary,
.hero-cta-row a.hero-cta-secondary,
.hero-section .hero-cta-row a.hero-cta-secondary {
  color: #ffffff !important;
  background: rgba(255,255,255,.10) !important;
  border: 1.5px solid rgba(255,255,255,.45) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
a.hero-cta-secondary:hover,
.hero-section a.hero-cta-secondary:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.7) !important;
  color: #ffffff !important;
}

/* Phase 5d — real animated hero particle field */
.hero-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  display: block;
}
.hero-section::before { display: none !important; }
.hero-orb-bg {
  background:
    radial-gradient(circle at 20% 25%, rgba(124,137,255,.35), transparent 40%),
    radial-gradient(circle at 80% 75%, rgba(34,211,238,.30), transparent 40%),
    radial-gradient(circle at 65% 15%, rgba(167,139,250,.28), transparent 40%),
    radial-gradient(circle at 30% 85%, rgba(236,72,153,.18), transparent 35%) !important;
  filter: blur(70px) !important;
  opacity: 1 !important;
  animation: heroOrb 20s ease-in-out infinite alternate;
}
.hero-section { background: linear-gradient(180deg, #04060f 0%, #0a0e22 50%, #04060f 100%) !important; }

/* Phase 5e — fix canvas z-stacking */
.hero-particles { z-index: 2 !important; }
.hero-orb-bg    { z-index: 1 !important; }
.hero-section .hero-wrap { z-index: 3 !important; position: relative; }
/* Ensure hero is large enough on mobile and on huge monitors */
.hero-section { min-height: 92vh !important; }

/* ============================================================
   Phase 6 — Product Page Canonical Polish (v=20260428g)
   Lifts every product subpage to landing-tier aesthetic.
   Applies to .hero, .showcase-hero, .section, .cta-section,
   .feature-card, .pricing-card, etc.
   ============================================================ */

/* Body baseline on product pages — match landing dark gradient */
body {
    background:
        radial-gradient(ellipse 1200px 800px at 20% 10%, rgba(124, 58, 237, 0.18), transparent 60%),
        radial-gradient(ellipse 1000px 700px at 80% 30%, rgba(34, 211, 238, 0.12), transparent 60%),
        linear-gradient(180deg, #0a0a14 0%, #050510 100%) !important;
    color: #e8eaf6 !important;
    min-height: 100vh;
}

/* Universal hero (works for both .hero and .showcase-hero) */
.hero,
.showcase-hero {
    position: relative !important;
    overflow: hidden !important;
    padding: 8rem 1.5rem 6rem !important;
    background:
        radial-gradient(ellipse 900px 600px at 50% 0%, rgba(124, 58, 237, 0.30), transparent 60%),
        radial-gradient(ellipse 700px 500px at 20% 100%, rgba(34, 211, 238, 0.20), transparent 60%),
        radial-gradient(ellipse 700px 500px at 80% 100%, rgba(236, 72, 153, 0.15), transparent 60%) !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.18) !important;
}
.hero::before,
.showcase-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 75% 65%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 45% 85%, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 100px 100px;
    pointer-events: none;
    opacity: 0.6;
}
.hero > *,
.showcase-hero > * {
    position: relative;
    z-index: 2;
}
.hero h1,
.showcase-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #67e8f9 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin: 0 0 1.25rem !important;
    text-align: center;
}
.hero > p,
.hero .lead,
.showcase-hero > p,
.showcase-hero .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
    color: rgba(232, 234, 246, 0.78) !important;
    max-width: 780px !important;
    margin: 0 auto 2rem !important;
    text-align: center;
    line-height: 1.6;
}

/* Generic content sections */
section.section,
section.section-alt,
section.download-section,
section.features-section,
section.commands-section,
section.docs-section,
section.showcase-section,
section.pricing-section {
    padding: 5rem 1.5rem !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.10);
}
section.section-alt {
    background: linear-gradient(180deg, rgba(124,58,237,0.04), rgba(34,211,238,0.03)) !important;
}
section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-align: center;
    margin: 0 0 2.5rem !important;
}

/* Feature / pricing / capability / actor cards — glassmorphic */
.feature-card,
.pricing-card,
.capability-card,
.payment-card,
.module-card,
.command-card,
.actor-card,
.avatar-card,
.music-card,
.spotify-card,
.product-card,
.docs-card,
.related-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)) !important;
    border: 1px solid rgba(124, 58, 237, 0.22) !important;
    border-radius: 16px !important;
    padding: 1.75rem !important;
    color: #e8eaf6 !important;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease !important;
    backdrop-filter: blur(8px);
}
.feature-card:hover,
.pricing-card:hover,
.capability-card:hover,
.payment-card:hover,
.module-card:hover,
.command-card:hover,
.actor-card:hover,
.avatar-card:hover,
.music-card:hover,
.product-card:hover,
.docs-card:hover,
.related-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(124, 58, 237, 0.55) !important;
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.25) !important;
}
.feature-card h3,
.pricing-card h3,
.capability-card h3,
.module-card h3,
.payment-card h3,
.command-card h3,
.actor-card h3,
.product-card h3,
.docs-card h3 {
    color: #fff !important;
    font-weight: 700 !important;
    margin: 0 0 .75rem !important;
}
.feature-card p,
.pricing-card p,
.capability-card p,
.module-card p,
.payment-card p,
.command-card p,
.actor-card p,
.product-card p,
.docs-card p {
    color: rgba(232, 234, 246, 0.75) !important;
    line-height: 1.55 !important;
}

/* CTA section — landing-grade */
section.cta-section,
.cta-section {
    padding: 6rem 1.5rem !important;
    text-align: center !important;
    background:
        radial-gradient(ellipse 800px 400px at 50% 50%, rgba(124, 58, 237, 0.28), transparent 65%),
        linear-gradient(180deg, rgba(10,10,20,0.4), rgba(5,5,16,0.6)) !important;
    border-top: 1px solid rgba(124, 58, 237, 0.20);
    border-bottom: 1px solid rgba(124, 58, 237, 0.20);
}
.cta-section h2 {
    color: #fff !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
    margin-bottom: 1rem !important;
}
.cta-section p {
    color: rgba(232,234,246,0.78) !important;
    font-size: 1.15rem !important;
    max-width: 640px !important;
    margin: 0 auto 2rem !important;
}
.cta-section .btn,
.cta-section a.btn,
.cta-section button {
    display: inline-block;
    padding: 1rem 2.25rem !important;
    margin: .5rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
    border: none !important;
    cursor: pointer;
}
.cta-section .btn-primary,
.cta-section a.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35) !important;
}
.cta-section .btn-primary:hover,
.cta-section a.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.5) !important;
}
.cta-section .btn-secondary,
.cta-section a.btn-secondary {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.30) !important;
}
.cta-section .btn-secondary:hover,
.cta-section a.btn-secondary:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.55) !important;
}

/* Hero CTA buttons (inside .hero, not .cta-section) */
.hero .btn,
.hero a.btn,
.showcase-hero .btn,
.showcase-hero a.btn {
    display: inline-block;
    padding: 1rem 2.25rem !important;
    margin: .35rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}
.hero .btn-primary,
.showcase-hero .btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35) !important;
    border: none !important;
}
.hero .btn-secondary,
.showcase-hero .btn-secondary {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.30) !important;
}
.hero .btn:hover,
.showcase-hero .btn:hover {
    transform: translateY(-2px);
}

/* Code blocks / commands look (cli pages) */
.command-card code,
.commands-section code,
pre code {
    background: rgba(0,0,0,0.55) !important;
    color: #67e8f9 !important;
    border: 1px solid rgba(34, 211, 238, 0.25) !important;
    border-radius: 8px;
    padding: .25rem .5rem;
    font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
}
pre {
    background: rgba(0,0,0,0.55) !important;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    overflow-x: auto;
}

/* End Phase 6 */

/* ------------------------------------------------------------------ */
/* Phase 6.1 — Product subpage hero/nav fix (vigthoria-code.html etc) */
/* ------------------------------------------------------------------ */

/* Fix A: ensure inner .gradient span paints its own gradient, even when
   parent h1 also has gradient-clip applied. */
.hero h1 .gradient,
.showcase-hero h1 .gradient,
section h1 .gradient,
section h2 .gradient {
    background: linear-gradient(135deg,#fff,#c4b5fd,#67e8f9) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block;
}

/* Fix B: when a page has BOTH a fixed global .header AND a page-local
   fixed .product-page-nav / .nav, give the hero enough top space to clear
   them. Override the conflicting style-fixes.css rule. */
body .hero,
body .showcase-hero {
    margin-top: 0 !important;
    padding-top: 160px !important;   /* 70px global header + ~80px product nav + breathing room */
    padding-bottom: 80px !important;
    position: relative;
    z-index: 1;
}

/* Make sure the page-local product nav doesn't sit ON TOP of hero text */
.product-page-nav,
nav.nav[role="navigation"],
nav.nav.product-nav {
    z-index: 90 !important;
}

/* Safety: any plain h1/h2 inside hero/sections must remain visible even
   if the gradient-clip fails to paint (older Chromium, certain GPU paths). */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1, .showcase-hero h1, section h1, section h2 {
        background: none !important;
        -webkit-text-fill-color: #ffffff !important;
        color: #ffffff !important;
    }
}
