:root {
    /* Color System */
    --primary: #0A58CA;       /* Medical Blue */
    --secondary: #FFFFFF;     /* Clean White */
    --accent: #20C997;        /* Teal */
    --support: #0DCAF0;       /* Soft Cyan */
    --highlight: #A7F3D0;     /* Fresh Mint */
    --bg-color: #F8F9FA;      /* Ultra Light Gray */
    
    --text-dark: #2B343A;
    --text-muted: #6C757D;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* UI Variables */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(10, 88, 202, 0.08);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Soft scientific grid background pattern */
    background-image: url('assets/images/clean-scientific-grid-pattern-background.png');
    background-size: 60px 60px;
}

/* Generic Fallback for the background pattern if SVG image isn't physically created yet */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
      linear-gradient(to right, rgba(13, 202, 240, 0.05) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(13, 202, 240, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1A75FF 100%);
    color: var(--secondary);
    box-shadow: 0 4px 14px rgba(10, 88, 202, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 88, 202, 0.4);
    color: var(--secondary);
}

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

.btn-secondary:hover {
    background: var(--support);
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(13, 202, 240, 0.15) 0%, transparent 50%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(32, 201, 151, 0.1);
    color: var(--accent);
    border: 1px solid rgba(32, 201, 151, 0.2);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.image-wrapper {
    border-radius: var(--border-radius-lg);
    padding: 16px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    background: #E8F4F8; /* Fallback */
}

/* Floating Animations */
.floating-molecule {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--support) 0%, transparent 70%);
    opacity: 0.4;
    animation: float 15s infinite ease-in-out;
    z-index: 1;
}

.molecule-1 {
    width: 300px; height: 300px;
    top: 10%; left: -5%;
    animation-delay: 0s;
}
.molecule-2 {
    width: 400px; height: 400px;
    bottom: -10%; right: -5%;
    background: radial-gradient(circle, var(--highlight) 0%, transparent 70%);
    animation-delay: -5s;
}
.molecule-3 {
    width: 150px; height: 150px;
    top: 40%; right: 40%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Section Headers */
.section-header {
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Game Section */
.game-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.8) 100%);
}

.game-wrapper {
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid var(--support);
    box-shadow: 0 24px 48px rgba(10, 88, 202, 0.12);
}

.game-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(32, 201, 151, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(32, 201, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 201, 151, 0); }
}

.status-info {
    color: var(--text-muted);
}

.game-frame-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: #000;
    position: relative;
}

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

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--support);
    box-shadow: 0 16px 32px rgba(13, 202, 240, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(10, 88, 202, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-muted);
}

/* Research Section */
.research-section {
    padding: 100px 0;
    background: radial-gradient(circle at center left, rgba(32, 201, 151, 0.08) 0%, transparent 60%);
}

.research-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.research-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
    padding: 12px;
    background: #E8F4F8; /* Fallback */
}

.clean-list {
    list-style: none;
    margin-top: 24px;
}

.clean-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.clean-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Internal Pages */
.page-section {
    padding: 160px 0 100px 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-content {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--primary);
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(13, 202, 240, 0.4);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.15);
    background: #FFFFFF;
}

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

/* Footer */
.site-footer {
    width: 100%;
}

.footer-nav-bar {
    background: #FFFFFF;
    padding: 24px 0;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-list li {
    padding: 0 16px;
    border-right: 1px solid #C9E0EA;
}

.footer-nav-list li:last-child {
    border-right: none;
}

.footer-nav-list a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav-list a:hover {
    color: var(--accent);
}

.footer-brand-area {
    background: #EAF6FB;
    padding: 64px 0;
}

.footer-logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-logo-center svg {
    display: block;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 16px auto;
}

.footer-support {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.125rem;
}

.footer-bottom-bar {
    background: #D7ECF5;
    padding: 24px 0;
    color: #6B7C87;
    font-size: 0.875rem;
}

.footer-bottom-bar p {
    margin-bottom: 8px;
}

.footer-bottom-bar p:last-child {
    margin-bottom: 0;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .research-container {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 40px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        display: none;
    }
    
    .game-wrapper {
        padding: 12px;
    }
    
    .game-status-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .page-content {
        padding: 24px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .footer-nav-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-nav-list li {
        border-right: none;
        padding: 0;
    }
}