/* ===================================================
   Y3Data Premium Landing Page — Fintech Grade UI
   Brand: Royal Blue (#0d6efd) + Success Green (#198754)
   =================================================== */

/* === Enhanced Design Tokens === */
:root {
    --lp-primary: var(--p-blue);
    --lp-primary-rgb: 13, 110, 253;
    --lp-secondary: #0f172a;
    --lp-accent: #8b5cf6;
    --lp-success: #198754;
    --lp-success-rgb: 25, 135, 84;
    --lp-gold: #f59e0b;
    --lp-gold-soft: rgba(245, 158, 11, 0.1);
    --lp-blue-glow: rgba(13, 110, 253, 0.15);
    --lp-green-glow: rgba(25, 135, 84, 0.12);
    --lp-gradient-hero: #F9FAFB;
    --lp-gradient-hero-dark: #000000;
    --lp-gradient-cta: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 50%, #084298 100%);
    --lp-gradient-referral: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0d6efd 100%);
    --lp-card-hover-shadow: 0 20px 40px rgba(13, 110, 253, 0.12);
}
[data-theme="dark"] {
    --lp-gradient-hero: var(--lp-gradient-hero-dark);
    --lp-card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* === Section Layout === */
.section {
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.section-gray {
    background: var(--y3-bg-alt);
}
[data-theme="dark"] .section-gray {
    background: var(--y3-bg-alt);
}
.section-alt {
    background: var(--y3-surface);
}
.section-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--p-text-main);
    margin-bottom: var(--s-12);
    letter-spacing: -0.5px;
}
.section-sub {
    font-size: 15px;
    color: var(--p-text-sec);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }
}

/* === Hero Section === */
.lp-hero {
    padding: 80px 0 64px;
    background: var(--lp-gradient-hero);
    position: relative;
    overflow: hidden;
}
.lp-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--lp-primary-rgb), 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.lp-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--lp-success-rgb), 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Hero Grid - Centered Premium Layout */
.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 56px;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(var(--lp-primary-rgb), 0.08), rgba(var(--lp-primary-rgb), 0.04));
    color: var(--p-blue);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin: 0 auto 24px auto;
    border: 1px solid rgba(var(--lp-primary-rgb), 0.12);
    backdrop-filter: blur(8px);
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--lp-primary-rgb), 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(var(--lp-primary-rgb), 0); }
}
.hero-title {
    font-size: clamp(2.75rem, 6vw, 4.75rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--p-text-main);
}
.hero-sub {
    font-size: 1.25rem;
    color: var(--p-text-sec);
    max-width: 640px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}
.hero-stats-pill {
    padding: 12px 20px;
    background: var(--p-surface);
    border-radius: 50px;
    border: 1px solid var(--p-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}
.hero-img {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: block;
    border-radius: 24px;
}
.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-cta-group .btn-primary {
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    background: var(--lp-gradient-cta);
    box-shadow: 0 8px 24px rgba(var(--lp-primary-rgb), 0.25);
    transition: all 0.3s ease;
}
.hero-cta-group .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--lp-primary-rgb), 0.35);
}
.hero-cta-group .btn-outline {
    padding: 16px 28px;
    border-radius: 14px;
    font-weight: 600;
    border: 2px solid rgba(var(--lp-primary-rgb), 0.2);
    color: var(--p-blue);
    background: rgba(var(--lp-primary-rgb), 0.03);
}
.hero-cta-group .btn-outline:hover {
    background: var(--p-blue);
    color: white;
    border-color: var(--p-blue);
    box-shadow: 0 8px 24px rgba(var(--lp-primary-rgb), 0.15);
}

.network-icons-hero {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    opacity: 0.8;
}
.network-icons-hero img {
    height: 32px;
    width: auto;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.3s ease;
}
.network-icons-hero img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

/* Buttons: now in design-system.css — removed duplicates */

