* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* The individual dot style */
.floating-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6; /* Higher opacity to be visible */
    filter: blur(1px); /* Soften the edges */
    animation: floatUp 25s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.nav-link {
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.proton-orbit-wrapper {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: -8px;
}

.orbit-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid #2563eb;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.orbit-proton {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    animation: rotate-proton 3s linear infinite;
}

@keyframes rotate-proton {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(18px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(18px);
    }
}

.hero-section {
    position: relative;
    padding: 60px 24px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.lab-interface-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.scanning-area {
    position: relative;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    min-height: 160px;
    overflow: hidden;
}

.text-line,
.text-line-short {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.text-line-short {
    width: 80%;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    animation: scanning 3s ease-in-out infinite;
}

@keyframes scanning {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(160px);
    }
    100% {
        transform: translateY(0);
    }
}

.card-footer {
    margin-top: 16px;
    text-align: center;
}

.citation-node {
    position: absolute;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    animation: float 3s ease-in-out infinite;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.node-icon {
    font-size: 1rem;
}

.node-badge {
    background: #2563eb;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.node-1 {
    top: 40px;
    left: -20px;
    animation-delay: 0s;
}

.node-2 {
    top: 40px;
    right: -20px;
    animation-delay: 0.5s;
}

.node-3 {
    bottom: 40px;
    left: -20px;
    animation-delay: 1s;
}

.node-4 {
    bottom: 40px;
    right: -20px;
    animation-delay: 1.5s;
}

.node-5 {
    top: 50%;
    left: -140px;
    transform: translateY(-50%);
    animation-delay: 0.3s;
}

.node-6 {
    top: 50%;
    right: -140px;
    transform: translateY(-50%);
    animation-delay: 0.8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.trust-bar {
    padding: 64px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 64px;
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.institution-logo {
    font-size: 1.75rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.institution-logo:hover {
    color: #64748b;
}

.mit-logo {
    font-family: 'Helvetica', sans-serif;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.stanford-logo {
    font-family: 'Georgia', serif;
    font-weight: 600;
    font-style: italic;
}

.oxford-logo {
    font-family: 'Garamond', serif;
    font-weight: 500;
}

.cambridge-logo {
    font-family: 'Times New Roman', serif;
    font-weight: 600;
}

.caltech-logo {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.iit-logo {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
}

.iisc-logo {
    font-family: 'Georgia', serif;
    font-weight: 600;
}

.harvard-logo {
    font-family: 'Garamond', serif;
    font-weight: 500;
}

.berkeley-logo {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
}

.reviews-section {
    padding: 60px 0;
    background: white;
}

.reviews-carousel {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
    
    /* --- THE FIX: Fading Edges --- */
    position: relative;
    width: 100%;
    
    /* This creates a gradient mask: 
       Transparent (0%) -> Visible (10%) -> Visible (90%) -> Transparent (100%) 
    */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
    
    /* Webkit prefix for Safari/Chrome compatibility */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
    
    /* Ensure it doesn't trigger horizontal scrollbars on the page */
    overflow: hidden; 
}

.review-row {
    display: flex;
    gap: 24px;
    animation-duration: 50s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    width: max-content;
}

.row-left {
    animation-name: scroll-reviews-left;
}

.row-right {
    animation-name: scroll-reviews-right;
}

@keyframes scroll-reviews-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reviews-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    min-width: 380px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.review-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.review-text {
    color: #1e293b;
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
}

.reviewer-info {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.reviewer-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 1rem;
    margin-bottom: 4px;
}

.reviewer-title {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.reviewer-institution {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
}

.metrics-section {
    padding: 60px 24px;
    background: white;
}

.metric-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

.chart-container {
    margin-top: 24px;
}

.chart-label {
    font-size: 12px;
    fill: #64748b;
    font-family: 'Inter', sans-serif;
}

.bar-animate {
    transition: height 1s cubic-bezier(0.65, 0, 0.35, 1), y 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.line-animate {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 2s ease-out forwards;
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

.dot-animate {
    opacity: 0;
    animation: fade-dot 0.5s ease-out forwards;
}

@keyframes fade-dot {
    to {
        opacity: 1;
    }
}

.features-section {
    padding: 60px 24px;
    background: #f8fafc;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.bento-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-content {
    position: relative;
    z-index: 1;
}

.paper-stack {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 24px;
}

.paper-layer {
    position: absolute;
    width: 80%;
    height: 120px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s ease;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.paper-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.paper-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.layer-1 {
    bottom: 0;
    left: 10%;
    z-index: 4;
}

.layer-2 {
    bottom: 12px;
    left: 8%;
    z-index: 3;
    opacity: 0.9;
}

.layer-3 {
    bottom: 24px;
    left: 6%;
    z-index: 2;
    opacity: 0.8;
}

.layer-4 {
    bottom: 36px;
    left: 4%;
    z-index: 1;
    opacity: 0.7;
}

.bento-card:hover .layer-1 {
    transform: translateY(-8px);
}

.bento-card:hover .layer-2 {
    transform: translateY(-16px);
}

.bento-card:hover .layer-3 {
    transform: translateY(-24px);
}

.bento-card:hover .layer-4 {
    transform: translateY(-32px);
}

.network-graph {
    margin-top: 16px;
}

.graph-edge {
    stroke: #e2e8f0;
    stroke-width: 2;
}

.graph-node {
    transition: all 0.3s ease;
}

.primary-node {
    fill: #2563eb;
}

.secondary-node {
    fill: #0d9488;
}

.pulse-node {
    animation: pulse-graph 2s ease-in-out infinite;
}

@keyframes pulse-graph {
    0%, 100% {
        r: 8;
        opacity: 1;
    }
    50% {
        r: 10;
        opacity: 0.7;
    }
}

.data-transform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    gap: 16px;
}

.data-input,
.data-output {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.data-line {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 8px;
    width: 100%;
    
    /* 1. The Gradient: Base Gray -> Lighter Shine -> Base Gray */
    background: linear-gradient(
        90deg, 
        #cbd5e1 0%, 
        #c9e2fc 50%, 
        #e0cbe1 100%
    );
    
    /* 2. Make background large enough to slide across */
    background-size: 200% 100%;
    
    /* 3. Run the animation */
    animation: flow 1.5s infinite linear;
}

.data-line.mid {
    width : 80%;
}

.data-line.short {
    width: 60%;
}

/* Optional: Stagger the animations for a "cascading" read effect */
.data-line:nth-child(1) { animation-delay: 0s; }
.data-line:nth-child(2) { animation-delay: 0.2s; }
.data-line:nth-child(3) { animation-delay: 0.4s; }

/* 4. The Animation Keyframes */
@keyframes flow {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.transform-arrow {
    font-size: 1.5rem;
    color: #2563eb;
    font-weight: 700;
}

.json-bracket {
    font-family: 'Courier New', monospace;
    color: #2563eb;
    font-size: 1.25rem;
    font-weight: 700;
}

.json-line {
    height: 4px;
    background: #0d9488;
    border-radius: 2px;
    margin: 6px 0 6px 12px;
    width: 80%;
}

.visual-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}

.icon-item {
    font-size: 2rem;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.comparison-section {
    padding: 60px 24px;
    background: #f8fafc;
}

.comparison-table-wrapper {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header-cell {
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.table-header-cell.first-col {
    background: white;
    border-right: 1px solid #e2e8f0;
    width: 35%;
}

.table-header-cell.sciproton-col {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    width: 32.5%;
}

.table-header-cell.generic-col {
    background: #f8fafc;
    width: 32.5%;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.header-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f172a;
    font-family: 'Playfair Display', serif;
}

.header-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-body-row {
    transition: background 0.2s ease;
}

.table-body-row:hover {
    background: #f8fafc;
}

.row-label-cell {
    padding: 28px 24px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.label-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 1rem;
}

.label-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
}

.data-cell {
    padding: 28px 24px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.progress-wrapper {
    width: 100%;
}

.progress-bar-container {
    width: 100%;
    height: 36px;
    background: #f1f5f9;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
}

.progress-bar-fill.green-bar {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-bar-fill.red-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.bar-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.check-wrapper,
.cross-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.check-mark,
.cross-mark {
    width: 28px;
    height: 28px;
}

.check-text {
    font-weight: 600;
    color: #059669;
    font-size: 0.875rem;
}

.cross-text {
    font-weight: 600;
    color: #dc2626;
    font-size: 0.875rem;
}

.faq-section {
    padding: 60px 24px;
    background: white;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    font-size: 1.5rem;
    color: #2563eb;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.cta-section {
    padding: 60px 24px;
    background: white;
}

.footer-section {
    border-top: 1px solid #e2e8f0;
    padding: 48px 24px;
    background: white;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button,
.cta-button-large {
    cursor: pointer;
    border: none;
    outline: none;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 64px 24px;
    }

    .lab-interface-container {
        height: 450px;
    }

    .central-card {
        max-width: 340px;
    }

    .citation-node {
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .node-5,
    .node-6 {
        display: none;
    }

    .comparison-table-wrapper {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 600px;
    }

    .review-card {
        min-width: 320px;
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.125rem;
    }

    .node-1,
    .node-2 {
        top: 20px;
    }

    .node-3,
    .node-4 {
        bottom: 20px;
    }

    .node-1,
    .node-3 {
        left: -10px;
    }

    .node-2,
    .node-4 {
        right: -10px;
    }

    .review-card {
        min-width: 280px;
        max-width: 280px;
        padding: 24px;
    }

    .metrics-section,
    .features-section,
    .comparison-section,
    .faq-section,
    .cta-section {
        padding: 64px 24px;
    }
}


/* The Scan Beam Container */
.scan-beam {
    /* We animate a gradient moving from top to bottom */
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(255, 59, 235, 0.1) 40%, 
        rgba(17, 219, 250, 0.1) 60%, 
        transparent 100%
    );
    background-size: 100% 200%;
    animation: scanning 3s linear infinite;
}

/* The glowing line at the center of the beam */
.scan-beam::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    opacity: 0.8;
}

@keyframes scanning {
    0% {
        background-position: 0% -100%;
        transform: translateY(-120%);
    }
    100% {
        background-position: 0% 200%;
        transform: translateY(120%);
    }
}


/* --- HYPOTHESIS SCANNER ANIMATION --- */

/* 1. The Blue Scanner Beam */
.scan-line {
    animation: scan-vertical 4s ease-in-out infinite;
    opacity: 0.5;
}

/* 2. The Line turning Red */
.contradiction-line {
    animation: flag-error 4s ease-in-out infinite;
}

/* 3. The Popup Badge */
.warning-popup {
    animation: popup-reveal 4s ease-in-out infinite;
}

/* --- KEYFRAMES --- */

@keyframes scan-vertical {
    0% {
        top: 10%; /* Start above document */
    }
    30% {
        top: 50%; /* Hit the specific line */
    }
    40% {
        top: 50%; /* Pause briefly on the error */
    }
    100% {
        top: 90%; /* Finish scan */
    }
}

@keyframes flag-error {
    0%, 28% {
        background-color: #e2e8f0; /* Slate-200 (Normal) */
    }
    30%, 45% {
        background-color: #f43f5e; /* Rose-500 (Error Red) */
        transform: scale(1.05); /* Slight pulse */
    }
    46%, 100% {
        background-color: #e2e8f0; /* Back to Normal */
        transform: scale(1);
    }
}

@keyframes popup-reveal {
    0%, 28% {
        opacity: 0;
        transform: translate(-50%, 5px); /* Start slightly lower */
    }
    30%, 42% {
        opacity: 1;
        transform: translate(-50%, 0); /* Pop up */
    }
    45%, 100% {
        opacity: 0;
        transform: translate(-50%, -5px); /* Fade out moving up */
    }
}