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

:root {
    --bg-base: #020617; /* slate-950 */
    --bg-card: rgba(15, 23, 42, 0.6); /* slate-900 / 60% */
    --bg-card-hover: rgba(30, 41, 59, 0.8); /* slate-800 / 80% */
    
    --text-heading: #f8fafc; /* slate-50 */
    --text-primary: #cbd5e1; /* slate-300 */
    --text-secondary: #94a3b8; /* slate-400 */
    --text-muted: #64748b; /* slate-500 */
    
    --border-subtle: rgba(255, 255, 255, 0.08); /* white/8 */
    --border-strong: rgba(255, 255, 255, 0.15); /* white/15 */
    
    --accent-sky: #0ea5e9; /* sky-500 */
    --accent-violet: #8b5cf6; /* violet-500 */
    --accent-gold: #fbbf24; /* amber-400 */
    
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
    
    --transition-snappy: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Premium Background Shader Orbs */
.bg-shader {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vh; background: var(--accent-sky); }
.orb-2 { top: 20%; right: -10%; width: 40vw; height: 60vh; background: var(--accent-violet); }
.orb-3 { bottom: -10%; left: 20%; width: 60vw; height: 40vh; background: var(--accent-sky); opacity: 0.1; }

h1, h2, h3, h4, .font-display {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

/* High-End Gradient Text */
.gradient-text {
    background-image: linear-gradient(135deg, var(--text-heading), var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
    background-image: linear-gradient(135deg, var(--accent-sky), var(--accent-violet));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Base Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Frosted Nav */
.frosted-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-pills {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
}

.nav-pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.nav-pill:hover { color: var(--text-heading); }
.nav-pill.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-heading);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Hero Header */
.hero-header {
    position: relative;
    padding: 10rem 2rem 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-sky);
    margin-bottom: 1rem;
}

.site-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.site-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

/* Scorecard HUD */
.scorecard-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1000px;
}

.score-metric {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-snappy);
}
.score-metric:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.score-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-muted);
}

/* Main Content Area */
.main-stage {
    flex-grow: 1;
    max-width: 1100px; /* Anti-vibecode narrow width */
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
    width: 100%;
}

.view-section {
    display: none;
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.view-section.active { display: block; }

.section-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Advanced Grid & Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem; /* Tighter gap */
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px; /* modern rounded */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-base);
    transition: var(--transition-snappy);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
    background: var(--bg-card-hover);
}

/* Card Internals */
.card-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.id-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* Status dots instead of pills (Anti-Vibecode) */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.status-dot {
    width: 6px; height: 6px; border-radius: 50%;
}
.status-pending .status-dot { background: var(--accent-gold); box-shadow: 0 0 8px var(--accent-gold); animation: pulse 2s infinite; }
.status-confirmed .status-dot { background: #34d399; box-shadow: 0 0 8px #34d399; }
.status-confirmed_marginal .status-dot { background: #86efac; box-shadow: 0 0 8px #86efac; }
.status-below_detection_threshold .status-dot { background: #eab308; box-shadow: 0 0 8px #eab308; }
.status-missed_close .status-dot { background: #f97316; box-shadow: 0 0 8px #f97316; }
.status-missed_far .status-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.status-falsified .status-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.status-inconclusive .status-dot { background: #9ca3af; box-shadow: 0 0 8px #9ca3af; }

.card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Data Matrix */
.data-matrix {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-subtle);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.data-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.data-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
}

.data-value.accent {
    color: var(--accent-sky);
}

/* Card Actions & Footer */
.btn-verify {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-snappy);
    cursor: pointer;
}

.btn-verify:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-heading);
    border-color: var(--border-strong);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-sky), var(--accent-violet));
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8, #a78bfa);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.sha-fingerprint {
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    word-break: break-all;
    opacity: 0.5;
}

.code-block {
    background: #000;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .site-title { font-size: 2.2rem; }
    .hero-header { padding: 8rem 1rem 3rem; }
    .card-grid { grid-template-columns: 1fr; }
    .frosted-nav { overflow-x: auto; justify-content: flex-start; }
}
