/* ===========================================================================
   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.28);
}
.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);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    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 === */
