:root {
    --primary: #0F52BA;
    --primary-dark: #0a3d8c;
    --primary-light: #e6f0ff;
    --navy: #0B132B;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-light { background-color: var(--bg-light); }
.bg-navy { background-color: var(--navy); }
.text-white { color: var(--white); }
.text-light-blue { color: #93c5fd; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.w-full { width: 100%; }
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.text-right { text-align: right; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(15, 82, 186, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 82, 186, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--navy);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--navy);
    background-color: #f9fafb;
}

.btn-outline {
    background-color: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

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

.nav-links a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.login-link {
    font-weight: 600 !important;
    color: var(--navy) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    display: none;
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 0;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, #e6f0ff 0%, #ffffff 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-note i {
    width: 16px;
    height: 16px;
}

/* Mockups */
.app-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    height: 600px;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-sidebar {
    width: 80px;
    background: var(--navy);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mockup-logo {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.mockup-nav-item {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
}

.mockup-nav-item.active {
    background: var(--primary);
}

.mockup-main {
    flex: 1;
    padding: 32px;
    background: #f4f7fc;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mockup-stat-card {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.mockup-stat-card.primary {
    background: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.mockup-stat-card.primary .stat-label {
    color: rgba(255,255,255,0.8);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.mockup-chart {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    height: 160px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.chart-bar {
    flex: 1;
    background: var(--primary-light);
    border-radius: 4px 4px 0 0;
}

.chart-bar:nth-child(even) {
    background: var(--primary);
}

.mockup-list {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.mockup-list-title {
    font-weight: 600;
    margin-bottom: 16px;
}

.mockup-list-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.mockup-list-item:last-child {
    border-bottom: none;
}

.list-item-col { color: var(--text-main); }

/* Section Standard */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.bg-navy h2 { color: white; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon i { width: 30px; height: 30px; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
}

/* Why InvoiceX Grid */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.why-list {
    list-style: none;
}

.why-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.why-list i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.why-list strong {
    display: block;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.why-list span {
    color: var(--text-light);
}

.stat-showcase {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-circle {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50px;
    left: 20px;
    animation: float 6s ease-in-out infinite;
}

.stat-circle.secondary {
    background: var(--navy);
    color: white;
    top: 150px;
    left: 180px;
    animation-delay: 3s;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.secondary .stat-number { color: white; }

.stat-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: rgba(255,255,255,0.05);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    margin-bottom: 16px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 12px;
}

.step-card p {
    color: #94a3b8;
}

/* App Showcase */
.showcase-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    perspective: 1000px;
    margin-top: 40px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 4px solid #333;
}

.mockup-1 { transform: rotateY(15deg) rotateX(5deg); }
.mockup-2 { transform: rotateY(-15deg) rotateX(5deg); margin-top: 40px; }

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mockup-header-sm {
    background: white;
    padding: 40px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.primary-bg {
    background: var(--primary);
    color: white;
}

.icon-sm { width: 18px; height: 18px; }

.invoice-paper {
    margin: 16px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex: 1;
}

.inv-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.inv-logo {
    width: 30px; height: 30px;
    background: #ddd; border-radius: 4px;
}
.inv-title { font-weight: 700; font-size: 1.1rem; color: #555; }

.inv-details { display: flex; margin-bottom: 20px; font-size: 0.75rem; }
.tiny-text { color: #888; font-size: 0.65rem; }
.bold-text { font-weight: 700; color: #333; }

.inv-table { font-size: 0.75rem; margin-bottom: 20px; }
.inv-row { display: flex; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.inv-row.head { font-weight: 700; color: #888; border-bottom: 1px solid #ddd; }

.inv-total {
    display: flex; justify-content: space-between;
    font-weight: 700; font-size: 0.9rem;
    margin-top: 20px; border-top: 1px solid #ddd; padding-top: 10px;
}
.primary-text { color: var(--primary); }

.mockup-btn-primary {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 12px;
    margin: 0 16px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.search-bar {
    margin: 16px;
    height: 36px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.customer-list {
    padding: 0 16px;
}

.customer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.c-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; color: #555;
}
.c-avatar.primary { background: var(--primary-light); color: var(--primary); }

.c-name { font-weight: 600; font-size: 0.9rem; color: #333; }
.c-phone { font-size: 0.75rem; color: #888; }


/* Download Section */
.download-section {
    background: var(--bg-light);
}

.download-card {
    background: white;
    padding: 64px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.download-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.small-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}
.security-note i { width: 16px; height: 16px; color: #10b981; }

/* Final CTA */
.final-cta {
    background: var(--navy);
    color: white;
}
.final-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.final-cta p {
    font-size: 1.2rem;
    color: #94a3b8;
}
.final-cta .btn-outline {
    color: white;
    border-color: rgba(255,255,255,0.3);
}
.final-cta .btn-outline:hover {
    background: white;
    color: var(--navy);
}

/* Footer */
.footer {
    background: #060b19;
    color: #94a3b8;
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer .logo {
    color: white;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: 0.9rem;
}

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

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-note {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .showcase-container {
        flex-direction: column;
        align-items: center;
    }

    .mockup-1, .mockup-2 {
        transform: none;
        margin: 20px 0;
    }
    
    .stat-showcase {
        height: 300px;
    }
    
    .stat-circle {
        width: 150px;
        height: 150px;
    }
    .stat-circle.secondary {
        top: 100px;
        left: 120px;
    }
}
