/* ========================================
   HELLO WORKFLOW - Stylesheet
   Modern, Clean, Professional
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------- */
:root {
    /* Color Palette - Sophisticated Dark Theme (Default) */
    --color-bg-primary: #0a0a0b;
    --color-bg-secondary: #111113;
    --color-bg-tertiary: #18181b;
    --color-bg-card: #1c1c1f;
    --color-bg-card-hover: #232326;
    
    /* Text Colors - Improved for better readability */
    --color-text-primary: #fafafa;
    --color-text-secondary: #d4d4d8;
    --color-text-tertiary: #a1a1aa;
    --color-text-muted: #71717a;
    
    /* Accent Colors */
    --color-accent-primary: #60a5fa;
    --color-accent-secondary: #818cf8;
    --color-accent-gradient-start: #3b82f6;
    --color-accent-gradient-end: #8b5cf6;
    
    /* Functional Colors */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-success: #34d399;
    
    /* Header Background */
    --header-bg: rgba(10, 10, 11, 0.8);
    --header-blur: blur(20px);
    
    /* Typography - Single font family for consistency */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-36: 9rem;
    --space-40: 10rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(96, 165, 250, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-smooth: 600ms cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Z-Index Scale */
    --z-base: 0;
    --z-elevated: 10;
    --z-sticky: 100;
    --z-overlay: 200;
    --z-modal: 300;
    --z-max: 1000;
}

/* ----------------------------------------
   Light Mode Theme
   ---------------------------------------- */
[data-theme="light"] {
    /* Light Mode Color Palette */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f8fafc;
    
    /* Text Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;
    --color-text-muted: #94a3b8;
    
    /* Accent Colors - Slightly deeper for better contrast on light */
    --color-accent-primary: #2563eb;
    --color-accent-secondary: #7c3aed;
    --color-accent-gradient-start: #2563eb;
    --color-accent-gradient-end: #7c3aed;
    
    /* Functional Colors */
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-hover: rgba(15, 23, 42, 0.15);
    --color-success: #059669;
    
    /* Header Background */
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-blur: blur(20px);
}

/* Light Mode specific overrides */
[data-theme="light"] .hero-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(124, 58, 237, 0.06), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(37, 99, 235, 0.04), transparent);
}

[data-theme="light"] .hero-grid {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .cube-face {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .cursor-follower {
    border-color: var(--color-accent-primary);
}

[data-theme="light"] .what-card-icon,
[data-theme="light"] .news-icon,
[data-theme="light"] .founder-placeholder {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
}

[data-theme="light"] .timeline-marker {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .principle-number {
    color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .usecase-card,
[data-theme="light"] .news-card--featured,
[data-theme="light"] .contact-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
}

[data-theme="light"] .what-card,
[data-theme="light"] .principle-card,
[data-theme="light"] .news-card,
[data-theme="light"] .founder-card {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .what-card:hover,
[data-theme="light"] .principle-card:hover,
[data-theme="light"] .news-card:hover,
[data-theme="light"] .founder-card:hover {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .scroll-line {
    background: linear-gradient(to bottom, var(--color-accent-primary), transparent);
}

[data-theme="light"] .fidget-dot {
    background: var(--color-accent-primary);
}

[data-theme="light"] .quote {
    color: var(--color-text-primary);
    opacity: 0.8;
}

[data-theme="light"] .quote-divider {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .section-approach {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .section-usecase {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .section-about {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .footer {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .nav-toggle span {
    background: var(--color-text-primary);
}

/* Light mode - improved text contrast on colored backgrounds */
[data-theme="light"] .usecase-card,
[data-theme="light"] .contact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

[data-theme="light"] .news-card--featured {
    background: var(--color-bg-card);
}

[data-theme="light"] .hero-badge {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

[data-theme="light"] .what-summary {
    background: var(--color-bg-card);
}

[data-theme="light"] .principle-number {
    color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .timeline-marker {
    color: #ffffff;
}


[data-theme="light"] .founder-quote {
    color: var(--color-text-secondary);
}

[data-theme="light"] .contact-text {
    color: var(--color-text-secondary);
}

[data-theme="light"] .news-card p,
[data-theme="light"] .what-card p,
[data-theme="light"] .principle-card p {
    color: var(--color-text-secondary);
}

[data-theme="light"] .about-content p {
    color: var(--color-text-secondary);
}

[data-theme="light"] .usecase-context p,
[data-theme="light"] .usecase-results li {
    color: var(--color-text-secondary);
}

[data-theme="light"] .timeline-content p {
    color: var(--color-text-secondary);
}

/* ----------------------------------------
   Reset & Base Styles
   ---------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Smooth theme transition for all elements */
*, *::before, *::after {
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

::selection {
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ----------------------------------------
   Cursor Follower
   ---------------------------------------- */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-max);
    opacity: 0;
    transition: transform 0.15s ease-out, opacity 0.3s ease, width 0.2s ease, height 0.2s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower.visible {
    opacity: 0.6;
}

.cursor-follower.hovering {
    width: 50px;
    height: 50px;
    border-color: var(--color-accent-secondary);
}

@media (hover: none) {
    .cursor-follower {
        display: none;
    }
}

/* ----------------------------------------
   Container & Layout
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-8);
    }
}

.section {
    padding: var(--space-24) 0;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-32) 0;
    }
}

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: var(--header-bg);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    border-bottom: 1px solid var(--color-border);
    transition: transform var(--transition-base), background var(--transition-base);
}

.header.hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-size: var(--text-xl);
    font-weight: 600;
    display: flex;
    gap: 2px;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-hello {
    color: var(--color-text-primary);
}

.logo-workflow {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo with minimalist workflow dots - Triangle Pattern */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-icon {
    position: relative;
    width: 20px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Three dots in triangle formation */
.logo-icon::before,
.logo-icon::after,
.logo-dot {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    transition: all var(--transition-base);
}

/* Top dot */
.logo-icon::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Bottom left dot */
.logo-icon::after {
    bottom: 0;
    left: 2px;
}

/* Bottom right dot */
.logo-dot {
    bottom: 0;
    right: 2px;
    width: 5px;
    height: 5px;
}

/* Connection lines via SVG background */
.logo-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 3 L4 15 M10 3 L16 15 M4 15 L16 15' stroke='url(%23grad)' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%233b82f6'/%3E%3Cstop offset='100%25' stop-color='%238b5cf6'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.nav-logo:hover .logo-icon::before,
.nav-logo:hover .logo-icon::after,
.nav-logo:hover .logo-dot {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.nav-logo:hover .logo-icon::before {
    transform: translateX(-50%) scale(1.3);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: var(--space-8);
}

@media (min-width: 900px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    color: #ffffff !important;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
    transform: rotate(15deg);
}

.theme-icon {
    position: absolute;
    transition: all var(--transition-base);
}

.theme-icon--sun {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

.theme-icon--moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="light"] .theme-icon--sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="light"] .theme-icon--moon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.theme-toggle--mobile {
    display: flex;
    margin-right: var(--space-2);
}

@media (min-width: 900px) {
    .theme-toggle--mobile {
        display: none;
    }
}

/* Header Controls Container */
.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

@media (min-width: 900px) {
    .header-controls {
        display: none;
    }
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    z-index: var(--z-overlay);
}

@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Mobile Menu */
@media (max-width: 899px) {
    .header.menu-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-base), visibility var(--transition-base);
        padding: var(--space-16) var(--space-8);
        z-index: var(--z-overlay);
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.3s; }

    .nav-link {
        font-size: var(--text-2xl);
        font-weight: 500;
        text-align: center;
        width: 100%;
        max-width: 300px;
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-link--cta {
        margin-top: var(--space-4);
        display: inline-flex;
        justify-content: center;
        text-align: center;
    }
    
    /* Hide theme toggle inside menu on mobile - it's already in header */
    .nav-menu .nav-item:last-child {
        display: none;
    }
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    color: var(--color-text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(96, 165, 250, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-text-tertiary);
}

.btn-large {
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-8);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(59, 130, 246, 0.08), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-16) 0 9rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: var(--space-20) 0 10rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-8);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    align-items: flex-start;
}

/* Hero Fidget / Workflow Builder */
.hero-fidget {
    position: absolute;
    right: -50px;
    bottom: 15%;
    display: none;
    max-width: 280px;
}

@media (min-width: 1100px) {
    .hero-fidget {
        display: block;
    }
}

@media (min-width: 1400px) {
    .hero-fidget {
        right: 0;
        max-width: 320px;
    }
}

/* Legacy Fidget Cube - kept for fallback */
.fidget-cube {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
    cursor: grab;
    transition: transform 0.1s ease-out;
}

.fidget-cube:active {
    cursor: grabbing;
}

.cube-face {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
}

.cube-front { transform: translateZ(60px); }
.cube-back { transform: rotateY(180deg) translateZ(60px); }
.cube-right { transform: rotateY(90deg) translateZ(60px); }
.cube-left { transform: rotateY(-90deg) translateZ(60px); }
.cube-top { transform: rotateX(90deg) translateZ(60px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(60px); }

.fidget-hint {
    display: block;
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Workflow Builder in Hero */
.hero-fidget .workflow-builder {
    padding: var(--space-4);
}

.hero-fidget .workflow-pieces {
    flex-direction: column;
    gap: var(--space-2);
}

.hero-fidget .workflow-piece {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.hero-fidget .workflow-canvas {
    min-height: 100px;
    padding: var(--space-4);
}

.hero-fidget .workflow-hint {
    font-size: 0.7rem;
}

.hero-fidget .workflow-placed-item {
    padding: var(--space-1) var(--space-2);
    font-size: 0.7rem;
}

.hero-fidget .workflow-connector {
    width: 15px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent-primary), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--color-text-primary);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-20px); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(60px); opacity: 0; }
}

/* ----------------------------------------
   Quote Divider
   ---------------------------------------- */
.quote-divider {
    padding: var(--space-16) 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.quote-divider--alt {
    background: transparent;
}

.quote {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: normal;
    font-weight: 300;
    color: var(--color-text-primary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
    min-height: 2em;
}

.quote-typewriter {
    display: inline;
    border-right: 2px solid var(--color-accent-primary);
    animation: blink-caret 0.75s step-end infinite;
}

.quote-typewriter.done {
    border-right-color: transparent;
    animation: none;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-accent-primary); }
}

@media (min-width: 768px) {
    .quote {
        font-size: var(--text-3xl);
    }
}

/* ----------------------------------------
   Section Headers
   ---------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-primary);
    margin-bottom: var(--space-4);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ----------------------------------------
   What We Do Section
   ---------------------------------------- */
.what-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .what-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

.what-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.what-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.what-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    color: var(--color-accent-primary);
}

.what-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.what-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.what-bottom {
    text-align: center;
}

.what-summary {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

/* ----------------------------------------
   Approach Section (Timeline)
   ---------------------------------------- */
.section-approach {
    background: var(--color-bg-secondary);
}

/* --- Mobile: vertical layout --- */
.approach-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: var(--space-12);
}

.timeline-marker {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.timeline-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2);
}

.timeline-content p:last-of-type {
    margin-bottom: 0;
}

.timeline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.timeline-cta-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
}

.btn-sm {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
}

/* --- Timeline Accordion (Mehr erfahren) --- */
.timeline-content .timeline-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent-primary);
    text-decoration: none !important;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
}

.timeline-content .timeline-toggle:hover {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.45);
}

.timeline-content .timeline-toggle svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.timeline-content .timeline-toggle.open svg {
    transform: rotate(180deg);
}

.timeline-content .timeline-details {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.35s ease;
}

.timeline-content .timeline-details.open {
    /* Room for long steps + lists; do not re-add a lower max-height in index.php <style> (it overrides this file). */
    max-height: 6000px !important;
}

.timeline-content .timeline-details-inner {
    padding-top: var(--space-4);
}

/* --- Desktop: horizontal timeline (≥ 1024px) --- */
@media (min-width: 1024px) {
    .approach-timeline {
        max-width: 100%;
        display: flex;
        align-items: start;
        gap: 0;
        overflow: visible;
    }

    .timeline-line {
        display: none;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        padding: 0 var(--space-6) var(--space-4);
        text-align: center;
        position: relative;
    }

    /* Horizontal connector line from right edge of marker to left edge of next marker */
    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25px;
        left: calc(50% + 25px);
        right: calc(-50% + 25px);
        height: 2px;
        background: linear-gradient(to right, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
        opacity: 0.35;
    }

    .timeline-marker {
        position: relative;
        left: auto;
        flex-shrink: 0;
        margin-bottom: var(--space-5);
    }

    .timeline-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
    }

    .timeline-content h3 {
        font-size: var(--text-lg);
        min-height: 2.8em;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .timeline-content .timeline-teaser {
        min-height: 0;
    }

    .timeline-content .timeline-toggle {
        margin-top: auto;
        align-self: center;
        text-decoration: none !important;
        appearance: none;
        -webkit-appearance: none;
        box-shadow: none;
    }

    .timeline-content .timeline-details {
        position: static;
        width: 100%;
        margin-top: var(--space-2);
    }

    .timeline-cta {
        justify-content: center;
    }
}

/* ----------------------------------------
   Principles Section
   ---------------------------------------- */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

.principle-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.principle-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
}

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

.principle-number {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: rgba(96, 165, 250, 0.2);
    margin-bottom: var(--space-4);
    line-height: 1;
}

.principle-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.principle-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ----------------------------------------
   Use Case Section
   ---------------------------------------- */
.section-usecase {
    background: var(--color-bg-secondary);
}

.usecase-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
}

.usecase-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-primary);
    background: rgba(96, 165, 250, 0.1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.usecase-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .usecase-content {
        grid-template-columns: 1fr 1fr;
    }
}

.usecase-context h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.usecase-context p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.usecase-results h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--color-success);
}

