/* ============================================================
   NEURAVIX - MODERN PROFESSIONAL DESIGN
   ============================================================ */

:root {
    /* Palette: Indigo / Slate / White */
    --color-text: #0f172a;
    --color-text-light: #64748b;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    
    /* Brand Accent: Matches the lighter tones of the Hero gradient */
    --color-accent: #6f97f7;   /* Lighter, fresher blue */
    --color-accent-dark: #4338ca; 
    
    --color-border: #e2e8f0;
    --color-bg-subtle: #f8fafc;
    --color-bg: #ffffff;
    --color-bg-alt: #f1f5f9;
    --font-serif: 'Fraunces', serif;
    --spacing-unit: 8px;
}

/* ============================================================
   BASE
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    background: #ffffff;
    overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 400;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

strong {
    font-weight: 500;
}

.accent-text {
    color: var(--color-accent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Transparent Navbar (für Hero Section) */
.navbar-transparent {
    background: rgba(0, 0, 0, 0) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: none;
    box-shadow: none !important;
}

.navbar-transparent .navbar-brand,
.navbar-transparent .nav-link {
    color: white !important;
}

.navbar-transparent .brand-icon {
    color: white !important;
}

.navbar-transparent .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.navbar-transparent .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Scrolled Navbar (weiß mit dunkler Schrift) */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: var(--color-text) !important;
}

.navbar-scrolled .brand-icon {
    color: #667eea !important;
}

.navbar-scrolled .navbar-toggler-icon {
    filter: none;
}

.navbar-scrolled .nav-link:hover {
    color: var(--color-accent) !important;
    background: rgba(99, 102, 241, 0.05);
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.85;
}

.navbar-brand:hover .brand-icon {
    transform: rotate(90deg);
}

.brand-icon {
    font-size: 1.75rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-text {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Nav Links */
.nav-link {
    color: var(--color-text-light) !important;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.625rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    color: var(--color-accent) !important;
    background: rgba(99, 102, 241, 0.05);
}

.nav-link:active {
    transform: scale(0.97);
}

/* Login Link - Subtle */
.nav-link-subtle {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.nav-link-subtle:hover {
    opacity: 1;
    color: var(--color-accent) !important;
    background: rgba(99, 102, 241, 0.05);
}

/* Mobile Navbar Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1.5rem 0;
        border-top: 1px solid var(--color-border);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.875rem 1rem !important;
        margin: 0;
    }
    
    .navbar-transparent .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(12px);
        margin: 1rem -1rem 0;
        padding: 1.5rem 1rem;
        border-radius: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.nav-links a:hover {
    color: var(--color-text);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    font-weight: 500;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    font-size: 0.9375rem;
    border-radius: 4px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    opacity: 0.9;
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: white;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
    padding: 0;
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 100%); /* Deep Indigo to Slate */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Remove old conflicting hero styles if necessary or override them */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title-main {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    color: white;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.hero-lead {
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit) * 8);
    line-height: 1.5;
}

.vision-statements {
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.statement-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 4) 0;
    border-bottom: 1px solid var(--color-border);
}

.statement-item:last-child {
    border-bottom: none;
}

.statement-number {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    min-width: 48px;
    flex-shrink: 0;
}

.statement-item p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

/* ============================================================
   SECTIONS
   ============================================================ */

section {
    padding: calc(var(--spacing-unit) * 15) 0;
}

.section-header {
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.section-title {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.section-lead {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* ============================================================
   RESEARCH AREAS - MINIMAL GRID
   ============================================================ */

.section-research {
    background: var(--color-bg-subtle);
}

.research-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
}

.research-visual-card {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.research-visual-card:hover {
    border-color: var(--color-accent);
}

.card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    z-index: 1;
}

.research-visual-card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(0, 0, 0, 0.4) 40%, 
        transparent 100%
    );
    z-index: 2;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: calc(var(--spacing-unit) * 4);
    color: white;
    z-index: 3;
}

.card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.card-content h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: white;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

.research-visual-card.featured {
    grid-column: span 2;
    min-height: 500px;
}

/* ============================================================
   LABS - MINIMAL TIMELINE
   ============================================================ */

.section-labs {
    background: white;
}

.labs-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.lab-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 6) 0;
    border-bottom: 1px solid var(--color-border);
}

.lab-item:last-child {
    border-bottom: none;
}

.lab-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.lab-content {
    flex: 1;
}

.lab-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    background: var(--color-bg-subtle);
    color: var(--color-text-light);
    border-radius: 4px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.lab-status.active {
    background: var(--color-accent);
    color: white;
}

.lab-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.lab-content p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.lab-outputs {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
    flex-wrap: wrap;
}

