/* ============================================================
   ZYNYTH — Landing visual enhancement layer
   Additive polish over landing.css: ambient lighting, grain,
   depth glows, gradient-ring glass, richer hovers, live shimmer.
   Layout & copy untouched.
   ============================================================ */

/* ---------- ambient aurora + film grain on dark bands ---------- */
.dark-band { position: relative; isolation: isolate; }
.dark-band > .wrap { position: relative; z-index: 2; }

.dark-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 460px at 16% 26%, rgba(139,123,255,0.22), transparent 62%),
    radial-gradient(560px 460px at 88% 68%, rgba(244,114,216,0.16), transparent 60%),
    radial-gradient(460px 340px at 66% 8%,  rgba(56,224,218,0.12),  transparent 60%);
  animation: auroraDrift 20s ease-in-out infinite alternate;
}
.dark-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
}

/* keep the hero capability-rail divider visible above the aurora */
.hero-foot { position: relative; z-index: 2; }

/* ---------- live shimmer on gradient words ---------- */
.hero h1 .grad-word,
.rotator .grad-word,
.cta-final h2 .grad-word,
.stella-copy h2 .g {
  background: linear-gradient(100deg, #A895FF 0%, #C07CF2 28%, #38E0DA 52%, #A895FF 78%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmerText 7s linear infinite;
}
@keyframes shimmerText { to { background-position: -220% 0; } }

/* ---------- HERO: depth glow behind the product visual ---------- */
.hero-visual { position: relative; z-index: 2; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0; inset: -10% -12% -14% -8%;
  background: radial-gradient(closest-side, rgba(123,104,255,0.42), rgba(123,104,255,0) 72%);
  filter: blur(26px); pointer-events: none;
  animation: orbPulse 8s ease-in-out infinite;
}
.hero-stage, .floaty { position: relative; z-index: 2; }
@keyframes orbPulse {
  0%,100% { opacity: 0.85; transform: scale(1); }
  50%     { opacity: 1;    transform: scale(1.05); }
}

/* refined gradient ring on glass surfaces */
.hero-stage::after,
.stella-chat-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none; z-index: 4;
  background: linear-gradient(150deg, rgba(255,255,255,0.5), rgba(139,123,255,0.22) 42%, rgba(255,255,255,0) 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.stella-chat-card { position: relative; }

/* stronger, warmer floating chips */
.floaty {
  box-shadow: 0 22px 54px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05) inset,
              0 0 40px rgba(109,94,245,0.18);
}

/* punchier hero badges */
.badge-glass {
  background: rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 18px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---------- BUTTONS: sheen sweep + deeper glow ---------- */
.btn-grad { position: relative; overflow: hidden; }
.btn-grad::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left 0.6s cubic-bezier(.4,0,.2,1);
}
.btn-grad:hover::after { left: 130%; }
.btn-lg { box-shadow: 0 10px 30px rgba(109,94,245,0.42), 0 0 0 1px rgba(255,255,255,0.06) inset; }

/* ---------- light-section depth washes ---------- */
#playbooks::before, #pricing::before, #how::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 460px at 50% -6%, rgba(109,94,245,0.07), transparent 62%);
}
#playbooks > .wrap, #pricing > .wrap, #how > .wrap { position: relative; z-index: 1; }

/* ---------- richer card hovers ---------- */
.feat, .pb-card, .step {
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s, border-color 0.25s;
}
.feat:hover, .pb-card:hover {
  transform: translateY(-5px);
  border-color: var(--v-200);
  box-shadow: 0 20px 48px rgba(109,94,245,0.16), 0 4px 14px rgba(38,30,99,0.07);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--v-200);
  box-shadow: 0 18px 44px rgba(109,94,245,0.14);
}

/* playbook icon lift */
.pb-card .pb-ic, .feat .ficon { transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
.pb-card:hover .pb-ic, .feat:hover .ficon { transform: translateY(-2px) scale(1.05); }

/* ---------- PRICING: featured plan glow ---------- */
.plan.featured {
  background:
    radial-gradient(600px 220px at 50% -10%, rgba(109,94,245,0.10), transparent 60%),
    var(--surface);
  box-shadow: 0 24px 60px rgba(109,94,245,0.22), 0 2px 8px rgba(38,30,99,0.06);
}
.plan.featured::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px; pointer-events: none;
  background: linear-gradient(160deg, rgba(123,104,255,0.7), rgba(176,108,240,0.35) 45%, rgba(255,255,255,0) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.plan { transition: transform 0.22s cubic-bezier(.2,.7,.2,1), box-shadow 0.22s; }
.plan:not(.featured):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- consolidation "one panel" glow ---------- */
.one-panel { box-shadow: 0 24px 60px rgba(75,57,184,0.4), 0 0 60px rgba(109,94,245,0.16); }

/* ---------- boost + integration orbit lift ---------- */
.boost { box-shadow: 0 22px 60px rgba(38,30,99,0.10), 0 2px 10px rgba(38,30,99,0.05); }
.int-core { box-shadow: 0 22px 56px rgba(75,57,184,0.45), 0 0 70px rgba(109,94,245,0.28); }
.int-node { transition: transform 0.3s cubic-bezier(.2,.7,.2,1); }
.int-orbit:hover .int-node { transform: scale(1.06); }

/* ---------- FINAL CTA: bloom behind Stella orb ---------- */
.cta-final .cta-orb { z-index: 2; }
.cta-final .wrap::before {
  content: ""; position: absolute; z-index: 0; top: -4%; left: 50%; transform: translateX(-50%);
  width: 520px; height: 360px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139,123,255,0.28), transparent 70%);
  filter: blur(10px);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dark-band::before, .hero-visual::before,
  .hero h1 .grad-word, .rotator .grad-word,
  .cta-final h2 .grad-word, .stella-copy h2 .g { animation: none; }
}

