:root {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --surface-muted: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --ring-color: rgba(37, 99, 235, 0.45);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 36px -24px rgba(15, 23, 42, 0.45);
    --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --max-width: 1200px;
    --nav-height: 64px;
    --section-spacing: 4.75rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    min-height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.55;
    overflow-x: hidden;
    background-image:
        radial-gradient(900px 340px at 92% -80px, rgba(59, 130, 246, 0.12), transparent 65%),
        radial-gradient(760px 280px at 8% 70px, rgba(14, 165, 233, 0.08), transparent 68%);
    background-size: auto, auto;
    background-position: top right, top left;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.15rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.95rem, 3.2vw, 2.7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

p.lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 640px;
}

a {
    color: inherit;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: calc(var(--nav-height) + 12px);
    margin: 0;
    padding: 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-word {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-spacing) 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 2rem;
    align-items: center;
    padding-top: 2.2rem;
}

.hero-content {
    max-width: 590px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.62rem;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
    border: 1px solid transparent;
    padding: 0.65rem 1.2rem;
    box-shadow: 0 6px 12px -8px rgba(37, 99, 235, 0.85);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
}

.nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.86rem;
}

.cta-note {
    margin-top: 0.95rem;
    margin-bottom: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.btn-primary:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--ring-color);
    outline-offset: 2px;
}

.hotspot-map {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-md);
    padding: 1.1rem;
}

.map-title {
    margin: 0 0 0.95rem 0.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.hotspot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.map-card {
    display: flex;
    flex-direction: column;
    min-height: 238px;
    border: 1px solid var(--border-color);
    border-radius: 0.78rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.map-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.52);
    transform: translateY(-1px);
}

.map-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.map-card-title {
    margin: 0;
}

.risk-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

.risk-label.hotspot {
    background: #fff1f2;
    color: #be123c;
    box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.2);
}

.risk-label.watch {
    background: #fffbeb;
    color: #b45309;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.2);
}

.risk-label.healthy {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.2);
}

.map-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.9rem;
}

.people-metric {
    display: grid;
    gap: 0.35rem;
}

.people-line {
    font-size: 0.78rem;
    color: var(--text-primary);
}

.people-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.people-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #cbd5e1;
}

.member-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #f1f5f9;
}

.member-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.member-list li:last-child {
    border-bottom: 0;
}

.member-name {
    min-width: 0;
    flex: 1;
    font-size: 0.83rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.depth-pips {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.depth-pips i {
    display: block;
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 999px;
    border: 1px solid #94a3b8;
    background: transparent;
}

.depth-pips.depth-limited i:nth-child(-n+1),
.depth-pips.depth-working i:nth-child(-n+2),
.depth-pips.depth-deep i:nth-child(-n+3) {
    border-color: #10b981;
    background: #10b981;
}

.map-card-footer {
    margin: auto 0 0;
    padding-top: 0.75rem;
    text-align: right;
    font-size: 0.66rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.map-subtitle {
    margin: 0.75rem 0.1rem 0;
    font-size: 0.67rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

#features {
    padding-top: 3.3rem;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 2.2rem;
    padding-left: 1.2rem;
    border-left: 2px solid var(--accent-blue);
}

.section-intro-wide {
    max-width: 820px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    box-shadow: var(--shadow-sm);
    padding: 1.7rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.45);
}

.card-num {
    display: block;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.card p {
    margin: 0;
}

.workflow {
    padding-top: 3.3rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.outputs {
    padding-top: 3.3rem;
}

.outputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.output-card {
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
    padding: 1.45rem;
}

.output-card h3 {
    margin-bottom: 0.55rem;
}

.output-card p {
    margin: 0;
}

.philosophy {
    padding-top: 3.3rem;
}

.philosophy-panel {
    max-width: 780px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
    padding: 2.4rem 2rem;
    text-align: center;
}

.philosophy-panel .lead {
    margin: 0 auto;
    color: #1e293b;
}

footer {
    padding: 3.1rem 0 3.4rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .navbar-inner,
    .container {
        padding-left: 1.3rem;
        padding-right: 1.3rem;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 1.4rem;
    }

    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    section {
        padding: 4rem 0;
    }

    h1 {
        font-size: clamp(2.1rem, 10vw, 2.9rem);
    }

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

    .hotspot-grid .map-card:nth-child(n+3) {
        display: none;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn-primary {
        flex: 1;
        min-width: 0;
    }

    .philosophy-panel {
        padding: 1.8rem 1.2rem;
    }
}

@media (max-width: 520px) {
    .navbar-inner,
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-cta {
        padding: 0.42rem 0.8rem;
        font-size: 0.78rem;
    }

    .card {
        padding: 1.35rem;
    }
}
