/* ========================================
   BIIO — Premium Design System
   ======================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
    --bg-color: #050a18;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --primary-color: #25D366;
    --primary-hover: #1EBE55;
    --primary-glow: rgba(37, 211, 102, 0.25);
    --secondary-color: #6366f1;
    --accent-color: #0ea5e9;
    --accent-2: #8b5cf6;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #22c55e;

    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5e9, #6366f1);
    --gradient-premium: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    --gradient-success: linear-gradient(135deg, #22c55e, #0ea5e9);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));

    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Animated Background --- */
.bg-aurora {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-aurora::before,
.bg-aurora::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: auroraFloat 20s ease-in-out infinite alternate;
}
.bg-aurora::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #667eea, #764ba2);
    top: -200px; left: -100px;
}
.bg-aurora::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #0ea5e9, #6366f1);
    bottom: -150px; right: -100px;
    animation-delay: -10s;
    animation-duration: 25s;
}
@keyframes auroraFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 40px) scale(1.1); }
    66% { transform: translate(-40px, 80px) scale(0.95); }
    100% { transform: translate(60px, -30px) scale(1.05); }
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
h1 { font-size: 2.4rem; font-weight: 900; }
h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.05rem; }

.highlight {
    background: var(--gradient-premium);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.alert-text { color: var(--danger-color); font-weight: 600; }
.subtitle { font-size: 1.1rem; color: var(--text-muted); }

/* --- Glass Card Mixin --- */
.glass-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.06), transparent 40%);
    pointer-events: none;
    z-index: 0;
}
.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    min-height: 52px;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn:active::after {
    width: 300px;
    height: 300px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a9f4e);
    color: #fff;
    box-shadow:
        0 4px 15px var(--primary-glow),
        inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px var(--primary-glow),
        inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}
.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

/* --- Pulse Animation --- */
@keyframes pulseGlow {
    0% { box-shadow: 0 4px 15px var(--primary-glow), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 4px 15px var(--primary-glow), 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 15px var(--primary-glow), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse { animation: pulseGlow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* --- Shimmer Effect --- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* --- Sections --- */
section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 800px; height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(14, 165, 233, 0.06) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: heroOrb 15s ease-in-out infinite alternate;
}
@keyframes heroOrb {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-45%, -55%) scale(1.15); opacity: 1; }
    100% { transform: translate(-55%, -48%) scale(0.95); opacity: 0.7; }
}

/* --- Hero Stagger Animations --- */
.hero-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    animation: staggerIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.25s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.4s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.55s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.7s; }
@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.badge::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 2rem 0;
    font-weight: 500;
    font-size: 1.1rem;
}
.hero-bullets span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-bullets .bullet-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-bullets .bullet-icon svg {
    width: 12px; height: 12px;
    stroke: white; stroke-width: 3;
    fill: none;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* ========================================
   SOUND TOGGLE
   ======================================== */
.sound-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
}
.sound-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.sound-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.sound-toggle.muted {
    opacity: 0.5;
}

/* ========================================
   TEST OVERLAY
   ======================================== */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 10, 24, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-bottom: calc(20px + var(--safe-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.overlay.fade-in {
    animation: overlayIn 0.4s ease forwards;
}
@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.test-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    margin: auto 0;
    flex-shrink: 0;
}

/* --- Premium Progress System --- */
.progress-system {
    margin-bottom: 2rem;
}
.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.progress-step-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.progress-step-text .current {
    color: var(--accent-color);
    font-size: 1rem;
}
.progress-percent {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
}

.progress-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.progress-dot {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.progress-dot.completed {
    background: var(--gradient-accent);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}
.progress-dot.active {
    background: rgba(14, 165, 233, 0.2);
}
.progress-dot.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 40%;
    background: var(--gradient-accent);
    border-radius: 4px;
    animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { width: 30%; opacity: 0.7; }
    50% { width: 70%; opacity: 1; }
}

.progress-encouragement {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
    min-height: 1.2em;
}

/* --- Question Container --- */
.question-container {
    position: relative;
}
.question-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    border-radius: 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-spring);
}
.question-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.question-icon.animate-in {
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes iconBounce {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#question-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text-main);
}

/* --- Options --- */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    min-height: 54px;
}
.option-btn .option-letter {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}
.option-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}
.option-btn:hover .option-letter {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}
.option-btn:active {
    transform: scale(0.98);
}
.option-btn.selected {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.1);
}
.option-btn.selected .option-letter {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.option-btn.fade-out {
    opacity: 0.3;
    transform: scale(0.97);
    pointer-events: none;
}

/* --- Question Transitions --- */
.question-slide-out {
    animation: slideOutLeft 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.question-slide-in {
    animation: slideInRight 0.4s cubic-bezier(0, 0, 0.2, 1) forwards;
}
@keyframes slideOutLeft {
    to { transform: translateX(-40px); opacity: 0; }
}
@keyframes slideInRight {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========================================
   TRANSITION SCREENS
   ======================================== */
.transition-screen {
    text-align: center;
    padding: 2rem;
}
.transition-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    background: var(--gradient-accent);
    animation: orbPulse 2s ease-in-out infinite;
    position: relative;
}
.transition-orb::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(14, 165, 233, 0.3);
    animation: orbRing 2s ease-in-out infinite;
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 40px rgba(14, 165, 233, 0.3); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 60px rgba(14, 165, 233, 0.5); }
}
@keyframes orbRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0; }
}
.transition-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.transition-subtext {
    font-size: 0.9rem;
    color: var(--text-dim);
}
.transition-progress-bar {
    width: 100%;
    max-width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}
