/* FormFlow THV - Marketing Site Styles */
/* Superlist-inspiriertes Design mit Bento-Grid Layout */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --border-radius: 24px;
    --border-radius-sm: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Bento Box Base Styles */
.bento-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-box:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
}

/* Button Styles */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Responsive Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

/* Icon Styles */
.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Navbar Scroll Effect */
#navigation.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bento-box {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Bento-Grid Optimization */
    .lg\\:col-span-2 {
        grid-column: span 1 !important;
    }
    
    /* Mobile Navigation Spacing */
    nav .container {
        padding: 0 1rem;
    }
    
    /* Mobile Hero Section */
    .pt-32 {
        padding-top: 7rem;
    }
    
    /* Mobile Button Sizing */
    .btn {
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    /* Mobile Form Inputs */
    input, textarea, select {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    /* Mobile Table Improvements */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.75rem, 3vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    }
    
    .bento-box {
        padding: 1.25rem;
        border-radius: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .bento-box:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Better touch targets */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
