:root {
    --bg-color: #FAFAFA;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --accent: #2A4B7C;
    /* Medical Deep Blue */
    --accent-light: #4A6B9C;
    --glass-bg: rgba(250, 250, 250, 0.85);
    --border-color: #E5E5E5;

    /* Typography & Golden Ratio */
    --font-main: 'Manrope', sans-serif;
    --phi: 1.618;
    --base-size: 1rem;

    /* Scale: Base * Phi^n */
    --h1-size: 4.236rem;
    /* ~67px */
    --h2-size: 2.618rem;
    /* ~42px */
    --h3-size: 1.618rem;
    /* ~26px */
    --body-size: 1rem;
    --small-size: 0.618rem;

    /* Spacing: Fibonacci-ish / Phi based */
    --space-unit: 1rem;
    --space-sm: calc(var(--space-unit) * 1);
    --space-md: calc(var(--space-unit) * 1.618);
    /* ~26px */
    --space-lg: calc(var(--space-unit) * 2.618);
    /* ~42px */
    --space-xl: calc(var(--space-unit) * 4.236);
    /* ~68px */
    --space-xxl: calc(var(--space-unit) * 6.854);
    /* ~110px */
    --space-huge: calc(var(--space-unit) * 11.089);
    /* ~177px */

    --transition-speed: 0.4s;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.618;
    /* Golden Ratio Line Height */
    overflow-x: hidden;
    cursor: default;
    font-size: var(--body-size);
    scroll-behavior: smooth;
}

/* Scroll offset for anchor links (header height compensation) */
section[id] {
    scroll-margin-top: 80px;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--space-sm) 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);

    /* Webview compatibility for blur */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border-color);
    z-index: 100;

    /* GPU acceleration for smooth scrolling in webview */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Navbar inner wrapper for alignment */
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.brand-logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-divider {
    color: var(--text-secondary);
    opacity: 0.3;
    user-select: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed) var(--easing);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: var(--space-xxl) 5%;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    /* Catch the sliding visual */
    transform: translateZ(0);
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    transform: translateX(50px);
    background: url('hero_medical_waves_premium.png') no-repeat center right;
    background-size: contain;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    /* Soft blend mask for LEFT edge ONLY */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
    mask-image: linear-gradient(to right, transparent 0%, black 35%);
    animation: heroSlideIn 1.5s var(--easing) 0.2s forwards;
    display: none;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
    pointer-events: none;
}

@keyframes heroSlideIn {
    to {
        opacity: 0.8;
        transform: translateX(0);
    }
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .hero-visual {
        display: block;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        /* Purely over the visual */
        max-width: 600px;
        /* Better balance with image on right */
    }
}

.hero-content {
    max-width: 900px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s var(--easing) forwards;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    font-weight: 600;
    text-transform: uppercase;
}

h1 {
    font-size: var(--h1-size);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.description {
    font-size: 1.125rem;
    /* slightly larger lead */
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    /* Reduced from xl */
    max-width: 600px;
    /* improved reading line length */
    font-weight: 300;
    line-height: 1.7;
}

/* CTA Container for stable button positioning */
.cta-container {
    display: flex;
    align-items: center;
    margin-top: var(--space-md);
    /* Explicit spacing */
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--bg-color);
    background-color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-speed) var(--easing);
    white-space: nowrap;
    /* Prevent text wrapping for multi-language support */
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(42, 75, 124, 0.15);
}

.btn-primary svg {
    transition: transform var(--transition-speed) var(--easing);
}

.btn-primary:hover svg {
    transform: translateX(2px) translateY(-2px);
}

/* Features Grid / Products */
/* Features Grid / Products */
.features {
    min-height: 80vh;
    /* Maintain substantial feel */
    padding: var(--space-xl) 5%;
    /* Reduced from huge */
    /* max-width removed to allow full-width background */
    /* margin removed */
    border-top: 1px solid var(--border-color);
    position: relative;

    /* Flexbox Distribution */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Fix for left-aligned header */
    gap: calc(var(--space-lg) * 1.2);
    /* Increased by 20% from space-lg */

    /* Subtle Background */
    background: #e5e5e5 !important;
    /* Matched to Funding/Support section - Forced solid */
}

.section-header {
    text-align: center;
    margin-bottom: 0;
    /* Removed margin to rely purely on flex gap layout */
    max-width: 800px;
}

.section-header h2 {
    font-size: var(--h2-size);
    font-weight: 300;
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    width: 100%;
    max-width: 1400px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Increased min-width for premium feel */
    gap: var(--space-lg);
    width: 100%;
}

.feature-card {
    padding: 2rem 0;
    opacity: 0;
    /* JS will animate */
    transform: translateY(20px);
    width: 100%;
    /* Ensure full width in grid */
}

.feature-card h2 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    /* More visible */
    margin-bottom: 1rem;
    font-weight: 400;
}