.transition-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   LEAD WALL
   ======================================== */
.lead-wall {
    text-align: center;
    position: relative;
}
.lead-wall-preview {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.lead-wall-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 24, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}
.lead-wall-preview .preview-content {
    filter: blur(4px);
    opacity: 0.5;
}
.lead-wall-lock {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}
.lead-wall-lock svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 8px;
    animation: lockFloat 2s ease-in-out infinite;
}
@keyframes lockFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.lead-wall h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.lead-wall p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Form Inputs Premium --- */
.form-group {
    position: relative;
    margin-bottom: 16px;
}
.form-group input {
    width: 100%;
    padding: 16px 18px;
    padding-top: 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus {
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.form-group label {
    position: absolute;
    top: 50%; left: 18px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-dim);
    pointer-events: none;
    transition: var(--transition);
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 10px;
    transform: translateY(0);
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* ========================================
   RESULT BOX
   ======================================== */
.result-box {
    text-align: center;
}
.result-box.animate-in > * {
    opacity: 0;
    transform: translateY(16px);
    animation: staggerIn 0.5s ease forwards;
}
.result-box.animate-in > *:nth-child(1) { animation-delay: 0.1s; }
.result-box.animate-in > *:nth-child(2) { animation-delay: 0.3s; }
.result-box.animate-in > *:nth-child(3) { animation-delay: 0.5s; }
.result-box.animate-in > *:nth-child(4) { animation-delay: 0.7s; }
.result-box.animate-in > *:nth-child(5) { animation-delay: 0.9s; }

/* --- Risk Gauge --- */
.risk-gauge-container {
    margin: 1.5rem auto;
    position: relative;
    width: 160px;
    height: 100px;
}
.risk-gauge-bg {
    position: absolute;
    bottom: 0; left: 0;
    width: 160px; height: 80px;
    overflow: hidden;
}
.risk-gauge-bg::before {
    content: '';
    display: block;
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 12px solid rgba(255,255,255,0.06);
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(225deg);
}
.risk-gauge-fill {
    position: absolute;
    bottom: 0; left: 0;
    width: 160px; height: 80px;
    overflow: hidden;
}
.risk-gauge-fill::before {
    content: '';
    display: block;
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 12px solid transparent;
    border-top-color: var(--gauge-color, var(--success-color));
    border-right-color: var(--gauge-color, var(--success-color));
    transform: rotate(225deg) rotate(var(--gauge-angle, 0deg));
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.risk-gauge-label {
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.risk-low { background: rgba(34, 197, 94, 0.12); color: var(--success-color); border: 1px solid rgba(34, 197, 94, 0.3); }
.risk-medium { background: rgba(245, 158, 11, 0.12); color: var(--warning-color); border: 1px solid rgba(245, 158, 11, 0.3); }
.risk-high { background: rgba(239, 68, 68, 0.12); color: var(--danger-color); border: 1px solid rgba(239, 68, 68, 0.3); }

/* --- Fugas --- */
.fugas-container {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin: 1.5rem 0;
    text-align: left;
}
.fugas-container .fugas-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--danger-color);
    margin-bottom: 0.8rem;
}
.fugas-container ul { list-style: none; }
.fugas-container li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0;
    animation: staggerIn 0.4s ease forwards;
}
.fugas-container li:nth-child(1) { animation-delay: 0.6s; }
.fugas-container li:nth-child(2) { animation-delay: 0.8s; }
.fugas-container li:nth-child(3) { animation-delay: 1s; }
.fugas-container li:nth-child(4) { animation-delay: 1.2s; }
.fugas-container li:nth-child(5) { animation-delay: 1.4s; }
.fugas-container li:nth-child(6) { animation-delay: 1.6s; }
.fugas-container li .fuga-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.fugas-container li .fuga-icon svg {
    width: 10px; height: 10px;
    stroke: var(--danger-color); stroke-width: 3; fill: none;
}

.result-dynamic-text {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    text-align: left;
    margin: 1rem 0;
}
.result-dynamic-text .result-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}
.result-dynamic-text li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.result-dynamic-text li .check-icon {
    color: var(--success-color);
    font-weight: bold;
}

