/* ==========================================================================
   1. Font Loading & Core Resets
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('Inter-Variable.woff2') format('woff2 supports variations'),
         url('Inter-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F8F9FA; /* Premium light gray background */
    color: #1F2937;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* ==========================================================================
   2. Subtle Background Accents
   ========================================================================== */
.bg-gradient {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

.bg-gradient-1 {
    top: -20%;
    left: -10%;
    background: #10B981;
}

.bg-gradient-2 {
    bottom: 10%;
    right: -10%;
    background: #8B5CF6;
}

/* ==========================================================================
   3. Header Navigation (Equal-Wing Centering Strategy)
   ========================================================================== */

header {
    max-width: 100vw;
}

.navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Evenly spaces left, center, and right boxes */
}

/* Left side container: Fixed width */
.logo-wrapper {
    width: 200px;
    display: flex;
    justify-content: flex-start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #111827;
}

/* Right side container: Matches left side width exactly to force true mathematical center */
.nav-cta {
    width: 200px;
    display: flex;
    justify-content: flex-end; /* Pushes the button flush against the right margin */
}

/* Center Menu Panel */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4B5563;
}

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

/* ==========================================================================
   4. UI Components (CTA Button)
   ========================================================================== */
.btn-cta {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #10B981, #8B5CF6);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

.menu-toggle, .hamburger {
    display: none;
}

/* ==========================================================================
   5. Main Content Layouts
   ========================================================================== */
/* Hero Section - Instantly visible */
.hero {
    max-width: 1100px;
    margin: 9rem auto 4rem auto;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #111827;
}

.hero-content p {
    font-size: 1.25rem;
    color: #4B5563;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.hero-image-wrapper {
    width: 100%;
    /*background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    */
    overflow: hidden;
    line-height: 0;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
}

/* Trust Enhancer Section */
.trust-enhancer {
    max-width: 100%;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin: 6rem 0;
    padding: 5rem 2rem 0 2rem;
}

.trust-top {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.trust-badge {
    display: inline-block;
    border: 1px solid #D1D5DB;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4B5563;
    letter-spacing: 0.05em;
    width: max-content;
}

.trust-heading {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
}

.trust-text {
    font-size: 1.05rem;
    color: #4B5563;
    line-height: 1.6;
}

.trust-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-item {
    padding: 2.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px dashed rgba(0, 0, 0, 0.08);
}

.logo-item:last-child {
    border-right: none;
}

.logo-item img {
    max-width: 100px;
    height: auto;
    opacity: 0.4;
    filter: grayscale(100%);
}

/* Zig-Zag Sections */
.features-container {
    max-width: 1100px;
    margin: 0 auto 8rem auto;
    padding: 0 2rem;
}

.zigzag-section {
    display: flex;
    align-items: center;
    gap: 7rem;
    margin-bottom: 8rem;
    scroll-margin-top: 6rem;
}

.zigzag-section.reverse {
    flex-direction: row-reverse;
}

.zigzag-image {
    flex: 1.5;
}

.zigzag-text {
    flex: 1;
}

.img-placeholder-box {
    /*background-color: #E5E7EB;*/
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6B7280;
    font-weight: 500;
}

.zig-zag-image {
    width: 100%;    
	border-radius: 8px;
}

.zigzag-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.zigzag-text p {
    font-size: 1.05rem;
    color: #4B5563;
    line-height: 1.6;
}

.centered-cta {
    margin: auto;
    width: 100%;
}

.centered-cta a {
    margin: auto;
    font-size: 120%;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #FFFFFF;
    padding: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6B7280;
}

.imprint-link {
    color: #4B5563;
}

.imprint-link:hover {
    color: #111827;
    text-decoration: underline;
}

/* ==========================================================================
   6. CSS Scroll-Driven Fade-In Animations (Modern Native API)
   ========================================================================== */
@keyframes scrollFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* This targets layout blocks dynamically as the page rolls into view */
@supports (animation-timeline: view()) {
    .trust-enhancer,
    .zigzag-section {
        animation: scrollFadeIn linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 30%;
    }
}

/* Standard visibility assurance for fallback coverage */
@not supports (animation-timeline: view()) {
    .trust-enhancer,
    .zigzag-section {
        opacity: 1;
    }
}

/* ==========================================================================
   7. Responsive Mobile Overrides
   ========================================================================== */
@media (max-width: 768px) {
    /* Reset fixed bounding constraints for mobile layouts */
    .logo-wrapper, .nav-cta {
        width: auto;
    }

    .nav-menu {
        position: fixed;
        left: auto;
        right: -100%;
        top: 0;
        width: 260px;
        height: 100vh;
        background-color: #FFFFFF;
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    .nav-cta {
        width: 100%;
        margin-top: 1rem;
    }

    .btn-cta {
        display: block;
        text-align: center;
        width: 100%;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        z-index: 110;
    }

    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #111827;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-toggle:checked ~ .nav-menu {
        right: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Turn off scroll animation frames on small viewports */
    .trust-enhancer,
    .zigzag-section {
        animation: none;
        opacity: 1;
    }

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

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-item:nth-child(3) {
        border-right: none;
    }

    .zigzag-section, .zigzag-section.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }

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