/* PaisaFlow Landing Page Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--gradient);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(2deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Buttons */
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary .apple-icon {
    flex-shrink: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-large { padding: 18px 36px; font-size: 1.125rem; }

.apple-icon { width: 20px; height: 20px; }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* iPhone Frame */
.hero-phone {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.iphone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5),
                inset 0 2px 3px rgba(255, 255, 255, 0.1),
                inset 0 -2px 3px rgba(0, 0, 0, 0.3);
    transform: rotateY(-5deg) rotateX(2deg);
    animation: phoneFloat 6s ease-in-out infinite;
}

.iphone-frame.small {
    width: 220px;
    height: 460px;
    border-radius: 35px;
    padding: 10px;
    transform: none;
    animation: none;
}

@keyframes phoneFloat {
    0%, 100% { transform: rotateY(-5deg) rotateX(2deg) translateY(0); }
    50% { transform: rotateY(-5deg) rotateX(2deg) translateY(-10px); }
}

.iphone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    padding-top: 0;
}

.dynamic-island {
    width: 85px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.iphone-frame.small .dynamic-island {
    width: 65px;
    height: 20px;
    border-radius: 10px;
}

.iphone-frame.medium .dynamic-island {
    width: 70px;
    height: 22px;
    border-radius: 11px;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.iphone-frame.small .iphone-screen { border-radius: 27px; }

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
}

.hero-wave svg { width: 100%; height: 100%; }


/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Overview Section */
.overview-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.overview-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.overview-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.overview-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.overview-icon-text {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
}

.overview-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.overview-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.overview-cta {
    text-align: center;
    margin-top: 48px;
}

.overview-cta p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Feature Detail Sections */
.feature-detail-section {
    padding: 100px 0;
    background: var(--bg-primary);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* Hide any stray text nodes outside container */
    font-size: 0;
    color: transparent;
}

.feature-detail-section .container {
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-detail-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-detail-section.alt-bg {
    background: var(--bg-secondary);
}

.feature-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-detail-content.reverse {
    direction: rtl;
}

.feature-detail-content.reverse > * {
    direction: ltr;
}

.feature-detail-text .section-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-detail-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-small {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-item strong {
    color: var(--primary-light);
}

/* Feature Phones Display */
.feature-detail-phones {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 500px;
}

.iphone-frame.medium {
    width: 240px;
    height: 500px;
    position: relative;
    z-index: 2;
}

.iphone-frame.medium.secondary {
    position: absolute;
    right: -20px;
    top: 40px;
    z-index: 1;
    opacity: 0.8;
    transform: scale(0.9);
}

/* India Banner */
.india-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.india-banner-content {
    text-align: center;
}

.india-banner-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.india-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
}

.india-highlights span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.india-highlights span::before {
    content: '✓';
    color: var(--primary-light);
    font-weight: 700;
}

/* Download Badges */
.download-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.download-badges span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Download Section */
.download-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.download-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.download-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle { margin: 0 auto 32px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }

    .iphone-frame {
        width: 240px;
        height: 500px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: flex; }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 2rem; }

    .features-section,
    .feature-detail-section { padding: 60px 0; }

    .section-header { margin-bottom: 40px; }

    .hero-stats { flex-wrap: wrap; gap: 24px; }

    .iphone-frame {
        width: 200px;
        height: 420px;
        border-radius: 35px;
    }

    .iphone-frame.small {
        width: 180px;
        height: 380px;
    }

    .iphone-frame.medium {
        width: 200px;
        height: 420px;
    }

    .feature-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-detail-content.reverse {
        direction: ltr;
    }

    .feature-detail-phones {
        order: -1;
        min-height: 400px;
    }

    .iphone-frame.medium.secondary {
        display: none;
    }

    .india-highlights {
        gap: 12px 24px;
    }

    .india-highlights span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.5rem; }

    .feature-detail-text h2 {
        font-size: 1.5rem;
    }

    .feature-intro {
        font-size: 1rem;
    }

    .feature-item {
        flex-direction: column;
        gap: 10px;
    }

    .feature-icon-small {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .download-badges {
        flex-direction: column;
        gap: 12px;
    }
}