/* Hero floating card */
.hero-float-card {
    position: absolute;
    bottom: 32px;
    left: -16px;
    background: var(--p-surface);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--p-border);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatUp 4s ease-in-out infinite;
    z-index: 3;
}
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-float-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--lp-green-glow);
    color: var(--lp-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* === Trust Stats Bar === */
.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
    padding: 36px 32px;
    background: var(--p-surface);
    border-radius: 20px;
    border: 1px solid var(--p-border);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.trust-stat-item h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--p-blue);
    margin-bottom: 4px;
}
.trust-stat-item p {
    font-size: 11px;
    font-weight: 800;
    color: var(--p-text-sec);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Premium Pricing Grid === */
.pricing-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.pricing-network-card {
    background: var(--p-surface);
    padding: 36px 28px;
    border-radius: 20px;
    border: 1.5px solid var(--p-border);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pricing-network-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--lp-gradient-cta);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pricing-network-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--lp-card-hover-shadow);
    border-color: rgba(var(--lp-primary-rgb), 0.2);
}
.pricing-network-card:hover::before {
    opacity: 1;
}
.pricing-network-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin: 0 auto var(--s-16);
    background: var(--p-bg);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--p-border);
}
.price-tag-hero {
    font-size: 36px;
    font-weight: 800;
    color: var(--p-blue);
    margin: 8px 0;
    letter-spacing: -1px;
}
.price-sub-hero {
    font-size: 12px;
    color: var(--p-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Feature Grid Cards === */
.feature-card {
    background: var(--p-surface);
    padding: 36px 28px;
    border-radius: 20px;
    border: 1px solid var(--p-border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border-color: rgba(var(--lp-primary-rgb), 0.15);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}
/* Feature icon variants: now in design-system.css with distinct colors */

/* === Steps Section === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--p-blue), var(--lp-accent), var(--lp-success), transparent);
    opacity: 0.2;
    z-index: 0;
}
.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 20px;
    color: white;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.step-number-1 { background: var(--lp-gradient-cta); }
.step-number-2 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.step-number-3 { background: linear-gradient(135deg, #198754, #2dd4bf); }

/* === Referral Section === */
.referral-banner {
    background: var(--lp-gradient-referral);
    border-radius: 24px;
    padding: 56px 48px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    box-shadow: 0 16px 48px rgba(13, 110, 253, 0.2);
}
.referral-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    border-radius: 50%;
}
.referral-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    border-radius: 50%;
}
.referral-earn-box {
    background: rgba(255,255,255,0.06);
    padding: 36px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
}
.referral-amount {
    font-size: 40px;
    font-weight: 900;
    color: #fbbf24;
    margin: 8px 0 4px;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* === App Download Section === */
.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.app-feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0 36px;
}
.app-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-sec);
}
.app-feature-check {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--lp-blue-glow);
    color: var(--p-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* === Testimonial Cards === */
.testimonial-card {
    background: var(--p-surface);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--p-border);
    transition: all 0.3s ease;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(var(--lp-primary-rgb), 0.08);
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: #f59e0b;
    font-size: 14px;
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* === Comparison Table === */
.comparison-table {
    background: var(--p-surface);
    border-radius: 20px;
    border: 1px solid var(--p-border);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.comparison-table thead tr {
    background: var(--p-bg);
    border-bottom: 2px solid var(--p-border);
}
.comparison-table th {
    padding: 20px 24px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.comparison-table td {
    padding: 20px 24px;
    font-weight: 500;
}
.comparison-table tbody tr {
    border-bottom: 1px solid var(--p-border);
    transition: background 0.2s ease;
}
.comparison-table tbody tr:hover {
    background: rgba(var(--lp-primary-rgb), 0.02);
}
.comparison-table tbody tr:nth-child(even) {
    background: rgba(var(--lp-primary-rgb), 0.015);
}

/* === Final CTA === */
.final-cta {
    background: var(--lp-gradient-cta);
    border-radius: 24px;
    padding: 72px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 16px 48px rgba(var(--lp-primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
    border-radius: 50%;
}
.final-cta-btn {
    display: inline-block;
    background: #fbbf24;
    color: #0f172a;
    padding: 18px 48px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}
.final-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.4);
}

/* === Scroll Animations === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Mobile Stack */
.mobile-stack-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
    .hero-stats-pill { margin-left: auto; margin-right: auto; }
    .trust-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .steps-grid::before { display: none; }
    .app-grid { grid-template-columns: 1fr; text-align: center; }
    .mobile-stack-center { text-align: center; align-items: center; }
    .referral-banner { padding: 40px 28px; }
    .hero-float-card { display: none; }
}
@media (max-width: 768px) {
    .lp-hero { padding: 48px 0; }
    .pricing-grid-dynamic { grid-template-columns: 1fr 1fr; }
    .grid-cols-4, .grid-cols-3 { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 480px) {
    .pricing-grid-dynamic { grid-template-columns: 1fr; }
    .grid-cols-4, .grid-cols-3 { grid-template-columns: 1fr; }
}

/* === Custom WhatsApp Float Widget === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: var(--p-secondary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}