.usecase-results ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.usecase-results li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-secondary);
}

.usecase-results li svg {
    color: var(--color-success);
    flex-shrink: 0;
}

/* ----------------------------------------
   News Section
   ---------------------------------------- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

.news-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    transition: all var(--transition-base);
}

.news-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.news-card--featured {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
}

.news-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-secondary);
    background: rgba(129, 140, 248, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
}

.news-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    color: var(--color-accent-primary);
}

.news-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.news-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ----------------------------------------
   About Section
   ---------------------------------------- */
.section-about {
    background: var(--color-bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.about-lead {
    font-size: var(--text-xl);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.about-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .founders-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

.founder-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
}

.founder-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
}

.founder-image {
    margin-bottom: var(--space-5);
    display: flex;
    justify-content: center;
}

.founder-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(var(--color-bg-card), var(--color-bg-card)) padding-box,
                linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end)) border-box;
    transition: all var(--transition-base);
    filter: grayscale(20%);
}

.founder-card:hover .founder-photo {
    transform: scale(1.05);
    filter: grayscale(0%);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.founder-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    color: var(--color-text-tertiary);
}

.founder-content h4 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.founder-role {
    font-size: var(--text-sm);
    color: var(--color-accent-primary);
    margin-bottom: var(--space-4);
}

.founder-quote {
    font-style: normal;
    font-weight: 300;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ----------------------------------------
   Contact Section
   ---------------------------------------- */
.section-contact {
    padding: var(--space-32) 0;
}

.contact-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr 1fr;
        padding: var(--space-16);
    }
}

.contact-content {
    max-width: 500px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.contact-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

/* Contact Fidget Dots */
.contact-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    min-height: 100%;
    gap: var(--space-6);
}

.contact-fidget {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.fidget-dots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
}

.fidget-dot {
    width: 20px;
    height: 20px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    opacity: 0.3;
}

.fidget-dot:hover {
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 20px var(--color-accent-primary);
}

.fidget-dot.active {
    background: var(--color-accent-secondary);
    opacity: 1;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

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

.footer-tagline {
    color: var(--color-text-secondary);
    margin-top: var(--space-3);
}

.footer-links {
    display: contents;
}

@media (min-width: 768px) {
    .footer-links {
        display: flex;
        gap: var(--space-16);
    }
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-column a {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-accent-primary);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.footer-note {
    font-style: italic;
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--transition-smooth) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Delay is set by JS from document order (chronological top-to-bottom) */
.animate-on-scroll.delay-1,
.animate-on-scroll.delay-2,
.animate-on-scroll.delay-3,
.animate-on-scroll.delay-4,
.animate-on-scroll.delay-5 {
    transition-delay: 0s;
}

/* ----------------------------------------
   Responsive Adjustments
   ---------------------------------------- */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-cta-primary-group {
        align-items: center;
        width: 100%;
    }
    
    .hero-micro-trust {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ----------------------------------------
   Legal Pages (Impressum, Datenschutz)
   ---------------------------------------- */
.legal-section {
    padding-top: calc(72px + var(--space-16));
    min-height: 100vh;
}

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

.legal-content h1 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.legal-content h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.legal-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
}

.legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.legal-content ul {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.legal-content li {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2);
    position: relative;
}

.legal-content li::before {
    content: '•';
    position: absolute;
    left: calc(-1 * var(--space-4));
    color: var(--color-accent-primary);
}

.legal-content a {
    color: var(--color-accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--color-accent-secondary);
}

.legal-date {
    font-style: italic;
    color: var(--color-text-tertiary);
    margin-top: var(--space-8);
}

.legal-back {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-legal-links a {
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--color-accent-primary);
}

.footer-legal-links span {
    color: var(--color-text-muted);
}

.footer-address {
    font-style: normal;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ----------------------------------------
   Checklist / Quality Section
   ---------------------------------------- */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.checklist-item:hover {
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
}

.checklist-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05));
    border-radius: var(--radius-lg);
    color: var(--color-success);
    font-size: var(--text-xl);
}

.checklist-content h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.checklist-content p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ----------------------------------------
   FAQ Section
   ---------------------------------------- */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-border-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-6);
    background: transparent;
    color: var(--color-text-primary);
    font-size: var(--text-base);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
}

.faq-question:hover {
    color: var(--color-accent-primary);
}

.faq-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-text-tertiary);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ----------------------------------------
   Challenges & Solutions Section
   ---------------------------------------- */
.challenges-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.challenge-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: stretch;
}

@media (min-width: 768px) {
    .challenge-row {
        grid-template-columns: 1fr auto 1fr;
        gap: var(--space-6);
        align-items: center;
    }
}

.challenge-card {
    padding: var(--space-5);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.challenge-card h4 {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.challenge-card h4 svg {
    width: 18px;
    height: 18px;
    color: #f87171;
}

.solution-card {
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.02));
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--radius-xl);
}

.solution-card h4 {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.solution-card h4 svg {
    width: 18px;
    height: 18px;
}

.challenge-arrow {
    display: none;
    color: var(--color-accent-primary);
    font-size: var(--text-xl);
}

@media (min-width: 768px) {
    .challenge-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.challenge-arrow svg {
    width: 24px;
    height: 24px;
}

/* ----------------------------------------
   Expandable Case Study
   ---------------------------------------- */
.usecase-expandable {
    margin-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-6);
}

.usecase-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: transparent;
    color: var(--color-accent-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.usecase-toggle:hover {
    color: var(--color-accent-secondary);
}

.usecase-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.usecase-toggle.active svg {
    transform: rotate(180deg);
}

.usecase-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.usecase-details.active {
    max-height: 1000px;
}

.usecase-details-content {
    padding-top: var(--space-6);
}

.usecase-timeline {
    position: relative;
    padding-left: var(--space-8);
}

.usecase-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent-primary), var(--color-success));
}

.usecase-step {
    position: relative;
    padding-bottom: var(--space-6);
}

.usecase-step:last-child {
    padding-bottom: 0;
}

.usecase-step::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-8) + 2px);
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--color-accent-primary);
    border-radius: 50%;
}

.usecase-step h5 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.usecase-step p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.usecase-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
}

@media (max-width: 575px) {
    .usecase-metrics {
        grid-template-columns: 1fr;
    }
}

.usecase-metric {
    text-align: center;
}

.usecase-metric-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-success);
}

.usecase-metric-label {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    margin-top: var(--space-1);
}

/* Section Backgrounds */
.section-checklist {
    background: var(--color-bg-secondary);
}

.section-faq {
    background: var(--color-bg-primary);
}

.section-challenges {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .section-checklist,
[data-theme="light"] .section-challenges {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .checklist-item,
[data-theme="light"] .faq-item,
[data-theme="light"] .challenge-card {
    background: var(--color-bg-card);
}

[data-theme="light"] .solution-card {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.06), rgba(5, 150, 105, 0.02));
    border-color: rgba(5, 150, 105, 0.15);
}

[data-theme="light"] .checklist-icon {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(5, 150, 105, 0.04));
}

/* Animation delays for staggered effects */
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Checklist responsive */
@media (max-width: 575px) {
    .checklist-item {
        flex-direction: column;
        text-align: center;
    }
    
    .checklist-icon {
        margin: 0 auto;
    }
}

/* Challenge cards responsive */
@media (max-width: 767px) {
    .challenge-row {
        gap: var(--space-2);
    }
    
    .challenge-card,
    .solution-card {
        padding: var(--space-4);
    }
    
    .challenge-card h4,
    .solution-card h4 {
        font-size: var(--text-sm);
    }
    
    /* Show arrow on mobile too */
    .challenge-arrow {
        display: flex;
        transform: rotate(90deg);
        justify-content: center;
        padding: var(--space-2) 0;
    }
}

