/*
Theme Name: Kalkulo
Theme URI: https://kalkulo.dadarevenge.xyz
Author: Kalkulo Team
Description: 3D Handwerks-Design — Bodenverlegung, Maler, Baustellen
Version: 4.0.0
License: GPL v2 or later
Text Domain: kalkulo
*/

:root {
    --primary:       #0F172A;
    --on-primary:    #FFFFFF;
    --accent:        #0369A1;
    --accent-hover:  #0284C7;
    --bg:            #F8FAFC;
    --bg-alt:        #F1F5F9;
    --fg:            #0F172A;
    --card:          #FFFFFF;
    --muted-fg:      #64748B;
    --border:        #E2E8F0;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 0.75rem;
    --radius-full: 9999px;
    --max-w: 1200px;
    --gutter: 1.5rem;

    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.06);
    --shadow-lg: 0 10px 30px -5px rgba(15,23,42,0.12);
    --shadow-xl: 0 20px 60px -10px rgba(15,23,42,0.2);

    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: white; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.12;
    color: var(--primary);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
section { padding: 6rem 0; }
.section-center { text-align: center; }

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-fg);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 3rem;
}
.section-center .section-title,
.section-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(3,105,161,0.3);
}
.btn-outline-light {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
    color: white;
    border-color: white;
    transform: translateY(-3px);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.site-header.scrolled {
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(16px);
    padding: 0.625rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}
.logo:hover { color: white; }

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    transition: transform 0.4s var(--ease-bounce);
}
.site-header.scrolled .logo-mark {
    transform: scale(0.85);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover,
.nav a.active { color: white; }

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO — 3D Parallax mit Baustellen-Bild
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 50%, rgba(15,23,42,0.85) 100%),
        url('https://images.unsplash.com/photo-1504307651254-5746805b18a9?w=1600&q=80') center/cover no-repeat;
    transform: scale(1.1);
    transition: transform 0.1s var(--ease-out);
    will-change: transform;
}

/* Hero Background - Video Mode */
.hero-video-mode {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15,23,42,0.3) 0%,
        rgba(15,23,42,0.1) 40%,
        rgba(15,23,42,0.4) 70%,
        rgba(15,23,42,0.85) 100%
    );
    pointer-events: none;
}

.hero-video-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 2rem var(--gutter) 3rem;
    background: linear-gradient(0deg, rgba(15,23,42,0.7) 0%, transparent 100%);
}

.hero-video-footer .hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: heroVideoFadeIn 0.8s var(--ease-out) 0.3s both;
}

.hero-video-footer .btn {
    animation: heroVideoFadeIn 0.8s var(--ease-out) 0.6s both;
}

@keyframes heroVideoFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-video-mode {
        background:
            linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.3) 50%, rgba(15,23,42,0.9) 100%),
            url('https://images.unsplash.com/photo-1504307651254-5746805b18a9?w=800&q=80') center/cover no-repeat;
    }
    .hero-video-mode .hero-content { padding: 5rem var(--gutter) 2rem; }
    .hero-video-mode .hero-stats { margin-top: 2rem; padding-top: 1.5rem; }
}

/* 3D Depth Layers */
.hero-depth {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-depth-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}
.hero-depth-layer:nth-child(1) {
    width: 600px; height: 600px;
    background: #0369A1;
    top: -20%; left: -10%;
    animation: depth-drift-1 25s ease-in-out infinite;
}
.hero-depth-layer:nth-child(2) {
    width: 400px; height: 400px;
    background: #0284C7;
    bottom: -15%; right: -5%;
    animation: depth-drift-2 20s ease-in-out infinite;
}
.hero-depth-layer:nth-child(3) {
    width: 300px; height: 300px;
    background: #0EA5E9;
    top: 50%; left: 60%;
    animation: depth-drift-3 18s ease-in-out infinite;
}

@keyframes depth-drift-1 {
    0%, 100% { transform: translate(0,0); }
    33% { transform: translate(40px,-30px); }
    66% { transform: translate(-20px,20px); }
}
@keyframes depth-drift-2 {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(-30px,40px); }
}
@keyframes depth-drift-3 {
    0%, 100% { transform: translate(0,0); }
    33% { transform: translate(20px,30px); }
    66% { transform: translate(-40px,-10px); }
}

