/* ============================================
   Flowdex Trust - Premium Fintech Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: hsl(222, 47%, 6%);
    --bg-secondary: hsl(222, 47%, 9%);
    --bg-card: hsl(222, 47%, 11%);
    --bg-muted: hsl(222, 30%, 18%);
    
    --text-primary: hsl(210, 40%, 96%);
    --text-muted: hsl(215, 20%, 55%);
    
    --accent-primary: hsl(217, 91%, 60%);
    --accent-primary-glow: hsl(217, 91%, 70%);
    --accent-gold: hsl(43, 74%, 49%);
    --accent-gold-light: hsl(43, 74%, 65%);
    --accent-destructive: hsl(0, 84%, 60%);
    
    --border-color: hsl(222, 30%, 18%);
    --border-light: hsla(222, 30%, 25%, 0.3);
    
    /* Shadows */
    --shadow-glow: 0 0 40px hsla(217, 91%, 60%, 0.3);
    --shadow-gold: 0 0 40px hsla(43, 74%, 49%, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 55%) 0%, hsl(217, 91%, 65%) 100%);
    --gradient-gold: linear-gradient(135deg, hsl(43, 74%, 45%) 0%, hsl(43, 74%, 55%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(222, 47%, 12%) 0%, hsl(222, 47%, 8%) 100%);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.text-muted-custom {
    color: var(--text-muted) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.smaller {
    font-size: 0.75rem;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

/* Header */
.header {
    background: hsla(222, 47%, 6%, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1050;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--bg-primary);
}

.navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background-color: var(--accent-primary-glow);
    border-color: var(--accent-primary-glow);
}

.btn-premium {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 20px hsla(217, 91%, 60%, 0.3);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.btn-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px hsla(217, 91%, 60%, 0.5);
}

.btn-premium:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-gold {
    background: var(--gradient-gold);
    border: none;
    color: var(--bg-primary);
    font-weight: 600;
    box-shadow: 0 4px 20px hsla(43, 74%, 49%, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.btn-gold:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px hsla(43, 74%, 49%, 0.5);
    color: var(--bg-primary);
}

.btn-glass {
    background: hsla(222, 47%, 11%, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.btn-glass:hover {
    background: hsla(222, 47%, 11%, 0.8);
    border-color: hsla(217, 91%, 60%, 0.3);
    color: var(--text-primary);
}

/* Glass Cards */
.glass-card {
    background: hsla(222, 47%, 11%, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.glass-card-hover {
    background: hsla(222, 47%, 11%, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.glass-card-hover:hover {
    border-color: hsla(217, 91%, 60%, 0.3);
    box-shadow: 0 8px 32px hsla(217, 91%, 60%, 0.15);
    transform: translateY(-2px);
}

/* Badge Pills */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: hsla(217, 91%, 60%, 0.1);
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.badge-pill-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: hsla(217, 91%, 60%, 0.1);
    border: 1px solid hsla(217, 91%, 60%, 0.2);
}

.badge-pill-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: hsla(43, 74%, 49%, 0.1);
    border: 1px solid hsla(43, 74%, 49%, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Form Controls */
.form-control-custom {
    background: hsla(222, 30%, 15%, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.form-control-custom:focus {
    background: hsl(222, 30%, 15%);
    border-color: hsla(217, 91%, 60%, 0.5);
    box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.2);
    color: var(--text-primary);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-check-input {
    background-color: hsla(222, 30%, 15%, 0.5);
    border-color: var(--border-color);
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.2);
}

/* Custom Range Slider */
.custom-range {
    height: 12px;
    background: transparent;
}

.custom-range::-webkit-slider-runnable-track {
    height: 12px;
    background: var(--bg-muted);
    border-radius: 6px;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-top: -6px;
    cursor: grab;
    box-shadow: 0 2px 10px hsla(217, 91%, 60%, 0.4);
    transition: all var(--transition-fast);
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.custom-range::-webkit-slider-thumb:active {
    cursor: grabbing;
}

/* Risk Buttons */
.risk-btn {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: hsla(222, 47%, 14%, 0.3);
    color: var(--text-muted);
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.risk-btn:hover {
    border-color: var(--border-light);
}

.risk-btn.active {
    border-color: var(--accent-primary);
}

.risk-btn[data-risk="low"].active {
    background: hsla(217, 91%, 60%, 0.2);
    color: hsl(217, 91%, 70%);
}

.risk-btn[data-risk="medium"].active {
    background: hsla(43, 74%, 49%, 0.2);
    color: var(--accent-gold);
}

.risk-btn[data-risk="high"].active {
    background: hsla(0, 84%, 60%, 0.2);
    color: hsl(0, 84%, 70%);
}

/* Section Styles */
.section-padding {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 7rem 0;
    }
}

@media (min-width: 992px) {
    .section-padding {
        padding: 8rem 0;
    }
}

.section-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, hsla(222, 47%, 14%, 0.2) 50%, var(--bg-primary) 100%);
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-primary), hsla(222, 47%, 6%, 0.9), hsla(222, 47%, 6%, 0.7));
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent, transparent);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(hsla(217, 91%, 60%, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, hsla(217, 91%, 60%, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

/* Phone Mockup */
.phone-mockup-container {
    text-align: center;
}

.phone-mockup-container img {
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: hsla(217, 91%, 60%, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

/* Feature Icons */
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, hsla(217, 91%, 60%, 0.2) 0%, hsla(217, 91%, 60%, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* Result Icons */
.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-card-hover:hover .result-icon {
    transform: scale(1.1);
}

/* Simulator Section */
.simulator-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.simulator-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: hsla(217, 91%, 60%, 0.05);
    border-radius: 50%;
    filter: blur(120px);
}

.result-card {
    background: linear-gradient(135deg, hsla(217, 91%, 60%, 0.1) 0%, hsla(43, 74%, 49%, 0.05) 100%);
    border-color: hsla(217, 91%, 60%, 0.2);
    box-shadow: var(--shadow-glow);
}

.return-badge {
    background: hsla(217, 91%, 60%, 0.1);
}

.minimum-badge {
    background: hsla(43, 74%, 49%, 0.1);
    border: 1px solid hsla(43, 74%, 49%, 0.2);
}

/* Pain Points */
.pain-card {
    border-left: 4px solid hsla(0, 84%, 60%, 0.5);
}

.image-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    border-radius: 16px;
}

/* How It Works Steps */
.step-line {
    position: absolute;
    top: 150px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, hsla(217, 91%, 60%, 0.5), hsla(217, 91%, 60%, 0.2), hsla(217, 91%, 60%, 0.5));
}

.step-card {
    padding-top: 2rem;
    margin-top: 1rem;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-primary);
    box-shadow: 0 4px 20px hsla(217, 91%, 60%, 0.3);
    z-index: 10;
}

.step-image {
    width: 128px;
    height: 128px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Types */
.user-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    ring: 4px solid hsla(217, 91%, 60%, 0.2);
    transition: all var(--transition-normal);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-card-hover:hover .user-avatar {
    ring: 4px solid hsla(217, 91%, 60%, 0.4);
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.benefit-list li:last-child {
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-card {
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    border-color: hsla(217, 91%, 60%, 0.3);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid hsla(217, 91%, 60%, 0.2);
}

.star-rating {
    display: flex;
    gap: 2px;
}

.text-gold {
    color: var(--accent-gold) !important;
}

/* Security Section */
.security-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.security-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, hsla(217, 91%, 60%, 0.2) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.security-icon i {
    font-size: 1.75rem;
    color: var(--accent-primary);
}

.glass-card-hover:hover .security-icon {
    transform: scale(1.1);
}

/* Final CTA */
.cta-visual-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cta-visual {
    width: 600px;
    height: 600px;
    object-fit: contain;
    opacity: 0.2;
}

.cta-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent, var(--bg-primary));
}

/* Footer */
.footer {
    background: hsla(222, 47%, 9%, 0.3);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Animations */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

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

.animate-slide-left {
    animation: slideLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Z-index utilities */
.z-1 {
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .step-line {
        display: none;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}
