/* ===========================================================================
   STRIVEMAKE — LANDING POWER LAYER
   Master animation + graphic design + high-conversion enhancements.
   Layered on top of existing inline styles + glassmorphism layer.
   Deployed 2026-05-05.
   =========================================================================== */

/* --- 0. Geometric dot-grid background pattern (architectural feel) -------- */
body {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(10,40,24,0.04) 1px, transparent 0),
        radial-gradient(ellipse 70% 50% at 15% 0%,    rgba(12,175,96,0.10)  0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 25%,   rgba(255,107,74,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 50% 100%,  rgba(10,40,24,0.05)   0%, transparent 60%);
    background-size: 28px 28px, auto, auto, auto;
    background-color: var(--sm-bg, var(--sm-cream, #FAF6EF));
}

/* --- 1. Scroll-reveal animation system (.sm-reveal) ----------------------- */
.sm-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.sm-reveal.in {
    opacity: 1;
    transform: translateY(0);
}
.sm-reveal[data-stagger="1"] { transition-delay: 0.1s; }
.sm-reveal[data-stagger="2"] { transition-delay: 0.2s; }
.sm-reveal[data-stagger="3"] { transition-delay: 0.3s; }
.sm-reveal[data-stagger="4"] { transition-delay: 0.4s; }

/* Auto-stagger inside grids — children get progressive delays */
.sm-grid-3 > .sm-reveal:nth-child(1) { transition-delay: 0s; }
.sm-grid-3 > .sm-reveal:nth-child(2) { transition-delay: 0.12s; }
.sm-grid-3 > .sm-reveal:nth-child(3) { transition-delay: 0.24s; }
.sm-grid-3 > .sm-reveal:nth-child(4) { transition-delay: 0.36s; }
.sm-grid-3 > .sm-reveal:nth-child(5) { transition-delay: 0.48s; }
.sm-grid-3 > .sm-reveal:nth-child(6) { transition-delay: 0.60s; }
.sm-grid-4 > .sm-reveal:nth-child(1) { transition-delay: 0s; }
.sm-grid-4 > .sm-reveal:nth-child(2) { transition-delay: 0.10s; }
.sm-grid-4 > .sm-reveal:nth-child(3) { transition-delay: 0.20s; }
.sm-grid-4 > .sm-reveal:nth-child(4) { transition-delay: 0.30s; }
.sm-grid-4 > .sm-reveal:nth-child(5) { transition-delay: 0.40s; }
.sm-grid-4 > .sm-reveal:nth-child(6) { transition-delay: 0.50s; }
.sm-grid-4 > .sm-reveal:nth-child(7) { transition-delay: 0.60s; }
.sm-grid-4 > .sm-reveal:nth-child(8) { transition-delay: 0.70s; }

/* --- 2. Tabular numbers on stats for precise alignment -------------------- */
.sm-stat-num,
.sm-num,
.sm-case-num .v,
.sm-case-num,
[data-counter],
.sm-plan-price .smserif,
.sm-pricing-page .sm-plan-price .smserif {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* --- 3. Animated SVG dashboard mockup (video fallback + standalone) ------ */
.sm-demo-mockup {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}
.sm-demo-mockup-frame {
    position: relative;
    background: rgba(10, 40, 24, 0.94);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(10, 40, 24, 0.30),
        0 0 0 1px rgba(12, 175, 96, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s cubic-bezier(.2,.8,.2,1);
}
.sm-demo-mockup:hover .sm-demo-mockup-frame {
    transform: translateY(-6px) scale(1.005);
    box-shadow:
        0 40px 100px rgba(10, 40, 24, 0.40),
        0 0 0 1px rgba(12, 175, 96, 0.18);
}
.sm-demo-mockup-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sm-demo-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex: 0 0 12px;
}
.sm-demo-dot:nth-child(1) { background: #FF5F57; }
.sm-demo-dot:nth-child(2) { background: #FEBC2E; }
.sm-demo-dot:nth-child(3) { background: #28C840; }
.sm-demo-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
    letter-spacing: 0.02em;
}
.sm-demo-mockup-body {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}
.sm-demo-mockup-body svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Bars in the mockup chart pulse subtly to feel alive */
.sm-demo-bar { transform-origin: bottom; animation: sm-demo-bar-pulse 4s ease-in-out infinite; }
.sm-demo-bar:nth-child(2) { animation-delay: 0.2s; }
.sm-demo-bar:nth-child(3) { animation-delay: 0.4s; }
.sm-demo-bar:nth-child(4) { animation-delay: 0.6s; }
.sm-demo-bar:nth-child(5) { animation-delay: 0.8s; }
.sm-demo-bar:nth-child(6) { animation-delay: 1.0s; }
.sm-demo-bar:nth-child(7) { animation-delay: 1.2s; }
@keyframes sm-demo-bar-pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.85; }
    50%      { transform: scaleY(0.9); opacity: 1; }
}

/* The animated line in the mockup */
.sm-demo-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: sm-demo-line-draw 4s ease-out infinite alternate;
}
@keyframes sm-demo-line-draw {
    to { stroke-dashoffset: 0; }
}

/* Big play button overlay */
.sm-demo-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--sm-coral, #FF6B4A);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 16px 48px rgba(255, 107, 74, 0.45),
        0 0 0 0 rgba(255, 107, 74, 0.40);
    transition: transform .3s ease, box-shadow .3s ease;
    animation: sm-demo-play-pulse 2.5s ease-in-out infinite;
    z-index: 5;
}
.sm-demo-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #E54A2C;
}
.sm-demo-play svg { width: 28px; height: 28px; margin-left: 4px; }
@keyframes sm-demo-play-pulse {
    0%, 100% { box-shadow: 0 16px 48px rgba(255,107,74,0.45), 0 0 0 0 rgba(255,107,74,0.50); }
    50%      { box-shadow: 0 16px 48px rgba(255,107,74,0.45), 0 0 0 24px rgba(255,107,74,0); }
}

