/* =========================================================================
   STAMINA CTA SHOWCASE
   Design system: dark theme, violet (#9966FF), gradients, glassmorphism
   Scoped under .stamina-section to avoid conflicts with Bootstrap/Sandbox
   ========================================================================= */

/* ---- Custom Properties ---- */
.stamina-section {
    --st-primary: #9966FF;
    --st-violet-700: #7c3aed;
    --st-violet-600: #8b5cf6;
    --st-violet-400: #a78bfa;
    --st-purple-600: #9333ea;
    --st-indigo-600: #4f46e5;
    --st-fuchsia-400: #e879f9;
    --st-dark: #140025;
    --st-dark-alt: #1a0a2e;
    --st-accent: #38BDF8;
    --st-emerald: #34d399;
    font-family: 'Manrope', 'Urbanist', sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
}

.stamina-section *,
.stamina-section *::before,
.stamina-section *::after {
    box-sizing: border-box;
}

/* ---- Keyframe Animations ---- */
@keyframes st-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes st-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes st-stripe {
    0% { transform: translateX(-200%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes st-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.3), 0 0 40px rgba(139,92,246,0.15); }
    50% { box-shadow: 0 0 30px rgba(139,92,246,0.5), 0 0 60px rgba(139,92,246,0.25); }
}

@keyframes st-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes st-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes st-fade-in-up {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes st-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes st-orbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

/* ---- Proposal Labels (showcase only) ---- */
.stamina-proposal-label {
    display: inline-block;
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.7rem;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 0.5rem;
    color: var(--st-violet-400);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 10;
    font-family: 'Manrope', monospace;
}

/* ---- Backgrounds ---- */
.st-bg-dark {
    background: var(--st-dark);
}

.st-bg-hero {
    background: var(--st-dark-alt);
}

.st-bg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(124,58,237,0.25), transparent 60%);
    pointer-events: none;
}

.st-bg-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom left, rgba(147,51,234,0.15), transparent 60%);
    pointer-events: none;
}

.st-bg-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #6d28d9 100%);
}

.st-bg-gradient-subtle {
    background: linear-gradient(135deg, rgba(139,92,246,0.05) 0%, rgba(109,40,217,0.08) 100%);
}

