﻿/* ---------------- RESET & VARIABLES ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #00b4d8;
    --accent-color: #00f5ff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* ---------------- GENERAL ---------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop nav */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-links a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.3s ease;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--accent-color);
            background: rgba(0, 245, 255, 0.1);
        }

/* Mobile menu button (hidden on desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1100;
}

/* ---------------- TIMELINE ---------------- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    flex: 1;
}

/* ---------------- FOOTER ---------------- */
.footer {
    background: var(--darker-bg);
    padding: 3rem 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer ul {
    list-style: none;
    padding: 0;
}

    .footer ul li {
        margin-bottom: 0.5rem;
    }

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

    .footer a:hover {
        color: var(--accent-color);
    }

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--card-bg);
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---------------- LOADING SCREEN ---------------- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    text-align: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    #loading-screen.hidden {
        opacity: 0;
        visibility: hidden;
    }

#loading-logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

#loading-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* ---------------- HERO ---------------- */
.hero {
    padding: 6rem 0 4rem;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    align-items: center;
    gap: 3rem;
}

.hero-title {
    text-align: left;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.hero-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.25rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark-bg);
}

    .btn-primary:hover {
        background: #00cfd5;
    }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

    .btn-secondary:hover {
        background: var(--accent-color);
        color: var(--dark-bg);
    }

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
}

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

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-animation {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-icon {
    font-size: 3rem;
    color: var(--accent-color);
    z-index: 2;
}

.pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ---------------- SERVICES ---------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.service-card {
    max-width: 340px;
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

.service-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

    .service-features li {
        margin-bottom: 0.5rem;
        color: var(--text-secondary);
    }

    .service-features i {
        color: var(--success-color);
        margin-right: 0.5rem;
    }

/* ---------------- ROI ---------------- */
.roi-section {
    text-align: center;
}

.roi-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    justify-items: center;
}

.roi-metric-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 250px;
    margin: 0 auto;
}

    .roi-metric-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

.roi-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.roi-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.roi-comparison {
    margin-top: 3rem;
}

.roi-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.roi-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

    .roi-box.warning {
        border: 2px solid var(--warning-color);
        background: rgba(245, 158, 11, 0.1);
    }

    .roi-box.success {
        border: 2px solid var(--success-color);
        background: rgba(16, 185, 129, 0.1);
    }

    .roi-box.accent {
        border: 2px solid var(--accent-color);
        background: rgba(0, 245, 255, 0.1);
    }

    .roi-box .big-text {
        font-size: 1.5rem;
        font-weight: bold;
        margin: 0.5rem 0;
    }

/* ---------------- IMPLEMENTATION ---------------- */
.implementation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impl-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

    .impl-card h3 {
        color: var(--accent-color);
        margin-bottom: 0.5rem;
    }

    .impl-card ul {
        list-style: none;
        padding: 0;
        margin: 1rem 0;
        text-align: left;
    }

    .impl-card li {
        margin: 0.3rem 0;
    }

.impact-box {
    margin-top: 4rem;
    text-align: center;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
}

.impact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.impact-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    width: 220px;
}

/* ---------------- TECHNOLOGY ---------------- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.tech-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .tech-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .tech-card i {
        font-size: 2rem;
        color: var(--accent-color);
        margin-bottom: 1rem;
    }

.intelligence-box {
    margin-top: 3rem;
    background: var(--darker-bg);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
}

    .intelligence-box h3 {
        margin-bottom: 2rem;
        color: var(--text-primary);
    }

.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.intelligence-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.intelligence-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.intelligence-card p {
    color: var(--text-secondary);
}

/* ---------------- CONTACT (benefits & methods) ---------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

    .contact-grid .card,
    .contact-card {
        background: var(--card-bg);
        padding: 2rem;
        border-radius: 1rem;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .contact-grid .card:hover,
        .contact-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }

        .contact-card i {
            font-size: 2rem;
            color: var(--accent-color);
            margin-bottom: 1rem;
        }

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ---------------- COMPARISON (Legacy vs InstaPay+) ---------------- */
.comparison-section {
    margin-top: 4rem;
    text-align: center;
}

.comparison-title {
    margin-bottom: 2rem;
    color: var(--accent-color);
}

/* Centered two-card layout (keeps them compact) */
.comparison-grid.centered {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.comparison-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    width: 280px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .comparison-card:hover {
        transform: translateY(-6px);
    }

    /* Legacy dimmed */
    .comparison-card.legacy {
        opacity: 0.85;
        border: 1px solid rgba(245, 158, 11, 0.35);
        box-shadow: none;
    }

        .comparison-card.legacy:hover {
            opacity: 1;
            box-shadow: 0 6px 15px rgba(245, 158, 11, 0.12);
        }

    /* InstaPay+ emphasized */
    .comparison-card.instapay {
        border: 1px solid var(--success-color);
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
    }

        .comparison-card.instapay:hover {
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
        }

/* Pill headers */
.comparison-header {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
}

.legacy-header {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.instapay-header {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.comparison-card i {
    margin-right: 0.6rem;
    font-size: 1rem;
}

.red {
    color: #ef4444;
}

.green {
    color: #10b981;
}

/* ---------------- RESPONSIVENESS & MOBILE BEHAVIOR ---------------- */
@media (max-width: 768px) {
    /* Mobile nav: show hamburger, collapse links using max-height for slide */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--darker-bg);
        border-radius: 0 0 1rem 1rem;
        padding: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }

        .nav-links.mobile-open {
            max-height: 500px;
            opacity: 1;
            padding: 1rem;
        }

        .nav-links a {
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
        }

        .nav-links.mobile-open a {
            opacity: 1;
            transform: translateY(0);
        }

    /* Hero stack */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

        .cta-buttons .btn {
            width: 100%;
            max-width: 280px;
            justify-content: center;
        }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    /* Layout stacks for sections */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .implementation-grid {
        grid-template-columns: 1fr;
    }

    .roi-metrics-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid.centered {
        flex-direction: column;
        align-items: center;
    }

    .methods-grid {
        grid-template-columns: 1fr;
    }
}

/* Fallback small-screen tweaks */
@media (max-width: 480px) {
    .payment-animation {
        width: 220px;
        height: 220px;
    }

    .hero-title {
        font-size: 2rem;
    }
}