/* Floating particles (dust/light) */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    perspective: 800px;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 8s ease-in-out infinite;
}
.particle:nth-child(1) { left: 20%; top: 30%; animation-delay: 0s; }
.particle:nth-child(2) { left: 45%; top: 60%; animation-delay: 2s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 70%; top: 20%; animation-delay: 4s; width: 5px; height: 5px; }
.particle:nth-child(4) { left: 80%; top: 70%; animation-delay: 1s; }
.particle:nth-child(5) { left: 30%; top: 80%; animation-delay: 3s; width: 3px; height: 3px; }
.particle:nth-child(6) { left: 55%; top: 40%; animation-delay: 5s; width: 6px; height: 6px; }
.particle:nth-child(7) { left: 10%; top: 50%; animation-delay: 1.5s; }
.particle:nth-child(8) { left: 90%; top: 45%; animation-delay: 3.5s; width: 3px; height: 3px; }

@keyframes particle-float {
    0% { opacity: 0; transform: translateZ(-200px) translateY(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateZ(200px) translateY(-120px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem var(--gutter);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(3,105,161,0.15);
    border: 1px solid rgba(3,105,161,0.3);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    color: #BAE6FD;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #BAE6FD, #0EA5E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.stat { text-align: center; }
.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
}

/* ============================================================
   3D PERSPECTIVE CARDS
   ============================================================ */
.perspective-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    perspective: 1200px;
}

.perspective-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    cursor: default;
    transform-style: preserve-3d;
    position: relative;
}

.perspective-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, transparent 60%, rgba(3,105,161,0.04));
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
}
.perspective-card:hover::before { opacity: 1; }

.perspective-card:hover {
    box-shadow: var(--shadow-xl);
}

.card-icon-3d {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: #EFF6FF;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--ease-bounce);
    transform-style: preserve-3d;
}
.perspective-card:hover .card-icon-3d {
    transform: translateZ(20px) rotateY(-10deg);
}
.card-icon-3d svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
}

.perspective-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: transform 0.4s var(--ease-out);
}
.perspective-card:hover h3 {
    transform: translateZ(10px);
}

.perspective-card p {
    font-size: 0.9375rem;
    color: var(--muted-fg);
    line-height: 1.6;
    transition: transform 0.4s var(--ease-out);
}
.perspective-card:hover p {
    transform: translateZ(5px);
}

/* ============================================================
   IMAGE REVEAL SECTION — Baustelle/Maler
   ============================================================ */
.image-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.image-showcase-content {
    padding-right: 2rem;
}
.image-showcase-content .section-title {
    margin-bottom: 1.25rem;
}
.image-showcase-content p {
    color: var(--muted-fg);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.image-showcase-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-3deg);
    transition: transform 0.6s var(--ease-out);
}
.image-showcase-media:hover {
    transform: perspective(1000px) rotateY(0deg) translateZ(10px);
}
.image-showcase-media img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
}
.image-showcase-media:hover img {
    transform: scale(1.05);
}

.image-showcase-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3,105,161,0.1), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Image Badge */
.image-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    z-index: 4;
}

/* ============================================================
   FEATURES — mit Image-Overlay
   ============================================================ */
.features-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-3d {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.feature-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(3,105,161,0.03));
    opacity: 0;
    transition: opacity 0.5s;
}
.feature-3d:hover::before { opacity: 1; }

.feature-3d:hover {
    border-color: rgba(3,105,161,0.25);
    transform: translateY(-4px) translateZ(5px);
}

.feature-3d-icon {
    width: 40px;
    height: 40px;
    background: rgba(3,105,161,0.1);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.4s var(--ease-bounce);
}
.feature-3d:hover .feature-3d-icon {
    transform: translateZ(15px);
}
.feature-3d-icon svg {
    width: 20px;
    height: 20px;
    stroke: #BAE6FD;
    stroke-width: 1.5;
    fill: none;
}

.feature-3d h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
.feature-3d p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================================
   INTEGRATIONEN
   ============================================================ */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.integration {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    transform-style: preserve-3d;
}
.integration:hover {
    transform: translateY(-4px) rotateX(2deg);
    box-shadow: var(--shadow-lg);
}