.feature-card h3 {
    font-size: var(--h3-size);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.feature-card p {
    color: #444;
    /* Darker text for readability */
    font-size: 1rem;
    font-weight: 400;
    /* Slightly thicker */
    line-height: 1.618;
}

/* Product Card Specifics */
.product-card {
    text-decoration: none;
    color: inherit;
    position: relative;
    /* Base structure: 3px total border area to match the top bar precisely */
    border: 3px solid transparent;
    box-shadow: 0 0 0 1px #E5E5E5, 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Gray outer edge + soft shadow */
    border-radius: 8px;
    padding: var(--space-lg);
    background: #fff;
    transition: all 0.3s var(--easing);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.active-product {
    box-shadow: 0 0 0 1px #E5E5E5, 0 12px 32px rgba(42, 75, 124, 0.08) !important;
}

/* Status Pulse Animation */
.status-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    /* Matches Launch App link color */
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    vertical-align: middle;
}

.status-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.product-card.active-product:hover {
    transform: translateY(-10px) scale(1.005) !important;
    /* Barely perceptible lift + zoom */
    box-shadow:
        0 0 0 1px #E5E5E5,
        /* Keeps the subtle gray outer edge */
        0 30px 60px rgba(42, 75, 124, 0.15);
    z-index: 10;
    /* Ensure it pops over siblings */
}

/* Card Bottom Alignment */
.card-bottom {
    margin-top: auto;
    /* Pushes element to bottom */
    width: 100%;
    display: flex;
    align-items: center;
}

.active-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.active-product:hover .active-link {
    gap: 0.8rem;
}

.locked-product {
    opacity: 0.7;
    /* Significant dimming */
    cursor: default;
    background: #D9D9D9;
    /* Darker than section bg (#e5e5e5) */
    border: 1px solid #CCCCCC;
    box-shadow: none;
    /* Flat look for disabled state */
}

.locked-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #D8D8D8;
    opacity: 1;
}

.lock-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.3rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.locked-product:hover .lock-icon {
    opacity: 0.7;
}

.badge-soon {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    color: #444;
    /* Darker text for contrast */
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    /* Bold */
}

