@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,700&family=Playfair+Display+SC:wght@400;700&display=swap');

/* ─── Reset & Base ────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --border: 2px solid #ffffff;
    --border-dark: 2px solid #000000;
    --font: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* ─── Scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #fff; }

/* ─── Navigation ─────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #000;
    z-index: 1000;
    padding: 0 5%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 68px;
}

.logo {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-right: 28px;
    margin-right: 28px;
}

.logo i { font-size: 18px; }

.nav-links {
    display: flex;
    list-style: none;
    align-items: stretch;
    gap: 0;
}

.nav-links li { display: flex; align-items: stretch; }

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-family: var(--font);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 0 22px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #fff;
    color: #000;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
    padding-left: 28px;
}

.nav-cta {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 24px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-cta:hover { background: #000000; color: #ffffff; outline: 2px solid #ffffff; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 68px;
}

/* Carousel */
.carousel { position: absolute; inset: 0; }

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.6s ease;
}

.carousel-slide.active { opacity: 1; }

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 780px;
    text-align: center;
}

.hero-title {
    font-family: var(--font);
    font-size: 60px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 48px;
    animation: fadeIn 0.9s ease 0.4s backwards;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    align-items: center;
    animation: fadeIn 0.9s ease 0.9s backwards;
}

.btn-primary {
    background: #ffffff;
    color: #000;
    border: 2px solid #fff;
    padding: 16px 36px;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.25s, color 0.25s;
}