/* Subtitle / CTA below the mockup */
.sm-demo-cta {
    text-align: center;
    margin: 28px auto 0;
    color: var(--sm-text-soft);
    font-size: 16px;
    max-width: 620px;
}
.sm-demo-cta strong {
    color: var(--sm-secondary);
    font-weight: 700;
}
.sm-demo-cta a {
    margin-left: 8px;
    vertical-align: middle;
}

/* --- 4. Section dividers (subtle SVG curves between bleeds) -------------- */
.sm-divider-wave {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: -1px;
    margin-bottom: -1px;
    pointer-events: none;
}
.sm-divider-wave svg { width: 100%; height: 100%; display: block; }

/* --- 5. Sticky bottom CTA bar (appears after scrolling past hero) -------- */
.sm-sticky-cta {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 12px 12px 24px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid rgba(10, 40, 24, 0.08);
    border-radius: 100px;
    border-radius: 100px;
    box-shadow:
        0 16px 48px rgba(10, 40, 24, 0.18),
        0 0 0 1px rgba(12, 175, 96, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
    will-change: transform, opacity;
    max-width: calc(100vw - 32px);
}
.sm-sticky-cta.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.sm-sticky-cta-text {
    font-size: 14px;
    color: var(--sm-secondary, #0A2818);
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}
.sm-sticky-cta-text small {
    display: block;
    font-size: 11px;
    color: var(--sm-text-muted);
    font-weight: 500;
    margin-top: 2px;
}
.sm-sticky-cta .sm-btn {
    flex-shrink: 0;
    padding: 12px 26px !important;
    font-size: 14px !important;
    border-radius: 100px !important;
    line-height: 1.2;
    margin: 0 !important;
}
.sm-sticky-cta-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 40, 24, 0.05);
    border: 0;
    color: var(--sm-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
    margin-left: 4px;
}
.sm-sticky-cta-close:hover {
    background: rgba(10, 40, 24, 0.10) !important;
    color: var(--sm-secondary, #0A2818) !important;
}
.sm-sticky-cta-close:hover { background: rgba(10, 40, 24, 0.12); }

@media (max-width: 600px) {
    .sm-sticky-cta { padding: 10px 14px 10px 18px; gap: 10px; }
    .sm-sticky-cta-text { font-size: 13px; }
    .sm-sticky-cta-text small { display: none; }
}

/* --- 6. Live signup ticker (bottom-left toast) --------------------------- */
.sm-ticker {
    position: fixed;
    bottom: 88px;
    left: 16px;
    z-index: 80;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 14px 18px 14px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow:
        0 12px 32px rgba(10, 40, 24, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}
.sm-ticker.show {
    transform: translateX(0);
    opacity: 1;
}
.sm-ticker-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--sm-primary, #0CAF60), var(--sm-coral, #FF6B4A));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(12, 175, 96, 0.20);
}
.sm-ticker-text {
    font-size: 13px;
    color: var(--sm-secondary, #0A2818);
    line-height: 1.4;
}
.sm-ticker-text strong { font-weight: 700; }
.sm-ticker-text small {
    display: block;
    color: var(--sm-text-muted);
    font-size: 11px;
    margin-top: 2px;
}
.sm-ticker-pulse {
    position: absolute;
    top: 8px; right: 10px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sm-primary, #0CAF60);
    box-shadow: 0 0 0 0 rgba(12, 175, 96, 0.5);
    animation: sm-ticker-pulse 1.6s ease-out infinite;
}
@keyframes sm-ticker-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(12, 175, 96, 0.5); }
    100% { box-shadow: 0 0 0 12px rgba(12, 175, 96, 0); }
}

@media (max-width: 600px) {
    .sm-ticker { bottom: 76px; left: 8px; right: 8px; max-width: none; }
}

/* --- 7. Magnetic button cursor effect (set by JS) ----------------------- */
.sm-btn-primary,
.sm-btn-coral,
.sm-pricing-page .sm-btn-primary,
.sm-pricing-page .sm-btn-coral {
    will-change: transform;
}

/* --- 8. Trust strip (rotating-style) ------------------------------------ */
.sm-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 22px 36px;
    padding: 18px 24px;
    margin: 24px auto 0;
    max-width: 920px;
    background: rgba(255, 255, 255, 0.55);
    
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    box-shadow: 0 6px 20px rgba(10, 40, 24, 0.05);
}
.sm-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sm-text-soft);
    font-weight: 600;
    white-space: nowrap;
}
.sm-trust-item svg { flex-shrink: 0; }
.sm-trust-item strong {
    color: var(--sm-secondary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .sm-trust-strip { padding: 14px 18px; gap: 14px 22px; border-radius: 22px; }
    .sm-trust-item { font-size: 12px; }
}

/* --- 9. Stat number gradient + animation states ------------------------- */
.sm-stat-num {
    background: linear-gradient(135deg, var(--sm-secondary, #0A2818) 0%, var(--sm-primary, #0CAF60) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sm-stat-num .accent {
    -webkit-text-fill-color: var(--sm-coral, #FF6B4A);
}
.sm-bleed-secondary .sm-stat-num {
    background: linear-gradient(135deg, #FAF6EF 0%, var(--sm-coral, #FF6B4A) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 10. Hero text gradient on the strong-emphasis word ----------------- */
.sm-display .gradient-emphasis,
.sm-h2 .gradient-emphasis {
    background: linear-gradient(135deg, var(--sm-primary, #0CAF60) 0%, var(--sm-coral, #FF6B4A) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- 11. Reduced motion: kill animations -------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .sm-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .sm-demo-bar, .sm-demo-line, .sm-demo-play,
    body::before, body::after { animation: none !important; }
    .sm-sticky-cta, .sm-ticker {
        transition: opacity 0.2s ease !important;
        transform: translateX(-50%) translateY(0) !important;
    }
    .sm-ticker { transform: translateX(0) !important; }
}

/* --- 12. Print: clean page ---------------------------------------------- */
@media print {
    .sm-sticky-cta, .sm-ticker, .sm-demo-play, .sm-divider-wave { display: none !important; }
    body { background: white !important; }
}

/* === END landing-power layer === */


/* --- 15. Hero video card (replaces orbit when $homeVideo is set) ---------- */
.sm-hero-visual.sm-hero-visual-video {
    aspect-ratio: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    align-items: stretch !important;
    justify-content: center !important;
}
.sm-hero-video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    overflow: hidden;
    background: var(--sm-secondary, #0A2818);
    box-shadow:
        0 30px 60px rgba(10, 40, 24, 0.22),
        0 0 0 1px rgba(12, 175, 96, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateZ(0);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
                box-shadow 0.4s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}
.sm-hero-video-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 40px 80px rgba(10, 40, 24, 0.30),
        0 0 0 1px rgba(12, 175, 96, 0.30);
}
.sm-hero-video-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--sm-secondary, #0A2818);
}
/* Play button overlay (decorative when video is autoplaying muted) */
.sm-hero-video-expand {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--sm-secondary, #0A2818);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(10, 40, 24, 0.25);
    transition: transform 0.22s ease, background 0.22s ease;
    z-index: 3;
    animation: sm-hero-vid-pulse 3s ease-in-out infinite;
}
.sm-hero-video-expand:hover {
    transform: scale(1.10);
    background: var(--sm-coral, #FF6B4A);
    color: #fff;
}
.sm-hero-video-expand svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}
@keyframes sm-hero-vid-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(10, 40, 24, 0.25), 0 0 0 0 rgba(12, 175, 96, 0.45); }
    50%      { box-shadow: 0 8px 24px rgba(10, 40, 24, 0.25), 0 0 0 14px rgba(12, 175, 96, 0); }
}
/* Top-left "LIVE DEMO" badge */
.sm-hero-video-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 3;
}
.sm-hero-video-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sm-coral, #FF6B4A);
    animation: sm-hero-vid-blink 1.4s ease-in-out infinite;
}
@keyframes sm-hero-vid-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}
/* Lightbox modal styles */
.sm-hero-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 40, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sm-hero-video-modal.show {
    display: flex;
    opacity: 1;
}
.sm-hero-video-modal video {
    max-width: 1280px;
    width: 100%;
    height: auto;
    max-height: 86vh;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    background: #000;
}
.sm-hero-video-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.sm-hero-video-modal-close:hover { background: rgba(255, 255, 255, 0.28); }

/* Mobile: hide on small screens (already done by .sm-hero-visual @ 1099px), but trim for safety */
@media (max-width: 1099px) {
    .sm-hero-visual.sm-hero-visual-video { display: none !important; }
}

/* Reduced motion: don't autoplay */
@media (prefers-reduced-motion: reduce) {
    .sm-hero-video-el { animation: none !important; }
    .sm-hero-video-expand { animation: none !important; }
    .sm-hero-video-badge::before { animation: none !important; }
}
/* === END hero video --- */


/* ===========================================================================
   STRIVEMAKE — PRO UPGRADE PASS (deep glass + 3D tilt + module showcase + epic CTA)
   Deployed 2026-05-06.
   =========================================================================== */

/* --- 16. Deeper glass shadow pass on existing cards (override prior values) -- */
.sm-card,
.sm-faq-item,
.sm-plan,
.sm-pricing-page .sm-plan,
.sm-founder,
.sm-case,
.sm-ind-wrap,
.sm-template-card,
.addon-card,
.module-card,
.card {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 12px 32px rgba(10, 40, 24, 0.08),
        0 32px 80px -16px rgba(10, 40, 24, 0.10),
        0 0 0 1px rgba(255, 255, 255, 0.55) !important;
}
.sm-card:hover,
.sm-faq-item:hover,
.sm-plan:hover,
.sm-pricing-page .sm-plan:hover,
.sm-founder:hover,
.sm-case:hover,
.sm-ind-wrap:hover,
.sm-template-card:hover,
.addon-card:hover,
.module-card:hover,
.card:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 24px 48px rgba(10, 40, 24, 0.12),
        0 60px 120px -24px rgba(10, 40, 24, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.85) !important;
}

/* --- 17. 3D tilt prep (transforms applied by JS) ------------------------- */
.sm-tilt {
    transform-style: preserve-3d;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}
.sm-tilt-inner {
    transform-style: preserve-3d;
}

/* --- 18. STATS as 3D floating glass tiles (override existing flat stats) - */
section .sm-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    padding: 0 !important;
    background: transparent !important;
}
.sm-stat {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 24px !important;
    padding: 36px 28px !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                background 0.3s ease !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 14px 36px rgba(10, 40, 24, 0.08),
        0 32px 64px -16px rgba(10, 40, 24, 0.10) !important;
    position: relative;
    overflow: hidden;
    text-align: left !important;
    border-bottom: 0 !important;
    border-right: 0 !important;
}
.sm-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--sm-primary, #0CAF60), var(--sm-coral, #FF6B4A));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sm-stat:hover {
    transform: translateY(-6px) !important;
    background: rgba(255, 255, 255, 0.78) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 28px 56px rgba(10, 40, 24, 0.16),
        0 56px 112px -24px rgba(10, 40, 24, 0.18) !important;
}
.sm-stat:hover::before { transform: scaleX(1); }
@media (max-width: 768px) {
    .sm-stat { padding: 28px 22px !important; }
}

