@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-primary: #050810;
    --bg-secondary: #0a0f1a;
    --bg-card: #0f1525;
    --bg-card-hover: #141c30;
    --bg-elevated: #1a2340;
    --text-primary: #edf2f7;
    --text-secondary: #a0aec0;
    --text-muted: #5a6a85;
    --accent-cyan: #00e5ff;
    --accent-blue: #448aff;
    --accent-purple: #b388ff;
    --accent-green: #00e676;
    --accent-amber: #ffd740;
    --accent-red: #ff5252;
    --accent-pink: #ff4081;
    --border: #1a2540;
    --border-hover: #253560;
    --gradient-hero: linear-gradient(135deg, #00e5ff 0%, #448aff 50%, #b388ff 100%);
    --gradient-teaser: linear-gradient(135deg, #b388ff 0%, #ff4081 100%);
    --gradient-public: linear-gradient(135deg, #00e676 0%, #00e5ff 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 60px rgba(0,229,255,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

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

html { scroll-behavior: smooth; }

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

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.scrolled {
    background: rgba(5,8,16,0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.nav-logo-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(0,229,255,0.3);
}
.nav-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    background: var(--gradient-hero) !important;
    color: var(--bg-primary) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px rgba(0,229,255,0.3) !important;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,229,255,0.06) 0%, rgba(68,138,255,0.03) 40%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.15);
    color: var(--accent-cyan);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}
.hero-badge .pulse {
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,118,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0,230,118,0); }
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-hero);
    color: var(--bg-primary);
    padding: 0.85rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: -0.01em;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,229,255,0.25);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 0.85rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

/* === STATS COUNTER === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}
.stat-block {
    background: var(--bg-secondary);
    padding: 1.5rem 1rem;
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* === SECTION COMMON === */
.section {
    padding: 6rem 2rem;
    position: relative;
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* === HOW IT WORKS === */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.how-card {
    background: var(--gradient-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s;
}
.how-card:hover { border-color: var(--border-hover); }
.how-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
}
.how-step-1 { background: rgba(0,229,255,0.1); color: var(--accent-cyan); }
.how-step-2 { background: rgba(68,138,255,0.1); color: var(--accent-blue); }
.how-step-3 { background: rgba(179,136,255,0.1); color: var(--accent-purple); }
.how-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.how-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.3s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.pricing-card.featured {
    border-color: var(--accent-cyan);
    background: linear-gradient(180deg, rgba(0,229,255,0.04) 0%, var(--bg-card) 100%);
}
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-hero);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pricing-tier {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.pricing-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.pricing-price {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}
.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}
.pricing-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pricing-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.9rem;
}
.pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.pricing-btn-primary {
    background: var(--gradient-hero);
    color: var(--bg-primary);
}
.pricing-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(0,229,255,0.25);
    transform: translateY(-1px);
}
.pricing-btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.pricing-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-hover);
}

/* === CATALOG === */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.filter-btn:hover { color: var(--text-secondary); border-color: var(--border-hover); }
.filter-btn.active {
    background: rgba(0,229,255,0.08);
    border-color: rgba(0,229,255,0.3);
    color: var(--accent-cyan);
}

/* === HYPOTHESIS CARDS v2 === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}
.hyp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.hyp-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.hyp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}
.hyp-card.tier-public::before { background: var(--gradient-public); }
.hyp-card.tier-teaser::before { background: var(--gradient-teaser); }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.card-domain {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.card-score {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-xs);
    font-family: 'JetBrains Mono', monospace;
}
.score-green { background: rgba(0,230,118,0.1); color: var(--accent-green); }
.score-blue { background: rgba(68,138,255,0.1); color: var(--accent-blue); }
.score-amber { background: rgba(255,215,64,0.1); color: var(--accent-amber); }

.card-repurpose {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
}
.pill-molecule {
    background: rgba(179,136,255,0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(179,136,255,0.15);
}
.pill-pathology {
    background: rgba(0,229,255,0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0,229,255,0.12);
}
.card-arrow { color: var(--text-muted); font-size: 0.85rem; }

.card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.card-evidence {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.ev-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
}
.ev-clinical { background: var(--accent-green); }
.ev-invivo { background: var(--accent-blue); }
.ev-invitro { background: var(--accent-amber); }
.ev-insilico { background: var(--text-muted); }
.card-pmid a {
    color: var(--accent-blue);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
}
.card-pmid a:hover { text-decoration: underline; }

/* === TEASER OVERLAY v2 === */
.teaser-content {
    position: relative;
}
.teaser-blur {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
}
.teaser-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.teaser-cta-box {
    background: rgba(5,8,16,0.9);
    border: 1px solid rgba(179,136,255,0.2);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(8px);
}
.teaser-cta-box p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.teaser-cta-btn {
    display: inline-block;
    background: var(--gradient-teaser);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.teaser-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(179,136,255,0.3);
}

/* === DETAIL PAGE v2 === */
.detail-page { max-width: 860px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.detail-back:hover { color: var(--accent-cyan); }
.detail-header { margin-bottom: 2.5rem; }
.detail-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.detail-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1rem;
}
.detail-section h2 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.detail-section p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }
.detail-section p strong { color: var(--text-primary); font-weight: 600; }
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.5rem;
}
.score-block {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}
.score-block .val {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}
.score-block .lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}
.composite-display {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.composite-score {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.composite-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.detail-cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 1rem;
}
.detail-cta p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand-col .footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.footer-brand-col p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.footer-bottom a { color: var(--accent-cyan); text-decoration: none; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .how-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 8rem 1.5rem 3rem; }
    .section { padding: 4rem 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .navbar-inner { height: 60px; }
    .nav-links { gap: 1rem; }
    .catalog-header { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* === ANIMATIONS (loaded via GSAP, fallback opacity) === */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.active { opacity: 1; transform: translateY(0); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