.btn-primary:hover { background: #000000; color: #ffffff; }

.btn-ghost {
    background: #ffffff;
    color: #000000;
    border: 2px solid #fff;
    padding: 16px 36px;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.25s, color 0.25s;
}

.btn-ghost:hover { background: #000000; color: #ffffff; }

/* ─── Upload Section ─────────────────────────────────────────────────── */
.upload-section {
    background: #fff;
    padding: 80px 5%;
}

.upload-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-section-header {
    margin-bottom: 48px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.upload-section-num {
    font-family: var(--font);
    font-size: 72px;
    font-weight: 800;
    color: #000;
    line-height: 1;
    opacity: 0.08;
    flex-shrink: 0;
}

.upload-section-text { flex: 1; }

.upload-section-title {
    font-family: var(--font);
    font-size: 36px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.upload-section-sub {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: #000;
}

.upload-area {
    border: 2px dashed #000;
    padding: 56px 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.25s;
    position: relative;
}

.upload-area.drag-over {
    background: #000 !important;
}

.upload-area.drag-over * { color: #fff !important; }

.upload-icon {
    font-size: 52px;
    color: #000;
    margin-bottom: 20px;
    display: block;
}

.upload-area h3 {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.upload-area > p, .upload-area .upload-sub {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: #000;
    margin-bottom: 32px;
}

.upload-btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 16px 40px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.25s, color 0.25s;
}

.upload-btn:hover { background: #fff; color: #000; border-color: #000; }

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* File info + actions */
.file-info {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid #000;
    margin-top: 24px;
    font-family: var(--font);
    font-size: 15px;
    color: #000;
}

.file-info i { font-size: 20px; }
.file-info #fileName { flex: 1; font-style: italic; }

.remove-file {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 8px 16px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.remove-file:hover { background: #fff; color: #000; }

/* Image preview */
.image-preview-container {
    display: none;
    margin-top: 24px;
    border: 2px solid #000;
    position: relative;
}

.image-preview-container img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
    background: #f0f0f0;
}

/* Analyze button */
.analyze-btn-wrap {
    display: none;
    margin-top: 24px;
}

.analyze-btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 18px 0;
    width: 100%;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.25s, color 0.25s;
}

.analyze-btn:hover { background: #fff; color: #000; border-color: #000; }
.analyze-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Section Shared ─────────────────────────────────────────────────── */
section { padding: 96px 5%; }

.container { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.section-eyebrow-line {
    width: 40px;
    height: 2px;
}

.section-eyebrow-text {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-sub {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 60px;
}

/* ─── About Section ──────────────────────────────────────────────────── */
.about-section {
    background: #000;
}

.about-section .section-eyebrow-line { background: #fff; }
.about-section .section-eyebrow-text { color: #fff; }
.about-section .section-title { color: #fff; }
.about-section .section-sub { color: #fff; }

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 72px;
    align-items: start;
}

.about-text-col p {
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 24px;
}

.about-text-col p:last-child { margin-bottom: 0; }

.about-quote {
    border-left: 2px solid #fff;
    padding: 24px 32px;
    font-family: var(--font);
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    color: #fff;
}

/* ─── Disease Grid (single row) ──────────────────────────────────────── */
.disease-grid {
    display: flex;
    flex-wrap: nowrap;
    border: 2px solid #fff;
}

.disease-card {
    flex: 1;
    min-width: 0;
    padding: 36px 28px;
    border-right: 2px solid #fff;
    transition: background 0.3s;
    position: relative;
}

.disease-card:last-child { border-right: none; }

.disease-card:hover { background: #fff; }

.disease-card:hover .disease-card-tag,
.disease-card:hover .disease-card-icon,
.disease-card:hover h3,
.disease-card:hover p { color: #000; border-color: #000; }

.disease-card:hover .disease-card-tag { border-color: #000; color: #000; }

.disease-card-tag {
    display: inline-block;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 2px solid #fff;
    color: #fff;
    margin-bottom: 20px;
    transition: color 0.3s, border-color 0.3s;
}

.disease-card-icon {
    font-size: 32px;
    color: #fff;
    display: block;
    margin-bottom: 18px;
    transition: color 0.3s;
}

.disease-card h3 {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
    transition: color 0.3s;
}

.disease-card p {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.75;
    transition: color 0.3s;
}

/* ─── Features Section ───────────────────────────────────────────────── */
.features-section {
    background: #fff;
}

.features-section .section-eyebrow-line { background: #000; }
.features-section .section-eyebrow-text { color: #000; }
.features-section .section-title { color: #000; }
.features-section .section-sub { color: #000; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid #000;
    gap: 0;
}

.feature-card {
    padding: 36px 28px;
    border-right: 2px solid #000;
    transition: background 0.3s;
}

.feature-card:last-child { border-right: none; }

.feature-card:hover { background: #000; }

.feature-card:hover .feature-icon,
.feature-card:hover .feature-icon i,
.feature-card:hover h3,
.feature-card:hover p { color: #fff; border-color: #fff; }

.feature-card:hover .feature-icon i {
    color: #fff;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: border-color 0.3s;
}

.feature-icon i {
    font-size: 20px;
    color: #000;
    transition: color 0.3s;
}

.feature-card h3 {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.2;
    transition: color 0.3s;
}

.feature-card p {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: #000;
    line-height: 1.7;
    transition: color 0.3s;
}

/* ─── How It Works ───────────────────────────────────────────────────── */
.how-section {
    background: #000;
}

.how-section .section-eyebrow-line { background: #fff; }
.how-section .section-eyebrow-text { color: #fff; }
.how-section .section-title { color: #fff; }
.how-section .section-sub { color: #fff; }

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid #fff;
}

.step-item {
    padding: 40px 28px;
    border-right: 2px solid #fff;
    position: relative;
}

.step-item:last-child { border-right: none; }

.step-num {
    font-family: var(--font);
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 20px;
}

.step-icon {
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
    display: block;
}

.step-item h3 {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.step-item p {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.7;
}

/* ─── Team Section ───────────────────────────────────────────────────── */
.team-section {
    background: #000000;
}

.team-section .section-eyebrow-line { background: #ffffff; }
.team-section .section-eyebrow-text { color: #ffffff; }
.team-section .section-title { color: #ffffff; }
.team-section .section-sub { color: #ffffff; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border: 2px solid #ffffff;
    gap: 0;
}

.team-card {
    padding: 40px 28px;
    border-right: 2px solid #ffffff;
    text-align: center;
    transition: background 0.3s;
}

.team-card:last-child { border-right: none; }

.team-card:hover { background: #ffffff; }

.team-card:hover .team-image,
.team-card:hover h3,
.team-card:hover .team-role,
.team-card:hover .team-bio { color: #000000; border-color: #000000; }

.team-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    transition: border-color 0.3s;
}

.team-image img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.team-role {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 14px;
    transition: color 0.3s;
}

.team-bio {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    color: #ffffff;
    line-height: 1.7;
    transition: color 0.3s;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
    background: #000;
    padding: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-col {
    padding: 56px 40px;
}

.footer-col:last-child { border-right: none; }

.footer-logo {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-desc {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.75;
    max-width: 280px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 14px; }

.footer-col a {
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: font-style 0.2s;
}

.footer-col a:hover { font-style: italic; }

.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-links a {
    width: 42px;
    height: 42px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.social-links a:hover { background: #fff; color: #000; }

.footer-bottom {
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    color: #fff;
}

/* ─── Notification ───────────────────────────────────────────────────── */
.notification {
    position: fixed;
    top: 88px;
    right: 24px;
    padding: 16px 22px;
    border: 2px solid #fff;
    background: #000;
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    max-width: 340px;
}

/* ─── Animations ─────────────────────────────────────────────────────── */
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}

/* ─── Scroll Reveal ──────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid .feature-card:nth-child(2) { border-right: none; }
    .features-grid .feature-card:nth-child(3) { border-top: 2px solid #000; }
    .features-grid .feature-card:nth-child(4) { border-top: 2px solid #000; border-right: none; }

    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .step-item:nth-child(2) { border-right: none; }
    .step-item:nth-child(3) { border-top: 2px solid #fff; }
    .step-item:nth-child(4) { border-top: 2px solid #fff; border-right: none; }

    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .disease-grid { flex-wrap: wrap; }
    .disease-card { flex: 1 1 50%; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
    .about-intro { grid-template-columns: 1fr; }
    .hero-title { font-size: 52px; }
    .kinetic-container { min-width: 280px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 42px; }
    .section-title { font-size: 34px; }
    .footer-main { grid-template-columns: 1fr; }
}