/* ---------- small screens: soften heavy glows ---------- */
@media (max-width: 560px) {
  .dark-band::after { opacity: 0.35; }
  .hero-visual::before { inset: -4% -6% -6% -4%; filter: blur(20px); }
}

/* ============================================================
   FLOATING GLASS CAPSULE NAV  (refunnel-inspired)
   Detached rounded pill nav that floats over the page with
   real glassmorphism, thin light rim, soft drop shadow.
   ============================================================ */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 90;
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: 9px 9px 9px 22px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: rgba(18,16,32,0.55) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 10px 34px rgba(10,8,24,0.34),
    0 2px 8px rgba(10,8,24,0.20);
  transition: box-shadow .3s ease, background .3s ease, transform .3s ease;
}
/* subtle gradient rim on top edge */
.nav::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 40%, rgba(139,123,255,0.30) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .9;
}
/* condensed state once the user scrolls */
.nav.scrolled {
  background: rgba(14,12,26,0.72) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 14px 40px rgba(10,8,24,0.46),
    0 3px 10px rgba(10,8,24,0.28);
}

/* nav links become a soft inset glass tray */
.nav-links {
  padding: 4px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}
/* capsule is always dark glass → keep all nav text light regardless of on-dark */
.nav .brandline { color: #fff !important; }
.nav .nav-links a, .nav .signin { color: #C6C2E4 !important; }
.nav .nav-links a:hover { color: #fff !important; background: rgba(255,255,255,0.12); }
.nav .signin:hover { color: #fff !important; }
.nav .nav-burger { border-color: rgba(255,255,255,0.16) !important; background: rgba(255,255,255,0.08) !important; }
.nav .nav-burger span { background: #fff !important; }

/* CTA glows a touch more inside the capsule */
.nav .nav-cta { box-shadow: 0 6px 18px rgba(109,94,245,0.45), 0 0 0 1px rgba(255,255,255,0.10) inset; }
.nav .nav-burger { border-radius: var(--r-pill) !important; }

/* mobile menu detaches into its own rounded glass card below the pill */
.mobile-menu {
  top: calc(100% + 10px); left: 0; right: 0;
  border-radius: var(--r-lg) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(16,14,30,0.86) !important;
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 20px 50px rgba(8,6,20,0.5);
  overflow: hidden;
}

@media (max-width: 560px) {
  .nav { width: calc(100% - 20px); padding: 8px 8px 8px 16px !important; }
}

/* ============================================================
   MORE ROUNDING + GLASS across the page (refunnel feel)
   ============================================================ */
.feat, .pb-card, .step, .plan, .boost, .stella-chat-card, .hero-stage, .one-panel {
  border-radius: var(--r-xl);
}
.faq-item, .faq-q, .faq-a { border-radius: var(--r-lg); }

/* light-section cards get a faint frosted top sheen */
.feat, .pb-card, .step, .plan {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 120px);
  background-repeat: no-repeat;
}

/* hero badges: rounder, glassier pills */
.badge-glass, .tts-badge {
  border-radius: var(--r-pill);
  backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* ============================================================
   PRICING — 5-tier grid
   ============================================================ */
.price-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.price-grid-5 .plan { padding: 26px 20px; }
.price-grid-5 .plan .pcost .amt { font-size: 34px; }
.price-grid-5 .plan .pdesc { min-height: 40px; }
.price-grid-5 .plan ul li { font-size: 13px; }
@media (max-width: 1180px) {
  .price-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .price-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .price-grid-5 { grid-template-columns: 1fr; }
}

/* ============================================================
   MORE ALIVE  — motion, depth & life beyond the hero
   ============================================================ */

/* fixed nav → offset anchor targets so they don't hide under the pill */
section[id] { scroll-margin-top: 104px; }

/* ---------- staggered reveals within each grid ---------- */
.pb-grid .reveal:nth-child(2)  { transition-delay: .08s; }
.pb-grid .reveal:nth-child(3)  { transition-delay: .16s; }
.feat-grid .reveal:nth-child(2){ transition-delay: .06s; }
.feat-grid .reveal:nth-child(3){ transition-delay: .12s; }
.feat-grid .reveal:nth-child(4){ transition-delay: .18s; }
.feat-grid .reveal:nth-child(5){ transition-delay: .10s; }
.feat-grid .reveal:nth-child(6){ transition-delay: .16s; }
.feat-grid .reveal:nth-child(7){ transition-delay: .22s; }
.steps .reveal:nth-child(2)    { transition-delay: .10s; }
.steps .reveal:nth-child(3)    { transition-delay: .20s; }
.price-grid .reveal:nth-child(2){ transition-delay: .07s; }
.price-grid .reveal:nth-child(3){ transition-delay: .14s; }
.price-grid .reveal:nth-child(4){ transition-delay: .21s; }
.price-grid .reveal:nth-child(5){ transition-delay: .28s; }

/* richer reveal: slight scale + blur clearing as it enters */
.reveal { filter: blur(6px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease; }
.reveal.in { filter: blur(0); }

/* ---------- P&L bars grow when scrolled into view ---------- */
.feat .bars .bar { transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.75,.25,1); }
.feat.in .bars .bar { transform: scaleY(1); }
.feat.in .bars .bar:nth-child(1){ transition-delay:.15s; }
.feat.in .bars .bar:nth-child(2){ transition-delay:.22s; }
.feat.in .bars .bar:nth-child(3){ transition-delay:.29s; }
.feat.in .bars .bar:nth-child(4){ transition-delay:.36s; }
.feat.in .bars .bar:nth-child(5){ transition-delay:.43s; }
.feat.in .bars .bar:nth-child(6){ transition-delay:.50s; }
.feat.in .bars .bar:nth-child(7){ transition-delay:.57s; }

/* mini-dash rows lift + reveal on card hover for a "live" feel */
.mini-dash .row { transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s; }
.feat:hover .mini-dash .row, .boost:hover .mini-dash .row { border-color: var(--v-200); }
.mini-dash .row:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); border-color: var(--v-300); }

/* ---------- continuous micro-motion ---------- */
@keyframes livePulse { 0%,100%{ box-shadow: 0 0 6px #38E0DA; opacity:1; } 50%{ box-shadow: 0 0 15px #38E0DA; opacity:.55; } }
.scc-head small::before { animation: livePulse 1.9s ease-in-out infinite; }

@keyframes softFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }
@keyframes floatSlow  { 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(3%, -4%) scale(1.08); } }

/* consolidation "one panel" gently breathes */
.one-panel { animation: softFloat 7s ease-in-out infinite; }

/* orbit core pulse + node hover pop already present; add gentle node float */
.int-node:nth-child(odd)  { animation: softFloat 6s ease-in-out infinite; }
.int-node:nth-child(even) { animation: softFloat 7.5s ease-in-out infinite; animation-delay: .6s; }

/* pill dots pulse softly */
@keyframes dotPulse { 0%,100%{ transform: scale(1); opacity:1; } 50%{ transform: scale(1.35); opacity:.6; } }
.pb-chip .dot { animation: dotPulse 2.4s ease-in-out infinite; }

/* ---------- animated count-up numbers ---------- */
.count-up { font-variant-numeric: tabular-nums; }

/* ---------- floating gradient blobs in light sections ---------- */
#playbooks, #features, #how, #pricing, #boost { position: relative; overflow: hidden; }
#playbooks::after, #features::after, #how::after, #pricing::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 440px; height: 440px; border-radius: 50%; filter: blur(60px); opacity: .5;
}
#playbooks::after { background: radial-gradient(closest-side, rgba(109,94,245,0.16), transparent); top: 8%; right: -120px; animation: floatSlow 16s ease-in-out infinite; }
#features::after  { background: radial-gradient(closest-side, rgba(244,114,216,0.12), transparent); bottom: 4%; left: -140px; animation: floatSlow 19s ease-in-out infinite; }
#how::after       { background: radial-gradient(closest-side, rgba(56,224,218,0.12), transparent);  top: 20%; left: -130px; animation: floatSlow 21s ease-in-out infinite; }
#pricing::after   { background: radial-gradient(closest-side, rgba(109,94,245,0.14), transparent); top: 0; right: -120px; animation: floatSlow 18s ease-in-out infinite; }
#features > .wrap, #boost > .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .one-panel, .int-node, .pb-chip .dot, .scc-head small::before,
  #playbooks::after, #features::after, #how::after, #pricing::after { animation: none; }
  .reveal { filter: none; }
  .feat .bars .bar { transform: none !important; transition: none; }
}
