/* ============================================================
   OncoScan — Clean Medical Theme
   Color palette: Teal (#0d9488), White, Slate Gray
   Inspired by SkinCheck.ai — minimal, professional, medical
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #ccfbf1;
    --teal-50: #f0fdfa;
    --bg: #ffffff;
    --bg-subtle: #f8fafb;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --red: #ef4444;
    --orange: #f59e0b;
    --green: #22c55e;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.nav-logo-text {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 400;
}

.nav-logo-text strong {
    font-weight: 700;
    color: var(--teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13,148,136,0.3);
}

.nav-btn svg {
    width: 15px;
    height: 15px;
}

/* ---- Hero ---- */
.hero {
    padding: 120px 24px 80px;
    background: linear-gradient(165deg, var(--bg) 0%, var(--teal-50) 50%, var(--teal-light) 100%);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-accent {
    color: var(--teal);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--teal);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,148,136,0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--teal-50);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--teal-dark);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    max-width: 420px;
}

.hero-card img {
    border-radius: var(--radius);
}

/* ---- Facts Banner ---- */
.facts-banner {
    background: linear-gradient(135deg, var(--teal-50), #e0f2f1);
    padding: 72px 24px;
}

.facts-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.fact-highlight h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.fact-desc p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.fact-desc strong {
    color: var(--text);
}

/* ---- Features ---- */
.features {
    padding: 80px 24px;
    background: var(--bg);
}

.features-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 24px rgba(13,148,136,0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    border-radius: 12px;
    color: var(--teal);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- About Section ---- */
.about {
    padding: 80px 24px;
    background: var(--bg-subtle);
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    margin-bottom: 10px;
}

.about-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.about-card-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal-light);
    line-height: 1;
    margin-bottom: 12px;
}

.about-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.about-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-high {
    background: #fef2f2;
    color: #dc2626;
}

.tag-moderate {
    background: #fffbeb;
    color: #d97706;
}

/* ---- Scan Section ---- */
.scan-section {
    padding: 80px 24px;
    background: var(--bg);
}

.scan-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.scan-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.scan-info > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.scan-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.step strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.step p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.scan-disclaimer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    color: #92400e;
}

.scan-disclaimer svg {
    min-width: 18px;
    color: #d97706;
    margin-top: 2px;
}

.scan-disclaimer p {
    font-size: 0.82rem;
    line-height: 1.55;
}

/* ---- Scan Form Card ---- */
.scan-form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 88px;
}

.form-card-header {
    margin-bottom: 24px;
}

.form-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-card-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-subtle);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Upload Area */
.upload-container {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.upload-container:hover {
    border-color: var(--teal);
    background: var(--teal-50);
}

.upload-container.highlight {
    border-color: var(--teal);
    background: var(--teal-50);
    transform: scale(1.01);
}

.upload-container input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.upload-placeholder svg {
    color: var(--teal);
    margin-bottom: 12px;
    opacity: 0.7;
}

.upload-placeholder p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.upload-placeholder p span {
    color: var(--teal);
    font-weight: 600;
}

.upload-placeholder small {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.image-preview {
    display: none;
}

.image-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 8px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 4px;
}

.btn-submit:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,148,136,0.25);
}

/* ---- Results Section ---- */
.results-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.results-section.active {
    display: flex;
}

.results-card {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 1;
}

.results-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.close-results {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 6px;
    transition: all var(--transition);
}

.close-results:hover {
    background: var(--border-light);
    color: var(--text);
}

.results-content {
    padding: 24px;
}

/* Result items inside results-content (dynamically injected by JS) */
.result-status {
    margin-bottom: 20px;
}

.result-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-item {
    margin-bottom: 20px;
}

.result-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.result-value {
    font-size: 0.92em;
    line-height: 1.6;
    color: var(--text-secondary);
}

.malignancy-bar-container {
    width: 100%;
    height: 10px;
    background: var(--border-light);
    border-radius: 100px;
    overflow: hidden;
    margin: 10px 0 8px;
}

.malignancy-bar {
    height: 100%;
    border-radius: 100px;
    transition: width 0.8s ease;
}

.top3-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.top3-item:last-child {
    border-bottom: none;
}

.top3-name {
    font-size: 0.88rem;
    font-weight: 500;
}

.top3-bar-container {
    width: 100px;
    height: 6px;
    background: var(--border-light);
    border-radius: 100px;
    overflow: hidden;
}

.top3-bar {
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s ease;
}

.top3-prob {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    min-width: 40px;
    text-align: right;
}

.recommendation {
    background: var(--teal-50);
    border: 1px solid var(--teal-light);
    border-radius: var(--radius);
    padding: 18px;
}

.recommendation-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 10px;
}

.recommendation ul {
    list-style: none;
    margin-bottom: 14px;
}

.recommendation ul li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 3px 0;
    padding-left: 18px;
    position: relative;
}

.recommendation ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    padding-top: 10px;
    border-top: 1px solid rgba(13,148,136,0.15);
}

/* ---- Model Metrics Modal ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 8px;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--border-light);
    color: var(--text);
}

.modal-body {
    padding: 28px;
}

.metric-section {
    margin-bottom: 32px;
}

.metric-section:last-child {
    margin-bottom: 0;
}

.metric-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.metric-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-top: 12px;
}

.metric-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mbadge {
    padding: 5px 14px;
    background: var(--teal-50);
    color: var(--teal-dark);
    border: 1px solid var(--teal-light);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
}

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

.metric-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}

.metric-box.highlight-box {
    background: var(--teal-50);
    border-color: var(--teal-light);
}

.metric-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--teal-dark);
    margin-bottom: 4px;
}

.highlight-box .metric-val {
    color: var(--teal);
}

.metric-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Metrics Table */
.table-scroll {
    overflow-x: auto;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.metrics-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-subtle);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.metrics-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.metrics-table td small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 400;
}

.row-malignant td:first-child {
    border-left: 3px solid var(--red);
}

.auc-highlight {
    font-weight: 700;
    color: var(--teal) !important;
}

.metrics-table tfoot td {
    border-top: 2px solid var(--border);
    background: var(--bg-subtle);
}

.metrics-table.compact td,
.metrics-table.compact th {
    padding: 7px 12px;
}

.row-recommended {
    background: var(--teal-50);
}

.row-recommended td {
    color: var(--teal-dark);
}

/* Training Grid */
.training-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.train-item {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
}

.train-item:nth-child(odd) {
    border-right: 1px solid var(--border-light);
}

.train-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.train-val {
    font-size: 0.84rem;
    color: var(--text);
    font-weight: 500;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
    padding: 32px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
}

.footer-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-inner p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ---- Loading Overlay ---- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.loader {
    position: relative;
    width: 56px;
    height: 56px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--teal-dark);
    animation-duration: 0.9s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--teal-light);
    animation-duration: 1.5s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.loading-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.loading-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .facts-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-inner {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .scan-inner {
        grid-template-columns: 1fr;
    }

    .scan-form-card {
        position: static;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    .train-item:nth-child(odd) {
        border-right: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-links a {
        display: none;
    }

    .modal {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}