/* FAQ responsive */
@media (max-width: 575px) {
    .faq-question {
        padding: var(--space-4);
        font-size: var(--text-sm);
    }
    
    .faq-answer-content {
        padding: 0 var(--space-4) var(--space-4);
        font-size: var(--text-sm);
    }
}

/* Usecase timeline responsive */
@media (max-width: 575px) {
    .usecase-timeline {
        padding-left: var(--space-6);
    }
    
    .usecase-step::before {
        left: calc(-1 * var(--space-6) + 2px);
        width: 8px;
        height: 8px;
    }
    
    .usecase-step h5 {
        font-size: var(--text-sm);
    }
    
    .usecase-step p {
        font-size: var(--text-xs);
    }
}

/* ----------------------------------------
   Enhanced Responsive Design
   ---------------------------------------- */

/* Extra small devices (phones, 320px and up) */
@media (max-width: 374px) {
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .quote {
        font-size: var(--text-lg);
        padding: 0 var(--space-2);
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .what-card,
    .principle-card,
    .news-card,
    .founder-card {
        padding: var(--space-5);
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }
    
    .contact-card {
        padding: var(--space-6);
    }
    
    .nav-logo {
        font-size: var(--text-base);
    }
}

/* Small devices (landscape phones, 375px - 575px) */
@media (min-width: 375px) and (max-width: 575px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    
    .what-card,
    .principle-card,
    .news-card {
        padding: var(--space-6);
    }
}

/* Medium devices (tablets, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .what-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .what-grid .what-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid .news-card:first-child {
        grid-column: span 2;
    }
    
    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .founders-grid .founder-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Large tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-fidget {
        display: none;
    }
}

/* Contact card: center stack on tablet and mobile (<= 991px) */
@media (max-width: 991px) {
    .contact-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .contact-content {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-aside {
        align-items: center;
        width: 100%;
        min-height: 0;
    }

    .contact-fidget {
        justify-content: center;
        width: 100%;
        flex: 0 0 auto;
    }

    .contact-ai-icons {
        justify-content: center;
        align-self: center;
        padding: var(--space-2) 0 0;
    }
}

/* Contact card: reduce padding on phones so content has breathing room */
@media (max-width: 575px) {
    .contact-card {
        padding: var(--space-6);
        gap: var(--space-6);
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-fidget {
        right: -50px;
        transform: scale(0.8);
    }
}

/* Large desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--space-10);
    }
    
    .hero-content {
        max-width: 800px;
    }
}

/* Extra large desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-fidget {
        right: 0;
    }
}

/* Height-based adjustments for short screens */
@media (max-height: 700px) {
    .hero {
        min-height: auto;
        padding-top: calc(72px + var(--space-8));
        padding-bottom: var(--space-8);
    }
    
    .hero-content {
        padding: var(--space-8) 0;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ----------------------------------------
   Founder Social Links
   ---------------------------------------- */
.founder-social {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.founder-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.founder-social-link:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.founder-more-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-accent-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.founder-more-link:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.founder-more-link svg {
    width: 12px;
    height: 12px;
}

[data-theme="light"] .founder-social-link {
    background: var(--color-bg-tertiary);
}

[data-theme="light"] .founder-social-link:hover {
    background: var(--color-accent-primary);
    color: #ffffff;
}

[data-theme="light"] .founder-more-link {
    border-color: var(--color-border);
}

[data-theme="light"] .founder-more-link:hover {
    background: var(--color-accent-primary);
    color: #ffffff;
}

/* Hide founder social links and "Mehr lesen" buttons temporarily */
.founder-social {
    display: none !important;
}

/* ----------------------------------------
   Workflow Builder Fidget
   ---------------------------------------- */
.workflow-builder {
    position: relative;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.workflow-canvas {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 200px;
    background: var(--color-bg-card);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    transition: all var(--transition-base);
}

.workflow-canvas.drag-over {
    border-color: var(--color-accent-primary);
    background: rgba(96, 165, 250, 0.05);
}

.workflow-pieces {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.workflow-piece {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-radius: var(--radius-lg);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: grab;
    user-select: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.workflow-piece:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.workflow-piece:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.workflow-piece.in-canvas {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.workflow-piece.in-canvas::after {
    content: '';
    position: absolute;
    right: -20px;
    width: 20px;
    height: 2px;
    background: var(--color-accent-primary);
}

.workflow-piece.in-canvas:last-child::after {
    display: none;
}

.workflow-piece svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.workflow-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
}

.workflow-arrow {
    color: var(--color-accent-primary);
    font-size: var(--text-xl);
    opacity: 0.5;
}

.workflow-placed {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.workflow-placed-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-accent-primary);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    animation: placeIn 0.3s ease;
}

@keyframes placeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.workflow-connector {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    position: relative;
}

.workflow-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--color-accent-gradient-end);
}

[data-theme="light"] .workflow-piece.in-canvas {
    background: var(--color-bg-card);
}

/* Mobile workflow builder adjustments */
@media (max-width: 575px) {
    .workflow-canvas {
        min-height: 150px;
        padding: var(--space-4);
    }
    
    .workflow-piece {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
    
    .workflow-placed-item {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
    
    .workflow-connector {
        width: 20px;
    }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
    .header,
    .cursor-follower,
    .scroll-indicator,
    .hero-fidget,
    .contact-fidget {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* ========================================
   ENTRY ANIMATION - WORKFLOW INTRO
   ======================================== */

.entry-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.entry-animation.fade-out {
    animation: entryFadeOut 0.8s ease-out forwards;
}

@keyframes entryFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* Background Grid */
.entry-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridFade 2s ease-out;
}

@keyframes gridFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Workflow Canvas Container */
.workflow-canvas {
    position: relative;
    width: 450px;
    height: 350px;
}

/* Workflow Nodes */
.workflow-node {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    box-shadow: 
        0 0 40px rgba(139, 92, 246, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

.workflow-node svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.workflow-node--1 {
    top: 0;
    left: 50%;
    margin-left: -35px;
    animation: nodeAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.workflow-node--2 {
    top: 140px;
    left: 30px;
    animation: nodeAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

.workflow-node--3 {
    top: 140px;
    right: 30px;
    animation: nodeAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

.workflow-node--4 {
    bottom: 0;
    left: 50%;
    margin-left: -35px;
    animation: nodeAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}

@keyframes nodeAppear {
    0% { 
        opacity: 0; 
        transform: scale(0) rotate(-10deg);
    }
    70% { 
        transform: scale(1.15) rotate(3deg);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
    }
}

/* Workflow Connection Lines SVG */
.workflow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

.workflow-line {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.workflow-line--1 {
    animation: drawLine 0.5s ease-out 0.4s forwards;
}

.workflow-line--2 {
    animation: drawLine 0.5s ease-out 0.6s forwards;
}

.workflow-line--3 {
    animation: drawLine 0.5s ease-out 0.9s forwards;
}

.workflow-line--4 {
    animation: drawLine 0.5s ease-out 1.0s forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Flowing Data Particles */
.flow-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    pointer-events: none;
}

.flow-particle--1 {
    animation: flowParticle1 1.2s ease-in-out 1.3s forwards;
}

.flow-particle--2 {
    animation: flowParticle2 1.2s ease-in-out 1.4s forwards;
}

.flow-particle--3 {
    animation: flowParticle3 1.2s ease-in-out 1.6s forwards;
}

@keyframes flowParticle1 {
    0% { 
        top: 60px; 
        left: 225px; 
        opacity: 0;
        transform: scale(0.5);
    }
    20% { opacity: 1; transform: scale(1); }
    100% { 
        top: 155px; 
        left: 85px; 
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes flowParticle2 {
    0% { 
        top: 60px; 
        left: 225px; 
        opacity: 0;
        transform: scale(0.5);
    }
    20% { opacity: 1; transform: scale(1); }
    100% { 
        top: 155px; 
        left: 355px; 
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes flowParticle3 {
    0% { 
        top: 200px; 
        left: 135px; 
        opacity: 0;
        transform: scale(0.5);
    }
    20% { opacity: 1; transform: scale(1); }
    100% { 
        top: 280px; 
        left: 225px; 
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Entry Logo */
.entry-logo {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: logoReveal 0.8s ease-out 1.5s forwards;
    white-space: nowrap;
}

.entry-logo span {
    font-family: var(--font-sans);
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.entry-logo .logo-hello {
    color: var(--color-text-primary);
}

.entry-logo .logo-workflow {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes logoReveal {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(30px);
    }
    100% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
}

/* Pulse Ring Effect */
.pulse-ring {
    position: absolute;
    top: 175px;
    left: 225px;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-accent-primary);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.pulse-ring--1 {
    animation: pulseExpand 1.5s ease-out 1.2s;
}

.pulse-ring--2 {
    animation: pulseExpand 1.5s ease-out 1.4s;
}

@keyframes pulseExpand {
    0% { 
        width: 100px; 
        height: 100px; 
        opacity: 0.4; 
    }
    100% { 
        width: 600px; 
        height: 600px; 
        opacity: 0; 
    }
}

/* Hide scrollbar during animation */
body.entry-active {
    overflow: hidden;
}

/* Responsive Entry Animation - Tablets */
@media (max-width: 1024px) {
    .workflow-canvas {
        width: 380px;
        height: 300px;
        transform: scale(0.9);
    }
}

/* Responsive Entry Animation - Mobile */
@media (max-width: 768px) {
    .workflow-canvas {
        width: 280px;
        height: 220px;
        transform: scale(0.75);
    }
    
    .workflow-node {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
    
    .workflow-node svg {
        width: 24px;
        height: 24px;
    }
    
    .workflow-node--1 {
        margin-left: -25px;
    }
    
    .workflow-node--2 {
        left: 20px;
        top: 100px;
    }
    
    .workflow-node--3 {
        right: 20px;
        top: 100px;
    }
    
    .workflow-node--4 {
        margin-left: -25px;
    }
    
    .entry-logo span {
        font-size: var(--text-2xl);
    }
    
    .entry-logo {
        bottom: -80px;
    }
    
    .pulse-ring {
        top: 120px;
        left: 140px;
    }
}

/* Responsive Entry Animation - Small Mobile */
@media (max-width: 480px) {
    .workflow-canvas {
        width: 240px;
        height: 190px;
        transform: scale(0.7);
    }
    
    .workflow-node {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }
    
    .workflow-node svg {
        width: 20px;
        height: 20px;
    }
    
    .workflow-node--1 {
        margin-left: -22px;
    }
    
    .workflow-node--2 {
        left: 15px;
        top: 80px;
    }
    
    .workflow-node--3 {
        right: 15px;
        top: 80px;
    }
    
    .workflow-node--4 {
        margin-left: -22px;
    }
    
    .entry-logo span {
        font-size: var(--text-xl);
    }
    
    .entry-logo {
        bottom: -70px;
    }
}

/* Skip animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .entry-animation {
        display: none;
    }
}

/* ========================================
   LEAD FORM CTA SECTION
   ======================================== */
.section-lead-cta {
    padding: var(--space-24) 0;
    background: var(--color-bg-primary);
}

.lead-cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .lead-cta-card {
        grid-template-columns: 1.2fr 1fr;
        padding: var(--space-16);
        align-items: center;
    }
}

.lead-cta-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.lead-cta-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    max-width: 500px;
}

.lead-cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.lead-cta-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.lead-cta-feature svg {
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

.lead-cta-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lead-cta-phases {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--space-6);
}

.lead-cta-phase {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.lead-cta-phase:hover {
    background: rgba(96, 165, 250, 0.08);
}

.lead-cta-phase-num {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.lead-cta-phase span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.lead-cta-phase-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    opacity: 0.3;
    margin-left: calc(var(--space-4) + 17px);
}

/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */
.lead-fab {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    z-index: var(--z-elevated);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.lead-fab.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lead-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.lead-fab-label {
    display: none;
}

@media (min-width: 576px) {
    .lead-fab-label {
        display: inline;
    }
}

/* ========================================
   LEAD FORM MODAL
   ======================================== */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lead-modal.active {
    opacity: 1;
    visibility: visible;
}

.lead-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lead-modal-container {
    position: relative;
    width: 95%;
    max-width: 680px;
    max-height: 90vh;
    max-height: 90dvh;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow-y: auto;
    padding: var(--space-8);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-modal.active .lead-modal-container {
    transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
    .lead-modal-container {
        padding: var(--space-10) var(--space-12);
    }
}

.lead-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.lead-modal-close:hover {
    background: var(--color-bg-card-hover);
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

/* Progress Bar */
.lead-progress {
    height: 3px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    overflow: hidden;
}

.lead-progress-bar {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phase Indicators – horizontal on desktop, vertical on small screens */
.lead-phases {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-8);
    min-width: 0;
}

.lead-phase-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    cursor: default;
    opacity: 0.4;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.lead-phase-dot.active,
.lead-phase-dot.completed {
    opacity: 1;
}

.lead-phase-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    color: var(--color-text-tertiary);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.lead-phase-dot.active .lead-phase-icon {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.lead-phase-dot.completed .lead-phase-icon {
    background: var(--color-success);
    border-color: transparent;
    color: #fff;
}

.lead-phase-dot span {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.lead-phase-dot.active span {
    color: var(--color-accent-primary);
}

.lead-phase-dot.completed span {
    color: var(--color-success);
}

.lead-phase-line {
    width: 40px;
    height: 2px;
    background: var(--color-border);
    flex-shrink: 0;
    margin: 0 var(--space-2);
    margin-top: 19px;
    transition: background 0.4s ease;
}

.lead-phase-line.filled {
    background: linear-gradient(90deg, var(--color-success), var(--color-accent-primary));
}

.lead-phase-dot.completed + .lead-phase-line {
    background: linear-gradient(90deg, var(--color-success), var(--color-accent-primary));
}

@media (max-width: 600px) {
    .lead-phases {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        padding: 0;
    }
    .lead-phase-dot {
        flex-direction: column;
        align-items: center;
        gap: var(--space-1);
    }
    .lead-phase-dot span {
        font-size: 0.55rem;
    }
    .lead-phase-line {
        display: none;
    }
    .lead-phase-icon {
        width: 34px;
        height: 34px;
    }
    .lead-phase-icon svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 380px) {
    .lead-phase-dot span {
        display: none;
    }
    .lead-phase-line {
        display: none;
    }
    .lead-phase-icon {
        width: 32px;
        height: 32px;
    }
}

/* Form Steps */
.lead-step {
    display: none;
    animation: leadStepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lead-step.active {
    display: block;
}

@keyframes leadStepIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lead-step.slide-out-left {
    animation: leadSlideOutLeft 0.3s ease forwards;
}

@keyframes leadSlideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.lead-step.slide-in-right {
    animation: leadSlideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes leadSlideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lead-step.slide-out-right {
    animation: leadSlideOutRight 0.3s ease forwards;
}

@keyframes leadSlideOutRight {
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.lead-step.slide-in-left {
    animation: leadSlideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes leadSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Header */
.lead-step-header {
    margin-bottom: var(--space-8);
}

.lead-step-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.lead-step-header p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

/* Fields */
.lead-field {
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(15px);
    animation: leadFieldIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lead-step.active .lead-field[data-field-delay="0"] { animation-delay: 0.1s; }
.lead-step.active .lead-field[data-field-delay="1"],
.lead-step.active .lead-field-row[data-field-delay="1"] { animation-delay: 0.2s; }
.lead-step.active .lead-field[data-field-delay="2"],
.lead-step.active .lead-field-row[data-field-delay="2"] { animation-delay: 0.3s; }
.lead-step.active .lead-field[data-field-delay="3"],
.lead-step.active .lead-field-row[data-field-delay="3"] { animation-delay: 0.4s; }

.lead-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(15px);
    animation: leadFieldIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 576px) {
    .lead-field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.lead-field-row .lead-field {
    margin-bottom: 0;
    opacity: 1;
    transform: none;
    animation: none;
}

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

.lead-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.lead-hint {
    font-weight: 400;
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
}

/* Input / Textarea / Select */
.lead-input,
.lead-textarea,
.lead-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    transition: all 0.25s ease;
    outline: none;
}

.lead-input:focus,
.lead-textarea:focus,
.lead-select:focus {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: var(--color-bg-primary);
}

.lead-input::placeholder,
.lead-textarea::placeholder {
    color: var(--color-text-muted);
}

.lead-input.error,
.lead-textarea.error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.lead-field-error .lead-label {
    color: #f87171;
}

.lead-field-error .lead-options .lead-option-pill {
    border-color: rgba(248, 113, 113, 0.5);
}

.lead-field-error .lead-options .lead-option-pill:hover {
    border-color: #f87171;
}

.lead-error-msg {
    display: block;
    font-size: var(--text-xs);
    color: #f87171;
    margin-top: var(--space-2);
    animation: errorAppear 0.3s ease;
}

@keyframes errorAppear {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead-textarea {
    resize: vertical;
    min-height: 60px;
}

.lead-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Option Pills (Radio / Checkbox) */
.lead-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.lead-option {
    cursor: pointer;
}

.lead-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lead-option-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 400;
    transition: all 0.25s ease;
    user-select: none;
}

.lead-option-pill:hover {
    border-color: var(--color-accent-primary);
    color: var(--color-text-primary);
    background: rgba(59, 130, 246, 0.06);
}

.lead-option input:checked + .lead-option-pill {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-color: transparent;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    transform: scale(1.02);
}

/* Navigation Buttons */
.lead-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-6);
}

.lead-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.lead-btn--back {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.lead-btn--back:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.lead-btn--next {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.lead-btn--next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
}

.lead-btn--next:active {
    transform: translateY(0);
}

.lead-btn--next.submitting {
    pointer-events: none;
    opacity: 0.7;
}

/* Success State */
.lead-step--success .lead-success {
    text-align: center;
    padding: var(--space-8) 0;
}

.lead-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05));
    color: var(--color-success);
    margin-bottom: var(--space-6);
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lead-success-icon svg {
    animation: successCheck 0.5s ease 0.3s both;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes successCheck {
    0% { stroke-dashoffset: 100; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

.lead-success h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-success);
}

.lead-success p {
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

/* Confetti particles */
.lead-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    pointer-events: none;
    animation: confettiFall 1.5s ease forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

/* Loading Spinner */
.lead-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: leadSpin 0.6s linear infinite;
}

@keyframes leadSpin {
    to { transform: rotate(360deg); }
}

/* Light Mode Overrides */
[data-theme="light"] .lead-modal-container {
    background: #ffffff;
}

[data-theme="light"] .lead-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(124, 58, 237, 0.04));
    border: 1px solid var(--color-border);
}

[data-theme="light"] .lead-option-pill {
    background: var(--color-bg-tertiary);
}

[data-theme="light"] .lead-input,
[data-theme="light"] .lead-textarea,
[data-theme="light"] .lead-select {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .lead-input:focus,
[data-theme="light"] .lead-textarea:focus,
[data-theme="light"] .lead-select:focus {
    background: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .lead-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: var(--space-6);
    }
    
    .lead-step-header h3 {
        font-size: var(--text-xl);
    }
    
    .lead-option-pill {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
    
    .lead-cta-title {
        font-size: var(--text-2xl);
    }
    
    .lead-fab {
        bottom: var(--space-4);
        right: var(--space-4);
    }
}

/* ----------------------------------------
   Hero Micro-Trust
   ---------------------------------------- */
.hero-cta-primary-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.hero-micro-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.hero-micro-trust span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.hero-micro-trust svg {
    flex-shrink: 0;
    color: var(--color-accent-primary);
}

/* ----------------------------------------
   Timeline List (inside timeline steps)
   ---------------------------------------- */
.timeline-list {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.timeline-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.timeline-list li::before {
    content: '–';
    color: var(--color-accent-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

@media (min-width: 1024px) {
    .timeline-list {
        text-align: left;
    }
}

/* ----------------------------------------
   Block 4: Mid-Page Analyse-Einstieg
   ---------------------------------------- */
.section-mid-cta {
    background: var(--color-bg-primary);
}

.mid-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-8);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.06));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-10);
}

@media (min-width: 768px) {
    .mid-cta-card {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-12);
    }
}

.mid-cta-content {
    flex: 1;
    max-width: 760px;
}

.mid-cta-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.3;
    margin: var(--space-2) 0 var(--space-4);
}

.mid-cta-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.mid-cta-trust {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-8);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 640px;
}

@media (max-width: 479px) {
    .mid-cta-trust {
        flex-direction: column;
        gap: var(--space-3);
    }
}

.mid-cta-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.mid-cta-trust-item svg {
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

[data-theme="light"] .mid-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(124, 58, 237, 0.04));
}

/* ----------------------------------------
   Block 5: Enablement-Workshop
   ---------------------------------------- */
.section-workshop {
    background: var(--color-bg-secondary);
}

.workshop-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .workshop-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-16);
    }
}

.workshop-text {
    flex: 1;
}

.workshop-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.workshop-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0 var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.workshop-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.workshop-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-primary);
    flex-shrink: 0;
    margin-top: 8px;
}

.workshop-note {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.workshop-visual {
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .workshop-visual {
        width: 260px;
    }
}

.workshop-badge-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.workshop-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.workshop-badge svg {
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

/* ----------------------------------------
   Block 6: Typische Einsatzfelder
   ---------------------------------------- */
.usefields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .usefields-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.usefield-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.usefield-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.usefield-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    color: var(--color-accent-primary);
}

.usefield-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.usefield-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.usefield-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.usefield-list li::before {
    content: '→';
    color: var(--color-accent-primary);
    flex-shrink: 0;
    font-size: var(--text-xs);
    margin-top: 3px;
}

/* ----------------------------------------
   Block 7: Warum Hello Workflow
   ---------------------------------------- */
.section-why {
    background: var(--color-bg-secondary);
}

.why-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.section-why .why-text {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-why .why-text p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (min-width: 1024px) {
    .why-layout {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: var(--space-16);
    }

    .why-text {
        flex: 0 1 720px;
        max-width: 720px;
    }
}

.why-principles {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .why-principles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----------------------------------------
   Block 9: Finaler CTA-Block
   ---------------------------------------- */
.section-final-cta {
    background: var(--color-bg-primary);
}

.final-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.08));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-12) var(--space-10);
}

.final-cta-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

.final-cta-title {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: 700;
    margin: var(--space-2) 0 var(--space-4);
}

.final-cta-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.final-cta-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: stretch;
}

@media (min-width: 768px) {
    .final-cta-options {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }
}

.final-cta-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    flex-shrink: 0;
    padding: var(--space-4) var(--space-6);
}

@media (min-width: 768px) {
    .final-cta-divider {
        padding: 0 var(--space-8);
        align-self: center;
    }
}

.final-cta-option {
    flex: 1;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.final-cta-option--primary {
    background: var(--color-bg-secondary);
    border: 2px solid rgba(59, 130, 246, 0.35);
}

.final-cta-option--secondary {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
}

.final-cta-option-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-primary);
}

.final-cta-option--secondary .final-cta-option-label {
    color: var(--color-text-muted);
}

.final-cta-option h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
}

.final-cta-option p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: var(--text-sm);
    flex: 1;
}

.final-cta-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.final-cta-trust li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.final-cta-trust svg {
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

[data-theme="light"] .final-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.05));
    border: 1px solid var(--color-border);
}

/* ----------------------------------------
   Block 2: Problem – Text + Testimonial
   ---------------------------------------- */
.what-text-block {
    max-width: 720px;
    margin: 0 auto var(--space-12);
    text-align: center;
}

.what-text-block p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.what-text-block .what-text-highlight {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.what-testimonial {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    max-width: 960px;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 768px) {
    .what-testimonial {
        flex-direction: row;
        align-items: flex-start;
    }
}

.testimonial-embed {
    flex: 1 1 50%;
    min-width: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.testimonial-embed iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: none;
}

.testimonial-context {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.testimonial-quote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.7;
    border-left: 3px solid var(--color-accent-primary);
    padding-left: var(--space-5);
}

.testimonial-source {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.testimonial-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.testimonial-link:hover {
    color: var(--color-accent-secondary);
}

.testimonial-link svg {
    flex-shrink: 0;
}


/* ----------------------------------------
   "Wer wir sind" – uniform font size
   ---------------------------------------- */
.section-why .why-text p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.section-why .why-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   MARKETPLACE PAGE
   Assets · Apps · Roadmap · App-Idee
   ======================================== */

/* Active nav link state */
.nav-link--active {
    color: var(--color-text-primary);
}

.nav-link--active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-radius: 2px;
}

/* ----------------------------------------
   Marketplace Hero
   ---------------------------------------- */
.market-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(72px + var(--space-12)) 0 var(--space-16);
}

.market-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

@media (min-width: 768px) {
    .market-hero {
        min-height: 75vh;
        padding: calc(72px + var(--space-16)) 0 var(--space-20);
    }
}

/* ----------------------------------------
   Sticky Sub-Navigation Tabs
   ---------------------------------------- */
.market-tabs {
    position: sticky;
    top: 64px;
    z-index: var(--z-sticky);
    background: var(--header-bg);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    border-bottom: 1px solid var(--color-border);
}

.market-tabs-inner {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-3) var(--space-4);
    justify-content: center;
}

.market-tabs-inner::-webkit-scrollbar { display: none; }

.market-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    color: var(--color-text-tertiary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.market-tab:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-card);
    border-color: var(--color-border);
}

.market-tab.active {
    color: var(--color-text-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border-color: rgba(96, 165, 250, 0.35);
}

.market-tab svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.market-tab.active svg { opacity: 1; }

/* ----------------------------------------
   Section base
   ---------------------------------------- */
.market-section {
    position: relative;
}

.market-section--alt {
    background: var(--color-bg-secondary);
}

/* ----------------------------------------
   Pills, Status, Shared
   ---------------------------------------- */
.market-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.market-pill--free {
    background: rgba(52, 211, 153, 0.12);
    color: var(--color-success);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.market-pill--authority {
    background: rgba(96, 165, 250, 0.1);
    color: var(--color-accent-primary);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.market-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.2;
}

.market-status-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: currentColor;
    box-shadow: 0 0 0 4px currentColor;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

.market-status--live {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.market-status--live .market-status-dot {
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
    animation: market-pulse-live 2s ease-in-out infinite;
}

@keyframes market-pulse-live {
    0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.05); }
}

.market-status--beta {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.market-status--beta .market-status-dot {
    background: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.market-status--roadmap {
    color: var(--color-accent-primary);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.market-status--roadmap .market-status-dot {
    background: var(--color-accent-primary);
}

/* ----------------------------------------
   Featured Asset Spotlight
   ---------------------------------------- */
.market-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
}

.market-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(59,130,246,0.08), transparent 60%);
    z-index: 0;
}

.market-featured > * { position: relative; z-index: 1; }

@media (min-width: 768px) {
    .market-featured {
        grid-template-columns: 320px 1fr;
        gap: var(--space-12);
        padding: var(--space-10);
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .market-featured {
        grid-template-columns: 360px 1fr;
    }
}

.market-featured-cover {
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, #1e3a8a 0%, #4c1d95 65%, #6d28d9 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 60px rgba(91, 33, 182, 0.45);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.market-featured-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(255,255,255,0.18), transparent 45%),
        radial-gradient(circle at 15% 90%, rgba(96,165,250,0.4), transparent 50%);
    pointer-events: none;
}

.market-featured-cover-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
    color: #fff;
    position: relative;
    z-index: 2;
}

.market-featured-cover-icon {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.55);
    z-index: 2;
}

.market-featured-cover-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.5rem + 2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.market-featured-cover-foot {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.market-featured-body { display: flex; flex-direction: column; gap: var(--space-4); }

.market-featured-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.market-featured-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}

.market-featured-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.market-featured-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.market-featured-list li {
    position: relative;
    padding-left: var(--space-6);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.market-featured-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    opacity: 0.85;
}

.market-featured-list li::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 10px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.market-featured-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.market-featured-proof {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.market-proof-icon {
    color: var(--color-accent-primary);
    display: inline-flex;
}

/* ----------------------------------------
   Asset Grid
   ---------------------------------------- */
.market-asset-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .market-asset-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

@media (min-width: 1024px) {
    .market-asset-grid { grid-template-columns: repeat(3, 1fr); }
}

.market-asset-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
}

.market-asset-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.market-asset-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border-radius: var(--radius-lg);
    color: var(--color-accent-primary);
    margin-bottom: var(--space-1);
}

.market-asset-icon svg { width: 24px; height: 24px; }

.market-asset-tag {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.market-asset-title {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text-primary);
}

.market-asset-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.market-asset-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-1);
}

.market-asset-downloads {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    font-variant-numeric: tabular-nums;
}

.market-asset-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: var(--space-2);
}

.market-asset-cta:hover {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.market-asset-cta svg { transition: transform var(--transition-fast); }
.market-asset-cta:hover svg { transform: translateX(3px); }

/* ----------------------------------------
   Apps – Verfügbar (Live)
   ---------------------------------------- */
.market-app-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .market-app-grid { grid-template-columns: repeat(2, 1fr); }
}

.market-app-card,
.market-beta-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.market-app-card:hover,
.market-beta-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.market-app-head,
.market-beta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.market-app-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14));
    border-radius: var(--radius-lg);
    color: var(--color-accent-primary);
}