.integration-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}
.integration h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.integration p { font-size: 0.8125rem; color: var(--muted-fg); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-3d {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    perspective: 1000px;
}

.step-3d {
    text-align: center;
    transition: transform 0.5s var(--ease-out);
    transform-style: preserve-3d;
}
.step-3d:hover {
    transform: translateZ(10px);
}

.step-3d-num {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.4s var(--ease-bounce);
    position: relative;
}
.step-3d:hover .step-3d-num {
    transform: translateZ(15px) scale(1.1);
}

.step-3d h4 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.step-3d p { font-size: 0.9375rem; color: var(--muted-fg); }

/* ============================================================
   CTA SECTION — mit Beratungs-Bild
   ============================================================ */
.cta-section {
    position: relative;
    background: var(--primary);
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.92), rgba(15,23,42,0.7)),
        url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1600&q=80') center/cover no-repeat fixed;
}
.cta-section .section-title { color: white; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0A0F1A;
    color: rgba(255,255,255,0.5);
    padding: 4rem 0 2rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    margin-top: 1rem;
    font-size: 0.875rem;
    max-width: 320px;
}
.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-bounce);
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hero entrance stagger */
.hero-reveal {
    opacity: 0;
    transform: translateY(40px);
}
.hero-reveal.visible {
    animation: heroUp 0.8s var(--ease-out) forwards;
}
@keyframes heroUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .process-3d { grid-template-columns: repeat(2, 1fr); }
    .image-showcase { grid-template-columns: 1fr; gap: 2rem; }
    .image-showcase-content { padding-right: 0; }
    .image-showcase-media { transform: none; }
    .image-showcase-media:hover { transform: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Mobile 768px
   ============================================================ */
@media (max-width: 768px) {
    /* Header — kompakt */
    .site-header { padding: 0.5rem 0; }
    .site-header.scrolled { padding: 0.375rem 0; }
    .logo { gap: 0.5rem; font-size: 0.9375rem; }
    .logo-mark { width: 28px; height: 28px; font-size: 0.6875rem; }
    .site-header.scrolled .logo-mark { transform: scale(0.85); }
    .header-inner { padding: 0 1rem; }

    .nav {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(15,23,42,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 99;
        backdrop-filter: blur(20px);
    }
    .nav a {
        font-size: 1.25rem;
        color: rgba(255,255,255,0.8);
    }
    .nav a:hover,
    .nav a.active { color: white; }
    .nav.open { display: flex; }
    .mobile-toggle { display: block; z-index: 101; position: relative; }

    /* Hero */
    .hero, .hero-video-mode { min-height: 85vh; }
    .hero-content { padding: 4.5rem var(--gutter) 1.5rem; }
    .hero h1 { font-size: clamp(1.6rem, 6vw, 2.25rem); margin-bottom: 0.75rem; }
    .hero p { font-size: 0.875rem; margin-bottom: 1.25rem; max-width: 100%; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 0.5rem; margin-bottom: 1.5rem; }
    .hero-actions .btn { width: 100%; justify-content: center; padding: 0.75rem 1.5rem; font-size: 0.875rem; }
    .hero-stats { flex-direction: column; gap: 0.75rem; padding-top: 1rem; margin-top: 1.5rem; }
    .stat-num { font-size: 1.25rem; }
    .stat-label { font-size: 0.8125rem; }
    .stat { display: flex; align-items: center; gap: 0.75rem; justify-content: space-between; }
    .hero-badge { font-size: 0.6875rem; padding: 0.25rem 0.75rem; margin-bottom: 1rem; }

    /* Particles - smaller on mobile */
    .particle { display: none; }
    .hero-depth-layer { filter: blur(40px); opacity: 0.1; }
    .hero-depth-layer:nth-child(1) { width: 300px; height: 300px; }
    .hero-depth-layer:nth-child(2) { width: 200px; height: 200px; }
    .hero-depth-layer:nth-child(3) { width: 150px; height: 150px; }

    /* General */
    section { padding: 4rem 0; }
    .section-subtitle { margin-bottom: 2rem; font-size: 1rem; }

    /* Grids */
    .perspective-grid { grid-template-columns: 1fr; gap: 1rem; }
    .features-wrap { grid-template-columns: 1fr; }
    .perspective-card { padding: 2rem 1.5rem; }
    .perspective-card .card-icon-3d { width: 52px; height: 52px; }
    .perspective-card .card-icon-3d svg { width: 24px; height: 24px; }

    /* Image Showcase */
    .image-showcase { gap: 1.5rem; }
    .image-showcase-media img { height: 260px; }
    .image-showcase[style*="direction:rtl"] { direction: ltr !important; }

    /* Features dark */
    .feature-3d { padding: 1.5rem; }

    /* Process */
    .process-3d { gap: 1.5rem; }
    .step-3d-num { width: 44px; height: 44px; font-size: 1rem; }

    /* Footer */
    .footer-inner { gap: 2rem; }
}

/* ============================================================
   Mobile 480px
   ============================================================ */
@media (max-width: 480px) {
    .hero-content { padding: 4rem var(--gutter) 1rem; }
    .hero h1 { font-size: clamp(1.35rem, 5vw, 1.6rem); margin-bottom: 0.5rem; }
    .hero-badge { font-size: 0.625rem; padding: 0.2rem 0.625rem; margin-bottom: 0.75rem; }
    .hero p { font-size: 0.8125rem; margin-bottom: 1rem; }
    .hero-actions { margin-bottom: 1rem; }
    .hero-stats { gap: 0.5rem; padding-top: 0.75rem; margin-top: 1rem; }
    .stat-num { font-size: 1.125rem; }

    .grid-4 { grid-template-columns: 1fr; }
    .process-3d { grid-template-columns: 1fr; }
    section { padding: 3rem 0; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.9375rem; margin-bottom: 1.5rem; }
    .integration { padding: 1.25rem 1rem; }
    .step-3d { display: flex; align-items: center; gap: 1rem; text-align: left; }
    .step-3d-num { margin: 0; flex-shrink: 0; }
    .step-3d h4 { margin-bottom: 0.125rem; }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

/* ============================
   Animated Floor Planks
   ============================ */
.floor-animation {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-showcase-media.visible .floor-animation {
    opacity: 1;
}

.floor-plank {
    position: absolute;
    bottom: calc(10% + var(--i, 0) * 14%);
    left: -120px;
    width: 60%;
    height: 10%;
    background: linear-gradient(
        90deg,
        rgba(139, 90, 43, 0.35),
        rgba(139, 90, 43, 0.2) 40%,
        rgba(139, 90, 43, 0.25) 60%,
        rgba(139, 90, 43, 0.15)
    );
    border-radius: 2px;
    transform: rotate(var(--rotate, 0deg));
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: plank-slide-in 0.8s var(--ease-out) var(--delay, 0s) forwards;
}

.floor-plank::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20%,
        rgba(255,255,255,0.04) 20%,
        rgba(255,255,255,0.04) 20.5%
    );
    border-radius: 2px;
}

@keyframes plank-slide-in {
    from {
        left: -120px;
        opacity: 0;
    }
    to {
        left: calc(5% + var(--x, 60px));
        opacity: 1;
    }
}

/* ============================
   Animated Process Flow
   ============================ */
.process-flow-line {
    position: relative;
    margin: 3rem auto;
    max-width: 900px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2), transparent);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.process-flow-line.visible {
    opacity: 1;
}

.process-flow-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    top: 50%;
    left: 12.5%;
    transform: translate(-50%, -50%);
    animation: flow-dot-travel 4s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(59,130,246,0.4);
}