/* ========================================
   PRESENTATION SECTIONS
   ======================================== */
/* --- Scroll Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Problem Section --- */
.problem-section {
    background: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.04) 0%, transparent 50%);
}
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 2rem 0;
}
.problem-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(239, 68, 68, 0.1);
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}
.problem-card:hover {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.04);
}
.problem-card .p-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.problem-card .p-icon svg {
    width: 10px; height: 10px;
    stroke: var(--danger-color); stroke-width: 3; fill: none;
}

/* --- Solution Section --- */
.solution-section {
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.04) 0%, transparent 50%);
}
.benefits-list {
    list-style: none;
    text-align: left;
    max-width: 340px;
    margin: 1.5rem auto;
}
.benefits-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}
.benefits-list li .b-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.benefits-list li .b-icon svg {
    width: 12px; height: 12px;
    stroke: var(--success-color); stroke-width: 3; fill: none;
}

/* --- Simulator Section --- */
.simulator-section {
    background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
}
.simulator-box {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.simulator-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gradient-accent);
}
.roi-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Features Section --- */
.features-section {
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 400px;
    margin: 1.5rem auto 0;
}
.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: default;
}
.feature-card:hover {
    border-color: var(--border-glow);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}
.feature-card .f-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-card .f-icon svg {
    width: 14px; height: 14px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Businesses/Demos Section --- */
.businesses-section {
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
}
.rubros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 2rem 0;
}
.rubro-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 20px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}
.rubro-card:hover {
    border-color: var(--border-glow);
    background: rgba(255,255,255,0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.rubro-card .rubro-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* --- Visualization Section --- */
.visualization-section {
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
}
.visualization-box {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.visualization-box p {
    transition: opacity 0.3s ease;
}
.viz-step {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.viz-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Pricing Section --- */
.offer-section {
    background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
}
.pricing-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gradient-premium);
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}
.price-strike {
    text-decoration: line-through;
    color: var(--text-dim);
    font-size: 1.1rem;
}
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.8rem 0;
}
.price-big {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.payment-terms {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    text-align: center;
}
.payment-terms ul, .inclusions-list ul {
    list-style: none;
    margin-top: 0.5rem;
}
.inclusions-list { font-size: 0.95rem; text-align: left; }
.inclusions-list li {
    margin-bottom: 6px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.inclusions-list li .inc-check {
    color: var(--success-color);
    font-weight: bold;
}

/* --- Closing Section --- */
.closing-section {
    background: radial-gradient(circle at 50% 80%, rgba(37, 211, 102, 0.05) 0%, transparent 50%);
    padding-bottom: calc(4rem + var(--safe-bottom) + 80px);
}

/* ========================================
   FLOATING CTA
   ======================================== */
.floating-cta {
    position: fixed;
    bottom: calc(20px + var(--safe-bottom));
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), #1a9f4e);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow:
        0 8px 30px rgba(37, 211, 102, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 9000;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45);
}
.floating-cta svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* ========================================
   CONFIRMATION OVERLAY
   ======================================== */
.confirmation-container {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
}
.confirmation-container .steps {
    text-align: left;
    margin-top: 1.5rem;
}
.confirmation-container .steps ol {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}
.confirmation-container .steps li {
    counter-increment: step;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.confirmation-container .steps li::before {
    content: counter(step);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* --- Premium Spinner --- */
.spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(255,255,255,0.06);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto 0;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Demo Modal --- */
.demo-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.demo-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ========================================
   CONFETTI CANVAS
   ======================================== */
#confetti-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10000;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-aurora::before,
    .bg-aurora::after {
        animation: none;
    }
}

/* ========================================
   DESKTOP OVERRIDES
   ======================================== */
@media (min-width: 768px) {
    .container { max-width: 800px; }
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.2rem; }
    .hero-bullets { flex-direction: row; justify-content: center; gap: 2rem; }
    .hero-actions { flex-direction: row; justify-content: center; }
    .problem-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(4, 1fr); max-width: 600px; }
    .rubros-grid { grid-template-columns: repeat(3, 1fr); }
    .floating-cta {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: auto;
        border-radius: var(--radius-full);
        padding: 14px 24px;
    }
    .test-container { max-width: 520px; }
}