.market-app-icon svg { width: 28px; height: 28px; }

.market-app-title {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.market-app-tagline {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
}

.market-app-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.market-app-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.market-app-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-success);
}

.market-app-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.market-app-hint {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

/* ----------------------------------------
   Beta Card – Progress
   ---------------------------------------- */
.market-beta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 720px;
    margin: 0 auto;
}

.market-beta-progress {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.market-beta-progress-bar {
    position: relative;
    height: 8px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.market-beta-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    border-radius: var(--radius-full);
    transition: width var(--transition-smooth);
}

.market-beta-progress-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    font-variant-numeric: tabular-nums;
}

.market-beta-progress-meta strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.market-beta-progress-free {
    color: var(--color-success);
    font-weight: 500;
    margin-left: auto;
}

/* ----------------------------------------
   Roadmap List
   ---------------------------------------- */
.market-roadmap {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 980px;
    margin: 0 auto;
}

.market-roadmap-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

@media (min-width: 640px) {
    .market-roadmap-item {
        grid-template-columns: 56px 1fr auto;
        gap: var(--space-6);
        align-items: center;
    }
}

.market-roadmap-item:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.market-roadmap-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14));
    border-radius: var(--radius-lg);
    color: var(--color-accent-primary);
}

.market-roadmap-icon svg { width: 28px; height: 28px; }

