/* ContentFlow Generated CSS */

/* Font Imports */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
    --primary-color: #9333ea;
    --primary-dark: #7e22ce;
    --text-dark: #333333;
}

/* Global Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark, #333333);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary-color, #9333ea);
    text-decoration: none;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Photo Credit Overlay */
.image-with-credit {
    display: inline-block;
    position: relative;
    margin: 0;
    line-height: 0;
}

.image-with-credit img {
    display: block;
    max-width: 100%;
    height: auto;
}

.photo-credit {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
    pointer-events: auto;
    z-index: 10;
}

.photo-credit a,
.photo-credit-link {
    color: white;
    text-decoration: none;
}

.photo-credit a:hover,
.photo-credit-link:hover {
    text-decoration: underline;
}

/* Hero/Banner sections: figure becomes invisible, credit positions relative to section */
[class*="hero"] .image-with-credit,
[class*="banner"] .image-with-credit,
[class*="fullscreen"] .image-with-credit,
.hero-section .image-with-credit {
    display: contents;
}

/* Larger padding for hero sections */
[class*="hero"] .photo-credit,
[class*="banner"] .photo-credit,
[class*="fullscreen"] .photo-credit,
.hero-section .photo-credit {
    bottom: 20px;
    right: 20px;
}

/* Credit for background-image elements */
.photo-credit-bg {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
    pointer-events: auto;
    z-index: 10;
}

/* Lightbox Styles */
.cf-lightbox-overlay,
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.cf-lightbox-overlay.active,
.gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cf-lightbox-overlay img,
.gallery-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}

.cf-lightbox-overlay.active img,
.gallery-overlay.active img {
    transform: scale(1);
}

.cf-lightbox-close,
.gallery-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
    line-height: 1;
}

.cf-lightbox-close:hover,
.gallery-overlay .close-btn:hover {
    opacity: 1;
}

/* Gallery items - clickable */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Make all suitable images clickable */
img.cf-lightbox-img {
    cursor: zoom-in !important;
    transition: opacity 0.2s ease;
}

img.cf-lightbox-img:hover {
    opacity: 0.9;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* === 040-navigation === */
.nav-040 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #d2d2d7;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-040-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-040-logo a {
    text-decoration: none;
    display: block;
}

.nav-040-logo-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-040-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-040-menu a {
    text-decoration: none;
    color: rgba(29, 29, 31, 0.8);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-040-menu a:hover {
    color: #0066FF;
}

.nav-040-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(29, 29, 31, 0.8);
    cursor: pointer;
    padding: 8px;
}

.nav-040-mobile-toggle:hover {
    color: #0066FF;
}

@media (max-width: 768px) {
    .nav-040-mobile-toggle {
        display: block;
    }

    .nav-040-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        border-bottom: 1px solid #d2d2d7;
    }

    .nav-040-menu.active {
        display: flex;
    }

    .nav-040-menu li {
        text-align: center;
    }

    .nav-040-menu a {
        font-size: 18px;
        display: block;
        padding: 16px;
    }
}

/* === 040-hero === */
.hero-040 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 60px;
    padding-top: calc(64px + 80px);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-040-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-040-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.4) 100%);
}