@keyframes flow-dot-travel {
    0%, 100% { left: 12.5%; opacity: 0.3; }
    25% { left: 37.5%; opacity: 1; }
    50% { left: 62.5%; opacity: 1; }
    75% { left: 87.5%; opacity: 0.3; }
}

/* ============================
   AI Search / Scan Animation
   ============================ */
.ai-scan-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ai-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
    animation: scan-move 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes scan-move {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    50% { top: 100%; opacity: 0.3; }
    60% { opacity: 0; }
    100% { top: 0; opacity: 0; }
}

/* AI pulse dots for feature cards */
.feature-3d {
    position: relative;
    overflow: hidden;
}

.feature-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(59,130,246,0.06), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-3d:hover::before {
    opacity: 1;
}

/* Data pulse on icons */
.feature-3d-icon {
    position: relative;
}

.feature-3d-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: rgba(59,130,246,0.1);
    animation: icon-pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
}

/* ============================
   Integration Data Flow
   ============================ */
.grid-4 {
    position: relative;
}

.grid-4::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.08), transparent);
    pointer-events: none;
}

.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    opacity: 0;
    animation: data-float 6s ease-in-out infinite;
}

@keyframes data-float {
    0% { opacity: 0; transform: translate(0, 0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translate(var(--dx, 100px), var(--dy, -30px)); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .floor-animation { display: none; }
    .process-flow-line { display: none; }
}


