/* ============================================================
   NITROBERRY WP THEME — MAIN STYLESHEET
   Design: Dark modern SaaS, matches the NitroBerry app theme
   Primary: #8c33ea | Dark: #080808 | Card: #0f0f0f
   ============================================================ */

:root {
    --primary: #8c33ea;
    --primary-dark: #7928ca;
    --primary-light: rgba(140,51,234,0.12);
    --primary-glow: rgba(140,51,234,0.3);
    --bg: #080808;
    --bg-card: #0f0f0f;
    --bg-card-border: #1f1f1f;
    --bg-light: #f9fafb;
    --text: #e5e7eb;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --white: #ffffff;
    --dark-navy: #0c111d;
    --border: #e5e7eb;
    --border-dark: #1f1f1f;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(140,51,234,0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #080808;
    color: #e5e7eb;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
ul { list-style: none; }
a { text-decoration: none; transition: var(--transition); color: inherit; }
img { max-width:100%; height:auto; display:block; }

.site-main {
    margin-top: 0;
    overflow-x: clip;
}

/* ── Scroll Progress ── */
#scroll-progress {
    position: fixed; top:0; left:0; height:2px; width:0%;
    background: linear-gradient(90deg, #8c33ea, #c084fc);
    z-index: 9999; transition: width 0.1s linear;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 800; color: #ffffff; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.text-gradient {
    background: linear-gradient(135deg, #8c33ea 0%, #c084fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(140,51,234,0.2);
}

.section-title { margin-bottom: 1rem; }

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header { margin-bottom: 4rem; }
.text-center { text-align: center; }

/* ── Inner page utilities ── */
.section { padding: 100px 0; }

/* Inner page hero — no full-height, dark background with purple glow */
.hero-section.mesh-bg {
    min-height: auto;
    background: #06060f;
    padding: 120px 0 80px;
}
.hero-section.mesh-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(140,51,234,0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero-section.mesh-bg > * { position: relative; z-index: 1; }

/* Shared grid layout for capability/feature grids on inner pages */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Inner page section cards — light style on white sections */
.section .module-card {
    background: #fff;
    border-color: #e5e7eb;
}
.section .module-card h3 { color: #0c111d; }
.section .module-card p  { color: #6b7280; }
.section .module-card li { color: #374151; }
.section .module-card .module-icon {
    width: 48px; height: 48px;
    background: rgba(140,51,234,0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    align-self: center;
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1; /* Safety default — changed from 0 */
    transform: translateY(0); /* Safety default — changed from 24px */
    transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1), transform 0.7s cubic-bezier(0.2,0.8,0.2,1);
}

/* If JavaScript is enabled, then we hide them for the animation */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js .reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9375rem;
    cursor: pointer; border: 1px solid transparent;
    transition: var(--transition); white-space: nowrap;
    user-select: none;
}
.btn-large { padding: 16px 32px; font-size: 1.0625rem; border-radius: 12px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(140,51,234,0.4);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(140,51,234,0.5);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(140,51,234,0.3);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content:'';
    position:absolute; top:0; left:-100%; width:60%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.btn-glow:hover::after { left:150%; }

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }
    .btn-primary:active {
        transform: scale(0.98);
    }
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(140,51,234,0.4);
    color: var(--primary);
}
.btn-ghost:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-white {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: transparent;
    transition: all 0.35s ease;
}
.site-header.scrolled {
    background: rgba(8,8,8,0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-glow {
    position: absolute; top:0; left:50%; transform:translateX(-50%);
    width:60%; height:1px;
    background: linear-gradient(90deg, transparent, rgba(140,51,234,0.6), transparent);
    pointer-events: none;
}

.header-inner {
    display: flex; align-items: center; gap: 2rem;
}

.logo-link {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.logo-icon {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 900; color: #fff;
    letter-spacing: -1px;
    box-shadow: 0 0 12px rgba(140,51,234,0.5);
}
.logo-icon::after { content: 'N'; }
.logo-text {
    font-size: 1.25rem; font-weight: 800;
    color: #fff; letter-spacing: -0.5px;
}
.logo-accent { color: var(--primary); }

/* Nav */
.main-navigation { flex: 1; display: flex; justify-content: center; }
.primary-menu { display: flex; gap: 0.25rem; align-items: center; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 0.9375rem; font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
}
.primary-menu > li > a:hover,
.primary-menu > li.active > a {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

/* Dropdown */
.nav-dropdown {
    position: absolute; top: calc(100% + 12px); left: 0;
    background: #0f0f0f; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 16px;
    width: 480px; opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    z-index: 200;
}
.has-dropdown:hover .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dropdown-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px; border-radius: 10px;
    color: rgba(255,255,255,0.8); font-size: 0.875rem;
    transition: var(--transition);
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color:#fff; }
.dropdown-item strong { display:block; font-size:0.9rem; margin-bottom:2px; color:#fff; }
.dropdown-item small { color: rgba(255,255,255,0.4); font-size:0.775rem; }
.di-icon {
    width:36px; height:36px; border-radius:8px; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    font-size:17px; color:#fff;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-login {
    font-size: 0.9375rem; font-weight: 500;
    color: rgba(255,255,255,0.7); padding: 8px 14px;
    border-radius: 8px; transition: var(--transition);
}
.btn-login:hover { color: #fff; background: rgba(255,255,255,0.07); }
.btn-demo {
    background: var(--primary);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    box-shadow: 0 4px 16px rgba(140,51,234,0.4);
}
.btn-demo:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(140,51,234,0.5);
}

/* Hamburger */
.menu-toggle {
    display: none; background: none; border: none;
    cursor: pointer; padding: 8px; z-index: 1001;
    flex-direction: column; gap: 5px;
}
.hamburger-line {
    display: block; width: 22px; height: 2px;
    background: rgba(255,255,255,0.8); border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active .hamburger-line:nth-child(2) { opacity:0; }
.menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
}

.hero-grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}
.hero-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(80px);
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(140,51,234,0.22) 0%, transparent 70%);
    top: -200px; left: -150px;
    animation: orbPulse 8s ease-in-out infinite;
}
.hero-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 70%);
    top: 10%; right: -100px;
    animation: orbPulse 10s ease-in-out infinite 2s;
}
.hero-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    bottom: 20%; left: 40%;
    animation: orbPulse 12s ease-in-out infinite 4s;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 8px;
    background: rgba(140,51,234,0.1);
    border: 1px solid rgba(140,51,234,0.25);
    border-radius: 100px;
    font-size: 0.8125rem; font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #8c33ea;
    box-shadow: 0 0 8px #8c33ea;
    flex-shrink: 0;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 4px #8c33ea; }
    50% { box-shadow: 0 0 12px #8c33ea, 0 0 20px rgba(140,51,234,0.4); }
}

.hero-title {
    display: flex; flex-direction: column;
    color: #fff; margin-bottom: 1.5rem;
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}
.hero-line { display: block; }

.hero-line-animate {
    opacity: 0;
    transform: translateY(28px);
    animation: heroLineReveal 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes heroLineReveal {
    to { opacity: 1; transform: translateY(0); }
}
.hero-fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: heroLineReveal 0.6s ease forwards;
}

.hero-subtitle {
    font-size: 1.125rem; line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions { display: flex; gap: 1rem; align-items: center; margin-bottom: 2.5rem; flex-wrap: wrap; }

.hero-proof { display: flex; align-items: center; gap: 14px; }
.proof-avatars { display: flex; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    border: 2px solid var(--bg);
    margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.proof-text { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.proof-stars { color: #f59e0b; font-size: 0.75rem; margin-bottom: 2px; }
.proof-text strong { color: rgba(255,255,255,0.8); }

/* Hero Mockup */
.hero-mockup-outer {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin-left: auto;
}
.hero-mockup-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse, rgba(140,51,234,0.3) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: orbPulse 4s ease-in-out infinite;
}
.hero-mockup-frame {
    position: relative; z-index: 1;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0f0f0f;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.04),
        inset 0 0 0 1px rgba(255,255,255,0.03);
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) rotateZ(1deg);
    transform-origin: center center;
    transition: transform 0.6s ease;
    overflow: hidden;
    animation: heroFloat 5s ease-in-out infinite;
}
.hero-mockup-frame:hover {
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) rotateZ(0deg);
}
.hero-mockup-frame img { width: 100%; height: auto; display: block; }

@keyframes heroFloat {
    0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) rotateZ(1deg) translateY(0px); }
    50% { transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) rotateZ(1deg) translateY(-12px); }
}

/* Float cards */
.hero-float-card {
    position: absolute;
    background: rgba(15,15,15,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 10; white-space: nowrap;
    animation: floatCard 3s ease-in-out infinite;
}
.card-1 { bottom: 20%; left: -5%; animation-delay: 0.5s; }
.card-2 { top: 15%; right: -5%; animation-delay: 1s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Trust strip */
.trust-strip {
    position: relative; z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 28px 0;
    background: rgba(0,0,0,0.3);
    overflow: hidden;
}
.trust-label {
    text-align: center;
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 20px;
}
.marquee-outer {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: inline-flex; align-items: center; gap: 0;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
    white-space: nowrap;
}
.marquee-item {
    font-size: 0.875rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    padding: 0 32px;
    transition: color 0.3s ease;
}
.marquee-item:hover { color: rgba(255,255,255,0.6); }
.marquee-sep { color: rgba(255,255,255,0.1); font-size: 1rem; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   ECOSYSTEM SECTION
══════════════════════════════════════════════ */
.ecosystem-section {
    background: var(--bg);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.ecosystem-section .section-title { color: #fff; }
.ecosystem-section .section-subtitle { color: rgba(255,255,255,0.4); }

/* Booking grid (contact page) - responsive stack on small screens */
#booking .booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    #booking .booking-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    #booking .booking-grid > div { width: 100%; }
    #nb-contact-form form.contact-form-grid { padding: 24px; }
    #nb-contact-form .form-two-col { display: grid; grid-template-columns: 1fr; gap: 16px !important; }
    .ecosystem-section { padding: 60px 0; }

    /* Medium screens: prevent product hero from occupying full viewport */
    .product-detail-hero {
        min-height: 0 !important;
        height: auto !important;
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }
    .product-detail-hero .hero-container { padding-left: 18px !important; padding-right: 18px !important; }
    .product-detail-hero .hero-visual { height: auto !important; min-height: 0 !important; max-height: 520px !important; }
    .product-detail-hero .hero-visual img, .product-detail-hero .hero-visual > * { max-height: 520px !important; height: auto !important; }

    /* Reduce spacing after hero to close gaps */
    .ecosystem-section { padding-top: 36px !important; padding-bottom: 36px !important; }
    .showcase-section { padding-top: 36px !important; padding-bottom: 36px !important; }
}

/* Additional small-screen tweaks for product showcase */
@media (max-width: 768px) {
    .sp-inner { grid-template-columns: 1fr; gap: 24px; padding: 0 12px; }
    .sp-text { order: 1; text-align: center; }
    .sp-text h3 { font-size: 1.5rem; }
    .sp-text > p { font-size: 0.95rem; }
    .sp-features { align-items: center; }
    .sp-visual { order: 2; display: flex; justify-content: center; }
    .sp-screen-frame { width: 100%; max-width: 420px; aspect-ratio: 16/9; margin: 0 auto; }
    .showcase-selector { justify-content: center; gap: 8px; padding: 8px 12px; }
    .ss-pill { padding: 8px 12px; font-size: 0.9rem; }
    .sp-cta { margin-left: auto; margin-right: auto; }

    /* Tasks/Product hero: force stacking and center content on small screens
       Overrides inline styles used in page templates. */
    .product-detail-hero .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 40px 18px !important;
        gap: 20px !important;
        max-width: 100% !important;
    }
    .product-detail-hero .hero-content {
        padding-right: 0 !important;
        max-width: none !important;
        width: 100% !important;
        text-align: center !important;
    }
    .product-detail-hero .hero-subtitle,
    .product-detail-hero .hero-badge { margin-left: auto !important; margin-right: auto !important; }
    .product-detail-hero .hero-actions { justify-content: center !important; }
    .product-detail-hero .hero-visual {
        order: 2 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 180px !important;
        max-height: 420px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 8px !important;
    }
    .product-detail-hero .hero-visual .sp-screen-frame,
    .product-detail-hero .hero-visual img,
    .product-detail-hero .hero-visual > * { max-width: 420px !important; width: 100% !important; height: auto !important; }

    /* Modules/grid: stack module-cards on small screens (override inline grid styles) */
    .modules-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .modules-grid .module-card {
        max-width: 520px !important;
        margin: 0 auto !important;
        text-align: center !important;
        padding: 22px !important;
    }
    .modules-grid .module-card .mc-icon { margin: 0 auto 16px !important; }
    .modules-grid .module-card h3 { text-align: center !important; }
    .modules-grid .module-card p { text-align: center !important; }

    /* Remove full-viewport hero height on smaller screens so content isn't pushed off-screen */
    .product-detail-hero {
        min-height: 0 !important;
        height: auto !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .product-detail-hero .hero-visual { min-height: 0 !important; }

    /* Reduce vertical spacing of subsequent sections so page follows hero closely */
    .ecosystem-section { padding: 40px 0 !important; }
    .showcase-section { padding: 48px 0 !important; }
}

/* Stronger overrides for very small screens to ensure showcase stacks cleanly */
@media (max-width: 480px) {
    .showcase-section .sp-inner { grid-template-columns: 1fr !important; gap: 16px !important; padding: 0 12px !important; }
    .showcase-section .sp-text, .showcase-section .sp-text * { text-align: center !important; }
    .showcase-section .sp-text h3 { font-size: 1.4rem !important; }
    .showcase-section .sp-text > p { font-size: 0.95rem !important; }
    .showcase-section .sp-features { align-items: center !important; display: flex !important; flex-direction: column !important; gap: 10px !important; margin: 0 auto; }
    .showcase-section .sp-features li { justify-content: center !important; text-align: center !important; max-width: 320px; }
    .showcase-section .sp-visual { order: 2 !important; display: flex !important; justify-content: center !important; }
    .showcase-section .sp-screen-frame { width: 100% !important; max-width: 360px !important; aspect-ratio: 16/9 !important; margin: 0 auto !important; }
    .showcase-section .sp-cta { margin: 20px auto 0 !important; display: inline-flex !important; }

    /* Mobile: collapse product hero height to avoid excessive blank area */
    .product-detail-hero { min-height: 0 !important; height: auto !important; padding-top: 16px !important; padding-bottom: 16px !important; }
    .product-detail-hero .hero-visual { min-height: 0 !important; height: auto !important; }
    .ecosystem-section { padding: 28px 0 !important; }
    .showcase-section { padding: 28px 0 !important; }

    /* Very small screens: modules/grid stack and reduce card padding */
    .modules-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
    .modules-grid .module-card { padding: 18px !important; max-width: 420px !important; }
}

/* When JS disables animation on mobile/touch, use this class to keep the visual static */
.sh.no-anim { pointer-events: none; }
.sh.no-anim .sh-mote,
.sh.no-anim .sh-beams,
.sh.no-anim .sh-reaction,
.sh.no-anim .sh-notif,
.sh.no-anim .sh-typing,
.sh.no-anim .sh-hotzone,
.sh.no-anim .sh-orbit,
.sh.no-anim .sh-sat,
.sh.no-anim .sh-ghost { display: none !important; opacity: 0 !important; }
.sh.no-anim .sh-center-ring,
.sh.no-anim .sh-center-ring2,
.sh.no-anim .sh-center-pulse,
.sh.no-anim .sh-center-pulse2,
.sh.no-anim .sh-center-glow,
.sh.no-anim .sh-sat-ring,
.sh.no-anim .sh-sat-ai { animation: none !important; }
.sh.no-anim .sh-center-avatar { transform: none !important; box-shadow: none !important; }
.sh.no-anim .sh-center-live { display: none !important; }

/* Provide a simple static fallback sizing on small screens */
.sh.no-anim { height: auto !important; min-height: 160px !important; }
.sh.no-anim .sh-center { position: relative; top: 0; left: 50%; transform: translateX(-50%); }

/* Feature checklist: center container, left-align items with consistent bullets */
.showcase-section .sp-features {
    max-width: 520px;
    margin: 0 auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.showcase-section .sp-features li {
    display: flex;
    flex-direction: row; /* place bullet on the left */
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    color: rgba(255,255,255,0.95);
}
.showcase-section .sp-features li::before {
    width: 20px; height: 20px; flex: 0 0 24px;
    background-size: 12px; background-repeat: no-repeat; background-position: center;
    margin-top: 4px;
}

.ecosystem-bg { position: absolute; inset: 0; pointer-events: none; }
.eco-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.eco-orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(140,51,234,0.18) 0%, transparent 70%);
    top: -100px; right: 10%;
    animation: orbPulse 9s ease-in-out infinite;
}
.eco-orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    bottom: -80px; left: 15%;
    animation: orbPulse 11s ease-in-out infinite 3s;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.mc-glow {
    position: absolute; top: -20px; left: -20px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140,51,234,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.module-card:hover .mc-glow { opacity: 1; }
.module-card:hover { transform: translateY(-6px); border-color: rgba(140,51,234,0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }

.mc-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
    transition: transform 0.25s ease;
    align-self: center;
}
.module-card:hover .mc-icon { transform: scale(1.08); }

.mc-arrow {
    position: absolute; top: 24px; right: 24px;
    color: rgba(255,255,255,0.15);
    font-size: 18px;
    transition: all 0.25s ease;
}
.module-card:hover .mc-arrow { color: rgba(255,255,255,0.5); transform: translate(2px, -2px); }

.module-card h3 { color: #fff; font-size: 1.125rem; margin-bottom: 8px; text-align: center; }
.module-card p { color: rgba(255,255,255,0.45); font-size: 0.875rem; line-height: 1.65; flex: 1; margin-bottom: 20px; }

.mc-footer {
    display: flex; align-items: center; gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.mc-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    transition: box-shadow 0.25s ease;
}
.mc-link {
    color: rgba(255,255,255,0.6); font-size: 0.8125rem; font-weight: 500;
}
.module-card:hover .mc-link { color: rgba(255,255,255,0.9); text-decoration: underline; }

/* old module-detail tabs removed — replaced by showcase section */

/* ══════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════ */
.how-section {
    padding: 100px 0;
    background: #fff;
}
.how-section .section-title { color: #0c111d; }

.how-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: center;
    margin-top: 0;
}

.how-step {
    background: #fff;
    border: 1.5px solid #f0f0f5;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.how-step:hover {
    border-color: rgba(140,51,234,0.25);
    box-shadow: 0 12px 40px rgba(140,51,234,0.1);
    transform: translateY(-4px);
}

.how-number {
    font-size: 0.8125rem; font-weight: 800;
    letter-spacing: 0.05em; color: var(--primary);
    opacity: 0.6; margin-bottom: 16px;
}
.how-icon {
    width: 64px; height: 64px;
    background: var(--primary-light);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px; color: var(--primary);
    transition: var(--transition);
}
.how-step:hover .how-icon {
    background: var(--primary);
    color: #fff;
}
.how-step h3 { font-size: 1.125rem; margin-bottom: 10px; color: #111827; }
.how-step p { font-size: 0.9rem; color: #6b7280; line-height: 1.65; }

.how-connector { display: flex; justify-content: center; padding: 0 8px; }
.connector-line {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, rgba(140,51,234,0.3), rgba(140,51,234,0.1));
    position: relative;
}
.connector-line::after {
    content: ''; position: absolute; right: -8px; top: -5px;
    width: 0; height: 0;
    border-left: 10px solid rgba(140,51,234,0.3);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* ══════════════════════════════════════════════
   FLOW / INTELLIGENCE SECTION
══════════════════════════════════════════════ */
.flow-section {
    background: #0a0a14;
    padding: 100px 0;
    position: relative; overflow: hidden;
    color: #fff;
}
.flow-section .section-title { color: #fff; }
.flow-section .section-subtitle { color: rgba(255,255,255,0.45); }

.bg-orb {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(140,51,234,0.18) 0%, transparent 70%);
    pointer-events: none; z-index: 0; filter: blur(60px);
}
.bg-orb-1 { width: 500px; height: 500px; top: -150px; left: -100px; animation: orbPulse 7s ease-in-out infinite; }
.bg-orb-2 { width: 400px; height: 400px; bottom: -100px; right: -80px; animation: orbPulse 9s ease-in-out infinite 2s; }
.bg-orb-3 { width: 350px; height: 350px; top: 40%; left: 45%; animation: orbPulse 11s ease-in-out infinite 4s; }

.particle-overlay {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: particleDrift 20s linear infinite;
    pointer-events: none; z-index: 0;
}
@keyframes particleDrift {
    from { background-position: 0 0; }
    to { background-position: 32px 32px; }
}

.flow-container-inner { position: relative; z-index: 2; }

.flow-diagram-container {
    display: flex; justify-content: center; align-items: center;
    max-width: 900px; margin: 0 auto;
    position: relative; padding: 40px 0;
}

.flow-node {
    width: 170px; flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 28px 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    opacity: 0; transform: scale(0.85);
    transition: all 0.6s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 2;
}
.flow-node.flow-visible { opacity: 1; transform: scale(1); }
.flow-node:hover {
    border-color: rgba(140,51,234,0.4);
    background: rgba(140,51,234,0.08);
}
.fn-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 22px;
}
.flow-node h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.flow-node p { color: rgba(255,255,255,0.4); font-size: 0.75rem; }

/* CSS connector between flow nodes */
.flow-connector {
    flex: 1; min-width: 40px; max-width: 80px;
    display: flex; align-items: center; position: relative;
    height: 2px;
}
.flow-connector::before {
    content: '';
    display: block; width: 100%; height: 2px;
    background: linear-gradient(90deg, rgba(140,51,234,0.4), rgba(192,132,252,0.7));
    border-radius: 2px;
    animation: connectorPulse 2s ease-in-out infinite;
}
.flow-connector::after {
    content: '';
    position: absolute; right: -1px; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid rgba(192,132,252,0.7);
}
@keyframes connectorPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; box-shadow: 0 0 6px rgba(140,51,234,0.5); }
}

/* legacy SVG flow lines (hidden — replaced by CSS connectors) */
.flow-path-svg { display: none; }
.flow-line { fill: none; stroke: rgba(140,51,234,0.15); stroke-width: 2; stroke-dasharray: 8 5; }
.flow-line-active { fill: none; stroke: var(--primary); stroke-width: 2; stroke-dasharray: 8 5; }
@keyframes dashFlow { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }

.flow-glow-dot {
    fill: #c084fc;
    filter: drop-shadow(0 0 6px #8c33ea) drop-shadow(0 0 12px rgba(140,51,234,0.5));
}

/* ══════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════ */
.stats-section {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
}
.stat-divider {
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}
.stat-item { text-align: center; padding: 0 2rem; }
.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary), #c084fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; margin-bottom: 8px;
}
.stat-label {
    font-size: 0.9375rem; font-weight: 700;
    color: #0c111d; margin-bottom: 4px;
}
.stat-sub { font-size: 0.8125rem; color: #9ca3af; }

/* ══════════════════════════════════════════════
   WHY SECTION
══════════════════════════════════════════════ */
.why-section {
    padding: 100px 0;
    background: #f9fafb;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-card {
    background: #fff;
    border: 1.5px solid #f0f0f5;
    border-radius: 20px;
    padding: 36px 28px;
    transition: var(--transition);
}
.why-card:hover {
    border-color: rgba(140,51,234,0.2);
    box-shadow: 0 8px 30px rgba(140,51,234,0.08);
    transform: translateY(-4px);
}
.why-icon {
    width: 52px; height: 52px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}
.why-card:hover .why-icon {
    background: var(--primary); color: #fff;
}
.why-card h3 { font-size: 1.0625rem; margin-bottom: 10px; color: #111827; }
.why-card p { color: #6b7280; font-size: 0.9rem; line-height: 1.65; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
.testimonials-section {
    background: #06060f;
    padding: 100px 0;
    position: relative; overflow: hidden;
}
.testimonials-section .section-title { color: #fff; }
.testi-bg { position: absolute; inset: 0; pointer-events: none; }
.testi-orb {
    position: absolute; width: 600px; height: 600px;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(140,51,234,0.12) 0%, transparent 70%);
    filter: blur(80px); border-radius: 50%;
    animation: orbPulse 8s ease-in-out infinite;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
}
.testi-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px; padding: 32px;
    display: flex; flex-direction: column;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.testi-card::before {
    content: '"';
    position: absolute; top: 16px; right: 24px;
    font-size: 5rem; line-height: 1; font-family: Georgia, serif;
    color: rgba(140,51,234,0.15); pointer-events: none;
}
.testi-card:hover {
    border-color: rgba(140,51,234,0.25);
    background: rgba(140,51,234,0.05);
    transform: translateY(-4px);
}
.testi-stars { color: #f59e0b; font-size: 0.875rem; margin-bottom: 16px; }
.testi-quote {
    font-size: 0.9375rem; line-height: 1.75;
    color: rgba(255,255,255,0.65); flex: 1; margin-bottom: 24px;
    font-style: italic;
}
.testi-author {
    display: flex; align-items: center; gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
}
.testi-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testi-author strong { display: block; color: #fff; font-size: 0.9rem; }
.testi-author small { color: rgba(255,255,255,0.35); font-size: 0.8rem; }

/* ══════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════ */
.cta-section {
    background: var(--bg);
    padding: 120px 0;
    text-align: center;
    position: relative; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); pointer-events: none;
}
.cta-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(140,51,234,0.2) 0%, transparent 70%);
    top: -200px; left: -100px;
    animation: orbPulse 7s ease-in-out infinite;
}
.cta-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    bottom: -150px; right: -80px;
    animation: orbPulse 9s ease-in-out infinite 2s;
}
.cta-grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 50%, transparent 100%);
}

.cta-inner { position: relative; z-index: 2; }
.cta-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(140,51,234,0.1);
    border: 1px solid rgba(140,51,234,0.25);
    color: rgba(255,255,255,0.6);
    padding: 8px 20px; border-radius: 100px;
    font-size: 0.8125rem; font-weight: 500;
    margin-bottom: 2rem;
}
.cta-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800; letter-spacing: -0.04em;
    color: #fff; margin-bottom: 1.5rem; line-height: 1.05;
}
.cta-subtitle {
    font-size: 1.125rem; color: rgba(255,255,255,0.45);
    max-width: 520px; margin: 0 auto 3rem; line-height: 1.7;
}
.cta-actions {
    display: flex; justify-content: center; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 2rem;
}
.cta-footnote { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
    background: #030303;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 80px 0 0;
    position: relative; overflow: hidden;
    color: rgba(255,255,255,0.6);
}
.footer-noise {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; opacity: 0.5;
}
.footer-orb {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(140,51,234,0.08) 0%, transparent 70%);
    filter: blur(80px); pointer-events: none;
}
.footer-orb-1 { width: 400px; height: 400px; top: -100px; left: 10%; }
.footer-orb-2 { width: 350px; height: 350px; bottom: 0; right: 5%; }