.hero-040-content {
    max-width: 1400px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-040-headline {
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-040-line {
    display: block;
    animation: hero040FadeInUp 0.8s ease-out forwards;
}

.hero-040-copy {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    animation: hero040FadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-040-method {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    animation: hero040FadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
    margin: 0;
}

.hero-040-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-040-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #0066FF;
    border-bottom: 2px solid #0066FF;
    transform: rotate(45deg);
    animation: hero040Bounce 2s infinite;
    opacity: 0.8;
}

@keyframes hero040FadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero040Bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero-040 {
        padding: 40px 20px;
        padding-top: calc(64px + 40px);
    }

    .hero-040-copy {
        font-size: 18px;
    }
}

/* Optional: Overlay deaktivieren */
.hero-040.no-overlay .hero-040-background::after {
    display: none;
}

/* === service-cards === */
.process-040 {
    background: #f5f5f7;
    padding: 80px 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.process-040-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.process-040-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: rgba(29, 29, 31, 0.8);
    margin: 0 0 24px 0;
}

.process-040-subtitle {
    font-size: 24px;
    color: #86868b;
    max-width: 700px;
    margin: 0 auto;
}

.process-040-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.process-040-card {
    background: white;
    padding: 50px 30px 40px;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.process-040-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.process-040-card-icon {
    margin-bottom: 30px;
    display: block;
}

.process-040-card-icon i {
    font-size: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.process-040-card:nth-child(2) .process-040-card-icon i {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-040-card:nth-child(3) .process-040-card-icon i {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-040-card:nth-child(4) .process-040-card-icon i {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-040-card-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: rgba(29, 29, 31, 0.9);
}

.process-040-card-description {
    color: #86868b;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.process-040-link {
    display: inline-block;
    margin-top: 16px;
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.process-040-link:hover {
    color: #0052CC;
}

.process-040-quote {
    text-align: center;
    font-size: 24px;
    font-style: italic;
    color: rgba(29, 29, 31, 0.8);
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    border: none;
}

@media (max-width: 1024px) {
    .process-040-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-040-grid {
        grid-template-columns: 1fr;
    }
    .process-040-card-icon i {
        font-size: 64px;
    }
}

/* Card Link Button */
.process-040-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    color: #0066FF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    border: 2px solid #0066FF;
    transition: all 0.3s ease;
}

.process-040-card-btn:hover {
    background: #0066FF;
    color: white;
    transform: translateX(4px);
}

.process-040-card-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.process-040-card-btn:hover i {
    transform: translateX(4px);
}

/* No Animation Mode */
.process-040.no-animation .process-040-card {
    transition: none;
}

.process-040.no-animation .process-040-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: none;
}

.process-040.no-animation .process-040-card-btn {
    transition: none;
}

.process-040.no-animation .process-040-card-btn:hover {
    transform: none;
}

.process-040.no-animation .process-040-card-btn:hover i {
    transform: none;
}

/* === 040-section-divider === */
.divider-040 {
    text-align: center;
    padding: 80px 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
}

.divider-040-line {
    width: 80%;
    height: 1px;
    background: #d2d2d7;
    margin: 0 auto 40px;
}

.divider-040-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Layout mit Icon - Linie oben, dann Icon+Text */
.divider-040.has-icon {
    padding: 80px 40px;
}

.divider-040.has-icon .divider-040-line {
    width: 80%;
    margin-bottom: 50px;
}

.divider-040.has-icon .divider-040-icon {
    margin-bottom: 32px;
}

.divider-040-icon {
    display: flex;
    justify-content: center;
}

/* Apple-Style Icon Box */
.divider-040-icon-box {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.divider-040-icon-box:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        0 28px 60px rgba(102, 126, 234, 0.5),
        0 12px 28px rgba(0, 0, 0, 0.18);
}

.divider-040-icon-box i {
    font-size: 72px;
    color: white;
}

.divider-040-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: rgba(29, 29, 31, 0.8);
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.divider-040-subtitle {
    font-size: 21px;
    color: #86868b;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .divider-040 {
        padding: 60px 20px;
    }
    
    .divider-040-icon-box {
        width: 80%;
        height: 120px;
        border-radius: 28px;
    }
    
    .divider-040-icon-box i {
        font-size: 60px;
    }
}

/* === 040-product-showcase === */
/* Tool Showcase Container */
.tool-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Tool Showcase - matches original 040.studio styles */
.tool-showcase {
    margin-bottom: 120px;
    position: relative;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Large Image Layout */
.layout-large-image {
    text-align: center;
}

.layout-large-image .tool-visual {
    margin-bottom: 60px;
}

.layout-large-image .tool-visual.full-width {
    max-width: 100%;
    margin: 0 auto 60px;
}

.tool-content.centered {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Split Layout */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.layout-split.reverse {
    direction: rtl;
}

.layout-split.reverse .tool-content,
.layout-split.reverse .tool-visual {
    direction: ltr;
}

/* Visual */
.tool-visual {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-image {
    width: 100%;
    height: auto;
    /* border-radius: 18px; -- removed for transparent PNGs */
    /* box-shadow: removed for transparent PNGs */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Keep split layout images static */
.layout-split .tool-image {
    transform: none !important;
}

/* Content */
.tool-badge {
    display: inline-block;
    background: var(--color-flow-blue, #0066FF);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.tool-headline {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 24px 0;
    color: var(--color-text-primary, rgba(29, 29, 31, 0.8));
}

.layout-large-image .tool-headline {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

.tool-copy {
    font-size: 21px;
    color: var(--color-text-secondary, #86868b);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.tool-text {
    color: var(--color-text-secondary, #86868b);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.layout-large-image .feature-pills {
    justify-content: center;
}

.pill {
    background: var(--color-background-secondary, #f5f5f7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--color-text-primary, rgba(29, 29, 31, 0.8));
}

/* Scroll Animation Classes */
.scroll-scale {
    will-change: transform, opacity;
}

.scroll-fade-up {
    will-change: transform, opacity;
}

.scroll-fade-left {
    will-change: transform, opacity;
}

.scroll-fade-right {
    will-change: transform, opacity;
}

.scroll-parallax {
    /* Keep static */
}

/* Responsive */
@media (max-width: 1024px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .layout-split.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .tool-showcase {
        margin-bottom: 80px;
    }
    
    .tool-showcase-container {
        padding: 0 20px;
    }
}

/* === 040-statement === */
.statement-040 {
    padding: 160px 0;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff 0%, #dde9ff 25%, #dde9ff 75%, #ffffff 100%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.statement-040-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.statement-040-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0 0 40px 0;
    color: rgba(29, 29, 31, 0.8);
}

.statement-040-title .accent {
    color: #040040;
}

.statement-040-title .accent-blue {
    color: #0066FF;
}

.statement-040-subtitle {
    font-size: 28px;
    color: #86868b;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .statement-040 {
        padding: 80px 0;
    }
}

/* === team-cards === */
.team-040 {
    background: #f5f5f7;
    padding: 80px 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.team-040-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.team-040-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: rgba(29, 29, 31, 0.8);
    margin: 0 0 24px 0;
}

.team-040-subtitle {
    font-size: 24px;
    color: #86868b;
    max-width: 700px;
    margin: 0 auto;
}

.team-040-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-040-member {
    text-align: center;
}

.team-040-avatar {
    width: 180px;
    height: 180px;
    background: #f5f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.team-040-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.team-040-avatar:hover .team-040-photo {
    transform: scale(1.1);
}

.team-040-member h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: rgba(29, 29, 31, 0.8);
}

.team-040-role {
    color: #86868b;
    margin: 0 0 16px 0;
    font-size: 16px;
}

.team-040-desc {
    font-size: 16px;
    color: #86868b;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .team-040-grid {
        grid-template-columns: 1fr;
    }
}

/* === 040-vision === */
.vision-040 {
    background: #040040;
    color: white;
    padding: 120px 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.vision-040-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.vision-040-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: white;
    margin: 0 0 40px 0;
    text-align: center;
}

.vision-040-intro {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 60px 0;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vision-040-content {
    font-size: 21px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    columns: 2;
    column-gap: 60px;
}

.vision-040-content p {
    margin: 0 0 30px 0;
    break-inside: avoid;
}

.vision-040-content strong {
    font-weight: 600;
}

.vision-040-content em {
    font-style: italic;
}

.vision-040-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    column-span: all;
}

.vision-040-box h3 {
    font-size: 28px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.vision-040-box p {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.vision-040-quote {
    text-align: center;
    font-style: italic;
    font-size: 21px;
    margin: 60px 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    column-span: all;
}

@media (max-width: 1024px) {
    .vision-040-content {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .vision-040 {
        padding: 80px 0;
    }
    .vision-040-container {
        padding: 0 30px;
    }
    .vision-040-box {
        padding: 24px;
    }
}

/* === 040-principles === */
.principles-040 {
    padding: 80px 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.principles-040-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.principles-040-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: rgba(29, 29, 31, 0.8);
    margin: 0 0 24px 0;
}

.principles-040-subtitle {
    font-size: 24px;
    color: #86868b;
    max-width: 700px;
    margin: 0 auto;
}

.principles-040-content {
    margin-bottom: 80px;
}

.principles-040-list {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
}

.principles-040-list li {
    padding: 16px 0;
    border-bottom: 1px solid #d2d2d7;
    font-size: 18px;
    color: rgba(29, 29, 31, 0.8);
}

.principles-040-list code {
    background: #f5f5f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "SF Mono", Monaco, monospace;
    font-size: 16px;
}

.principles-040-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.principles-040-tech-item {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
}

.principles-040-quote {
    text-align: center;
    font-size: 21px;
    font-style: italic;
    color: rgba(29, 29, 31, 0.8);
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    border: none;
}

@media (max-width: 768px) {
    .principles-040-tech {
        flex-direction: column;
        align-items: center;
    }
}

/* === 040-contact === */
.contact-040 {
    background: #f5f5f7;
    text-align: center;
    padding: 80px 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.contact-040-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-040-header {
    margin-bottom: 40px;
}

.contact-040-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: rgba(29, 29, 31, 0.8);
    margin: 0 0 24px 0;
}

.contact-040-subtitle {
    font-size: 24px;
    color: #86868b;
    max-width: 700px;
    margin: 0 auto;
}

.contact-040-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-040-btn {
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.contact-040-btn.primary {
    background: #0066FF;
    color: white;
}

.contact-040-btn.primary:hover {
    transform: scale(1.05);
    background: #4D94FF;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.contact-040-btn.secondary {
    background: white;
    color: #0066FF;
    border: 2px solid #0066FF;
}

.contact-040-btn.secondary:hover {
    background: #0066FF;
    color: white;
}

@media (max-width: 768px) {
    .contact-040-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* === 040-footer === */
.footer-040 {
    padding: 60px 0 30px;
    background: #1a1a1a;
    color: #a0a0a0;
    font-size: 14px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-040-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-040-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

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

.footer-040-section h5 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-040-brand {}

.footer-040-company {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.footer-040-tagline {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.footer-040-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #a0a0a0;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-040-contact-item:hover {
    color: #ffffff;
}

.footer-040-contact-item i {
    font-size: 18px;
    margin-top: 1px;
}

.footer-040-address {
    white-space: pre-line;
}

.footer-040-social-links {
    display: flex;
    gap: 15px;
}

.footer-040-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 20px;
    transition: all 0.2s;
}

.footer-040-social-links a:hover {
    background: #0066FF;
    color: #ffffff;
}

.footer-040-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .footer-040-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-040-copyright {
    margin: 0;
    color: #666;
}

.footer-040-legal {
    display: flex;
    gap: 25px;
}

.footer-040-legal a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-040-legal a:hover {
    color: #ffffff;
}

/* === Website Global CSS === */
/* 040.studio Global CSS Variables */
:root {
    --color-primary: rgba(0, 0, 0, 0.8);
    --color-background: #ffffff;
    --color-background-secondary: #f5f5f7;
    --color-accent: #040040;
    --color-flow-blue: #0066FF;
    --color-flow-blue-light: #4D94FF;
    --color-text-primary: rgba(29, 29, 31, 0.8);
    --color-text-secondary: #86868b;
    --color-border: #d2d2d7;

    --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    --container-max: 1400px;
    --border-radius: 18px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    font-size: 19px;
    line-height: 1.47;
    color: var(--color-text-primary);
    background: var(--color-background);
    overflow-x: hidden;
}

/* Scroll Animation Initial States */
.scroll-scale {
    will-change: transform, opacity;
    opacity: 0;
    transform: scale(0.6) translateY(120px);
}

.scroll-fade-up {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(150px) scale(0.9);
}

.scroll-fade-left {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateX(-80px);
}

.scroll-fade-right {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateX(80px);
}

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

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

/* === Consistent Heading Styles (Override) === */
h1,
.hero-040-content h1,
.hero-content h1 {
    letter-spacing: 0.03em;
}

h1, h2, h3, h4, h5, h6,
.hero-content h1,
.video-header h2,
.video-header h3,
.services-section h2,
.services-section h3,
.references-section h2,
.gallery-section h2,
.reveal-text h2,
.content-split-advanced .reveal-text h2,
.service-card-content h3,
.free-content-container h1,
.free-content-container h2,
.free-content-container h3 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.video-header h2,
.services-section h2,
.references-section h2,
.gallery-section h2,
.reveal-text h2,
.content-split-advanced .reveal-text h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.video-header h3,
.services-section h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    line-height: 1.4;
}