/* --- 19. MODULE SHOWCASE — category tabs + grid -------------------------- */
.sm-showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 36px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 6px 20px rgba(10, 40, 24, 0.06);
    max-width: max-content;
}
.sm-showcase-tab {
    padding: 10px 18px;
    border: 0;
    background: transparent;
    color: var(--sm-text-soft, #4F5B53);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
    white-space: nowrap;
}
.sm-showcase-tab:hover {
    color: var(--sm-secondary, #0A2818);
    background: rgba(255, 255, 255, 0.6);
}
.sm-showcase-tab.active {
    background: var(--sm-secondary, #0A2818);
    color: #fff;
    box-shadow: 0 4px 14px rgba(10, 40, 24, 0.20);
}
.sm-showcase-tab .sm-showcase-tab-count {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 100px;
    background: rgba(10, 40, 24, 0.08);
    font-size: 11px;
    font-weight: 700;
    color: var(--sm-text-muted, #8A9290);
}
.sm-showcase-tab.active .sm-showcase-tab-count {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.8);
}

.sm-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.sm-showcase-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    text-decoration: none;
    color: var(--sm-secondary, #0A2818);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                background 0.3s ease;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 6px 18px rgba(10, 40, 24, 0.04);
    position: relative;
    overflow: hidden;
}
.sm-showcase-tile:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 18px 40px rgba(10, 40, 24, 0.10);
    color: var(--sm-secondary, #0A2818);
}
.sm-showcase-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(12, 175, 96, 0.15), rgba(255, 107, 74, 0.10));
    border: 1px solid rgba(12, 175, 96, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: var(--sm-primary, #0CAF60);
    transition: transform 0.3s ease, background 0.3s ease;
}
.sm-showcase-tile:hover .sm-showcase-tile-icon {
    transform: rotate(-6deg) scale(1.08);
    background: linear-gradient(135deg, rgba(12, 175, 96, 0.25), rgba(255, 107, 74, 0.18));
}
.sm-showcase-tile-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    margin: 0 0 4px;
    color: var(--sm-secondary, #0A2818);
}
.sm-showcase-tile-desc {
    font-size: 12.5px;
    color: var(--sm-text-soft, #4F5B53);
    line-height: 1.4;
}
.sm-showcase-tile-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    color: var(--sm-primary, #0CAF60);
}
.sm-showcase-tile:hover .sm-showcase-tile-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sm-showcase-cat {
    display: none;
}
.sm-showcase-cat.active {
    display: contents;
}
.sm-showcase-grid.all-mode .sm-showcase-cat {
    display: contents;
}

.sm-showcase-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    padding: 24px;
    text-align: center;
    flex-wrap: wrap;
}
.sm-showcase-cta-text {
    font-size: 16px;
    color: var(--sm-text-soft, #4F5B53);
    font-weight: 500;
}
.sm-showcase-cta-text strong {
    color: var(--sm-secondary, #0A2818);
    font-weight: 800;
}

/* --- 20. EPIC FINAL CTA — animated multi-layer background -------------- */
.sm-bleed-secondary.sm-final-cta {
    position: relative !important;
    overflow: hidden !important;
    padding: 120px 0 !important;
}
.sm-bleed-secondary.sm-final-cta::before,
.sm-bleed-secondary.sm-final-cta::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
}
.sm-bleed-secondary.sm-final-cta::before {
    width: 580px; height: 580px;
    top: -150px; left: 8%;
    background: radial-gradient(circle, rgba(12, 175, 96, 0.18), transparent 65%);
    animation: sm-cta-orb-1 50s ease-in-out infinite;
}
.sm-bleed-secondary.sm-final-cta::after {
    width: 480px; height: 480px;
    bottom: -120px; right: 8%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.22), transparent 65%);
    animation: sm-cta-orb-2 60s ease-in-out infinite;
}
@keyframes sm-cta-orb-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes sm-cta-orb-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-60px, -40px) scale(0.95); }
}
.sm-bleed-secondary.sm-final-cta > .sm-container { position: relative; z-index: 1; }

.sm-final-cta-display {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #FAF6EF 0%, var(--sm-coral, #FF6B4A) 50%, var(--sm-primary, #0CAF60) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sm-final-cta-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    margin: 36px auto 0;
    padding: 18px 28px;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
}
.sm-final-cta-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 600;
}
.sm-final-cta-trust-strip svg {
    color: var(--sm-primary, #0CAF60);
}
@media (max-width: 600px) {
    .sm-final-cta-trust-strip { padding: 14px 20px; gap: 10px 18px; border-radius: 22px; }
    .sm-final-cta-trust-strip span { font-size: 12px; }
}

/* --- 21. Section transition wave dividers -------------------------------- */
.sm-wave-divider {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: -1px;
    margin-bottom: -1px;
    pointer-events: none;
}

/* === END pro-upgrade pass === */


/* --- 22. Performance: defer offscreen rendering ----------------------- */
.sm-bleed-cream,
.sm-bleed-mint,
section[id="all-modules"],
section[id="demo"],
section[id="stack"] {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1200px;
}
/* --- END perf pass --- */