.market-roadmap-body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }

.market-roadmap-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.market-roadmap-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.market-roadmap-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.55;
}

.market-roadmap-desc {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin: 0;
    line-height: 1.55;
}

.market-roadmap-progress {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-1);
}

.market-roadmap-progress-bar {
    position: relative;
    flex: 1;
    height: 6px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    max-width: 320px;
}

.market-roadmap-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-radius: var(--radius-full);
    transition: width var(--transition-smooth);
}

.market-roadmap-progress-label {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.market-roadmap-aside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    min-width: 180px;
}

@media (max-width: 639px) {
    .market-roadmap-aside {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

.market-roadmap-stat {
    text-align: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
}

.market-roadmap-stat-num {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.market-roadmap-stat-label {
    font-size: 0.7rem;
    color: var(--color-text-tertiary);
    line-height: 1.3;
}

.market-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-variant-numeric: tabular-nums;
}

.market-vote-btn:hover {
    color: var(--color-accent-primary);
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.08);
    transform: translateY(-1px);
}

.market-vote-btn.voted {
    color: var(--color-accent-primary);
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(96, 165, 250, 0.12);
}

.market-vote-btn svg { transition: transform var(--transition-fast); }
.market-vote-btn:hover svg { transform: translateY(-2px); }

.market-roadmap-cta {
    width: 100%;
}

/* ----------------------------------------
   App-Idee Wizard
   ---------------------------------------- */
.market-idea-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .market-idea-card { padding: var(--space-12); }
}

