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


/* =========================================================
   DESIGN SYSTEM
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg: #fdf8ed;
    --bg-hero: #faf3dc;
    --bg-card: #fff8e7;
    --bg-card-2: #fef3cc;

    --accent: #b45309;
    --accent-2: #2563eb;
    --accent-light: #fde68a;

    --text: #1c1917;
    --muted: #78716c;

    --border: #e8dfc4;
    --border-strong: #d4c48a;

    --white: #ffffff;

    --mono: 'Space Mono', monospace;
    --sans: 'DM Sans', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
}


.app-shell {
    min-height: 100vh;
    background: var(--bg);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.topnav {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 58px;
    padding: 0 2.5rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(253, 248, 237, 0.94);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}


.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}


.nav-logo {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}


.nav-project {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}


.nav-links a {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}


.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}


.nav-links a.active {
    font-weight: 700;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: var(--bg-hero);
    border-bottom: 1px solid var(--border);
    padding: 70px 2.5rem 56px;
}


.hero-inner {
    max-width: 1320px;
    margin: 0 auto;
}


.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--accent);

    margin-bottom: 18px;
}


.hero-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
}


.hero-title {
    max-width: 760px;
    margin: 0 0 18px;

    font-family: var(--mono);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;

    color: var(--text);
}


.hero-subtitle {
    max-width: 670px;
    margin: 0 0 24px;

    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}


.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.hero-tag {
    display: inline-block;

    padding: 6px 11px;

    border: 1px solid var(--border-strong);
    border-radius: 4px;

    background: var(--bg-card);

    color: var(--accent);

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.09em;
}


.dynamic-user-title {
    margin-top: 22px;

    font-family: var(--mono);
    color: var(--accent-2);
    font-size: 11px;
    letter-spacing: 0.05em;
}


/* =========================================================
   PAGE
   ========================================================= */

.dashboard-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 2.5rem 80px;
}


.dashboard-section {
    margin-bottom: 64px;
    scroll-margin-top: 90px;
}


.section-heading {
    margin-bottom: 8px;
}


.section-number {
    margin-bottom: 5px;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--accent);
}


.section-heading h2 {
    margin: 0;

    font-family: var(--mono);
    font-size: 21px;
    font-weight: 700;

    color: var(--text);
}


.section-description {
    max-width: 760px;

    margin: 8px 0 22px;

    color: var(--muted);
}


/* =========================================================
   CONTROL CARD
   ========================================================= */

.control-card {
    padding: 22px;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}


.controls-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(180px, 1fr));

    gap: 20px;
}


.control-group {
    min-width: 0;
}


.control-label {
    display: block;

    margin-bottom: 7px;

    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: var(--muted);
}


/* =========================================================
   DASH DROPDOWN
   ========================================================= */

.modern-dropdown .Select-control {
    min-height: 42px !important;

    background: #fffdf7 !important;

    border: 1px solid var(--border-strong) !important;
    border-radius: 6px !important;

    box-shadow: none !important;
}


.modern-dropdown .Select-placeholder,
.modern-dropdown .Select-value-label {
    font-family: var(--sans) !important;
    font-size: 14px !important;
    color: var(--text) !important;
}


.modern-dropdown .Select-menu-outer {
    background: #fffdf7 !important;

    border: 1px solid var(--border) !important;

    font-family: var(--sans);

    z-index: 9999;
}


.modern-dropdown .VirtualizedSelectOption {
    color: var(--text);
    background: #fffdf7;
}


.modern-dropdown .VirtualizedSelectFocusedOption {
    background: var(--accent-light);
    color: var(--text);
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;

    margin: -28px 0 60px;
}


.stat-card {
    padding: 17px 20px;

    background: var(--bg-card-2);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}


.stat-label {
    margin-bottom: 6px;

    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.14em;

    color: var(--muted);
}


.stat-value {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;

    color: var(--accent);
}


.stat-text {
    font-family: var(--mono);
    font-size: 12px;

    color: var(--text);
}


/* =========================================================
   VISUALIZATION
   ========================================================= */

.visualization-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 3fr)
        minmax(280px, 1fr);

    gap: 18px;

    align-items: stretch;
}


.plot-card,
.sample-card {
    overflow: hidden;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}


.card-header {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 20px;

    border-bottom: 1px solid var(--border);

    background: var(--bg-card-2);
}


.card-eyebrow {
    margin-bottom: 3px;

    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.14em;

    color: var(--accent);
}


.card-title {
    margin: 0;

    font-family: var(--mono);
    font-size: 15px;

    color: var(--text);
}


.status-badge {
    padding: 4px 8px;

    border: 1px solid #a7c7a2;
    border-radius: 4px;

    background: #eef7eb;

    color: #487448;

    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
}


.main-graph {
    background: #fffdf7;
}


/* =========================================================
   SAMPLE PANEL
   ========================================================= */

.sample-card {
    display: flex;
    flex-direction: column;
}


.hover-content {
    flex: 1;

    min-height: 420px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}


.hover-image {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;

    object-fit: contain;

    margin-top: 12px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #ffffff;
}


.hover-label {
    margin: 8px 0 0;

    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;

    color: var(--text);
}


.hover-path {
    max-width: 100%;

    overflow-wrap: anywhere;

    margin-top: 10px;

    color: var(--muted);

    font-family: var(--mono);
    font-size: 9px;
}


.hover-placeholder {
    color: var(--muted);

    font-family: var(--mono);
    font-size: 11px;

    line-height: 1.7;
}


.interaction-help {
    padding: 18px 20px;

    border-top: 1px solid var(--border);

    background: var(--bg-card-2);
}


.help-title {
    margin-bottom: 8px;

    color: var(--accent);

    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.14em;
}


.interaction-help p {
    margin: 3px 0;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   MODEL INFO
   ========================================================= */

.model-info-card {
    padding: 22px;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}


.model-table {
    width: 100%;

    border-collapse: collapse;

    font-family: var(--sans);
}


.model-table th,
.model-table td {
    padding: 12px 14px;

    text-align: left;

    border-bottom: 1px solid var(--border);
}


.model-table th {
    width: 220px;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;

    color: var(--muted);
}


.model-table td {
    color: var(--text);
}


.model-table tr:last-child th,
.model-table tr:last-child td {
    border-bottom: none;
}


.model-empty {
    color: var(--muted);
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    padding-top: 10px;

    border-top: 1px solid var(--border);
}


.about-text {
    max-width: 760px;

    color: var(--muted);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 28px 2rem;

    text-align: center;

    background: var(--bg-hero);

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.09em;
}


/* =========================================================
   MOTION
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-inner > * {
    animation: fadeUp 0.55s ease both;
}


.hero-inner > *:nth-child(1) {
    animation-delay: 0.04s;
}

.hero-inner > *:nth-child(2) {
    animation-delay: 0.11s;
}

.hero-inner > *:nth-child(3) {
    animation-delay: 0.18s;
}

.hero-inner > *:nth-child(4) {
    animation-delay: 0.25s;
}

.hero-inner > *:nth-child(5) {
    animation-delay: 0.32s;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .controls-grid {
        grid-template-columns:
            repeat(2, minmax(180px, 1fr));
    }

    .visualization-grid {
        grid-template-columns: 1fr;
    }

    .hover-content {
        min-height: 300px;
    }

}


@media (max-width: 720px) {

    .topnav {
        padding: 0 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding:
            58px 1.2rem
            42px;
    }

    .dashboard-container {
        padding:
            38px 1.2rem
            60px;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 34px;
    }

    .main-graph {
        height: 500px !important;
    }

}