:root {
    --color-cream: #f5f1eb;
    --color-navy: #0a1628;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    --color-green: #22c55e;
    --color-purple: #a855f7;
    --color-orange: #f97316;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--color-gray-700);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header.scrolled .nav-link,
.header.scrolled .header-link,
.header.scrolled .logo {
    color: var(--color-gray-800);
}

.header.dark-mode {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
}

.header.dark-mode .nav-link,
.header.dark-mode .header-link,
.header.dark-mode .logo {
    color: var(--color-white);
}

.header-container {
    max-width: 100%;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.nav-link:hover { background: rgba(255,255,255,0.1); }
.nav-link svg { width: 16px; height: 16px; opacity: 0.7; }

.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-link {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.header-link:hover { background: rgba(255,255,255,0.1); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.btn-primary { background: var(--color-black); color: var(--color-white); }
.btn-primary:hover { background: var(--color-gray-800); }
.btn-secondary { background: var(--color-white); color: var(--color-black); }
.btn-secondary:hover { background: var(--color-gray-100); }
.btn-outline-light { background: rgba(255,255,255,0.15); color: var(--color-white); backdrop-filter: blur(10px); }
.btn-outline-light:hover { background: rgba(255,255,255,0.25); }
.btn-outline { background: transparent; color: var(--color-white); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== HERO SECTION WITH BACKGROUND ===== */
.hero-wrapper {
    position: relative;
    background-image: url('../assets/images/webp/amsterdam_grachten_sketch_portrait.webp');
    background-size: cover;
    background-position: center top;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.45);
    pointer-events: none;
}

.hero {
    min-height: 180vh;
    position: relative;
    z-index: 1;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-height) + 60px) 48px 40px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    max-width: 1000px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(52px, 7vw, 88px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.05;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.hero-title-line {
    display: block;
    transition: filter 0.6s ease, opacity 0.6s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title-line.blur {
    filter: blur(15px);
    opacity: 0;
}

.hero-divider {
    width: 100%;
    max-width: 900px;
    height: 1px;
    background: rgba(255,255,255,0.4);
    margin-top: 52px;
    margin-bottom: 28px;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    transition: transform 0.6s ease;
}

.hero-buttons.move-right {
    transform: translateX(calc(100vw - 450px));
}

.hero-description-wrapper {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

.hero-description-wrapper.blur {
    filter: blur(15px);
    opacity: 0;
}

.hero-description p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

/* ===== VIDEO SECTION (inside hero wrapper) ===== */
.video-section {
    position: relative;
    z-index: 10;
    padding: 0 48px 60px;
    margin-top: -30vh;
}   

.video-container {
    max-width: 1100px;
    margin: 0 auto;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-gray-900);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-wrapper.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--color-gray-400);
    font-size: 14px;
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== LOGOS SECTION (inside hero wrapper) ===== */
.logos-section {
    position: relative;
    z-index: 1;
    padding: 30px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);           
}

.logos-track {
    display: flex;
    gap: 80px;
    animation: scroll-logos 20s linear infinite;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

/* ===== FLOW SECTION ===== */
.flow-section {
    background: var(--color-cream);
    padding: 40px 48px;
}

.flow-header {
    text-align: center;
    margin-bottom: 30px;
}

.flow-title {
    font-family: var(--font-serif);
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.15;
    color: var(--color-gray-900);
}

.flow-content {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.flow-diagram-wrapper {
    flex: 0 0 55%;
}

.flow-video-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: var(--color-white);
    line-height: 0;
}

.flow-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Flow cards */
.flow-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flow-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.flow-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.flow-card:nth-child(1) .flow-card-logo {
    height: 25px;
    width: auto;
}

.flow-card:nth-child(2) .flow-card-logo {
    height: 15px;
    width: auto;
}

.flow-card:nth-child(3) .flow-card-logo {
    height: 30px;
    width: auto;
}

.flow-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.flow-card p {
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.5;
}

/* ===== ENGINE SECTION ===== */
.engine-section {
    background: var(--color-navy);
    height: auto;
    position: relative;
    overflow: hidden;
}

.engine-container {
    display: flex;
    height: 100%;
}

.engine-sidebar {
    width: 280px;
    padding: 160px 24px 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.engine-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.engine-step.active {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

.engine-step-number {
    font-size: 11px;
    opacity: 0.6;
}

.engine-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 140px 60px 60px;
}

.engine-intro {
    max-width: 600px;
    margin-bottom: 40px;
}

.engine-intro-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    color: var(--color-cream);
    margin-bottom: 20px;
}

.engine-intro p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.engine-intro .btn-row { display: flex; gap: 12px; }

.phase-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.phase-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.phase-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.phase-content { padding-right: 20px; }

.phase-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 12px;
}

.phase-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-orange);
    border-radius: 2px;
}

.phase-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-cream);
    margin-bottom: 16px;
}

.phase-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
}

.phase-visual {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 280px;
}

.machine-visual {
    width: 70%;
    height: 70%;
    position: relative;
}

.machine-ring {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: rotate-slow 20s linear infinite;
}

.machine-ring:nth-child(1) { inset: 10%; border-style: dashed; }
.machine-ring:nth-child(2) { inset: 25%; animation-direction: reverse; animation-duration: 15s; }
.machine-ring:nth-child(3) { inset: 40%; border-style: dotted; }

.machine-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--color-orange);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.4);
}

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

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--color-navy);
    padding: 150px 48px 80px;
}

.faq-container { max-width: 900px; margin: 0 auto; }

.faq-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.faq-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-orange);
    border-radius: 2px;
}

.faq-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-cream);
    margin-bottom: 40px;
}

.faq-list { border-top: 1px dashed rgba(255,255,255,0.2); }
.faq-item { border-bottom: 1px dashed rgba(255,255,255,0.2); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    color: var(--color-cream);
    font-size: 16px;
    font-weight: 500;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.5);
    transition: transform 0.3s;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer p {
    padding-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../assets/images/webp/footer.webp');
    background-size: cover;
    background-position: center;
}

.cta-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.5);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px;
    max-width: 800px;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 24px;
}

.cta-pricing {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.4;
    margin-bottom: 6px;
}

.cta-trial {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-white);
    padding: 64px 48px 32px;
    border-top: 1px solid var(--color-gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 48px;
}

.footer-column h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    margin-bottom: 16px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }

.footer-column a {
    font-size: 14px;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-column a:hover { color: var(--color-gray-900); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    gap: 24px;
}

.footer-bottom a {
    font-size: 14px;
    color: var(--color-gray-500);
    text-decoration: none;
}

/* ===== CHAT WIDGET ===== */
.chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.chat-bubble-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav { display: none; }
    .flow-content { flex-direction: column; }
    .flow-diagram-wrapper { flex: none; width: 100%; }
    .engine-container { flex-direction: column; }
    .engine-sidebar {
        width: 100%;
        padding: 60px 24px 24px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .engine-step {
        border-bottom: none;
        padding: 8px 12px;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 20px;
    }
    .phase-slide { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero-content { padding: calc(var(--header-height) + 40px) 24px 40px; }
    .hero-bottom { flex-direction: column; }
    .hero-description-wrapper { margin-left: 0; max-width: 100%; }
    .hero-buttons.move-right { transform: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-buttons { flex-direction: column; align-items: center; }
}