.market-idea-progress {
    height: 4px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.market-idea-progress-bar {
    height: 100%;
    width: 33%;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-radius: var(--radius-full);
    transition: width var(--transition-smooth);
}

.market-idea-phases {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.market-idea-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 500;
    transition: color var(--transition-base);
}

.market-idea-phase-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-tertiary);
    transition: all var(--transition-base);
}

.market-idea-phase.active .market-idea-phase-icon,
.market-idea-phase.completed .market-idea-phase-icon {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.market-idea-phase.active,
.market-idea-phase.completed {
    color: var(--color-text-primary);
}

.market-idea-phase-line {
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--color-border);
}

.market-idea-step {
    display: none;
    animation: market-fade-in 0.4s ease;
}

.market-idea-step.active { display: block; }

@keyframes market-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.market-idea-step-header {
    margin-bottom: var(--space-6);
}

.market-idea-step-header h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 var(--space-2);
}

.market-idea-step-header p {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    margin: 0;
    line-height: 1.55;
}

.market-idea-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.market-idea-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
    .market-idea-field-row { grid-template-columns: repeat(2, 1fr); }
}

.market-idea-field-row .market-idea-field { margin-bottom: 0; }

.market-idea-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    display: block;
}

.market-idea-input,
.market-idea-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
    box-sizing: border-box;
}

.market-idea-input::placeholder,
.market-idea-textarea::placeholder {
    color: var(--color-text-muted);
}

.market-idea-input:focus,
.market-idea-textarea:focus {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.market-idea-input.error,
.market-idea-textarea.error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.market-idea-textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.55;
}

.market-idea-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.market-idea-option {
    position: relative;
    cursor: pointer;
}

.market-idea-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.market-idea-option > span {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-base);
}

.market-idea-option:hover > span {
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
}

.market-idea-option input:checked + span {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
    border-color: var(--color-accent-primary);
    color: var(--color-text-primary);
    box-shadow: 0 0 0 1px var(--color-accent-primary) inset;
}

.market-idea-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-4);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.market-idea-checkbox:hover {
    border-color: var(--color-border-hover);
}

.market-idea-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.market-idea-checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border-hover);
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all var(--transition-base);
    margin-top: 1px;
}

.market-idea-checkbox input:checked + .market-idea-checkbox-box {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    border-color: transparent;
    color: #fff;
}

.market-idea-checkbox-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.market-idea-checkbox-hint {
    color: var(--color-accent-primary);
    font-weight: 500;
}

.market-idea-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.market-idea-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.market-idea-btn--back {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.market-idea-btn--back:hover {
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
    background: var(--color-bg-tertiary);
}

.market-idea-btn--next {
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.market-idea-btn--next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.4);
}

.market-idea-btn.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.market-idea-nav-meta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

.market-idea-nav-meta svg { color: var(--color-success); }

.market-idea-success {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.market-idea-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(52, 211, 153, 0.06));
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-idea-success h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0 0 var(--space-2);
}

.market-idea-success p {
    color: var(--color-text-secondary);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ----------------------------------------
   Mini Modal (Asset gate + App interest)
   ---------------------------------------- */
.market-mini-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.market-mini-modal.active { display: flex; animation: market-fade-in 0.25s ease; }

.market-mini-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(8px);
}

[data-theme="light"] .market-mini-modal-backdrop {
    background: rgba(15, 23, 42, 0.5);
}

.market-mini-modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    animation: market-modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes market-modal-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.market-mini-modal-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.market-mini-modal-close:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-card-hover);
}

.market-mini-modal-content {
    display: flex;
    flex-direction: column;
}

.market-mini-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14));
    color: var(--color-accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
}

.market-mini-modal-icon svg { width: 24px; height: 24px; }

.market-mini-modal-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-primary);
    margin-bottom: var(--space-2);
}

.market-mini-modal-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0 0 var(--space-2);
    line-height: 1.25;
}

.market-mini-modal-text {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.55;
    margin: 0 0 var(--space-5);
}

/* [hidden] muss display:none erzwingen – sonst überschreiben
   display:flex-Regeln die Erfolgsmeldung / das Formular permanent. */
#market-mini-modal [hidden] {
    display: none !important;
}

.market-mini-modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.market-mini-modal-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.market-mini-modal-error {
    font-size: var(--text-sm);
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    line-height: 1.4;
}

.market-mini-modal-submit {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
}

.market-mini-modal-fineprint {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    text-align: center;
    margin: var(--space-3) 0 0;
}

.market-mini-modal-fineprint a {
    color: var(--color-accent-primary);
    text-decoration: none;
}

.market-mini-modal-fineprint a:hover { text-decoration: underline; }

.market-mini-modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-4) 0;
}

.market-mini-modal-success-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(52, 211, 153, 0.06));
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-mini-modal-success h4 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0;
}

.market-mini-modal-success p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.55;
    margin: 0;
}

.market-mini-modal-success-close {
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    cursor: pointer;
    padding: var(--space-2) var(--space-4);
    margin-top: var(--space-2);
}

.market-mini-modal-success-close:hover { color: var(--color-text-primary); }

/* ----------------------------------------
   Social Proof Strip
   ---------------------------------------- */
.market-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-8);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.market-proof::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 40% at 100% 0%, rgba(139, 92, 246, 0.1), transparent 60%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(59, 130, 246, 0.08), transparent 60%);
    pointer-events: none;
}

.market-proof > * { position: relative; z-index: 1; }

@media (min-width: 768px) {
    .market-proof {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-12);
        padding: var(--space-12);
        align-items: center;
    }
}

.market-proof-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    text-align: center;
}

.market-proof-stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.market-proof-stat-label {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    line-height: 1.4;
}

.market-proof-quote {
    border-left: 3px solid var(--color-accent-primary);
    padding-left: var(--space-5);
    color: var(--color-text-secondary);
    position: relative;
}

.market-proof-quote svg {
    position: absolute;
    top: -8px;
    left: -14px;
    background: var(--color-bg-card);
    color: var(--color-accent-primary);
    opacity: 0.7;
}

.market-proof-quote blockquote {
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0 0 var(--space-3);
    color: var(--color-text-primary);
    font-style: normal;
    font-weight: 500;
}

.market-proof-quote cite {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    font-style: normal;
}

/* Abstand Social-Proof / Gärtner-Zitat → Newsletter */
.market-section--proof {
    padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .market-section--proof {
        padding-bottom: var(--space-20);
    }
}

.market-section--proof + .market-newsletter-section {
    margin-top: var(--space-8);
}

@media (min-width: 768px) {
    .market-section--proof + .market-newsletter-section {
        margin-top: var(--space-12);
    }
}

/* ----------------------------------------
   Light Mode Overrides
   ---------------------------------------- */
[data-theme="light"] .market-tabs {
    background: rgba(255,255,255,0.85);
}

[data-theme="light"] .market-asset-card,
[data-theme="light"] .market-app-card,
[data-theme="light"] .market-beta-card,
[data-theme="light"] .market-roadmap-item,
[data-theme="light"] .market-idea-card,
[data-theme="light"] .market-mini-modal-container,
[data-theme="light"] .market-proof,
[data-theme="light"] .market-featured {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .market-asset-card:hover,
[data-theme="light"] .market-app-card:hover,
[data-theme="light"] .market-beta-card:hover,
[data-theme="light"] .market-roadmap-item:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .market-asset-cta {
    background: var(--color-bg-tertiary);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--color-text-primary);
}

[data-theme="light"] .market-asset-cta:hover {
    color: #fff;
}

