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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #6366f1;
    --accent-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-light: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 100%);
}

html {
    overflow-x: hidden;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-login {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-light);
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

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

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

.hero-content {
    flex: 1;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image svg {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* Mobile Menu Styles - Fixed positioning */
.nav-menu.active {
    display: flex !important;
}

/* Animation Classes */
.slide-in {
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease forwards;
}

.slide-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease 0.2s forwards;
}

.slide-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease 0.4s forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease 0.6s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.scroll-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Features Section */
.features-grid {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.feature-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Product Showcase */
.product-showcase,
.expense-section,
.calendar-section {
    padding: 100px 0;
    background: var(--gradient-light);
}

.expense-section {
    background: white;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.showcase-row.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
    min-width: 300px;
}

.showcase-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.showcase-image {
    flex: 1;
    min-width: 300px;
}

.showcase-image svg {
    width: 100%;
    height: auto;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-content .btn-primary:hover {
    background: var(--bg-light);
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Fix hero section */
    .hero {
        padding: 80px 15px 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        margin-top: 3rem;
        padding: 0 15px;
    }
    
    .hero-image svg {
        max-width: 100%;
    }
    
    /* Fix showcase sections */
    .showcase-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .showcase-row.reverse {
        flex-direction: column;
    }
    
    .showcase-image svg {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .section-title,
    .showcase-content h2 {
        font-size: 1.75rem;
    }
    
    .features-row {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    /* Prevent horizontal scroll */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    section {
        overflow-x: hidden;
    }
    
    /* Fix buttons */
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.875rem 1.5rem;
    }
    
    /* Fix footer on mobile */
    .footer-content {
        padding: 0 15px;
    }
    
    /* Fix table overflow */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Additional Page Styles */
.page-header {
    background: var(--gradient-light);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.content-section {
    padding: 80px 0;
    background: white;
}

.content-section:nth-child(even) {
    background: var(--bg-light);
}

.content-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Pricing Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.pricing-card.featured .plan-features li::before {
    color: white;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Additional Mobile Overflow Fixes */
@media (max-width: 768px) {
    /* Prevent any element from causing horizontal scroll */
    * {
        max-width: 100vw !important;
    }
    
    /* Fix padding on all sections */
    .features-grid,
    .product-showcase,
    .expense-section,
    .calendar-section,
    .content-section,
    .cta-section {
        padding: 60px 0;
    }
    
    /* Ensure all containers respect viewport */
    .container {
        padding: 0 15px;
    }
    
    /* Fix SVG overflow issues */
    svg {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix grid layouts */
    .pricing-grid,
    .footer-content {
        gap: 1.5rem;
    }
    
    /* Fix CTA section */
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    /* Fix page headers */
    .page-header {
        padding: 100px 15px 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Fix contact form grid */
    .contact-section > .container > div {
        grid-template-columns: 1fr;
    }
}