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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* =====================================================
   HEADER FIX: isolation + explicit stacking context
   ensures header always renders above all content,
   regardless of transforms/filters on child sections.
===================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #032326;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* Explicit stacking context: z-index alone is not
       enough if ancestor elements create new stacking
       contexts. isolation:isolate + z-index together
       guarantee the header paints on top. */
    z-index: 1000;
    isolation: isolate;
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: background 0.3s, box-shadow 0.3s;
    padding: 1.2rem 4rem;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2D5F3F;
}

.login-btn {
    background: #F8F9FB;
    color: #032326 !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #B3D8DB;
    color: white !important;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #F8F9FB;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #B3D8DB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-btn svg {
    color: #032326;
}

.social-btn:hover svg {
    color: white;
}

/* =====================================================
   ALL SECTIONS: position:relative + z-index:0
   Prevents any section from accidentally creating a
   stacking context that overlaps the fixed header.
   We never give sections a z-index >= 1000.
===================================================== */
.hero,
.process-section,
.features-section,
.solution-section,
.pricing-section,
.additional-services,
.testimonials-section,
.cta-section,
footer {
    position: relative;
    z-index: 0;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 4rem;
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.flags {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.flags img {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.signup-btn {
    display: inline-block;
    background: #2D5F3F;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.signup-btn:hover {
    background: #1f4229;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 95, 63, 0.3);
}

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

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
}

/* Process Section */
.process-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.process-step:nth-child(even) {
    direction: rtl;
}

.process-step:nth-child(even) > * {
    direction: ltr;
}

.process-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.process-tabs {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tab {
    padding: 0.6rem 1.2rem;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.active {
    background: #2D5F3F;
    color: white;
    pointer-events: none;
    cursor: default;
}

.process-content h3 {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-weight: 400;
}

.process-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Features Section */
.features-section {
    background: #032326;
    padding: 6rem 4rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

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

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.feature-card p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
}

/* Solution Section */
.solution-section {
    padding: 6rem 4rem;
    text-align: center;
}

.solution-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.solution-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-images img {
    width: 30%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Pricing Section */
.pricing-section {
    background: #f8f9fb;
    padding: 6rem 4rem;
}

.pricing-section h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.billing-toggle {
    width: fit-content;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    background: #E8F2F3;
    border: 1px solid #B3D8DB;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(3, 35, 38, 0.08);
}

.billing-toggle button {
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #032326;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    transition: all 0.3s;
}

.billing-toggle button.active {
    background: #2D5F3F;
    color: white;
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.25);
}

.billing-toggle button:focus-visible {
    outline: 3px solid rgba(179, 216, 219, 0.8);
    outline-offset: 2px;
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-top: 4px solid transparent;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    border-top-color: #2D5F3F;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.pricing-icon {
    width: 40px;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #2D5F3F;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.pricing-card .label {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-top: 2rem;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pricing-card ul li:before {
    content: "• ";
    color: #2D5F3F;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Additional Services */
.additional-services {
    padding: 4rem 4rem 6rem;
}

.additional-services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.service-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.service-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #2D5F3F;
    margin-bottom: 0.5rem;
}

.service-card .label {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-section {
    background: #f8f9fb;
    padding: 6rem 4rem;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4rem;
}

.pricing-nav-btn {
    background: #B3D8DB;
    color: #032326 !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 600;
}

.pricing-nav-btn:hover {
    background: #2D5F3F;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.testimonial {
    max-width: 1000px;
    margin: 0 auto 4rem;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.testimonial-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: start;
}

.testimonial-image {
    width: 160px;
    height: 160px;
    border-radius: 80%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #1a1a1a;
    font-style: normal;
}

.client-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.client-logos img {
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.client-logos img:hover {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    padding: 6rem 4rem;
    text-align: center;
    background: #032326;
    color: white;
}

.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #2D5F3F;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-image {
    max-width: 700px;
    margin: 3rem auto 0;
}

.cta-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: #032326;
    color: white;
    padding: 4rem 4rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 400px;
    /* Cookie banner sits above content but below nothing —
       use z-index 999 so it doesn't compete with header (1000) */
    z-index: 999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

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

.cookie-buttons button {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.accept-btn {
    background: #2D5F3F;
    color: white;
}

.reject-btn {
    background: #f0f0f0;
    color: #333;
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Smooth hover transitions */
a, button, .tab, .feature-card, .pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image loading */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0.5;
}

/* Mobile menu toggle (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
}

/* =====================================================
   RESPONSIVE — Tablet (768px–1024px)
===================================================== */
@media (max-width: 1024px) {
    header {
        padding: 1rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero,
    .features-section,
    .solution-section,
    .pricing-section,
    .testimonials-section,
    .cta-section,
    .additional-services {
        padding: 4rem 2rem;
    }

    .process-section {
        padding: 4rem 2rem;
        max-width: 100%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .flags {
        justify-content: center;
    }

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

    .process-step {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-step:nth-child(even) {
        direction: ltr;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

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

    .solution-images img {
        width: 45%;
        min-width: 200px;
    }

    .testimonial-content {
        grid-template-columns: 120px 1fr;
    }

    .testimonial-image {
        width: 120px;
        height: 120px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   RESPONSIVE — Mobile (max 768px)
===================================================== */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: #032326;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        height: calc(100vh - 70px);
        /* Mobile nav sits just below the header */
        z-index: 998;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .login-btn {
        width: 100%;
        text-align: center;
    }

    .social-btn {
        margin: 0 auto;
    }

    .hero {
        padding: 3rem 1.5rem;
        margin-top: 70px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .flags img {
        width: 35px;
        height: 26px;
    }

    .signup-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .process-section,
    .features-section,
    .solution-section,
    .pricing-section,
    .testimonials-section,
    .cta-section,
    .additional-services {
        padding: 3rem 1.5rem;
    }

    .process-content h2,
    .features-section h2,
    .solution-section h2,
    .pricing-section h2,
    .testimonials-section h2,
    .cta-section h2,
    .additional-services h2 {
        font-size: 2rem;
    }

    .process-tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        text-align: center;
    }

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

    .solution-images {
        flex-direction: column;
    }

    .solution-images img {
        width: 100%;
        min-width: auto;
    }

    .testimonial {
        padding: 2rem 1.5rem;
    }

    .testimonial-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .testimonial-image {
        margin: 0 auto 1.5rem;
        width: 100px;
        height: 100px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: calc(100% - 2rem);
    }

    footer {
        padding: 3rem 1.5rem 1.5rem;
    }

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

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

/* =====================================================
   RESPONSIVE — Very small mobile (max 480px)
===================================================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .process-content h2 {
        font-size: 1.75rem;
    }

    .pricing-card,
    .service-card {
        padding: 2rem 1.5rem;
    }

    .pricing-card h3 {
        font-size: 1.5rem;
    }

    .pricing-card .price,
    .service-card .price {
        font-size: 1.75rem;
    }
}
