/* =============================================
   PathologyReport.AI - Static Site Stylesheet
   ============================================= */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    line-height: 1.65;
    background: #fff;
    font-size: 16px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

a {
    color: #1a56db;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #0f3a8e;
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    background: #fff;
    border-bottom: 1px solid #eaedf3;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav-brand:hover {
    color: #0f172a;
}
.beta-tag {
    font-weight: 700;
    font-size: 0.75rem;
    color: #6366f1;
    vertical-align: super;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}
.nav-links li a {
    padding: 8px 18px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    display: inline-block;
}
.nav-links li a:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.nav-cta {
    background: #1a56db !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}
.nav-cta:hover {
    background: #1447b8 !important;
    color: #fff !important;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #334155;
    padding: 4px;
}

/* =============================================
   Hero (coverflow + branding in one section)
   ============================================= */
.hero {
    background: linear-gradient(170deg, #f0f4ff 0%, #e4eaf8 40%, #dce3f0 100%);
    text-align: center;
    padding: 36px 0 44px;
    overflow: hidden;
    border-bottom: 1px solid #d4dbe8;
}
.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 28px;
}
.logo-panel {
    display: inline-block;
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.hero-logo {
    max-width: 120px;
    width: 100%;
    display: block;
}
.hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.hero-subtitle {
    font-size: 0.95rem;
    color: #475569;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Coverflow (inside hero) */
.coverflow-viewport {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    perspective: 1200px;
}
.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.coverflow-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 560px;
    transform: translate(-50%, -50%) scale(0.55) rotateY(0deg);
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                z-index 0s;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
    filter: brightness(0.7);
}
.coverflow-slide img {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Active (centre) */
.coverflow-slide.active {
    transform: translate(-50%, -50%) scale(1) rotateY(0deg) translateZ(0);
    opacity: 1;
    z-index: 10;
    cursor: default;
    filter: brightness(1);
}

/* Immediate neighbours */
.coverflow-slide.prev {
    transform: translate(-50%, -50%) translateX(-380px) scale(0.72) rotateY(30deg);
    opacity: 0.8;
    z-index: 5;
    filter: brightness(0.85);
}
.coverflow-slide.next {
    transform: translate(-50%, -50%) translateX(380px) scale(0.72) rotateY(-30deg);
    opacity: 0.8;
    z-index: 5;
    filter: brightness(0.85);
}

/* Far neighbours (hidden for 3-slide set, but defined for extensibility) */
.coverflow-slide.far-prev {
    transform: translate(-50%, -50%) translateX(-600px) scale(0.5) rotateY(45deg);
    opacity: 0;
    z-index: 1;
}
.coverflow-slide.far-next {
    transform: translate(-50%, -50%) translateX(600px) scale(0.5) rotateY(-45deg);
    opacity: 0;
    z-index: 1;
}

/* Dots */
.coverflow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 28px;
}
.coverflow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    padding: 0;
}
.coverflow-dot:hover {
    border-color: #475569;
    transform: scale(1.15);
}
.coverflow-dot.active {
    background: #1a56db;
    border-color: #1a56db;
}

/* =============================================
   Features
   ============================================= */
.features {
    padding: 48px 28px;
    background: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 24px;
    transition: box-shadow 0.25s, transform 0.2s, border-color 0.25s;
}
.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    background: #eef2ff;
    color: #4f46e5;
}
.feature-card:nth-child(1) .feature-icon { background: #fef3c7; color: #d97706; }
.feature-card:nth-child(2) .feature-icon { background: #eef2ff; color: #4f46e5; }
.feature-card:nth-child(3) .feature-icon { background: #d1fae5; color: #059669; }
.feature-card:nth-child(4) .feature-icon { background: #e0e7ff; color: #3730a3; }
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 650;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.feature-card p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
}

/* =============================================
   Decoder CTA
   ============================================= */
.decoder-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1a56db 100%);
    padding: 52px 28px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.decoder-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-box {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.cta-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta-box p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}
.cta-note {
    font-style: italic;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 32px !important;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-primary {
    background: #fff;
    color: #1a56db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.btn-primary:hover {
    background: #f8faff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: #1a56db;
}
.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

/* =============================================
   Contact
   ============================================= */
.contact {
    padding: 52px 28px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.contact h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.contact > .container > p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 32px;
}
.contact-details .btn-primary {
    background: #1a56db;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.25);
}
.contact-details .btn-primary:hover {
    background: #1447b8;
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.35);
    color: #fff;
}
.contact-sub {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 20px 28px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
}
.footer-links a {
    color: #64748b;
    font-size: 0.8rem;
    transition: color 0.15s;
}
.footer-links a:hover {
    color: #1a56db;
}
.footer-links span {
    margin: 0 10px;
    color: #cbd5e1;
}

/* =============================================
   Page Header (About, Examples, Terms, Privacy)
   ============================================= */
.page-header {
    background: linear-gradient(160deg, #f8faff 0%, #eef2ff 50%, #e0e7ff 100%);
    padding: 52px 28px;
    text-align: center;
    border-bottom: 1px solid #e0e7ff;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.page-header p {
    color: #475569;
}

/* =============================================
   Content Sections (About, Terms, Privacy)
   ============================================= */
.content-section {
    padding: 56px 28px;
}
.content-section:nth-child(even) {
    background: #f8fafc;
}
.content-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.content-section h3 {
    font-size: 1.15rem;
    font-weight: 650;
    color: #0f172a;
    margin-bottom: 12px;
}
.content-section p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 14px;
}

/* =============================================
   Tables
   ============================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.85rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.data-table th {
    background: #0f172a;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.55;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr {
    transition: background 0.15s;
}
.data-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.data-table tbody tr:hover {
    background: #eef2ff;
}

/* References Table */
.ref-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.82rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.ref-table th {
    background: #f1f5f9;
    padding: 11px 14px;
    text-align: left;
    font-weight: 650;
    border-bottom: 2px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.82rem;
}
.ref-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    line-height: 1.55;
}
.ref-table tbody tr:last-child td {
    border-bottom: none;
}

/* =============================================
   Examples Page - Case Cards
   ============================================= */
.case-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s;
}
.case-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.case-header {
    background: #1e293b;
    color: #fff;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
    letter-spacing: -0.01em;
}
.case-header:hover {
    background: #334155;
}
.case-header .toggle-icon {
    font-size: 0.85rem;
    transition: transform 0.3s;
    opacity: 0.7;
}
.case-header.open .toggle-icon {
    transform: rotate(180deg);
}
.case-body {
    display: none;
    padding: 24px;
}
.case-body.open {
    display: block;
}
.case-body h4 {
    font-size: 0.92rem;
    font-weight: 650;
    color: #0f172a;
    margin: 20px 0 10px;
}
.case-body h4:first-child {
    margin-top: 0;
}
.case-body .report-text {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #334155;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.summary-header {
    background: #475569;
    color: #fff;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}
.summary-header:hover {
    background: #64748b;
}
.summary-header .toggle-icon {
    font-size: 0.85rem;
    transition: transform 0.3s;
    opacity: 0.7;
}
.summary-header.open .toggle-icon {
    transform: rotate(180deg);
}
.summary-body {
    display: none;
    padding: 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.summary-body.open {
    display: block;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px 20px 20px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        gap: 2px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li a {
        padding: 10px 16px;
        width: 100%;
    }

    .hero {
        padding: 24px 0 32px;
    }
    .hero h1 {
        font-size: 1.45rem;
    }
    .hero-logo {
        max-width: 100px;
    }
    .logo-panel {
        padding: 12px 16px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .hero-subtitle {
        font-size: 0.88rem;
    }

    .coverflow-viewport {
        height: 260px;
    }
    .coverflow-slide {
        width: 340px;
    }
    .coverflow-slide.prev {
        transform: translate(-50%, -50%) translateX(-220px) scale(0.65) rotateY(25deg);
    }
    .coverflow-slide.next {
        transform: translate(-50%, -50%) translateX(220px) scale(0.65) rotateY(-25deg);
    }

    .features {
        padding: 36px 20px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .decoder-cta {
        padding: 40px 20px;
    }
    .cta-box h2 {
        font-size: 1.3rem;
    }

    .contact {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .content-section {
        padding: 40px 20px;
    }

    .data-table {
        font-size: 0.78rem;
    }
    .data-table th, .data-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .coverflow-viewport {
        height: 200px;
    }
    .coverflow-slide {
        width: 240px;
    }
    .coverflow-slide.prev {
        transform: translate(-50%, -50%) translateX(-140px) scale(0.6) rotateY(20deg);
    }
    .coverflow-slide.next {
        transform: translate(-50%, -50%) translateX(140px) scale(0.6) rotateY(-20deg);
    }
    .hero h1 {
        font-size: 1.25rem;
    }
    .case-header, .summary-header {
        font-size: 0.82rem;
        padding: 14px 16px;
    }
}