.footer-top {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 4rem; padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 40px;
}

.footer-logo-link {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
}
.footer-logo-icon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; color: #fff;
    box-shadow: 0 0 10px rgba(140,51,234,0.4);
}
.footer-logo-icon::after { content: 'N'; }
.footer-logo-text {
    font-size: 1.25rem; font-weight: 800;
    color: #fff; letter-spacing: -0.5px;
}
.footer-logo-text span { color: var(--primary); }
.footer-tagline {
    font-size: 0.875rem; line-height: 1.7;
    color: rgba(255,255,255,0.35); margin-bottom: 24px;
}

.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35);
    transition: var(--transition);
}
.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    background: rgba(140,51,234,0.1);
}

.footer-links-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.footer-col h5 {
    font-size: 0.8125rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    font-size: 0.875rem; color: rgba(255,255,255,0.35);
    transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8125rem; color: rgba(255,255,255,0.25);
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom-right {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.footer-bottom-right a {
    color: rgba(255,255,255,0.25);
    font-size: 0.8125rem;
    transition: color 0.2s;
}
.footer-bottom-right a:hover { color: rgba(255,255,255,0.6); }
.footer-email {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.3) !important;
}

/* ══════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════ */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff; border: none; border-radius: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(140,51,234,0.5);
    opacity: 0; transform: translateY(16px);
    transition: all 0.3s ease; z-index: 99;
}
.back-to-top.visible { opacity:1; transform:translateY(0); }
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(140,51,234,0.6);
}