[data-theme="light"] .market-vote-btn,
[data-theme="light"] .market-roadmap-stat,
[data-theme="light"] .market-beta-progress {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .market-idea-input,
[data-theme="light"] .market-idea-textarea,
[data-theme="light"] .market-idea-option > span,
[data-theme="light"] .market-idea-checkbox,
[data-theme="light"] .market-idea-phase-icon {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .market-idea-progress,
[data-theme="light"] .market-beta-progress-bar,
[data-theme="light"] .market-roadmap-progress-bar {
    background: #e2e8f0;
}

[data-theme="light"] .market-proof-quote svg {
    background: #ffffff;
}

[data-theme="light"] .market-mini-modal-close,
[data-theme="light"] .market-idea-checkbox-box {
    background: #f1f5f9;
}

/* ----------------------------------------
   Mobile Polish
   ---------------------------------------- */
@media (max-width: 639px) {
    .market-tabs-inner { justify-content: flex-start; }
    .market-tab { font-size: 0.8rem; }
    .market-featured-cover { max-width: 280px; margin: 0 auto; }
    .market-roadmap-aside { width: 100%; margin-top: var(--space-2); }
    .market-roadmap-cta { flex: 1; }
    .market-idea-phase-line { max-width: 30px; }
    .market-idea-phase span { font-size: 0.7rem; }
}


/* ============================================================
   Marketplace Newsletter Block
   ============================================================ */
.market-newsletter-section {
    padding: var(--space-12) 0 var(--space-16);
}
.market-newsletter {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.market-newsletter-body .section-label {
    display: inline-block;
    margin-bottom: var(--space-3);
}
.market-newsletter-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.2; margin-bottom: var(--space-3); }
.market-newsletter-text { color: var(--color-text-secondary); line-height: 1.55; }
.market-newsletter-form { display: grid; gap: var(--space-3); }
.market-newsletter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.market-newsletter-label { font-size: 0.85rem; color: var(--color-text-secondary); font-weight: 500; }
.market-newsletter-input {
    width: 100%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.market-newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.market-newsletter-submit {
    align-self: flex-start;
    /* Kein translateY beim Hover – verhindert „Springen“ nach links/rechts */
    transition: box-shadow var(--transition-base), filter var(--transition-base), opacity var(--transition-base);
}
.market-newsletter-submit:hover {
    transform: none;
    filter: brightness(1.06);
    box-shadow: 0 0 40px rgba(96, 165, 250, 0.22);
}
.market-newsletter-error {
    font-size: var(--text-sm);
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    margin: 0;
    line-height: 1.4;
}
.market-newsletter-fineprint { font-size: 0.78rem; color: var(--color-text-tertiary, var(--color-text-secondary)); }
.market-newsletter-success {
    color: #047857;
    font-weight: 600;
    margin: 0;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
}
[data-theme="light"] .market-newsletter-success {
    color: #065f46;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(5, 150, 105, 0.35);
}
.market-mini-modal-success.market-notice--success,
.market-mini-modal-success {
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    background: rgba(16, 185, 129, 0.08);
}
.market-mini-modal-success h4 {
    color: #34d399;
}
[data-theme="light"] .market-mini-modal-success h4 {
    color: #047857;
}
#market-newsletter [hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .market-newsletter { grid-template-columns: 1fr; }
    .market-newsletter-submit { width: 100%; justify-content: center; }
}

/* ============================================================
   Responsive Polishing (v6)
   ------------------------------------------------------------
   Letzte Feinschliffe fuer Touch-Devices und sehr kleine
   Viewports, ohne bestehende Breakpoints zu ueberschreiben.
   ============================================================ */

/* Mindest-Touch-Targets auf Touch-Geraeten */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .market-tab, .nav-toggle, .theme-toggle,
    .lead-btn, .market-idea-btn { min-height: 40px; }
    .lead-modal-close,
    .market-mini-modal-close { min-width: 40px; min-height: 40px; }
    /* iOS Auto-Zoom auf Inputs verhindern (alles >= 16px) */
    input, select, textarea {
        font-size: max(16px, 1rem);
    }
}

/* Tablet Portrait (768-1024) Layout-Hilfen */
@media (min-width: 768px) and (max-width: 1024px) {
    .container { padding-left: var(--space-6); padding-right: var(--space-6); }
    .market-roadmap-item { gap: var(--space-4); }
    .market-featured-cover { max-height: 280px; }
}

/* Phone (max 575) - generic CTAs auf voller Breite */
@media (max-width: 575px) {
    .hero-cta { flex-direction: column; align-items: stretch; gap: var(--space-3); }
    .hero-cta .btn,
    .hero-cta-primary-group { width: 100%; }
    .hero-cta-primary-group { align-items: center; }
    .hero-cta-primary-group .btn { width: 100%; justify-content: center; }
    .market-app-actions { flex-direction: column; }
    .market-app-actions .btn { width: 100%; justify-content: center; }
    /* Lead-Modal naeher an Vollbild */
    .lead-modal-container { width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; padding: var(--space-6) var(--space-5); }
    .lead-modal { padding: 0 !important; }
    /* Mini-Modal */
    .market-mini-modal-container { width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
}

/* Sehr schmale Phones (<= 360px) */
@media (max-width: 360px) {
    html { font-size: 14px; }
    .nav-logo { font-size: var(--text-sm); }
    .market-tab { padding: 0.45rem 0.5rem; font-size: 0.72rem; }
    .market-asset-card,
    .market-app-card,
    .market-beta-card,
    .market-roadmap-item { padding: var(--space-5); }
}

/* Landscape-Phones: Modale sollen kompakt scrollbar bleiben */
@media (max-height: 500px) and (orientation: landscape) {
    .lead-modal-container,
    .market-mini-modal-container { max-height: 95vh; max-height: 95dvh; padding: var(--space-5) var(--space-6); }
    .hero { min-height: auto; padding-block: var(--space-8); }
}

/* Print: kein Cursor-Follower, keine Tabs */
@media print {
    .cursor-follower,
    .nav-toggle,
    .header-controls,
    .market-tabs,
    .market-sidenav,
    .lead-modal,
    .market-mini-modal-overlay,
    .market-newsletter-form { display: none !important; }
    a { color: inherit !important; text-decoration: underline; }
}

/* ===== Marketplace Empty States ===== */
.market-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--border-color, rgba(0,0,0,0.12));
    border-radius: 16px;
    background: var(--surface-subtle, rgba(0,0,0,0.02));
    max-width: 640px;
    margin: 0 auto;
}
.market-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #111);
    margin: 0 0 0.5rem 0;
}
.market-empty-text {
    color: var(--text-secondary, #555);
    margin: 0;
    line-height: 1.55;
}
@media (max-width: 575px) {
    .market-empty { padding: 2rem 1.25rem; }
}

/* ============================================================
   Marketplace Hero – zentrierte Trust-Reihe
   ============================================================ */
.market-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2) var(--space-5);
    margin: var(--space-6) auto 0;
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
}
.market-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}
.market-hero-trust-item svg {
    color: var(--color-accent, #60a5fa);
    flex-shrink: 0;
}

/* Hero schlanker, weil CTA-Buttons entfernt wurden */
.market-hero {
    min-height: auto !important;
    padding: calc(72px + var(--space-10)) 0 var(--space-10) !important;
}
@media (min-width: 768px) {
    .market-hero {
        padding: calc(72px + var(--space-12)) 0 var(--space-12) !important;
    }
}

/* ============================================================
   Marketplace Shell – Sidebar + Panels (Tab-Layout)
   ============================================================ */
.market-shell {
    position: relative;
    padding: var(--space-8) 0 var(--space-12);
    background: var(--color-bg-primary);
}
.market-shell-inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-10);
    align-items: flex-start;
}

/* --- Sidebar: cleaner, transparenter Look (Facenote-inspiriert) --- */
.market-sidenav {
    position: sticky;
    top: calc(72px + var(--space-4));
    align-self: flex-start;
    /* Bewusst KEIN Background / Border / Shadow –
       die Sidebar soll Teil der Seite sein, kein Card-Block. */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.market-sidenav-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-tertiary);
    padding: 0 var(--space-3) var(--space-4);
}
.market-sidenav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.market-sidetab {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.market-sidetab:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}
.market-sidetab:active {
    transform: scale(0.99);
}
.market-sidetab:focus-visible {
    outline: 2px solid var(--color-accent-primary, #3b82f6);
    outline-offset: 2px;
}
.market-sidetab.active,
.market-sidetab[aria-selected="true"] {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}
/* Subtiler Vertikal-Akzent links als Active-Indikator */
.market-sidetab.active::before,
.market-sidetab[aria-selected="true"]::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}
.market-sidetab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text-tertiary);
    flex-shrink: 0;
    transition: color 180ms ease, background 180ms ease;
}
.market-sidetab:hover .market-sidetab-icon {
    color: var(--color-text-primary);
}
.market-sidetab.active .market-sidetab-icon {
    color: var(--color-accent-primary, #3b82f6);
}
.market-sidetab-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.market-sidetab-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
}
.market-sidetab-hint {
    font-size: 0.72rem;
    color: var(--color-text-tertiary);
    font-weight: 400;
    line-height: 1.3;
}
.market-sidetab--accent {
    margin-top: var(--space-3);
}
.market-sidetab--accent.active::before {
    background: linear-gradient(180deg, #22c55e, #3b82f6);
}
.market-sidetab--accent.active .market-sidetab-icon {
    color: #22c55e;
}

/* --- Off-Center-Fix: Panel-Inhalte konsequent linksbündig,
       damit der Content nicht in der „falschen Mitte" zwischen
       Sidebar und Page-Rand zentriert wirkt. --- */
.market-panel .section-header {
    text-align: left;
    margin-bottom: var(--space-8);
}
.market-panel .section-header .section-label {
    margin-bottom: var(--space-3);
}
.market-panel .section-subtitle {
    margin: 0;
    max-width: 720px;
}
.market-panel .market-proof-stats {
    justify-content: flex-start;
    text-align: left;
}

/* --- Panels --- */
.market-panels {
    min-width: 0;
}
.market-panel {
    display: none;
    animation: marketPanelFade 0.25s ease;
}
.market-panel.active {
    display: block;
}
.market-panel[hidden] {
    display: none;
}
@keyframes marketPanelFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Innerhalb der Panels die Section-Padding etwas reduzieren,
   weil die Panels schon einen Außenrahmen haben. */
.market-panel .section.market-section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}
.market-panel .section.market-section:first-of-type { padding-top: 0; }
.market-panel .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}
/* market-section--alt soll im Panel nicht wie ein Vollbreite-Streifen wirken */
.market-panel .market-section--alt {
    background: transparent;
}

/* --- Per-Panel CTA Banner --- */
.market-panel-cta {
    margin-top: var(--space-8);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-xl, 16px);
    border: 1px dashed var(--color-border);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.market-panel-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 320px;
}
.market-panel-cta-text strong {
    color: var(--color-text-primary);
    font-size: var(--text-base);
}
.market-panel-cta-text span {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* --- Idea form: select-Feld zur Art der Idee --- */
.market-idea-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Social-Proof Stats zentriert ---
   Falls drei Stats nebeneinander stehen, mittig ausrichten,
   damit ohne CTA-Buttons darüber die Reihe nicht „links lastig" wirkt */
.market-proof-stats {
    justify-content: center;
    text-align: center;
}

/* ============================================================
   Tablet (≤1024px): Sidebar bleibt links, etwas schmaler
   ============================================================ */
@media (max-width: 1024px) {
    .market-shell-inner {
        grid-template-columns: 210px 1fr;
        gap: var(--space-7);
    }
    .market-sidetab-hint { display: none; }
    .market-sidetab { padding: 0.65rem 0.75rem; }
    .market-sidetab-icon { width: 30px; height: 30px; }
}

/* ============================================================
   Mobile (≤768px): Sidebar wird zur horizontalen Tab-Leiste oben.
   Keine Box, kein Background – konsistent zum Desktop-Look.
   ============================================================ */
@media (max-width: 768px) {
    .market-shell { padding: var(--space-6) 0 var(--space-8); }
    .market-shell-inner {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    .market-sidenav {
        position: sticky;
        top: 64px;
        z-index: 20;
        background: var(--color-bg-primary);
        padding: var(--space-2) 0;
    }
    .market-sidenav-label { display: none; }
    .market-sidenav-list {
        flex-direction: row;
        gap: var(--space-1);
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }
    .market-sidenav-list::-webkit-scrollbar { display: none; }
    .market-sidetab {
        flex-direction: column;
        gap: 4px;
        min-width: 88px;
        padding: 0.55rem 0.7rem;
        text-align: center;
        flex-shrink: 0;
    }
    .market-sidetab.active::before,
    .market-sidetab[aria-selected="true"]::before {
        left: 50%;
        right: auto;
        top: auto;
        bottom: -4px;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
    }
    .market-sidetab-icon { width: 30px; height: 30px; }
    .market-sidetab-text { align-items: center; }
    .market-sidetab-title { font-size: 0.78rem; }

    .market-panel-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: var(--space-4);
    }
    .market-panel-cta .btn { justify-content: center; }
}

/* ============================================================
   Sehr klein (≤480px): noch enger
   ============================================================ */
@media (max-width: 480px) {
    .market-hero-trust { gap: 6px 16px; font-size: 0.78rem; }
    .market-sidetab { min-width: 78px; padding: 0.5rem 0.55rem; }
    .market-sidetab-title { font-size: 0.72rem; }
}


/* ============================================================
   Booking Modal (Calendly-Stil) – CTA-Rework Mai 2026
   ============================================================ */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2vw, 32px);
}
.booking-modal.is-open {
    display: flex;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 16, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.booking-modal-container {
    position: relative;
    width: min(960px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--color-bg-card, #1c1c1f);
    color: var(--color-text-primary, #fafafa);
    border-radius: 18px;
    border: 1px solid var(--color-border, rgba(255,255,255,0.08));
    box-shadow: 0 30px 90px rgba(0,0,0,0.5);
    padding: clamp(20px, 3vw, 36px);
    animation: bookingFadeIn 0.25s ease-out;
}

[data-theme="light"] .booking-modal-container {
    background: #ffffff;
    color: #18181b;
    border-color: rgba(17, 24, 39, 0.08);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
}

@keyframes bookingFadeIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.booking-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border, rgba(255,255,255,0.12));
    background: rgba(255,255,255,0.04);
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s ease, transform 0.15s ease;
}
.booking-modal-close:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
[data-theme="light"] .booking-modal-close { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.08); }
[data-theme="light"] .booking-modal-close:hover { background: rgba(15, 23, 42, 0.1); }