.output {
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    font-size: 0.875rem;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */

.section-philosophy {
    background: var(--color-bg-subtle);
}

.philosophy-visual {
    background: linear-gradient(135deg, var(--color-accent), #4285f4);
    padding: calc(var(--spacing-unit) * 8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.equation-display {
    color: white;
    text-align: center;
}

.eq-line {
    font-size: 1.75rem;
    font-weight: 400;
    margin: calc(var(--spacing-unit) * 1) 0;
}

.eq-operator {
    font-size: 2.5rem;
    margin: calc(var(--spacing-unit) * 2) 0;
    opacity: 0.7;
}

.eq-result {
    font-size: 2.5rem;
    font-weight: 400;
    margin-top: calc(var(--spacing-unit) * 4);
    line-height: 1.2;
}

.philosophy-content {
    padding: calc(var(--spacing-unit) * 8);
}

.philosophy-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.principles {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
}

.principle-card {
    padding-bottom: calc(var(--spacing-unit) * 4);
    border-bottom: 1px solid var(--color-border);
}

.principle-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.principle-card h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.principle-card p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */

.section-contact {
    background: white;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.collab-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin: calc(var(--spacing-unit) * 8) 0;
}

.collab-area {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3) 0;
    border-bottom: 1px solid var(--color-border);
}

.area-icon {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.collab-area h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.collab-area p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.contact-ctas {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 8);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 3) 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-cta:hover {
    opacity: 0.7;
}

.cta-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.cta-value {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 400;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 6);
    border-top: 1px solid var(--color-border);
    background: white;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
    max-width: 800px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.brand-name {
    font-size: 1rem;
    font-weight: 500;
}

.brand-tagline {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-legal p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    z-index: 9999;
    padding: calc(var(--spacing-unit) * 3);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.3s ease-out;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(8, 1fr) !important;
    }
    
    .product-card[style*="grid-column: span 8"] {
        grid-column: span 8 !important;
    }
    
    .product-card[style*="grid-column: span 4"] {
        grid-column: span 4 !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .hero-section {
        min-height: 600px;
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-title-main {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .section-platform,
    .section-applications {
        padding: 80px 0 !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem;
    }
    
    .product-card[style*="grid-column"] {
        grid-column: span 4 !important;
        min-height: auto !important;
        padding: 2rem !important;
    }
    
    .capability-item {
        padding: 1.5rem !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: 500px;
    }
    
    .hero-title-main {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-platform,
    .section-applications {
        padding: 60px 0 !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1.75rem !important;
    }
    
    .capability-item {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .capability-item > div:first-child {
        font-size: 2rem !important;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 2);
    }

    .cookie-actions {
        width: 100%;
    }

    .btn-cookie {
        width: 100%;
    }
    
    .navbar {
        padding: calc(var(--spacing-unit) * 1.5) 0;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .hero-title-main {
        font-size: 1.75rem;
    }
    
    .product-card h3 {
        font-size: 1.25rem !important;
    }
    
    .product-card p {
        font-size: 0.9rem !important;
    }
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
}

.cookie-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
}

.cookie-content strong {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-weight: 600;
    color: var(--color-text);
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.cookie-content a:hover {
    opacity: 0.7;
}

.cookie-actions {
    flex-shrink: 0;
}

.btn-cookie {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-cookie:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

/* Responsive Cookie Banner for Mobile */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 2);
    }

    .cookie-actions {
        width: 100%;
    }

    .btn-cookie {
        width: 100%;
    }
}

/* ============================================================
   PRODUCTS SECTION - RESPONSIVE GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s;
}

.product-card:hover {
    border-color: var(--color-accent);
}

.product-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99,102,241,0.08);
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-radius: 3px;
}

.product-card-large {
    grid-column: span 8;
    min-height: 280px;
}

.product-card-small {
    grid-column: span 4;
    min-height: 280px;
    padding: 2.5rem;
}

.product-card-medium {
    grid-column: span 5;
    min-height: 260px;
    padding: 2.5rem;
}

.product-card-medium-large {
    grid-column: span 7;
    min-height: 260px;
    padding: 2.5rem;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .product-card-large {
        grid-column: span 12;
    }

    .product-card-small {
        grid-column: span 6;
    }

    .product-card-medium {
        grid-column: span 6;
    }

    .product-card-medium-large {
        grid-column: span 12;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .products-grid {
        gap: 1rem;
    }

    .product-card-large,
    .product-card-small,
    .product-card-medium,
    .product-card-medium-large {
        grid-column: span 12;
        min-height: 220px;
        padding: 2rem;
    }

    .product-card h3 {
        font-size: 1.3rem !important;
    }

    .product-card p {
        font-size: 0.9rem !important;
    }
}

/* ============================================================
   CASE STORIES SECTION
   ============================================================ */
.section-stories {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.story-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.story-card:hover::before {
    opacity: 1;
}

.story-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
}

.story-header {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.story-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.story-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.story-card.featured .story-title {
    font-size: 32px;
}

.story-excerpt {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.story-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.meta-item svg {
    opacity: 0.6;
}

.story-outcomes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.outcome {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@media (max-width: 768px) {
    .story-card.featured {
        grid-column: span 1;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {
    .research-visual-grid {
        grid-template-columns: 1fr;
    }

    .research-visual-card.featured {
        grid-column: span 1;
    }

    .philosophy-visual {
        min-height: 400px;
        padding: calc(var(--spacing-unit) * 6);
    }

    .philosophy-content {
        padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 8);
    }

    section {
        padding: calc(var(--spacing-unit) * 10) 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .statement-item {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .statement-number {
        font-size: 1.25rem;
    }

    .research-visual-card {
        min-height: 350px;
    }

    .collab-areas {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        align-items: flex-start;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-cookie {
        width: 100%;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   MODERN NEURAVIX ADDITIONS
   ============================================================ */

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================================
LEGAL PAGES
============================================================ */

.legal-page {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-content h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-content p, .legal-content li {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.legal-content strong {
    color: var(--color-text);
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-intro {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}