/* About Section */
.about-section {
    padding: var(--space-xl) 5%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.about-content {
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.about-content .subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    font-weight: 600;
    text-transform: uppercase;
}

.about-content h2 {
    font-size: var(--h2-size);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.about-desc {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.about-feature {
    background: #ffffff;
    padding: var(--space-lg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.about-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(69, 104, 148, 0.08);
    border-radius: 50%;
    color: var(--accent);
}

.about-feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.about-feature p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .about-feature {
        padding: var(--space-md);
    }
}

/* Team Section & Mission Section */
.mission-section {
    padding: var(--space-xl) 5%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.team-section {
    padding: var(--space-xl) 5%;
    background: #e5e5e5;
    /* Match Partners section */
    min-height: 80vh;
    /* Ensure it takes substantial space */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    /* Reduced from space-lg */
}

/* Why Now Block */
/* Why Now Block */
.why-now-block {
    max-width: 900px;
    text-align: center;
    padding: 0;
    /* Removed background, border, radius for cleaner look */
}

.why-now-block h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.why-now-block p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.market-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Synergy Block */
.synergy-block {
    max-width: 1200px;
    /* Increased from 1000px */
    /* Match funding-desc-container */
    text-align: center;
    padding: 0;
    margin-bottom: var(--space-md);
    /* Reduced from space-lg */
}

.synergy-block h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    /* Reduced from space-md */
}

.synergy-block>p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    /* Match funding text */
    line-height: 1.8;
    margin-bottom: var(--space-md);
    /* Reduced from space-lg */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.synergy-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    /* Reduced from space-md */
    text-align: left;
    max-width: 1100px;
    /* Increased from 900px */
    margin: 0 auto;
}

.synergy-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    padding: 0.25rem 0;
    /* Reduced from 0.5rem */
    /* Reduced vertical padding */
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    max-width: 1100px;
    /* Increased from 900px */
    margin: 0 auto;
    /* Center the points */
    text-align: left;
}

.synergy-point:hover {
    background: rgba(255, 255, 255, 0.5);
    /* Subtle hover */
    transform: translateX(5px);
}

.synergy-icon {
    color: var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* PARP Block */
.parp-block {
    max-width: 900px;
    width: 100%;
    text-align: center;
    padding: var(--space-md);
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.parp-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.parp-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Team Profiles */
.team-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    width: 100%;
    max-width: 1000px;
}

.team-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s var(--easing);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(42, 75, 124, 0.1);
}

.team-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.team-subrole {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.team-quote {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    padding: 0 1rem;
}

.team-points {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
}

.team-points li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

.team-points li:last-child {
    border-bottom: none;
}

.team-link {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-link:hover {
    color: var(--accent-light);
}

@media (max-width: 768px) {
    .market-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    .team-profiles {
        grid-template-columns: 1fr;
    }
}

/* Newsletter Waitlist Section */
.waitlist-section {
    padding: var(--space-xl) 5%;
    text-align: center;
    background-color: #e5e5e5;
    /* Changed from #fff to Gray */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.section-header-small h3 {
    font-size: var(--h2-size);
    font-weight: 300;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

.btn-secondary {
    background: none;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: #fff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 400;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent);
}

.success-message {
    margin-top: 1rem;
    color: #27ae60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    font-size: 2rem;
}

/* Footer */
/* Footer */
footer {
    padding: var(--space-xl) 5% var(--space-lg);
    border-top: 1px solid #1a1a1a;
    background: #0f0f0f;
    color: #e5e5e5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.85rem;
    gap: 0;
}

/* TOP ROW */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 2rem;
}

/* Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-divider {
    color: var(--accent);
    opacity: 0.6;
    user-select: none;
}

.footer-brand h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* Links */
.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    text-decoration: none;
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* Actions (Lang + Social) */
.footer-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-link {
    color: #888;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: #0077b5;
    /* LinkedIn Blue */
    transform: scale(1.1);
}

/* SEPARATOR */
.footer-separator {
    width: 100%;
    height: 1px;
    background: #262626;
    margin: 0 0 2rem 0;
}

/* BOTTOM ROW */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #666;
    font-size: 0.8rem;
}

.info-divider {
    color: #444;
}

.footer-copyright {
    color: #666;
}

.footer-version {
    color: #444;
    font-family: monospace;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #999;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-brand .brand-divider {
        display: none;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-divider {
        display: none;
    }
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact {
    min-height: 60vh;
    /* Substantial but smaller than features */
    padding: var(--space-xl) 5%;
    background: #e5e5e5;
    /* Changed from radial-gradient to Gray */
    display: flex;
    flex-direction: column;
    /* Ensure vertical stacking */
    justify-content: center;
    align-items: center;
    /* Center horizontally */
    border-top: 1px solid var(--border-color);
}

.contact-content {
    max-width: 700px;
    text-align: center;
}

.contact h2 {
    font-size: var(--h2-size);
    font-weight: 300;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.contact p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 1.125rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 1rem;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s var(--easing);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-link {
    font-size: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--easing);
}

.mobile-nav.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-link.emphasis {
    color: var(--accent);
    font-weight: 500;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hamburger Animation State */
body.menu-open .hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .hamburger-menu span:nth-child(2) {
    transform: rotate(-45deg) translate(1px, -1px);
    /* simplified cross */
}

/* We only used 2 spans in HTML for a cleaner cross, or can use 3. Let's assume 2 for a minimal cross */


/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .brand-logo {
        font-size: 1.4rem;
        white-space: nowrap;
    }

    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .features {
        padding: 4rem 5%;
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .hero {
        padding: 140px 5% var(--space-xl);
        /* Increased top padding, flexible bottom */
        align-items: flex-start;
        /* Align top on mobile */
        min-height: auto;
        /* Remove min-height constraint for embedded webview */
    }

    .description {
        font-weight: 400;
        /* Thicker font for mobile readability */
        color: #444;
        /* Darker gray */
    }

    .contact {
        padding: 5rem 5%;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 5%;
    }

    .footer-brand {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-brand .brand-divider {
        display: none;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .footer-meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-utils {
        flex-wrap: wrap;
        justify-content: center;
    }

    .link-divider {
        display: inline;
    }
}

/* Coming Soon Modal Styles */
.coming-soon-modal {
    text-align: center;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.coming-soon-modal h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.coming-soon-modal p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 75, 124, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    left: 50%;
    top: 50%;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* Language Toggle Switch */
.lang-toggle {
    padding: 0.5rem 1rem;
    background: #ffffff;
    /* White bg for dark footer */
    color: #111111;
    /* Dark text */
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-option {
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-option.active {
    opacity: 1;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lang-option:hover {
    opacity: 0.8;
}

.lang-divider {
    opacity: 0.5;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    /* Changed from fixed to absolute - doesn't affect viewport */
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 1.5rem 5%;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s var(--easing);
    border-top: 2px solid var(--accent);

    /* Better visibility management */
    display: none;
    /* Entirely remove from layout when hidden */
}

.cookie-banner.show {
    display: block;
    /* Render when active */
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.cookie-header p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.cookie-always-active {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(42, 75, 124, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.cookie-category-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.cookie-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-checkbox:checked+.cookie-slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

.cookie-checkbox:checked+.cookie-slider:before {
    transform: translateX(26px);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Left align for better UX */
    width: 100%;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    /* Slightly larger for mobile */
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Cookie banner specific button overrides */
.cookie-banner .btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.cookie-banner .btn-primary:hover {
    background-color: #3a5b8c;
}

.cookie-banner .btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.cookie-banner .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.cookie-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* EU Funding Section */
.funding-section {
    min-height: 60vh;
    padding: var(--space-xl) 5%;
    background-color: #ffffff;
    /* Darker gray for better contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.funding-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.funding-content .subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    font-weight: 600;
    text-transform: uppercase;
}

.funding-content h2 {
    font-size: var(--h2-size);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    /* Reduced margin */
    color: var(--text-primary);
}

.funding-desc-container {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.funding-desc-container p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 400;
}

.funding-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
}

.eu-logos {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 200px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.eu-logos:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .funding-section {
        min-height: 50vh;
    }

    .funding-content h2 {
        font-size: 1.8rem;
    }

    .eu-logos {
        max-height: 140px;
    }
}