:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #fbbf24;
    --accent: #f59e0b;
    --text: #064e3b;
    --text-light: #047857;
    --background: #ffffff;
    --background-alt: #ecfdf5;
    --gold: #fbbf24;
    --gold-dark: #f59e0b;
}

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

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

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

/* Typography */
h1 {
    font-size: clamp(3.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--gold), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 8px;
    background: var(--gold);
    z-index: -1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.125rem;
    }

    .navbar .cta-button {
        padding: 0.5rem 0.875rem;
        font-size: 0.813rem;
        min-height: 32px;
        border-radius: 1rem;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }
}

/* Buttons */
.cta-button {
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Hero Section */
.hero {
    padding: 8rem 0;
    background: radial-gradient(circle at top right, var(--background-alt) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 8rem 0;
    background-color: var(--background-alt);
    position: relative;
}

.steps-container {
    position: relative;
    padding: 4rem 0;
}

.steps-timeline {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--gold) 15%, 
        var(--gold) 85%, 
        transparent 100%
    );
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
}

.step {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.step:nth-child(odd) {
    margin-right: 52%;
}

.step:nth-child(even) {
    margin-left: 52%;
}

.step-content {
    padding: 3rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-size: 5rem;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
    transition: all 0.4s ease;
}

.step:hover .step-number {
    opacity: 0.4;
    transform: scale(1.1);
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 2rem;
    height: 2rem;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--gold);
    transition: all 0.4s ease;
}

.step:nth-child(odd)::after {
    right: -3rem;
    transform: translate(50%, -50%);
}

.step:nth-child(even)::after {
    left: -3rem;
    transform: translate(-50%, -50%);
}

.step:hover::after {
    transform: translate(50%, -50%) scale(1.2);
    box-shadow: 0 0 0 6px var(--gold);
}

.step:nth-child(even):hover::after {
    transform: translate(-50%, -50%) scale(1.2);
}

.step-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, var(--background-alt));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step:hover .step-content {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.step:hover .step-content::before {
    opacity: 1;
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.step-icon::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3));
    transform: rotate(45deg) translate(-50%, -50%);
    animation: shimmer 3s infinite;
}

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

.step-icon i {
    color: white;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .steps-timeline {
        left: 2rem;
    }
    
    .step:nth-child(odd),
    .step:nth-child(even) {
        margin: 0 0 0 4rem;
    }
    
    .step::after {
        left: -2rem !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .step:hover::after {
        transform: translate(-50%, -50%) scale(1.2) !important;
    }
}

/* Solutions Section */
.solutions {
    padding: 6rem 0;
}

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

.solution-card {
    padding: 3rem;
    border-radius: 2rem;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
}

.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary), var(--gold));
    border-radius: 2rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--gold);
    color: white;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card:hover h3,
.solution-card:hover p,
.solution-card:hover i,
.solution-card:hover .learn-more {
    color: white;
    transition: color 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
}

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

.learn-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--background-alt);
}

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

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.feature i {
    font-size: 2rem;
    color: var(--primary);
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Footer */
footer {
    padding: 6rem 0 4rem;
    background-color: var(--text);
    color: white;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(120deg, var(--gold), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-nav-group h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-group a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.footer-nav-group a:hover {
    color: var(--gold);
}

.contact-info {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: var(--gold);
    text-decoration: none;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-legal p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-nav {
    display: flex;
    gap: 1.5rem;
}

.legal-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-nav a:hover {
    color: var(--gold);
}

.footer-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-location i {
    color: var(--gold);
    margin-right: 0.5rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 4rem 0 3rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }

    .legal-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Responsive Design */
/* Mobile and Responsive Styles */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 1.5rem;
    }

    /* Typography */
    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        letter-spacing: -1px;
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .navbar .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
        min-height: 36px;
        border-radius: 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 4rem 0;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 1.2rem;
        font-size: 1rem;
    }

    /* How It Works Section - Mobile */
    .how-it-works {
        padding: 4rem 0 6rem;
        overflow: hidden;
    }

    .steps-container {
        padding: 2rem 0;
        margin-left: -1.5rem;
        width: calc(100% + 3rem);
    }

    .steps-timeline {
        left: 2rem;
        width: 3px;
    }

    .steps-grid {
        gap: 3rem;
        margin-top: 2rem;
        padding-bottom: 2rem;
    }

    .step {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
        margin-right: 1rem !important;
    }

    .step-content {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .step::after {
        left: -2rem !important;
        width: 1.25rem;
        height: 1.25rem;
        border-width: 3px;
        transform: translate(-50%, -50%) !important;
    }

    .step:hover::after {
        transform: translate(-50%, -50%) scale(1.2) !important;
    }

    .step-number {
        font-size: 3.5rem;
        top: -0.5rem;
        right: -0.5rem;
        opacity: 0.15;
    }

    .step-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 1rem;
        margin-bottom: 1rem;
    }

    .step-icon i {
        font-size: 1.2rem;
    }

    .step h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .step p {
        font-size: 1rem;
        margin-bottom: 0;
        line-height: 1.5;
    }

    /* Solutions Grid */
    .solutions {
        padding: 4rem 0;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .solution-card {
        padding: 2rem;
    }

    /* Features Grid */
    .features {
        padding: 4rem 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature {
        padding: 1rem;
    }

    /* Testimonials */
    .testimonials {
        padding: 4rem 0;
    }

    .logos {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    footer {
        padding: 3rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    /* Safe Area Insets for Modern Devices */
    @supports(padding: max(0px)) {
        .container {
            padding-left: max(1.5rem, env(safe-area-inset-left));
            padding-right: max(1.5rem, env(safe-area-inset-right));
        }

        .navbar {
            padding-top: max(1rem, env(safe-area-inset-top));
        }

        footer {
            padding-bottom: max(3rem, env(safe-area-inset-bottom));
        }
    }

    /* Prevent Text Size Adjustment */
    html {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Touch Targets */
    .cta-button,
    .learn-more,
    .step-icon,
    .navbar .logo {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Smooth Scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.step,
.solution-card,
.feature {
    animation: fadeIn 0.6s ease-out forwards;
}