/* ---- Gradient Text ---- */
.st-text-gradient {
    background: linear-gradient(to right, var(--st-violet-400), var(--st-fuchsia-400), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.st-text-gradient-disco {
    background: linear-gradient(135deg, #9966ff 0%, #ff66ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.st-text-gradient-shimmer {
    background: linear-gradient(90deg, #8b5cf6, #c4b5fd, #8b5cf6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: st-shimmer 3s linear infinite;
}

/* ---- Typography ---- */
.st-heading-xl {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.st-heading-lg {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.st-heading-md {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.st-heading-sm {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.st-body {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
}

.st-body-sm {
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ---- Color Utilities ---- */
.st-text-white { color: #fff; }
.st-text-gray-300 { color: #d1d5db; }
.st-text-gray-400 { color: #9ca3af; }
.st-text-violet { color: var(--st-violet-400); }
.st-text-emerald { color: var(--st-emerald); }
.st-text-accent { color: var(--st-accent); }

/* ---- Buttons ---- */

/* Main CTA - gradient with animated stripe */
.st-btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Manrope', sans-serif;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    background: linear-gradient(to right, var(--st-violet-700), var(--st-purple-600), var(--st-indigo-600));
    transition: all 0.5s ease;
    text-decoration: none;
    line-height: 1.5;
}

.st-btn-cta:hover {
    background: linear-gradient(to right, #6d28d9, #7e22ce, #4338ca);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}

.st-btn-cta:active {
    transform: scale(0.95);
}

.st-btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-200%) skewX(-15deg);
}

.st-btn-cta:hover::before {
    animation: st-stripe 0.8s ease;
}

/* Small CTA variant */
.st-btn-cta-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 0.75rem;
}

/* Large CTA variant */
.st-btn-cta-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* White / inverse CTA */
.st-btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #fff;
    color: #5b21b6;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Manrope', sans-serif;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.st-btn-white:hover {
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: #5b21b6;
    text-decoration: none;
}

/* Ghost button */
.st-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: #fff;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.st-btn-ghost:hover {
    color: #c4b5fd;
    text-decoration: none;
}

/* Outline button */
.st-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    background: transparent;
    border: 2px solid rgba(139,92,246,0.4);
    border-radius: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.st-btn-outline:hover {
    border-color: rgba(139,92,246,0.8);
    background: rgba(139,92,246,0.1);
    color: #fff;
    text-decoration: none;
}

/* ---- Cards ---- */

/* Standard Stamina card-module */
.st-card {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(109,40,217,0.08) 100%);
    border: 1px solid rgba(139,92,246,0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #fff;
}

.st-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.st-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.st-card:hover {
    border-color: rgba(139,92,246,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(139,92,246,0.25);
    color: #fff;
    text-decoration: none;
}

.st-card:hover::before {
    transform: translateX(100%);
}

.st-card:hover::after {
    opacity: 1;
}

/* Connector card (lighter) */
.st-card-connector {
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(109,40,217,0.06) 100%);
    border: 1px solid rgba(139,92,246,0.12);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #fff;
}

.st-card-connector:hover {
    border-color: rgba(139,92,246,0.35);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px -6px rgba(139,92,246,0.2);
    color: #fff;
    text-decoration: none;
}

/* Glassmorphic card */
.st-glass {
    background: rgba(20,0,40,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 1.5rem;
}

/* Final CTA large card */
.st-card-final {
    border-radius: 1rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(109,40,217,0.1) 100%);
    border: 1px solid rgba(139,92,246,0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.st-card-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* ---- Pill Badge ---- */
.st-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 9999px;
    color: #c4b5fd;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: st-float 3s ease-in-out infinite;
}

.st-pill:hover {
    background: rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.4);
    color: #fff;
    text-decoration: none;
}

/* ---- Icon Circles ---- */
.st-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.st-icon-violet { background: rgba(139,92,246,0.15); color: var(--st-violet-400); }
.st-icon-cyan { background: rgba(56,189,248,0.15); color: var(--st-accent); }
.st-icon-emerald { background: rgba(52,211,153,0.15); color: var(--st-emerald); }
.st-icon-pink { background: rgba(244,114,182,0.15); color: #f472b6; }
.st-icon-amber { background: rgba(251,191,36,0.15); color: #fbbf24; }

/* ---- Floating Widget (CTA 7) ---- */
.st-widget {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--st-dark);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 1.25rem;
    box-shadow: 0 0 30px rgba(153,102,255,0.15), 0 20px 40px rgba(0,0,0,0.3);
}

.st-widget-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--st-emerald);
    animation: st-pulse 2s ease-in-out infinite;
}

/* ---- Decorative Elements ---- */
.st-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.st-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(139,92,246,0.15);
    top: -100px;
    right: -50px;
}

.st-orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(147,51,234,0.1);
    bottom: -50px;
    left: -30px;
}

/* Dots grid pattern */
.st-dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(139,92,246,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.5;
}

/* ---- Separator between proposals ---- */
.st-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
    margin: 0;
    border: none;
}

/* ---- Logo ---- */
.st-logo {
    height: 32px;
    width: auto;
}

.st-logo-lg {
    height: 48px;
    width: auto;
}

.st-logo-glow {
    animation: st-glow 4s ease-in-out infinite;
    border-radius: 8px;
}

/* ---- Number accent ---- */
.st-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9966ff, #8b5cf6, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ---- Check list ---- */
.st-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.st-check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ---- Inline badge for CTA 9 ---- */
.st-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(109,40,217,0.12));
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #5b21b6;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
}

.st-inline-badge:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(109,40,217,0.2));
    border-color: rgba(139,92,246,0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139,92,246,0.15);
    text-decoration: none;
    color: #5b21b6;
}

.st-inline-badge .st-inline-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--st-violet-700), var(--st-purple-600));
    color: #fff;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.st-inline-badge:hover .st-inline-arrow {
    transform: translateX(3px);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .st-heading-xl {
        font-size: 2rem;
    }
    .st-heading-lg {
        font-size: 1.65rem;
    }
    .st-card-final {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .st-heading-xl {
        font-size: 1.65rem;
    }
    .st-heading-lg {
        font-size: 1.4rem;
    }
    .st-heading-md {
        font-size: 1.25rem;
    }
    .st-btn-cta {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    .st-btn-white {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    .st-card-final {
        padding: 1.5rem;
    }
    .stamina-proposal-label {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ---- Border Glow Animation ---- */
@keyframes st-border-glow {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15), 0 0 15px rgba(139, 92, 246, 0.05);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.08);
    }
}

.st-border-glow {
    animation: st-border-glow 3s ease-in-out infinite;
}
