﻿/* --- Local Fonts (DSGVO / GDPR Compliance) --- */
@font-face {
    font-family: 'Rajdhani';
    src: url('resources/fonts/rajdhani-v17-latin-500.woff2') format('woff2'),
        url('resources/fonts/rajdhani-v17-latin-500.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('resources/fonts/rajdhani-v17-latin-700.woff2') format('woff2'),
        url('resources/fonts/rajdhani-v17-latin-700.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('resources/fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2'),
        url('resources/fonts/cormorant-garamond-v21-latin-italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('resources/fonts/cormorant-garamond-v21-latin-600italic.woff2') format('woff2'),
        url('resources/fonts/cormorant-garamond-v21-latin-600italic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-dark: #0F0F0F;
    --logo-white: #E6E6E6;
    --accent-cyan: #1AD1CE;
    --accent-cyan-glow: rgba(26, 209, 206, 0.8);
    --beam-height: 8px;

    /* --- Responsive Dimensions --- */
    /* Logo base size: smaller on mobile, capped at 420px on desktop */
    --logo-base-size: min(420px, 60vmin);

    /* Slide factor (how much the logo moves left relative to its width) */
    --slide-factor: 0.42;
    --slide-dist: calc(var(--logo-base-size) * -1 * var(--slide-factor));

    /* Text offset relative to logo size - Halved again for virtually flush integration */
    --text-offset-margin: calc(var(--logo-base-size) * 0.00234375);

    /* Font sizes using clamp for fluid typography */
    --fs-boeck: clamp(3.2rem, 11vmin, 7.8rem);

    /* Increased SYSTEMS size to be legible but still fit within BOECK width */
    --fs-systems: clamp(1.6rem, 5.5vmin, 3.8rem);

    /* Header position scaling */
    --header-height: 72px;
    --header-top: calc((var(--header-height) - (var(--logo-base-size) * var(--header-scale))) / 2);
    --header-left: 45px;
    --header-scale: 0.0928;
    /* Reduced by 20% from 0.116 */

    /* NEW: Dedicated header font-sizing to match icon height exactly (1:1 ratio) */
    /* Target height = logo-base-size. Adjusted multiplier to be slightly smaller than icon */
    --header-fs-systems: calc(var(--logo-base-size) * 0.38);
    /* Reduced from 0.452 */
    --header-fs-boeck: calc(var(--header-fs-systems) * 2);
    --header-text-gap: calc(var(--logo-base-size) * 0.035);
    /* Reduced from 0.05 */
    /* Final container width to ensure perfect SYSTEMS alignment (image 0 style) */
    --text-container-width: calc(var(--logo-base-size) * 0.9015);
    /* ~378.5px at 420px */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --header-scale: 0.1024;
        /* Reduced by 20% from 0.128 */
        --header-top: calc((var(--header-height) - (var(--logo-base-size) * var(--header-scale))) / 2);
        --header-left: 20px;
        --logo-base-size: 55vmin;
    }

    /* --- Mobile Stacking Logic (Intro Only) --- */

    body:not(.scrolled) .logo-wrapper {
        margin-bottom: 0;
    }

    body:not(.scrolled) .text-wrapper {
        align-items: center;
    }
}

/* Desktop Transition (Default) - simple synced movement */
@media (min-width: 769px) {
    .text-wrapper {
        transition:
            transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
            margin-left 0.8s cubic-bezier(0.16, 1, 0.3, 1),
            top 0.8s cubic-bezier(0.16, 1, 0.3, 1),
            left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #000;
    /* Fallback */
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    overflow-x: clip;
    /* Ensures sticky works unlike overflow: hidden */
}


/* Scroll Lock during Intro */
body.lock-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Ensure fixed containers don't get hidden behind body background */
body {
    background: transparent;
}

h1 {
    margin: 0;
    padding: 0;
}

.scroll-spacer {
    height: 200vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.content-preview {
    position: absolute;
    top: 100vh;
    width: 100%;
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    padding-top: 100px;
    opacity: 0.3;
}

/* --- USP Section Styles (Inspired by Reference) --- */
.section-usp {
    padding: 80px 0 40px 0;
    background-color: var(--bg-dark);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.usp-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(26, 209, 206, 0.1) 0%, transparent 75%);
    pointer-events: none;
    z-index: -1;
}

.section-usp::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image:
        linear-gradient(to bottom, transparent, black 15%, black 85%, transparent),
        radial-gradient(circle at center, black, transparent 90%);
    -webkit-mask-image:
        linear-gradient(to bottom, transparent, black 15%, black 85%, transparent),
        radial-gradient(circle at center, black, transparent 90%);
    pointer-events: none;
    z-index: -1;
}

.usp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 45px;
}

.usp-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
    align-items: flex-start;
}

.usp-title {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.usp-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
}

.reveal-active .usp-title .word {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggered word animation delays */
.usp-title .word:nth-child(1) {
    transition-delay: 0.1s;
}

.usp-title .word:nth-child(2) {
    transition-delay: 0.15s;
}

.usp-title .word:nth-child(3) {
    transition-delay: 0.2s;
}

.usp-title .word:nth-child(4) {
    transition-delay: 0.25s;
}

.usp-title .word:nth-child(5) {
    transition-delay: 0.3s;
}

.usp-title .word:nth-child(6) {
    transition-delay: 0.35s;
}

.usp-title .word:nth-child(7) {
    transition-delay: 0.4s;
}

.usp-title .word:nth-child(8) {
    transition-delay: 0.45s;
}

.usp-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    font-weight: 700;
    padding-top: 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.reveal-active .usp-label {
    opacity: 1;
    transform: translateX(0);
}

/* Card Grid */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.usp-card {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    /* Sharper corners like reference */
    padding: 50px 40px;
    min-height: 400px;
    /* Less high as requested */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Shadows removed as requested */
    border-radius: 12px;

    /* Initial state for reveal */
    opacity: 0;
    --reveal-y: 120px;
    --reveal-scale: 0.98;
    --parallax-y: 0px;
    --hover-y: 0px;

    /* Base transition for smooth interactions and reveal */
    transition:
        background-color 0.2s ease,
        border-color 0.3s ease,
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);

    /* Transform is handled by JS loop for perfect smoothness */
    will-change: transform;

    transform: translateY(calc(var(--reveal-y) + var(--parallax-y) + var(--hover-y))) scale(var(--reveal-scale));
}

.reveal-active .usp-card {
    opacity: 1;
    --reveal-y: 0px;
    --reveal-scale: 1;
}

/* Vertical Staggering (Controlled via JS scroll) */
.usp-grid .usp-card:nth-child(3n+2) {
    transition-delay: 0.1s;
}

.usp-grid .usp-card:nth-child(3n+3) {
    transition-delay: 0.2s;
}

.usp-grid .usp-card:nth-child(3n+1) {
    transition-delay: 0s;
}

/* Marker for the card content container */
.usp-card-top {
    position: relative;
    z-index: 1;
}

.usp-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(26, 209, 206, 0.4);
    /* --hover-y removed to prevent cards from jumping up */
}

