/* ============================================================================
   HERO SECTION - Stripe-Inspired Professional Design
   ============================================================================ */

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

:root {
    /* Stripe-inspired color palette */
    --color-primary: #635bff;
    --color-primary-dark: #0a2540;
    --color-accent: #0073e6;
    --color-text: #0a2540;
    --color-text-secondary: #425466;
    --color-text-muted: #6b7280;
    --color-background: #ffffff;
    --color-surface: #f6f9fc;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    --gradient-orb-1: radial-gradient(circle at center, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle at center, rgba(0, 150, 229, 0.10) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle at center, rgba(1, 122, 202, 0.08) 0%, transparent 70%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   HERO CONTAINER
   ============================================================================ */

.hero-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 4rem;
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(1, 122, 202, 0.08) 0%, transparent 100%);
    padding-bottom: 6rem;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 50%);
}

/* ============================================================================
   ANIMATED GRADIENT BACKGROUND
   ============================================================================ */

.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    /* Mask removed for seamless section transitions */
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 1;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    top: 20%;
    right: -5%;
    background: var(--gradient-orb-1);
    animation-delay: 0s;
    animation-duration: 25s;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    bottom: 30%;
    left: -10%;
    background: var(--gradient-orb-2);
    animation-delay: 7s;
    animation-duration: 30s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: 50%;
    background: var(--gradient-orb-3);
    animation-delay: 14s;
    animation-duration: 22s;
}

/* Orb 4 removed for seamless section transitions */

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(40px, 20px) scale(1.02);
    }
}

/* ============================================================================
   GRID PATTERN (Stripe-style)
   ============================================================================ */

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 91, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 91, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    z-index: 1;
    animation: grid-shift 20s linear infinite;
}

@keyframes grid-shift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.hero-nav {
    position: relative;
    z-index: 100;
    padding: var(--spacing-md) var(--spacing-xl);
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-cta {
    background: var(--color-primary-dark);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.1);
}

.nav-cta:hover {
    background: #0a1929;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}

/* ============================================================================
   HERO CONTENT
   ============================================================================ */

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-md);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(99, 91, 255, 0.08);
    border: 1px solid rgba(99, 91, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 500;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1rem;
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-primary-dark);
    margin: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Description */
.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* CTA Group */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 91, 255, 0.4);
}

.cta-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-text);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid rgba(10, 37, 64, 0.1);
}

.cta-secondary:hover {
    border-color: rgba(10, 37, 64, 0.2);
    background: rgba(10, 37, 64, 0.02);
}

.cta-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.cta-secondary:hover .cta-icon {
    transform: translateX(2px);
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.trust-icon {
    font-size: 1.125rem;
}

/* ============================================================================
   HERO VISUAL (Dashboard Mockup)
   ============================================================================ */

.hero-visual {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl) var(--spacing-2xl);
}

.dashboard-mockup {
    position: relative;
    height: 400px;
    margin: 0 auto;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 91, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    animation: float-card 6s ease-in-out infinite;
    will-change: transform;
}

.card-1 {
    top: 10%;
    left: 5%;
    width: 350px;
    animation-delay: 0s;
}

.card-2 {
    top: 15%;
    right: 8%;
    width: 320px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    animation-delay: 4s;
}

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

.card-1,
.card-2 {
    transform: translateY(0);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.1) 0%, rgba(0, 115, 230, 0.1) 100%);
    border-radius: 12px;
}

.card-info {
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.card-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: -0.02em;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 159, 28, 0.1);
    border-radius: 8px;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #ff9f1c;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ff9f1c;
}

/* Card 3 - Stats */
.card-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.stat-chart {
    width: 100%;
    height: 60px;
    margin-top: 0.5rem;
}

.stat-chart svg {
    width: 100%;
    height: 100%;
}

/* Glow Effects */
.card-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

.glow-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.glow-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 150, 229, 0.10) 0%, transparent 70%);
    bottom: 0;
    right: 15%;
    animation-delay: 2s;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* ============================================================================
   HERO FEATURE GRID
   ============================================================================ */

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.feature-preview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 91, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-preview-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    border-color: rgba(1, 122, 202, 0.4);
    box-shadow: 0 8px 24px rgba(1, 122, 202, 0.12), 0 4px 8px rgba(15, 23, 42, 0.08);
}

.feature-preview-card:hover::before {
    opacity: 1;
}

/* FREE Badge */
.feature-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
    z-index: 2;
}

.feature-preview-header {
    margin-bottom: 0.75rem;
}

.feature-preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.feature-preview-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* ============================================================================
   SCROLL INDICATOR
   ============================================================================ */

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-dot {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(10, 37, 64, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scroll-dot {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* ============================================================================
   ANIMATIONS - Intersection Observer
   ============================================================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    transform: translateY(0);
}

[data-animate="fade-in"].animated {
    opacity: 1;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-md);
    }
    
    .nav-link {
        display: none;
    }
    
    .nav-cta {
        display: block;
    }
    
    .hero-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    }
    
    .hero-description {
        font-size: 1.0625rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 var(--spacing-md);
    }
    
    .feature-preview-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-nav {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
    
    .cta-primary,
    .cta-secondary {
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
    }
}

