@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../font/Poppins-Light.woff2') format('woff2'),
         url('../font/Poppins-Light.woff') format('woff');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../font/Poppins-Regular.woff2') format('woff2'),
         url('../font/Poppins-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../font/Poppins-Medium.woff2') format('woff2'),
         url('../font/Poppins-Medium.woff') format('woff');
}

:root {
    --primary: #533AFD;
    --secondary: #B9B9F9;
    --neutral: #FFFFFF;
    --surface: #FFFFFF;
    --surface-alt: #F8FAFC;
    --on-surface: #000000;
    --accent: #81B81A;
    --muted: #667A99;
    --border: #DDE6F2;
    --error: #D92D20;
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --space-xs: 6px;
    --space-sm: 14px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 80px;
    --space-2xl: 120px;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background-color: var(--neutral);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(83, 58, 253, 0.03), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(185, 185, 249, 0.04), transparent 25%);
    color: var(--on-surface);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== Canvas Background (subtle for light theme) ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--on-surface);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

p {
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    position: relative;
    z-index: 10;
}

section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.integration-wrapper {
    background: linear-gradient(135deg, 
        rgba(83, 58, 253, 0.10) 0%, 
        rgba(41, 99, 173, 0.08) 25%, 
        rgba(242, 201, 76, 0.09) 50%, 
        rgba(242, 153, 74, 0.08) 75%, 
        rgba(185, 185, 249, 0.10) 100%
    );
    border-top: 1px solid var(--border);
    width: 100%;
}

section:last-of-type {
    border-bottom: none;
}

.section-header {
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    background: linear-gradient(135deg, var(--on-surface) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header & Nav */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-md) 0;
    border-bottom: 1px solid transparent;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-button {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--on-surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.header-button:hover {
    color: var(--primary);
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(83, 58, 253, 0.12);
    background: rgba(255,255,255,0.9);
    opacity: 1;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

/* Hero */
.hero-wrapper {
    position: relative;
    background-color: transparent;
    overflow: hidden;
}

.hero-wrapper h1 {
    color: var(--on-surface);
}

.fachwerk-gradient-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.85;
    transform: skewY(-10deg) scale(1.2);
    transform-origin: top right;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: blob-float 30s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: 10%;
    width: 80vw;
    height: 80vw;
    max-width: 1100px;
    max-height: 1100px;
    background: #533AFD;
    animation-delay: 0s;
}

.blob-2 {
    top: 10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    background: #2D9CDB;
    animation-delay: -5s;
}

.blob-3 {
    top: -20%;
    right: 20%;
    width: 30vw;
    height: 30vw;
    max-width: 400px;
    max-height: 400px;
    background: #EB5757;
    animation-delay: -10s;
}

.blob-4 {
    top: 30%;
    right: 0%;
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    background: #f2994a;
    animation-delay: -15s;
}

.blob-5 {
    top: 50%;
    right: 20%;
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    background: #f2c94c;
    animation-delay: -20s;
}

/* Server Animation */
@keyframes spin-gear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-light {
    0% { opacity: 0.3; }
    50% { opacity: 1; box-shadow: 0 0 8px currentColor; }
    100% { opacity: 0.3; }
}

.server-svg-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-gear {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin-gear 8s linear infinite;
}

.server-light {
    animation: pulse-light 2s infinite ease-in-out;
}

.server-light-2 {
    animation: pulse-light 2.5s infinite ease-in-out;
    animation-delay: 0.5s;
}

.server-light-3 {
    animation: pulse-light 1.8s infinite ease-in-out;
    animation-delay: 1s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-5vw, 5vw) scale(1.1) rotate(45deg); }
    66% { transform: translate(5vw, -5vw) scale(0.9) rotate(-45deg); }
    100% { transform: translate(-2vw, -8vw) scale(1.05) rotate(90deg); }
}

.hero {
    position: relative;
    z-index: 10;
    padding: calc(var(--space-2xl) + 100px) var(--space-md) var(--space-2xl);
    text-align: left;
    max-width: 900px;
    border-bottom: none;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero p.lead {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: #111111;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
    display: flex;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

/* Fade edges on marquee */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--surface-alt), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--surface-alt), transparent);
}