/* Corner Crosshairs */
.usp-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 1;
}

/* Grain Overlay */
.usp-card-grain {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    z-index: 0;
}

.usp-card-tag {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-family: monospace;
    z-index: 2;
}

.usp-card-index {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    display: block;
    opacity: 0.6;
}

.usp-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: uppercase;
}

.usp-card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    font-weight: 400;
    max-width: 90%;
}

.usp-card:hover .usp-card-icon {
    transform: scale(1.05);
    /* Reduced scale for better control */
}

.usp-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    z-index: 2;
}

.usp-card-icon {
    width: 85px;
    /* Increased size */
    height: 85px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 15px var(--accent-cyan-glow));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.usp-card:hover .usp-card-icon {
    opacity: 1;
    transform: translateY(-5px);
}

.usp-card-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: status-pulse 2s infinite;
}

.status-text {
    font-family: monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}

@keyframes status-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Card Scanner Animation */
.usp-card-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.usp-card:hover .usp-card-scanner {
    animation: card-scan 3s infinite linear;
}

@keyframes card-scan {
    0% {
        top: 0;
        opacity: 0;
    }

    15% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.05;
    }

    85% {
        opacity: 0.15;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Ensure Links inside USP cards don't mess up colors */
.usp-card-link {
    color: inherit !important;
}

.usp-card-link .usp-card-title {
    color: #fff !important;
}

/* --- Main Footer Styles --- */
.main-footer {
    background-color: #050505;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 45px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    text-transform: uppercase;
}

.footer-logo-text span {
    color: var(--accent-cyan);
    font-weight: 500;
}

.footer-bio {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-family: monospace;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(26, 209, 206, 0.2);
}

.footer-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    color: #fff;
}

