@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color System */
    --medical-white: #F8FAFC;
    --clinical-gray: #EEF4F8;
    --medical-blue: #2563EB;
    --health-cyan: #06B6D4;
    --surgical-teal: #14B8A6;
    --clean-white: #FFFFFF;
    --slate-gray: #64748B;
    --accent-silver: #CBD5E1;
    --text-main: #0F172A;
    
    /* Card / Glass System */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(37, 99, 235, 0.15);
    --glass-blur: blur(14px);
    
    /* Layout */
    --nav-width: 110px;
    --nav-expanded-width: 240px;
    --max-width: 1280px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    
    /* Spacing */
    --spacing-desktop: 120px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--clinical-gray);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
p { color: var(--slate-gray); font-size: 1.125rem; font-weight: 400; }

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 3rem; }
.mt-8 { margin-top: 3rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--medical-blue), #1D4ED8);
    color: var(--clean-white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #3B82F6, var(--medical-blue));
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--accent-silver);
    color: var(--medical-blue);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--clean-white);
    border-color: var(--health-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Legal Banner */
.legal-top-banner {
    background-color: var(--text-main);
    color: var(--clean-white);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
    position: relative;
    z-index: 2000;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
    z-index: 9999;
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}

.cookie-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-main);
}

.cookie-content a {
    color: var(--medical-blue);
    text-decoration: underline;
    font-weight: 600;
}

/* Floating Navigation Frame */
.floating-nav {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem 0.75rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: width 0.3s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--slate-gray);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    width: 80px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.8;
}

.nav-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--medical-blue);
    transform: translateY(-2px);
}

.nav-item.active {
    background: var(--medical-blue);
    color: var(--clean-white);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.3), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nav-item.active svg {
    stroke: var(--clean-white);
}

/* Page Wrapper */
.page-wrapper {
    margin-left: calc(var(--nav-width) + 48px);
    position: relative;
}

/* Header */
.top-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--medical-blue);
    text-decoration: none;
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    color: var(--health-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--medical-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--medical-blue);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Main Sections */
section {
    padding: var(--spacing-desktop) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Game Section */
.game-section {
    background: var(--medical-white);
    position: relative;
}

.game-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.game-frame-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.feature-card {
    grid-column: span 3;
    background: var(--clean-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--clinical-gray);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--clinical-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--medical-blue);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

/* About Section */
.about-section {
    background: var(--medical-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

/* Footer */
footer {
    background: var(--clean-white);
    border-top: 1px solid var(--clinical-gray);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--slate-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--medical-blue);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--clinical-gray);
    text-align: center;
    color: var(--slate-gray);
    font-size: 0.875rem;
}

.disclaimer {
    background: var(--clinical-gray);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid var(--accent-silver);
}

/* Content Pages (Legal/Contact) */
.content-page {
    padding-top: 120px;
    min-height: calc(100vh - 300px);
}

.content-box {
    background: var(--clean-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    border: 1px solid var(--clinical-gray);
}

.content-box h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--medical-blue);
}

.content-box p, .content-box ul {
    margin-bottom: 1.25rem;
}

.content-box ul {
    padding-left: 1.5rem;
    color: var(--slate-gray);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--accent-silver);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--medical-white);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--clean-white);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-card { grid-column: span 6; }
}

@media (max-width: 992px) {
    section { padding: var(--spacing-tablet) 0; }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Transform left nav to bottom bar */
    .floating-nav {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        width: 90%;
        max-width: 400px;
        padding: 0.75rem;
        justify-content: space-around;
        gap: 0;
        border-radius: 40px;
    }
    
    .nav-item {
        width: auto;
        padding: 0.5rem;
    }
    
    .nav-item span {
        display: none; /* Hide text on small mobile for space */
    }
    
    .nav-item svg {
        margin-bottom: 0;
    }
    
    .page-wrapper {
        margin-left: 0;
        padding-bottom: 100px; /* Space for bottom nav */
    }
    
    .top-header {
        padding: 1.5rem;
    }
    
    .top-header .btn {
        display: none; /* Hide top CTA on small mobile to save space */
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card { grid-column: span 12; }
    
    .cookie-notice {
        bottom: 100px; /* Above mobile nav */
        left: 12px;
        right: 12px;
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}