@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
    --bg: #f4f7f5;
    --bg-soft: #ebf3ef;
    --surface: #ffffff;
    --surface-2: #f9fcfa;
    --text: #15252b;
    --muted: #4f6267;
    --accent: #0f766e;
    --accent-strong: #0b5f58;
    --accent-soft: #d6efeb;
    --border: #d6e1dc;
    --danger: #be123c;
    --shadow: 0 18px 40px rgba(20, 49, 59, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Sora', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 5% 0%, #d9f1ea 0, transparent 30%),
        radial-gradient(circle at 95% 20%, #ffe7cf 0, transparent 34%),
        linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 32%, var(--bg) 100%);
}

.container {
    width: min(1180px, 93vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.header-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    text-decoration: none;
    color: var(--text);
    display: grid;
    line-height: 1.1;
}

.brand-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-strong);
    font-weight: 600;
}

.brand-main {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.nav-links a.active {
    background: var(--accent);
    color: #fff;
}

main.container {
    padding-top: 26px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-strong);
    font-size: 0.78rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.hero,
.viz-header {
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: clamp(18px, 2.8vw, 30px);
    margin: 0 0 18px;
}

.hero h1,
.viz-header h1 {
    margin: 0 0 10px;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3.1vw, 2.7rem);
    line-height: 1.12;
}

.hero p,
.viz-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.stats-strip {
    margin: 10px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 14px;
    margin: 0 0 18px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.panel h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.steps-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.stats-strip article {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
}

.stats-strip h3 {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: var(--accent-strong);
}

.stats-strip p {
    margin: 3px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.card {
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    min-height: 160px;
    box-shadow: 0 8px 26px rgba(12, 34, 41, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card::after {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    right: -60px;
    top: -70px;
    border-radius: 50%;
    opacity: 0.25;
}

.card-story::after {
    background: #6cc6a9;
}

.card-dashboards::after {
    background: #f8b26a;
}

.card-conclusion::after {
    background: #9ec9f3;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(12, 34, 41, 0.13);
}

.card h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.dashboard-section {
    margin-bottom: 18px;
}

.section-head {
    margin: 0 0 8px;
}

.section-head span {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    margin-bottom: 6px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.viz-wrapper {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.viz-wrapper iframe {
    width: 100%;
    border: 0;
    min-height: 78vh;
}

.conclusion-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.conclusion-box h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.conclusion-box p,
.conclusion-box ul {
    color: var(--muted);
    margin-top: 0;
    line-height: 1.65;
}

.action-note {
    border-left: 4px solid var(--accent);
    background: var(--surface-2);
    padding: 10px 12px;
    border-radius: 10px;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(430px, 96vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 0 0 8px;
    font-family: 'Fraunces', serif;
}

.login-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.login-card form {
    display: grid;
    gap: 10px;
}

.login-card input,
.login-card button {
    font: inherit;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.login-card button {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    cursor: pointer;
}

.login-card button:hover {
    background: var(--accent-strong);
}

.error-msg {
    color: var(--danger);
}

.fade-in {
    animation: riseUp 0.5s ease both;
}

.fade-in-delay-1 {
    animation: riseUp 0.5s ease 0.1s both;
}

.fade-in-delay-2 {
    animation: riseUp 0.5s ease 0.2s both;
}

.fade-in-delay-3 {
    animation: riseUp 0.5s ease 0.28s both;
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@media (max-width: 900px) {
    .header-row {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

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

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

    .viz-wrapper iframe {
        min-height: 68vh;
    }
}