.usp-header {
    margin-bottom: 80px;
    padding: 0 10px;
    /* removed text-align: center to default to left or inherit */
}

.usp-title {
    text-align: left;
    /* Explicitly force left align */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 15px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: var(--accent-cyan);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

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

.footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Ruler Scale Graphics */
.usp-card-ruler {
    position: absolute;
    bottom: 0;
    left: 45px;
    right: 45px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.usp-card-ruler::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.usp-card-ruler::after {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.usp-card-ruler-marks {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 0;
    left: 20px;
}

.usp-card-ruler-marks span {
    width: 1px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive USP */
@media (max-width: 1100px) {
    .usp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .usp-container {
        padding: 0 15px !important;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .usp-header {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
        padding: 0 5px;
    }

    .usp-title {
        text-align: left !important;
        font-size: clamp(1.7rem, 8vw, 2.6rem);
        width: 100%;
    }

    .usp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
        width: 100%;
        padding: 0;
    }

    .usp-card-link {
        width: 100%;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }

    .usp-card {
        min-height: auto;
        padding: 30px 20px;
        width: 100%;
        margin: 0 auto;
    }

    .usp-card-tag {
        top: 15px;
        right: 15px;
        font-size: 0.6rem;
    }

    .usp-card-index {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .usp-card-title {
        font-size: 1.5rem;
    }

    .usp-card-desc {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .usp-card-icon {
        width: 50px;
        height: 50px;
    }
}

/* --- Main Header Styles --- */
/* Main Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Force Containing Block for Fixed Children on Subpages 
   This ensures the logo moves WITH the header when margin-top is applied by the banner,
   preventing the need for double-offset calculation. 
   Also applying unified Glass Design */
.subpage-header {
    transform: translateZ(0);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Header Content Visibility (Moved from .main-header to descendants) */
.main-header .main-nav,
.main-header .header-actions {
    opacity: 0;
    transform: translateY(-20px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

body.scrolled .main-header .main-nav,
body.scrolled .main-header .header-actions,
body.header-reached .main-header .main-nav,
body.header-reached .main-header .header-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Frosted Glass Effect */
.main-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.scrolled .main-header::before {
    opacity: 1;
}

body.scrolled .main-header,
body.header-reached .main-header {
    pointer-events: auto;
}

.header-inner-container {
    width: 100%;
    /* Removed max-width to allow full horizontal spread (right alignment) */
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile adjustments for header padding */
@media (max-width: 768px) {
    .header-inner-container {
        padding: 0 20px;
    }
}

/* Logo placeholder to maintain layout balance */
.header-logo-placeholder {
    width: 220px;
    /* matched to logo width + margin */
    height: 1px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-logo-placeholder {
        width: 140px;
    }
}

/* Navigation Styles */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

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

/* Prevent clumping on medium screens */
@media (max-width: 1450px) {
    .header-inner-container {
        padding: 0 30px;
    }

    .nav-list {
        gap: 25px;
    }
}

.nav-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-list li a:hover {
    color: #fff;
}

.nav-list li a:hover::after {
    width: 80%;
}

@media (max-width: 1024px) {
    .nav-list {
        display: none;
        /* Simple hide for now, could be mobile menu later */
    }
}

/* Header Actions / Contact Button */
.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
}

.btn-contact {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-calc-header {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-cyan);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.btn-calc-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
}

@media (max-width: 480px) {
    .btn-calc-header {
        display: none;
        /* Hide on very small screens to save space */
    }
}

.btn-contact:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-contact::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn-contact:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 200;
    /* Above header (110) */
}

/* --- Hero Video Styles --- */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000;
    opacity: 0;
    animation: fade-in 2s ease-out forwards;
    animation-delay: 1.5s;
    /* Fade in during intro */
    will-change: opacity;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    /* Slightly brighter */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darken sides with a linear gradient and cental focus with radial gradient */
    background:
        linear-gradient(to right, #000 0%, transparent 30%, transparent 70%, #000 100%),
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* --- Hero Content Styles (Framer Inspired) --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    text-align: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Triggered after logo moves */
body.header-reached .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title .line {
    display: block;
}

.hero-title .italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;
    font-size: 1.1em;
    margin-top: -0.1em;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 15px var(--accent-cyan-glow));
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid #fff;
    cursor: pointer;
    font-family: inherit;
    /* Ensure brand font is used on buttons */
}


.btn-primary:hover {
    background: transparent;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.btn-secondary {
    display: inline-block;
    padding: 18px 45px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Expandable CTA System --- */
.cta-expander {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    /* Keep height stable */
}

.cta-options {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    align-items: center;
    pointer-events: none;
    white-space: nowrap;
}

.cta-expander.active .cta-options {
    pointer-events: auto;
}

.cta-opt-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* Staggered Entrance */
.cta-expander.active .cta-opt-btn {
    opacity: 1;
    transform: scale(1);
}

.cta-expander.active .cta-opt-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.cta-expander.active .cta-opt-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.cta-expander.active .cta-opt-btn:nth-child(3) {
    transition-delay: 0.3s;
}

.cta-opt-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Specific Colors for Icons on Hover/Active */
.cta-opt-btn.btn-phone:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(26, 209, 206, 0.1);
}

.cta-opt-btn.btn-wa:hover {
    border-color: #25D366;
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.cta-opt-btn.btn-mail:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.cta-num-text {
    display: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    margin-left: 10px;
    white-space: nowrap;
}

@media (min-width: 1025px) {
    .cta-expander.active .btn-phone {
        width: 200px;
        padding: 0 25px;
        border-radius: 100px;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .cta-expander.active .btn-mail {
        width: 300px;
        padding: 0 25px;
        border-radius: 100px;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .cta-expander.active .btn-phone .cta-num-text,
    .cta-expander.active .btn-mail .cta-num-text {
        display: inline-block;
        animation: fadeIn 0.4s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }

    /* Consistent Hover feel for pill buttons */
    .cta-expander.active .btn-phone:hover,
    .cta-expander.active .btn-mail:hover {
        transform: translateY(-5px) scale(1.05) !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Main Button Hiding Logic */
.cta-expander .btn-primary {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.cta-expander.active .btn-primary {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    pointer-events: none;
}





.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 70px;
    /* Strong anchor at bottom */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 100;
    opacity: 0;
    transition: all 1s ease;
    pointer-events: none;
}

body.header-reached .scroll-indicator {
    opacity: 1;
}

.scroll-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 40px;
}

.scroll-arrow {
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    transform: rotate(45deg);
    animation: arrow-bounce 2s infinite;
    opacity: 0;
    position: absolute;
}

.scroll-arrow:nth-child(1) {
    animation-delay: 0s;
    top: 0;
}

.scroll-arrow:nth-child(2) {
    animation-delay: 0.15s;
    top: 10px;
}

.scroll-arrow:nth-child(3) {
    animation-delay: 0.3s;
    top: 20px;
}

@keyframes arrow-bounce {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-15px, -15px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(15px, 15px);
    }
}



/* --- Intro Animation: Effects Removed --- */

/* --- Branding Lockup (Responsive) --- */

/* --- Branding Lockup (Responsive) --- */

.brand-lockup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    /* This ensures the logo and the text-wrapper are vertically aligned in the center */
    justify-content: center;
    z-index: 50;
    /* Removed transition from here to prevent conflict with initial animations */
    transform-origin: top left;
    pointer-events: none;
    /* Hardware acceleration ONLY during initial transition */
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Standard high-quality text rendering */
    text-rendering: optimizeLegibility;
    z-index: 2000 !important;
    /* Ensure it is above other header elements */
}

/* --- SCROLL/AUTO STATE: Header Mode --- */
.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: inherit;
    pointer-events: auto;
}

body.scrolled .brand-lockup,
body.automatic-header .brand-lockup {
    top: var(--header-top);
    left: var(--header-left);
    transform: translate(0, 0) scale(var(--header-scale));
    /* Transition only applies here for the scroll/auto effect - subtle ease-in-out */
    transition:
        top 1.0s cubic-bezier(0.4, 0, 0.2, 1),
        left 1.0s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1.0s cubic-bezier(0.4, 0, 0.2, 1);

    /* Disable acceleration once in header to force high-quality re-render */
    will-change: auto;
}



.logo-wrapper {
    position: relative;
    width: var(--logo-base-size);
    height: var(--logo-base-size);
    z-index: 10;
    flex-shrink: 0;
}

body.scrolled .logo-wrapper {
    animation-delay: 0s !important;
}

.logo-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Text Styles */
.text-wrapper {
    position: relative;
    margin-left: 0;
    width: max-content;
    max-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 5;
    gap: 8px;
    opacity: 0;
    transform: scale(1);
    transform-origin: left center;
    /* Removed base transitions to let state-specific transitions handle the movement smoothly */

    /* Strong Ease-In, Decisive End - Adjusted duration and curve for snappier finish */
    animation: text-layout-reveal 1.25s cubic-bezier(0.6, 0.05, 0.2, 1) both;
    animation-delay: 1.5s;
}

body.scrolled .text-wrapper,
body.automatic-header .text-wrapper {
    /* Base header appearance: expanded and visible */
    margin-left: var(--text-offset-margin);
    width: fit-content;
    max-width: none;
    opacity: 1;
    gap: var(--header-text-gap);
    animation: none !important;
    /* Stop intro reveal animation to allow full width */

    /* Reset scale - sizing is now handled via font-size for exact match */
    transform: scale(1);
    transform-origin: left center;

    /* Harmonized with .brand-lockup transition (1.0s) for perfect sync */
    /* More gradual transition for the 'lock' to avoid abruptness */
    transition:
        transform 1.0s cubic-bezier(0.4, 0, 0.2, 1),
        gap 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    overflow: visible;
    /* Ensure BOECK text doesn't get clipped while container stays narrow for SYSTEMS */
}

.text-line {
    font-family: 'Rajdhani', sans-serif;
    color: var(--logo-white);
    line-height: 0.7;
    /* Tightly wrap the uppercase 'ink' for perfect visual centering */
    opacity: 0;
}

.text-boeck {
    font-weight: 700;
    font-size: var(--fs-boeck);
    letter-spacing: 0.1em;
    margin-right: -0.1em;
    margin-left: -0.05em;
    margin-bottom: 0;
    white-space: nowrap;
    animation: text-fly-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 1.65s;
    /* Text follows immediately as slide begins */
    /* This line is now the reference for vertical centering */
}

.text-systems {
    font-weight: 500;
    font-size: var(--fs-systems);
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--logo-white);
    animation: text-fly-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 1.75s;
}

/* Override sizing in header states for perfect 1:1 match */
body.scrolled .text-boeck,
body.automatic-header .text-boeck,
body.subpage .text-boeck,
body.skip-intro .text-boeck {
    font-size: var(--header-fs-boeck);
    /* Extended duration and slightly increased delay for a smoother 'ride-along' scaling */
    transition: font-size 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    margin-right: 0 !important;
}

body.scrolled .text-systems,
body.automatic-header .text-systems,
body.subpage .text-systems,
body.skip-intro .text-systems {
    font-size: var(--header-fs-systems);
    /* Extended duration and slightly increased delay for a smoother 'ride-along' scaling */
    transition: font-size 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* --- Animations for Layout Shift --- */

/* Reveals the space for the text, causing the centered logo to naturally slide left */
@keyframes text-layout-reveal {
    0% {
        max-width: 0;
        margin-left: 0;
        opacity: 0;
    }

    100% {
        max-width: var(--text-container-width);
        margin-left: var(--text-offset-margin);
        opacity: 1;
        overflow: visible;
        /* Prevent clipping once reveal is complete */
    }
}

@keyframes text-fly-in {
    0% {
        opacity: 0;
        transform: translateX(30px);
        /* Reduced distance for smoother integration */
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- SVG Elements --- */

.neon-filter {
    filter: drop-shadow(0 0 6px var(--accent-cyan));
}

.frame {
    fill: var(--logo-white);
    stroke: none;
    opacity: 0;
}

.laser-beam {
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 8;
    stroke-linecap: butt;
    opacity: 0;
}

.hex-core {
    fill: var(--logo-white);
    stroke: var(--logo-white);
    stroke-width: 9.5;
    stroke-linejoin: round;
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    transform: scale(0);
}

@keyframes laser-materialize {
    0% {
        opacity: 0;
        stroke-width: 24;
        stroke: #ffffff;
        filter: blur(10px) drop-shadow(0 0 20px white);
    }

    40% {
        opacity: 1;
        stroke: #e0fffe;
        stroke-width: 16;
        filter: blur(5px) drop-shadow(0 0 10px var(--accent-cyan));
    }

    100% {
        opacity: 1;
        stroke-width: 8;
        stroke: var(--accent-cyan);
        filter: blur(0px) drop-shadow(0 0 6px var(--accent-cyan));
    }
}

@keyframes laser-recharge {
    0% {
        filter: blur(0px) drop-shadow(0 0 6px var(--accent-cyan));
        stroke-width: 8;
        stroke: var(--accent-cyan);
    }

    30% {
        filter: blur(4px) drop-shadow(0 0 20px white);
        stroke-width: 14;
        stroke: #ffffff;
    }

    100% {
        filter: blur(0px) drop-shadow(0 0 6px var(--accent-cyan));
        stroke-width: 8;
        stroke: var(--accent-cyan);
    }
}

@keyframes hex-pop-elastic {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }

    40% {
        opacity: 1;
    }

    50% {
        transform: scale(1.3) rotate(5deg);
    }

    70% {
        transform: scale(0.95) rotate(-2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes frame-slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes frame-slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.laser-beam {
    /* Combined animations: materialize at start, reclaim state, then flash on header-reached */
    animation: laser-materialize 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

/* Flash effect when arriving in header - applied as an additional animation override */
body.header-reached .laser-beam {
    animation:
        laser-materialize 0.8s ease-out forwards,
        laser-recharge 0.8s ease-out forwards;
    animation-delay: 0.5s, 2.5s;
    /* Flash triggers even earlier (2.5s) to sync with logo completion */
}

.hex-core {
    animation: hex-pop-elastic 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.7s;
}

.frame-left {
    animation: frame-slide-in-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.9s;
}

.frame-right {
    animation: frame-slide-in-right 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.9s;
}

/* --- Intro Animation Outro (Subpage/Skip Intro Disable) --- */
/* We target .subpage (dedicated pages) OR .skip-intro (internal navigation) */
body.subpage .brand-lockup .text-boeck,
body.subpage .brand-lockup .text-systems,
body.subpage .brand-lockup .laser-beam,
body.subpage .brand-lockup .hex-core,
body.subpage .brand-lockup .frame-left,
body.subpage .brand-lockup .frame-right,
body.skip-intro .brand-lockup .text-boeck,
body.skip-intro .brand-lockup .text-systems,
body.skip-intro .brand-lockup .laser-beam,
body.skip-intro .brand-lockup .hex-core,
body.skip-intro .brand-lockup .frame-left,
body.skip-intro .brand-lockup .frame-right {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    max-width: none !important;
    visibility: visible !important;
}

/* Ensure text-wrapper maintains its header scaling even when static */
body.subpage .brand-lockup .text-wrapper,
body.skip-intro .brand-lockup .text-wrapper {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: fit-content !important;
    max-width: none !important;
    margin-left: var(--text-offset-margin) !important;
    transform: scale(1) !important;
    transform-origin: left center !important;
    overflow: visible !important;
    gap: var(--header-text-gap) !important;
}

/* Ensure individual text lines are visible when static */
body.subpage .brand-lockup .text-line,
body.skip-intro .brand-lockup .text-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Re-apply the specific optical nudge for BOECK to match the animated end-state */
body.subpage .brand-lockup .text-boeck,
body.skip-intro .brand-lockup .text-boeck {
    margin-left: -0.05em !important;
}

body.subpage .brand-lockup,
body.skip-intro .brand-lockup {
    transition: none !important;
    top: var(--header-top) !important;
    left: var(--header-left) !important;
    transform: translate(0, 0) scale(var(--header-scale)) !important;
    z-index: 1001 !important;
    will-change: auto !important;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #0a0a0a;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    padding: 60px 40px 40px;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-container.modal-contact {
    max-width: 600px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.modal-content-item {
    display: none;
}

.modal-content-item.active {
    display: block;
}

.modal-content-item h2 {
    color: var(--accent-cyan);
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.legal-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

.legal-text h3 {
    color: #fff;
    margin: 30px 0 15px;
    font-size: 1.1rem;
}

.legal-text p {
    margin-bottom: 15px;
}

.legal-text a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

/* Custom scrollbar for modal */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}


.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

@media (max-width: 600px) {
    .modal-container {
        padding: 30px 15px 20px;
        max-height: 98vh;
    }

    .modal-content-item h2 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .contact-subtitle {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .contact-header {
        margin-bottom: 15px;
    }

    .contact-body {
        padding-top: 0;
    }

    .stylish-form {
        gap: 15px;
    }

    .input-field input,
    .input-field textarea {
        padding: 8px 0;
        font-size: 0.95rem;
    }

    .contact-alternatives {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* --- Stylish Contact Form --- */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}

.stylish-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.input-field {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease;
}

.input-field.textarea-field {
    margin-top: 10px;
}

.input-field input,
.input-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #fff;
    font-size: 1.05rem;
    font-family: inherit;
}

.input-field label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating Label Logic */
.input-field input:focus~label,
.input-field input:not(:placeholder-shown)~label,
.input-field textarea:focus~label,
.input-field textarea:not(:placeholder-shown)~label {
    top: -15px;
    font-size: 0.7rem;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
}

.focus-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-field input:focus~.focus-line,
.input-field textarea:focus~.focus-line {
    width: 100%;
}

.input-field textarea {
    min-height: 80px;
    resize: none;
}

/* Toggle Switch Styling */
.callback-selection {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

.toggle-control input {
    display: none;
}

.toggle-switch {
    width: 44px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-control input:checked+.toggle-switch {
    background: var(--accent-cyan);
}

.toggle-control input:checked+.toggle-switch::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Form Footer & Button */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    margin-top: 10px;
}

.consent-notice {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.minimal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.minimal-checkbox input {
    display: none;
}

.custom-check {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

.minimal-checkbox input:checked+.custom-check {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.custom-check::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.minimal-checkbox input:checked+.custom-check::after {
    display: block;
}

.btn-stylish {
    position: relative;
    width: 100%;
    max-width: 300px;
    padding: 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.4s ease;
    border-radius: 4px;
}

.btn-label {
    position: relative;
    z-index: 2;
}

.btn-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.btn-stylish:hover .btn-fill {
    width: 110%;
    height: 300%;
}

.btn-stylish:hover {
    color: #000;
    border-color: #fff;
}

/* Conditional Fields */
.conditional-field {
    animation: field-fade-in 0.5s ease forwards;
}

@keyframes field-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-alternatives {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.alt-title {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.contact-body {
    padding-top: 10px;
}


.alt-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.alt-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.alt-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.alt-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.alt-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
}

@media (max-width: 600px) {

    .input-row,
    .alt-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .alt-item {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }

    .alt-value {
        font-size: 0.85rem;
    }

    .alt-title {
        margin-bottom: 10px;
    }

    .callback-selection {
        padding: 10px 15px;
    }

    .form-footer {
        gap: 15px;
        margin-top: 5px;
    }

    .btn-stylish {
        padding: 12px;
        font-size: 0.85rem;
    }
}


/* --- Neural Interface Mobile Navigation --- */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    /* Above header */
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle .burger-line {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-toggle .burger-line:nth-child(1) {
    transform: translateY(-6px);
}

.mobile-menu-toggle .burger-line:nth-child(2) {
    width: 16px;
    transform: translateX(4px);
}

.mobile-menu-toggle .burger-line:nth-child(3) {
    transform: translateY(6px);
}

/* Toggle Active State */
.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    transform: translateX(20px);
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* Neural Navigation Overlay */
.neural-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 40px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.neural-nav-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

.neural-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 209, 206, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 209, 206, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.neural-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.neural-link-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.neural-nav-overlay.active .neural-link-item {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delays */
.neural-nav-overlay.active .neural-link-item:nth-child(1) {
    transition-delay: 0.1s;
}

.neural-nav-overlay.active .neural-link-item:nth-child(2) {
    transition-delay: 0.2s;
}

.neural-nav-overlay.active .neural-link-item:nth-child(3) {
    transition-delay: 0.3s;
}

.neural-nav-overlay.active .neural-link-item:nth-child(4) {
    transition-delay: 0.4s;
}

.neural-link {
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.neural-link:hover {
    color: var(--accent-cyan);
}

.neural-index {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--accent-cyan);
    opacity: 0.7;
    margin-top: 5px;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

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

/* --- Cost Teaser Section --- */
.cost-teaser-section {
    padding: 100px 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* --- Header Layout Rules --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
    /* Allow clicks to pass through empty areas */
}

.header-inner-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--header-height);
    padding: 0 45px;
    pointer-events: auto;
    /* Enable clicks on header content */
    box-sizing: border-box;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    /* Pushes to the right end of the flex container */
    position: relative;
    z-index: 200;
}

@media (max-width: 768px) {
    .header-inner-container {
        padding: 0 20px;
    }
}

.cost-teaser-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 45px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.cost-teaser-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.teaser-mockup-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(26, 209, 206, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 320px;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    box-shadow: -30px 30px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.mockup-header {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 25px;
    width: 40%;
}

.mockup-row {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 12px;
    width: 100%;
}

.mockup-price {
    margin-top: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 20px var(--accent-cyan-glow);
}

.cost-teaser-content {
    flex: 1;
}

.cost-teaser-label {
    color: var(--accent-cyan);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}

.cost-teaser-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.cost-teaser-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.cost-teaser-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 209, 206, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .cost-teaser-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .teaser-mockup-card {
        transform: scale(0.9);
        width: 280px;
    }

    .cost-teaser-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .cost-teaser-container {
        padding: 0 20px;
    }
}