.marquee-content {
    display: flex;
    animation: marquee 60s linear infinite;
    gap: var(--space-xl);
}

.marquee-item {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.marquee-item::after {
    content: "";
    width: 5px;
    height: 5px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--primary), 0 0 12px rgba(83, 58, 253, 0.3);
    flex-shrink: 0;
}

.marquee-item:last-child::after {
    content: "";
}

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

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== Cards with icon and mouse-follow glow ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

/* Subtle mouse-follow glow on cards */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(83, 58, 253, 0.06) 0%, 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

/* Subtle top gradient line on hover */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(83, 58, 253, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    border-color: var(--secondary);
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(83, 58, 253, 0.08);
}

/* Card icon (from alt version) */
.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(83, 58, 253, 0.06);
    border: 1px solid rgba(83, 58, 253, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.card:hover .card-icon {
    background: rgba(83, 58, 253, 0.1);
    border-color: rgba(83, 58, 253, 0.2);
}

.card h3 {
    color: var(--on-surface);
    font-weight: 400;
    margin-bottom: var(--space-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
    z-index: 1;
}

.card p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* ===== Usecase Cards (compact icon-list style from alt version) ===== */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.usecase-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: default;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.usecase-card:hover {
    border-color: var(--secondary);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(83, 58, 253, 0.06);
}

.usecase-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(83, 58, 253, 0.05);
    border: 1px solid rgba(83, 58, 253, 0.1);
    border-radius: 8px;
    color: var(--primary);
}

.usecase-card strong {
    display: block;
    color: var(--on-surface);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.usecase-card > div > span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== Network / Integration Section (split layout from alt) ===== */
.network-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.network-split.lab-split {
    grid-template-columns: 2fr 1fr;
}

.network-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--on-surface) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.network-text .section-lead {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(83, 58, 253, 0.06);
    border: 1px solid rgba(83, 58, 253, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list strong {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--on-surface);
}

.feature-list li > div:last-child > span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Network SVG Graphic */
.network-graphic {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.tech-network {
    width: 100%;
    height: 100%;
    overflow: visible;
    font-family: 'Poppins', sans-serif;
}

.tech-network .edges line {
    stroke-linecap: round;
}

.tech-network .node circle {
    transition: all 0.3s ease;
}

.tech-network .node:hover circle {
    filter: url(#glow);
    stroke-width: 2.5;
}

/* Animated data dots on network edges */
.data-dot {
    filter: url(#glow);
}

/* About Section */
.about-content {
    max-width: 800px;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 1.8;
}

.about-highlight {
    color: var(--on-surface) !important;
    font-weight: 400 !important;
    font-style: italic;
    opacity: 0.85;
}

/* Footer */
.site-footer {
    padding: var(--space-2xl) 0 var(--space-xl);
    background-color: var(--surface-alt);
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Subtle purple radial glow in footer */
.site-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(83, 58, 253, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--neutral);
    font-weight: 400;
    font-size: 1rem;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(83, 58, 253, 0.2);
}

.contact-link:hover {
    background-color: #4229d3;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(83, 58, 253, 0.3);
}

.contact-link:active {
    transform: translateY(0);
}

/* ===== GSAP reveal utility ===== */
.reveal-text {
    opacity: 0;
    transform: translateY(25px);
    -webkit-transform: translateY(25px) translateZ(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .network-split, .network-split.lab-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .footer-legal {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 56px;
        --space-2xl: 80px;
    }
    
    .hero {
        padding-top: var(--space-xl);
        min-height: 70vh;
    }
    
    section {
        padding: var(--space-xl) 0;
    }
    
    .usecases-grid {
        grid-template-columns: 1fr;
    }
    
    .network-graphic, .lab-split .network-graphic {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-text {
        opacity: 1;
        transform: none;
    }
    
    #bg-canvas {
        display: none;
    }
}
