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

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --accent: #F59E0B;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --gradient-1: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
    --gradient-2: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: #fff;
    overflow-x: hidden;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
}

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

.nav-links a:not(.btn) {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset,
        0 4px 12px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(37, 99, 235, 0.8);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 50%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset,
        0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.1) inset,
        0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 40% at 20% 60%, rgba(245, 158, 11, 0.08), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 32px;
}

.hero-eyebrow svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-store-btn svg {
    width: 28px;
    height: 28px;
}

.app-store-btn span {
    text-align: left;
    line-height: 1.2;
}

.app-store-btn .small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.app-store-btn .big {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-watch-demo {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    padding: 14px 28px;
    border-radius: 12px;
}

.btn-watch-demo:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* Social Proof Bar */
.social-proof-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-top: 60px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.proof-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.proof-item strong {
    color: var(--gray-700);
}

/* Hero Visual */
.hero-visual {
    margin-top: 80px;
    position: relative;
}

.hero-visual-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-mockup {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 24px;
    perspective: 1000px;
}

.phone-mockup {
    width: 280px;
    background: var(--gray-900);
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-mockup.secondary {
    transform: rotateY(5deg) rotateX(2deg);
    opacity: 0.9;
}

.phone-mockup.secondary:hover {
    transform: rotateY(0deg) rotateX(0deg);
    opacity: 1;
}

.phone-screen {
    background: #fff;
    border-radius: 36px;
    aspect-ratio: 9/19.5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    height: 32px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 8px;
}

.phone-notch-inner {
    width: 80px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
}

.phone-header {
    background: var(--gray-50);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.phone-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.phone-header p {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.phone-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gray-50);
}

.invoice-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
}

.invoice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.invoice-client {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.invoice-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.invoice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-paid {
    background: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-draft {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Use Cases Section */
.use-cases {
    padding: 120px 0;
    background: #fff;
}

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

.section-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }
}

.use-case-card {
    background: var(--gray-50);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.use-case-card:hover {
    background: #fff;
    border-color: var(--gray-200);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.use-case-card:hover::before {
    opacity: 1;
}

.use-case-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.use-case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.use-case-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--gray-900);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.features-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(139, 92, 246, 0.1), transparent);
    pointer-events: none;
}

.features .section-header h2 {
    color: #fff;
}

.features .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Menu Base */
.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: #fff;
}

.steps-container {
    display: flex;
    gap: 32px;
    margin-top: 80px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.2;
}

@media (max-width: 900px) {
    .steps-container {
        flex-direction: column;
    }

    .steps-container::before {
        display: none;
    }
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 32px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.step p {
    color: var(--gray-500);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* Testimonial */
.testimonial {
    padding: 100px 0;
    background: var(--gray-50);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.5;
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.testimonial-info strong {
    display: block;
    color: var(--gray-900);
    font-weight: 600;
}

.testimonial-info span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--gray-900);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 60% at 50% 120%, rgba(59, 130, 246, 0.3), transparent);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta .app-store-btn {
    background: #fff;
    color: #000;
}

.cta .app-store-btn:hover {
    background: var(--gray-100);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--gray-900);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    color: #fff;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo img {
    height: 32px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 8px;
        color: var(--gray-900);
        cursor: pointer;
        z-index: 1100;
    }

    .mobile-menu {
        position: fixed;
        top: 60px;
        /* Below nav */
        left: 0;
        right: 0;
        background: #fff;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu a {
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--gray-900);
        text-decoration: none;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .mobile-lang-switcher {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 12px 0;
        color: var(--gray-500);
    }

    .mobile-lang-switcher button {
        background: none;
        border: none;
        font-size: 1rem;
        color: var(--gray-600);
        font-weight: 600;
    }

    .mobile-lang-switcher button.active {
        color: var(--primary);
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-mockup {
        flex-direction: column;
        align-items: center;
    }

    .phone-mockup {
        transform: none;
        width: 260px;
    }

    .phone-mockup.secondary {
        display: none;
    }

    .social-proof-bar {
        flex-direction: column;
        gap: 16px;
    }
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--gray-200);
    z-index: 100;
}

.mobile-download-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
}

.mobile-download-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }

    footer {
        padding-bottom: 100px;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Language Switcher Dropdown */
.lang-switcher-dropdown {
    position: relative;
    margin-left: 16px;
    display: flex;
    align-items: center;
}

.lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    /* Flexbox for centering icon */
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    min-width: 140px;
    z-index: 101;
    /* Ensure above nav */
}

/* Show menu on hover over container */
.lang-switcher-dropdown:hover .lang-menu,
.lang-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.lang-option:hover {
    background: var(--gray-50);
    color: var(--primary);
}