/* Stages */
.booking-stage { display: none; }
.booking-stage.is-active { display: block; animation: bookingFadeIn 0.2s ease-out; }

.booking-modal-header {
    margin-bottom: 20px;
    /* Reserve space so the close button (top:14px right:14px, 36px) never
       overlaps the eyebrow / title on narrow phones. */
    padding-right: 48px;
}
.booking-modal-header h2 {
    margin: 4px 0 10px;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}
.booking-modal-header--compact h2 { font-size: 1.4rem; }

.booking-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-primary, #60a5fa);
    background: rgba(96, 165, 250, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}

.booking-modal-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text-secondary, #d4d4d8);
    margin: 0;
}
[data-theme="light"] .booking-modal-lead { color: #475569; }

.booking-modal-lead strong { color: inherit; }

/* Slot grid */
.booking-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 20px;
    margin-top: 4px;
}

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

.booking-days,
.booking-slots-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border, rgba(255,255,255,0.08));
    border-radius: 14px;
    padding: 14px;
}
[data-theme="light"] .booking-days,
[data-theme="light"] .booking-slots-panel {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.booking-days-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--color-text-secondary, #d4d4d8);
}

.booking-tz {
    font-size: 0.72rem;
    color: var(--color-text-muted, #71717a);
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 999px;
}
[data-theme="light"] .booking-tz { background: rgba(15, 23, 42, 0.06); }

.booking-days-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 720px) {
    .booking-days-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        max-height: none;
        padding-bottom: 4px;
    }
}

.booking-day {
    display: grid;
    grid-template-columns: 28px 38px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid var(--color-border, rgba(255,255,255,0.08));
    border-radius: 10px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.booking-day:hover {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.35);
}
.booking-day.is-active {
    background: rgba(96, 165, 250, 0.18);
    border-color: rgba(96, 165, 250, 0.6);
    color: #fff;
}
[data-theme="light"] .booking-day:hover { background: rgba(59, 130, 246, 0.08); border-color: rgba(59,130,246,0.45); }
[data-theme="light"] .booking-day.is-active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.7);
    color: #1d4ed8;
}

.booking-day-wd {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary, #a1a1aa);
}
.booking-day-num {
    font-size: 1.25rem;
    font-weight: 700;
}
.booking-day-mon {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #d4d4d8);
}
.booking-day-count {
    font-size: 0.72rem;
    color: var(--color-text-muted, #71717a);
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 999px;
}
[data-theme="light"] .booking-day-count { background: rgba(15, 23, 42, 0.05); }

@media (max-width: 720px) {
    .booking-day {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2px;
        min-width: 88px;
        padding: 10px 12px;
    }
    .booking-day-count { display: none; }
}

.booking-buffer-hint {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: var(--color-text-muted, #71717a);
    text-align: center;
}

.booking-slots-header {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--color-text-primary, #fafafa);
}

.booking-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.booking-slot {
    padding: 10px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border, rgba(255,255,255,0.1));
    border-radius: 10px;
    color: inherit;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.booking-slot:hover {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-1px);
}
[data-theme="light"] .booking-slot { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .booking-slot:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.5); }

.booking-empty {
    color: var(--color-text-muted, #71717a);
    font-size: 0.88rem;
    margin: 8px 0;
    line-height: 1.55;
}

/* Loading */
.booking-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-secondary, #d4d4d8);
    font-size: 0.88rem;
    padding: 6px 4px;
}
.booking-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(96,165,250,0.25);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: bookingSpin 0.8s linear infinite;
    display: inline-block;
}
.booking-spinner--btn { margin-right: 6px; vertical-align: -3px; }
@keyframes bookingSpin { to { transform: rotate(360deg); } }

/* Back link in form */
.booking-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-bottom: 12px;
    background: transparent;
    border: 1px solid var(--color-border, rgba(255,255,255,0.12));
    color: var(--color-text-secondary, #d4d4d8);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.booking-back:hover { background: rgba(255,255,255,0.07); }
[data-theme="light"] .booking-back { color: #475569; border-color: #e5e7eb; }
[data-theme="light"] .booking-back:hover { background: rgba(15,23,42,0.05); }

.booking-selected-slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.4);
    padding: 8px 14px;
    border-radius: 10px;
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--color-text-primary, #fafafa);
}
[data-theme="light"] .booking-selected-slot { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.35); color: #1d4ed8; }

/* Form */
.booking-form { margin-top: 16px; }
.booking-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .booking-field-row { grid-template-columns: 1fr; }
}
.booking-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.booking-field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-secondary, #d4d4d8);
}
.booking-required { color: #ef4444; margin-left: 2px; }
.booking-optional { color: var(--color-text-muted, #71717a); font-weight: 400; }

.booking-field input,
.booking-field select,
.booking-field textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border, rgba(255,255,255,0.1));
    border-radius: 10px;
    padding: 10px 12px;
    color: inherit;
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, background 0.15s ease;
    width: 100%;
}
.booking-field textarea { resize: vertical; min-height: 90px; }
.booking-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary, #d4d4d8);
}
[data-theme="light"] .booking-field-label { color: #374151; }

.booking-meeting-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}
@media (max-width: 640px) {
    .booking-meeting-type { grid-template-columns: 1fr; }
}
.booking-meeting-type-option { cursor: pointer; }
.booking-meeting-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.booking-meeting-type-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--color-border, rgba(255,255,255,0.12));
    background: rgba(255,255,255,0.03);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.booking-meeting-type-option input:checked + .booking-meeting-type-card {
    border-color: var(--color-accent-primary, #60a5fa);
    background: rgba(96, 165, 250, 0.12);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}
.booking-meeting-type-option:hover .booking-meeting-type-card {
    border-color: rgba(96, 165, 250, 0.55);
}
[data-theme="light"] .booking-meeting-type-card {
    background: #f8fafc;
    border-color: #d1d5db;
}
[data-theme="light"] .booking-meeting-type-option input:checked + .booking-meeting-type-card {
    background: #eff6ff;
    border-color: #3b82f6;
}
.booking-meeting-type-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
}
.booking-meeting-type-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted, #71717a);
    line-height: 1.45;
}
[data-theme="light"] .booking-meeting-type-desc { color: #64748b; }

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary, #60a5fa);
    background: rgba(255,255,255,0.06);
}
[data-theme="light"] .booking-field input,
[data-theme="light"] .booking-field select,
[data-theme="light"] .booking-field textarea {
    background: #ffffff;
    border-color: #d1d5db;
    color: #18181b;
}

.booking-privacy {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: var(--color-text-muted, #71717a);
    line-height: 1.5;
}
.booking-privacy a { color: var(--color-accent-primary, #60a5fa); text-decoration: underline; }

.booking-form-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    border-radius: 10px;
    font-size: 0.88rem;
}
[data-theme="light"] .booking-form-error { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

.booking-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}
.booking-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.booking-submit:disabled { opacity: 0.7; cursor: progress; }

/* Success */
.booking-success {
    text-align: center;
    padding: 12px 4px 4px;
}
.booking-success h2 {
    margin: 12px 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
}
.booking-success p {
    color: var(--color-text-secondary, #d4d4d8);
    font-size: 0.96rem;
    line-height: 1.6;
    margin: 0 auto 18px;
    max-width: 520px;
}
[data-theme="light"] .booking-success p { color: #475569; }

.booking-success-icon {
    color: var(--color-success, #34d399);
    margin-bottom: 4px;
}

.booking-success-meta {
    background: rgba(96, 165, 250, 0.10);
    border: 1px solid rgba(96, 165, 250, 0.30);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 14px auto 18px;
    text-align: left;
    max-width: 480px;
    font-size: 0.9rem;
    line-height: 1.55;
}
.booking-success-slot strong { color: var(--color-accent-primary, #60a5fa); }
.booking-success-note { font-size: 0.82rem; color: var(--color-text-muted, #71717a); margin: 8px 0 0; }
[data-theme="light"] .booking-success-meta { background: rgba(59,130,246,0.07); border-color: rgba(59,130,246,0.25); }

/* Empty state */
.booking-empty-state {
    text-align: center;
    padding: 32px 16px;
}
.booking-empty-state h2 {
    margin: 12px 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
}
.booking-empty-state p {
    color: var(--color-text-secondary, #d4d4d8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 16px;
    max-width: 460px;
}
.booking-empty-state a { color: var(--color-accent-primary, #60a5fa); text-decoration: underline; }

/* Workflow Hub teaser (homepage) */
.section-hub-teaser { padding: var(--space-12) 0; }
.hub-teaser {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
}
@media (min-width: 768px) {
    .hub-teaser {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.hub-teaser-title { font-size: var(--text-xl); font-weight: 700; margin: var(--space-2) 0; }
.hub-teaser-text { color: var(--color-text-secondary); max-width: 52ch; margin: 0; }
.hub-teaser-cta { flex-shrink: 0; }

/* Booking: unavailable ghost slots */
.booking-slot--unavailable {
    opacity: 0.55;
    cursor: not-allowed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-secondary, rgba(255,255,255,0.04));
    border-style: dashed;
}
.booking-slot-status {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Contact card: KI provider icon links (bottom-right on desktop) */
.contact-ai-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-2) var(--space-2);
    margin-top: auto;
}
.contact-ai-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    opacity: 0.78;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.contact-ai-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.contact-ai-icon img {
    width: 1.625rem;
    height: 1.625rem;
    display: block;
}
/* Black/monochrome logos → light in dark mode */
html:not([data-theme="light"]) .contact-ai-icon--dark img {
    filter: invert(1);
}
/* White logos (Grok) → dark in light mode */
[data-theme="light"] .contact-ai-icon--light img {
    filter: invert(1);
}
.contact-ai-icon--brand img {
    filter: none;
}

@media (max-width: 575px) {
    .contact-ai-icons {
        gap: var(--space-3);
        padding: var(--space-4) var(--space-1) 0;
    }
    .contact-ai-icon {
        width: 2.375rem;
        height: 2.375rem;
    }
    .contact-ai-icon img {
        width: 1.5rem;
        height: 1.5rem;
    }
}
