/* ====================================
   SECUREPASS360 - ULTRA REFINED STYLES
   Professional Design System v2.1
   ==================================== */

:root {
    /* Premium Color Palette - Enhanced Gradations */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    
    --success-500: #10b981;
    --success-600: #059669;
    
    --danger-400: #f87171;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    
    --warning-500: #f59e0b;
    
    /* Sophisticated Neutrals */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    /* Precise Spacing System (8px grid) */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* Refined Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    
    /* Professional Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
    
    /* Border Radius System */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* =================== TYPOGRAPHY REFINEMENTS =================== */

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--slate-50) 0%, var(--slate-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--slate-400);
    font-weight: 400;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--slate-400);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* =================== FORM & INPUT IMPROVEMENTS =================== */

.breach-scan-container {
    max-width: 800px;
    margin: 0 auto;
}

.scan-box {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8) 0%, 
        rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(30, 41, 59, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    transition: all var(--transition-base);
}

.input-group:focus-within {
    border-color: var(--primary-500);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
                var(--shadow-glow-blue);
}

#email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--slate-50);
    font-size: var(--text-base);
    padding: var(--space-3);
    font-weight: 400;
}

#email-input::placeholder {
    color: var(--slate-500);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    padding-left: var(--space-3);
}

/* =================== BUTTON SYSTEM REFINEMENTS =================== */

.btn-scan {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.btn-scan:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-700) 0%, #1e40af 100%);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    transform: translateY(-1px);
}

.btn-scan:active:not(:disabled) {
    transform: translateY(0);
}

.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
}

.btn-large:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, #1e40af 100%);
    box-shadow: var(--shadow-2xl), var(--shadow-glow-blue);
    transform: translateY(-2px);
}

.btn-nav {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.btn-nav:hover {
    background: var(--primary-700);
    box-shadow: var(--shadow-md);
}

/* =================== TRUST BADGES ENHANCEMENT =================== */

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--slate-400);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--slate-300);
    transform: translateY(-1px);
}

.badge-item svg {
    flex-shrink: 0;
    color: var(--success-500);
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.3));
}

/* =================== RESULTS SECTION =================== */

.scan-results {
    margin-top: var(--space-8);
    padding: var(--space-8);
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8) 0%, 
        rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    animation: resultSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-safe {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.08) 0%, 
        rgba(16, 185, 129, 0.02) 100%);
}

.result-danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.08) 0%, 
        rgba(239, 68, 68, 0.02) 100%);
}

.result-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.result-safe .result-header {
    color: var(--success-500);
}

.result-danger .result-header {
    color: var(--danger-500);
}

/* =================== FEATURE CARDS ENHANCEMENT =================== */

.features-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.feature-card,
.step-card {
    position: relative;
    padding: var(--space-8);
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.6) 0%, 
        rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.feature-card::before,
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.feature-card:hover,
.step-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8) 0%, 
        rgba(15, 23, 42, 1) 100%);
    transform: translateY(-4px);
    box-shadow: 
        var(--shadow-2xl),
        0 0 30px rgba(59, 130, 246, 0.15);
}

.feature-card:hover::before,
.step-card:hover::before {
    transform: scaleX(1);
}

.feature-icon,
.step-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    color: var(--primary-500);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon,
.step-card:hover .step-icon-wrapper {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    transform: scale(1.05) rotate(-5deg);
    box-shadow: var(--shadow-glow-blue);
}

.feature-card h3,
.step-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--slate-50);
}

.feature-card p,
.step-card p {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--slate-400);
}

/* =================== CTA SECTION REFINEMENT =================== */

.cta-section {
    position: relative;
    padding: var(--space-20) 0;
    overflow: hidden;
}

.cta-box {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-12);
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.9) 0%, 
        rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: 
        var(--shadow-2xl),
        0 0 40px rgba(59, 130, 246, 0.1);
}

.cta-box h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--slate-50) 0%, var(--slate-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: var(--space-8) 0;
    padding: 0;
    list-style: none;
}

.cta-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    color: var(--slate-300);
    font-weight: 500;
}

.cta-features svg {
    color: var(--success-500);
    flex-shrink: 0;
}

.price-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-8) 0;
}

.currency {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--slate-400);
}

.amount {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.period {
    font-size: var(--text-xl);
    color: var(--slate-400);
    font-weight: 500;
}

.guarantee {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--slate-500);
}

/* =================== RESPONSIVE REFINEMENTS =================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-scan {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .amount {
        font-size: var(--text-6xl);
    }
}

/* =================== MICRO-ANIMATIONS =================== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-icon,
.step-icon-wrapper {
    animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.4s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.6s; }

/* =================== ACCESSIBILITY ENHANCEMENTS =================== */

@media (prefers-reduced-motion: reduce) {
    .feature-icon,
    .step-icon-wrapper {
        animation: none;
    }
}