/* ══════════════════════════════════════════════
   SUBPAGES — padding for fixed header
══════════════════════════════════════════════ */
body:not(.home) .site-main { padding-top: 80px; }
body:not(.home) .site-header { background: rgba(8,8,8,0.95) !important; backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }

section[id] { scroll-margin-top: 100px; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .stat-divider { display: none; }
    .how-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .how-connector { display: none; }
    .flow-diagram-container { flex-wrap: wrap; justify-content: center; gap: 2rem; }
    .flow-path-svg { display: none; }
    .flow-node { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1200px) {
    .sp-inner { grid-template-columns: 1fr; gap: 40px; }
    .sp-text { order: 1; }
    .sp-visual { order: 2; }
    .sp-screen-frame { max-width: 640px; margin: 0 auto; }
    .showcase-selector { flex-wrap: wrap; border-radius: 16px; max-width: 90vw; }
    .showcase-selector-wrap { position: relative; top: auto; }
}

@media (max-width: 992px) {
    .menu-toggle { display: flex; order: 3; }
    .header-actions { order: 2; margin-left: auto; margin-right: 1rem; }
    .header-actions .btn-login { display: none; }
    .header-inner { flex-wrap: nowrap; }

    .main-navigation {
        position: fixed; top: 0; right: -100%; width: min(80%, 360px);
        height: 100vh; background: #0a0a0a;
        border-left: 1px solid rgba(255,255,255,0.06);
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        z-index: 1000; padding: 100px 2rem 2rem;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .main-navigation.open { right: 0; }
    .primary-menu { flex-direction: column; gap: 0; }
    .primary-menu > li > a {
        border-radius: 0; padding: 1rem 0; font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .has-dropdown .nav-dropdown { display: none; }

    .hero-container { grid-template-columns: 1fr; gap: 3rem; padding-top: 120px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-proof { justify-content: center; }
    .hero-mockup-outer { max-width: 480px; margin: 0 auto; }
    .hero-float-card { display: none; }
    .hero-mockup-frame { transform: none !important; animation: none; }
    .hero-mockup-frame img { border-radius: 12px; }

    .module-content.active { grid-template-columns: 1fr; }
    .module-text { order: 2; }
    .module-images { order: 1; }

    .testi-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links-grid { grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .modules-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .stat-item { padding: 0; }
    .cta-title { font-size: clamp(2.25rem, 8vw, 3rem); }
    .footer-links-grid { grid-template-columns: 1fr 1fr; }
    body.nav-open { overflow: hidden; }
    .ss-pill span:not(.ss-dot):not(.ss-new) { display: none; }
    .ss-pill { padding: 8px 14px; }
    .messenger-mockup .mm-sidebar { width: 140px; }
    
    /* Better tablet layout */
    .hero-mockup-frame {
        max-width: 100%;
        margin: 0 auto;
    }
    .sp-inner {
        gap: 40px;
    }
    .sp-text h3 {
        font-size: 1.5rem;
    }
    
    /* Touch-friendly sizing for tablet */
    .btn {
        min-height: 40px;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    
    /* Typography on mobile */
    html { font-size: 14px; }
    h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
    h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); }
    
    /* Touch-friendly buttons */
    .btn { 
        min-height: 44px; /* Apple's recommended touch target */
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
    .btn-large { 
        min-height: 48px;
        padding: 14px 24px;
    }
    .btn-small {
        min-height: 36px;
        padding: 8px 16px;
    }
    
    /* Hero section */
    .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-container { padding-top: 80px; gap: 2rem; }
    .hero-title { margin-bottom: 1rem; }
    .hero-subtitle { font-size: 1rem; line-height: 1.6; }
    
    /* CTA section */
    .cta-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .cta-actions .btn { width: 100%; max-width: 100%; justify-content: center; }
    .cta-title { font-size: clamp(1.5rem, 6vw, 2.25rem); padding: 0 1.25rem; }
    .cta-subtitle { font-size: 0.9375rem; line-height: 1.6; }
    
    /* Grids */
    .footer-links-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* Marquee on mobile */
    .marquee-track {
        animation-duration: 8s; /* Slower scroll on mobile */
    }
    .marquee-item {
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }
    .marquee-sep {
        margin: 0 0.5rem;
    }
    
    /* Module cards */
    .module-card {
        padding: 16px !important;
    }
    .module-card p {
        font-size: 0.875rem;
    }
    
    /* Sections - reduce padding */
    section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    /* Forms */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
        padding: 12px;
    }
    
    /* Tabs and pills */
    .ss-pill {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    /* Links - increase tap area */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Images - full width on mobile */
    img {
        width: 100%;
        height: auto;
    }
}

/* ══════════════════════════════════════════════
   MODULE CARD — NEW BADGE
══════════════════════════════════════════════ */
.mc-new-badge {
    position: absolute; top: 20px; right: 48px;
    background: rgba(139,92,246,0.2);
    border: 1px solid rgba(139,92,246,0.35);
    color: #8b5cf6; font-size: 0.6875rem; font-weight: 800;
    padding: 2px 8px; border-radius: 6px;
    letter-spacing: 0.05em;
}
.dark-eyebrow {
    background: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* ══════════════════════════════════════════════
   PRODUCT SHOWCASE SECTION
══════════════════════════════════════════════ */
.showcase-section {
    background: #080808;
    padding: 100px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.showcase-section .section-title { color: #fff; }
.showcase-section .section-subtitle { color: rgba(255,255,255,0.4); }
.showcase-section .section-eyebrow { background: rgba(140,51,234,0.12); border-color: rgba(140,51,234,0.2); }
.showcase-section .section-header { padding: 0; margin-bottom: 1.5rem; }

/* Selector pills */
.showcase-selector-wrap {
    display: flex; justify-content: center;
    padding: 0 2rem 48px;
    position: relative; z-index: 10;
}
.showcase-selector {
    display: inline-flex; gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 6px;
}
.ss-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 100px;
    font-size: 0.875rem; font-weight: 500;
    color: rgba(255,255,255,0.45); background: transparent;
    border: none; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap;
}
.ss-pill:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }
.ss-pill.active {
    background: var(--primary); color: #fff; font-weight: 600;
    box-shadow: 0 4px 20px rgba(140,51,234,0.45);
    transform: scale(1.04);
}
.ss-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.ss-new {
    font-size: 0.625rem; font-weight: 800;
    background: rgba(139,92,246,0.15); color: #8b5cf6;
    padding: 2px 6px; border-radius: 6px;
    letter-spacing: 0.05em;
}

/* Panels */
.showcase-panels { position: relative; background: #080808; }
.showcase-panel {
    display: none;
    padding: 0 0 80px;
    background: #080808;
}
.showcase-panel.active {
    display: block;
    animation: panelFadeIn 0.2s ease-out;
}
@keyframes panelFadeIn {
    from { transform: translateY(10px); }
    to { transform: translateY(0); }
}

.sp-inner {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 64px; align-items: center;
}

.sp-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.sp-text h3 { font-size: 2rem; color: #fff; margin-bottom: 14px; letter-spacing: -0.025em; }
.sp-text > p { color: rgba(255,255,255,0.5); line-height: 1.75; margin-bottom: 24px; font-size: 1rem; }
.sp-features {
    list-style: none; padding: 0;
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 0;
}
.sp-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9375rem; color: rgba(255,255,255,0.65);
}
.sp-features li::before {
    content: '';
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(140,51,234,0.08);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238c33ea'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.sp-features li:has(svg)::before {
    content: none !important;
    display: none !important;
}
.sp-cta { margin-top: 2rem; border-radius: 12px; }

/* Screen frame */
.sp-visual { position: relative; }
.sp-screen-frame {
    position: relative;
    border-radius: 16px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.04),
        0 0 60px var(--frame-glow, rgba(140,51,234,0.15));
    overflow: hidden;
    aspect-ratio: 16/10;
}

.sp-progress-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: rgba(255,255,255,0.05); z-index: 10;
    overflow: hidden;
}
.sp-progress-bar::after {
    content: '';
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--bar-color, #8c33ea);
    width: 0;
    animation: progressFill 3s linear infinite;
}
@keyframes progressFill {
    from { width: 0; opacity: 1; }
    90% { width: 100%; opacity: 1; }
    to { width: 100%; opacity: 0; }
}

.sp-slides { position: relative; width: 100%; height: 100%; }
.sp-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.6s ease;
}
.sp-slide.active { opacity: 1; }
/* Coded UI mockups inside slides */
.nb-mock {
    width: 100%; height: 100%;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.nb-mock * { box-sizing: border-box; line-height: 1.4; font-family: 'Inter', sans-serif; }

.sp-slide img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top left;
    display: block;
}

.sp-slide-dots {
    position: absolute; bottom: 14px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 10;
}
.sp-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,0.3); cursor: pointer;
    transition: all 0.3s ease;
}
.sp-dot.active {
    background: rgba(255,255,255,0.9);
    width: 18px; border-radius: 3px;
}

/* ── Messenger mockup ── */
.messenger-placeholder { aspect-ratio: 16/10; }
.messenger-mockup {
    display: flex; width: 100%; height: 100%;
    font-size: 13px;
}
.mm-sidebar {
    width: 200px; flex-shrink: 0;
    background: #1a1a2e; padding: 16px 12px;
    display: flex; flex-direction: column; gap: 4px;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.mm-ws-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: #8b5cf6; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.mm-ch {
    padding: 5px 8px; border-radius: 6px;
    color: rgba(255,255,255,0.45); font-size: 0.8rem;
    cursor: pointer; transition: all 0.15s;
}
.mm-ch.active { background: rgba(139,92,246,0.2); color: #fff; }
.mm-ch:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.mm-dm-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: rgba(255,255,255,0.25);
    padding: 10px 8px 4px;
}
.mm-dm {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 8px; border-radius: 6px;
    color: rgba(255,255,255,0.45); font-size: 0.8rem;
    cursor: pointer;
}
.mm-dm:hover { background: rgba(255,255,255,0.05); }
.mm-av {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; color: #fff;
}

.mm-main {
    flex: 1; display: flex; flex-direction: column;
    background: #0f0f1a;
}
.mm-header {
    padding: 14px 16px; font-weight: 700; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
}
.mm-header span { color: rgba(255,255,255,0.3); font-weight: 400; font-size: 0.8rem; }
.mm-messages {
    flex: 1; padding: 12px 16px; display: flex;
    flex-direction: column; gap: 12px; overflow: hidden;
}
.mm-msg {
    display: flex; gap: 10px; align-items: flex-start;
}
.mm-msg-mine { flex-direction: row-reverse; }
.mm-msg > div { display: flex; flex-direction: column; gap: 2px; max-width: 70%; }
.mm-msg strong { font-size: 0.8rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.mm-msg small { font-size: 0.7rem; color: rgba(255,255,255,0.25); }
.mm-msg p {
    background: rgba(255,255,255,0.06);
    border-radius: 10px; padding: 8px 12px;
    color: rgba(255,255,255,0.7); font-size: 0.8rem;
    line-height: 1.45; margin: 2px 0 0;
}
.mm-msg-mine p { background: rgba(139,92,246,0.25); }
.mm-typing {
    display: flex; align-items: center; gap: 4px;
    color: rgba(255,255,255,0.3); font-size: 0.75rem; margin-top: 4px;
}
.mm-typing span {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.mm-typing span:nth-child(2) { animation-delay: 0.15s; }
.mm-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}
.mm-input { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.mm-input-box {
    background: rgba(255,255,255,0.06);
    border-radius: 8px; padding: 8px 14px;
    color: rgba(255,255,255,0.25); font-size: 0.8rem;
}

/* ── Flow caption ── */
.flow-caption {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.875rem; margin-top: 3rem;
}

/* ══════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity:1 !important; transform:none !important; transition:none !important; }
    .marquee-track { animation:none !important; }
    .flow-node { opacity:1 !important; transform:none !important; }
    .hero-orb, .eco-orb, .bg-orb, .testi-orb, .cta-orb, .footer-orb { animation:none !important; }
    .hero-mockup-frame { animation:none !important; transform:none !important; }
    .hero-float-card { animation:none !important; }
    .badge-dot { animation:none !important; }
}

/* ══════════════════════════════════════════════
   INNER PAGES (pricing, contact, etc.)
══════════════════════════════════════════════ */
.page-hero {
    background: var(--bg);
    padding: 140px 0 80px;
    text-align: center;
    position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.5); max-width:600px; margin:1rem auto 0; }
.page-hero-orb {
    position:absolute; width:400px; height:400px; border-radius:50%;
    background: radial-gradient(circle, rgba(140,51,234,0.2) 0%, transparent 70%);
    filter: blur(60px); top:-100px; left:50%; transform:translateX(-50%);
    pointer-events:none;
}

/* Form styles */
.form-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 20px; padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display:block; margin-bottom:.5rem; font-weight:600; font-size:.875rem; color:#374151; }
.form-control {
    width:100%; height:48px; padding:0 1rem;
    border:1.5px solid var(--border); border-radius:10px;
    font-family:inherit; font-size:.9375rem; color:#111827;
    transition:all .2s;
}
.form-control:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(140,51,234,0.12); }
textarea.form-control { height:120px; padding:1rem; resize:vertical; }
.btn-submit {
    width:100%; height:52px; background:var(--primary); color:#fff;
    border:none; border-radius:10px; font-weight:700; font-size:1rem;
    cursor:pointer; display:flex; align-items:center; justify-content:center; gap:.75rem;
    transition:all .3s; box-shadow:0 4px 20px rgba(140,51,234,0.4);
}
.btn-submit:hover { background:var(--primary-dark); transform:translateY(-2px); }

/* Pricing cards */
.badge {
    position:absolute; top:-12px; right:20px;
    background:var(--primary); color:#fff;
    padding:5px 14px; border-radius:20px;
    font-size:.75rem; font-weight:700; text-transform:uppercase;
    box-shadow:0 4px 12px rgba(140,51,234,0.4); z-index:10;
}

/* FAQ */
.faq-item {
    background:#fff; border:1.5px solid var(--border);
    border-radius:14px; padding:1.5rem 2rem;
    margin-bottom:1rem; cursor:pointer;
    transition:all .25s ease;
}
.faq-item:hover { border-color:rgba(140,51,234,0.3); box-shadow:0 4px 20px rgba(140,51,234,0.08); }
.faq-item h4 { color:#111827; margin-bottom:.5rem; }
.faq-item p { color:#6b7280; line-height:1.65; }

/* ── Inner page hero ── */
.hero-section.mesh-bg h1 { color:#fff; font-size:clamp(2rem,5vw,3.25rem); line-height:1.15; }
.hero-section.mesh-bg p { color:rgba(255,255,255,0.6); }

/* ── Testimonial grid (Case Studies page) ── */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem; left: 1.5rem;
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-card p { padding-top: 1.5rem; margin: 0; }

/* ── SVG icons inherit color from parent ── */
.module-icon svg, .section li svg, .section span svg { color: var(--primary); }
.module-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; }

/* Mobile nav overlay */
.nav-open::before {
    content:''; position:fixed; inset:0; background:rgba(0,0,0,0.6);
    z-index:999; backdrop-filter:blur(4px);
}

/* ── Premium "How it Works" Upgrade ── */
.how-section {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    background: #ffffff; /* Reverted to White as requested */
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 120px 1fr 120px 1fr; /* Increased width for connectors */
    align-items: center;
    gap: 0;
    margin-top: 80px;
}

.how-step {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(20px);
    z-index: 2;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.how-step:hover {
    transform: translateY(-12px);
    background: #ffffff;
    border-color: rgba(140, 51, 234, 0.2);
    box-shadow: 0 30px 60px rgba(140, 51, 234, 0.08), 0 0 0 1px rgba(140, 51, 234, 0.1);
}

.how-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #8c33ea;
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(140, 51, 234, 0.3);
}

.how-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-energy-core {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(140,51,234,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

.how-step h3 {
    font-size: 1.6rem;
    color: #111827; /* Dark text for white background */
    margin-bottom: 16px;
    font-weight: 700;
}

.how-step p {
    font-size: 1rem;
    color: #4b5563; /* Muted dark text */
    line-height: 1.6;
}

.how-section .section-title {
    color: #111827 !important; /* Dark text */
}

.how-section .section-subtitle {
    color: #6b7280 !important; /* Dark text */
}


/* ── Onboarding Flow Connectors ── */
.how-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 60px;
    margin-top: 30px;
}

.flow-svg {
    width: 100%;
    height: 20px;
    overflow: visible;
}

.flow-line {
    stroke: rgba(140,51,234,0.35); /* Increased opacity from 0.15 to 0.35 */
    stroke-width: 6; /* Increased from 4 to 6 */
    stroke-dasharray: 8 12; /* Larger dots and gaps */
    stroke-linecap: round;
    fill: none;
    animation: flowPulse 20s linear infinite;
}

/* Strong mobile overrides for How It Works (onboarding) section */
@media (max-width: 768px) {
    .how-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-top: 28px !important;
    }
    .how-connector, .flow-svg, .flow-line, .flow-particle { display: none !important; }
    .how-step {
        padding: 28px 20px !important;
        min-height: auto !important;
        border-radius: 18px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
    }
    .how-number { top: -12px; font-size: 0.65rem; padding: 3px 12px; }
    .how-icon-wrap { width: 60px; height: 60px; margin-bottom: 20px; }
    .how-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
    .how-step p { font-size: 0.95rem; }
    .how-step:hover { transform: none; }
}

.flow-particle {
    stroke: #8c33ea;
    stroke-width: 10;
    stroke-dasharray: 1 120;
    stroke-linecap: round;
    fill: none;
    filter: drop-shadow(0 0 8px rgba(140,51,234,0.6));
    animation: flowParticles 3s linear infinite;
    opacity: 0;
}

/* Staggered particles */
.flow-particle:nth-child(2) { animation-delay: 0s; }
.flow-particle:nth-child(3) { animation-delay: 1s; }
.flow-particle:nth-child(4) { animation-delay: 2s; }

.how-icon {
    position: relative;
    z-index: 2;
    color: #8c33ea;
    filter: drop-shadow(0 0 4px rgba(140,51,234,0.3));
}

@keyframes flowPulse {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

@keyframes flowParticles {
    0% { stroke-dashoffset: 100; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (max-width: 991px) {
    .sh{transform:scale(0.5);transform-origin:center center}
    .sh-notif,.sh-ghost{display:none!important}
}

/* Force-disable heavy social hero animation for mobile/tablet viewports */
@media (max-width: 991px) {
    /* Hide all animated layers */
    .sh { pointer-events: none !important; min-height: 160px !important; height: auto !important; }
    .sh .sh-mote,
    .sh .sh-beams,
    .sh .sh-reaction,
    .sh .sh-notif,
    .sh .sh-typing,
    .sh .sh-hotzone,
    .sh .sh-orbit,
    .sh .sh-sat,
    .sh .sh-ghost,
    .sh .sh-center-ring,
    .sh .sh-center-ring2,
    .sh .sh-center-pulse,
    .sh .sh-center-pulse2,
    .sh .sh-center-glow,
    .sh .sh-sat-ring,
    .sh .sh-sat-ai,
    .sh .sh-center-live { display: none !important; opacity: 0 !important; animation: none !important; }

    /* Remove transforms/shadows so visual is static and lightweight */
    .sh, .sh * { transition: none !important; animation: none !important; }
    .sh { transform: none !important; }
    .sh .sh-center-avatar { box-shadow: none !important; transform: none !important; border-color: rgba(255,255,255,0.03) !important; }
    .sh .sh-center-label, .sh .sh-center-status { transform: none !important; }

    /* Hide any remaining decorative rings/orbits */
    .sh .sh-orbit, .sh .sh-orbit-1, .sh .sh-orbit-2 { display: none !important; }
}

/* Base Styles Fallback */
.no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* ============================================================
   PRODUCT PAGE TEMPLATE STYLES
   ============================================================ */

/* --- Hero Section --- */
.product-hero {
    position: relative;
    padding: 140px 0 100px;
    background: #080808;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(140,51,234,0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(140,51,234,0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.product-hero .hero-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.product-hero .hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .product-hero .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

.product-hero .hero-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 991px) {
    .product-hero .hero-actions {
        justify-content: center;
    }
}

/* Dashboard Mockup Visual */
.hero-visual {
    position: relative;
}

.dashboard-preview {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
}

.preview-header {
    height: 36px;
    background: #141414;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.preview-header .dots {
    display: flex;
    gap: 6px;
}

.preview-header .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.preview-header .dots span:nth-child(1) { background: #ff5f56; }
.preview-header .dots span:nth-child(2) { background: #ffbd2e; }
.preview-header .dots span:nth-child(3) { background: #27c93f; }

.preview-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-family: monospace;
}

.preview-body {
    display: flex;
    flex: 1;
}

.preview-sidebar {
    width: 50px;
    background: #121212;
    border-right: 1px solid rgba(255,255,255,0.03);
}

.preview-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    height: 60px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
}

.content-main {
    flex: 1;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 8px;
}

/* --- Trust Strip --- */
.trust-strip.bg-light {
    background: #0a0a0a !important;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding: 40px 0;
}

.trust-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-grid span {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.15);
    transition: var(--transition);
}

.logo-grid span:hover {
    color: rgba(255,255,255,0.4);
}

/* --- Ecosystem Section v2 --- */
.ecosystem-section-v2 {
    background: #080808;
    padding: 100px 0;
}

.ecosystem-grid-v2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* top 3 modules span 2 columns each (total 6) */
.ecosystem-grid-v2 .module-card-v2:nth-child(1),
.ecosystem-grid-v2 .module-card-v2:nth-child(2),
.ecosystem-grid-v2 .module-card-v2:nth-child(3) {
    grid-column: span 2;
}

/* bottom 2 modules span 3 columns each (total 6) */
.ecosystem-grid-v2 .module-card-v2:nth-child(4),
.ecosystem-grid-v2 .module-card-v2:nth-child(5) {
    grid-column: span 3;
}

@media (max-width: 991px) {
    .ecosystem-grid-v2 .module-card-v2:nth-child(1),
    .ecosystem-grid-v2 .module-card-v2:nth-child(2),
    .ecosystem-grid-v2 .module-card-v2:nth-child(3),
    .ecosystem-grid-v2 .module-card-v2:nth-child(4),
    .ecosystem-grid-v2 .module-card-v2:nth-child(5) {
        grid-column: span 6;
    }
}

.module-card-v2 {
    position: relative;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
    transition: var(--transition);
}

.module-card-v2:hover {
    transform: translateY(-5px);
    border-color: rgba(140,51,234,0.3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 30px rgba(140,51,234,0.1);
}

.module-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% -20%, rgba(140,51,234,0.15), transparent 60%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.module-card-v2:hover .module-glow {
    opacity: 1;
}

.module-card-v2 .icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(140,51,234,0.1);
    border: 1px solid rgba(140,51,234,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.module-card-v2:hover .icon-wrap {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.module-card-v2 h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 12px;
}

.module-card-v2 p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.module-launch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.launch-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.launch-text {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    transition: var(--transition);
}

.module-card-v2:hover .launch-text {
    color: var(--primary);
}

/* --- Features Tab Section --- */
.tab-section {
    background: #080808;
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    color: white;
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}

.tab-btn.active {
    background: rgba(140,51,234,0.1);
    border-color: rgba(140,51,234,0.3);
    color: white;
    box-shadow: 0 0 20px rgba(140,51,234,0.1);
}

.tab-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tab-pane.active {
    display: grid;
    animation: fadeIn 0.4s ease-out forwards;
}

@media (max-width: 991px) {
    .tab-pane {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.tab-info h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.25rem;
}

.tab-info p {
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.tab-visual {
    display: flex;
    justify-content: center;
}

.ui-mockup {
    width: 100%;
    max-width: 480px;
}

/* --- Flow Diagram Section --- */
.flow-section {
    position: relative;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
}

.bg-orb-1 { width: 400px; height: 400px; background: rgba(140,51,234,0.12); top: -10%; left: -10%; }
.bg-orb-2 { width: 500px; height: 500px; background: rgba(13,148,136,0.05); bottom: -10%; right: -10%; }
.bg-orb-3 { width: 300px; height: 300px; background: rgba(140,51,234,0.06); top: 50%; left: 50%; transform: translate(-50%, -50%); }

.flow-diagram-container {
    position: relative;
}

.flow-path-svg {
    pointer-events: none;
}

.flow-line {
    stroke: rgba(255,255,255,0.05);
    stroke-width: 3px;
    fill: none;
}

.flow-line-active {
    stroke: linear-gradient(90deg, var(--primary) 0%, #0d9488 100%);
    stroke-width: 3px;
    fill: none;
    opacity: 0.15;
}

.flow-glow-dot {
    fill: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}

.flow-node {
    transition: var(--transition);
}

.flow-node:hover {
    transform: translateY(-8px);
    border-color: rgba(140,51,234,0.25) !important;
    background: rgba(255,255,255,0.08) !important;
    box-shadow: var(--shadow-glow);
}

/* --- Stats Section --- */
.stats-section {
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .stats-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .stat-divider {
        display: none;
    }
}

/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

/* --- Capabilities CTA Grid --- */
.modules-grid {
    display: grid;
    gap: 24px;
    margin-top: 50px;
}

.module-card {
    position: relative;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    overflow: hidden;
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(140,51,234,0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.mc-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% -10%, rgba(140,51,234,0.1), transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.module-card:hover .mc-glow {
    opacity: 1;
}

.module-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: white;
}

.module-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
