@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
    --bg: #f2efe7;
    --panel: #fffaf2;
    --ink: #16233a;
    --muted: #4e5a6c;
    --line: #d8d1c3;
    --blue: #005d86;
    --blue-soft: #d7edf8;
    --teal: #178c78;
    --teal-soft: #d7f2ec;
    --orange: #e9713f;
    --orange-soft: #ffe5d8;
    --shadow: 0 20px 44px -30px rgba(22, 35, 58, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Source Sans 3", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 6%, rgba(23, 140, 120, 0.14), transparent 30%),
        radial-gradient(circle at 86% 14%, rgba(233, 113, 63, 0.17), transparent 34%),
        var(--bg);
    line-height: 1.45;
}

.shell {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1.1rem;
    padding: 0.75rem 0.95rem;
    border-radius: 0.85rem;
    background: rgba(255, 250, 242, 0.8);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 1rem;
    z-index: 20;
}

.crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.crumbs a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.top-actions {
    display: inline-flex;
    gap: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.48rem 0.88rem;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-main {
    background: var(--ink);
    color: #fff;
}

.btn-sub {
    background: #fffaf2;
    color: var(--ink);
    border-color: var(--line);
}

.hero {
    margin: 1rem 0 0;
    padding: clamp(1.2rem, 3.2vw, 2.2rem);
    border-radius: 1.2rem;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #fffaf2, #f9f2e8 58%, #f3ede4);
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.65rem, 3.8vw, 2.95rem);
    line-height: 1.08;
}

.hero p {
    margin: 0.8rem 0 0;
    font-size: 1.03rem;
    color: var(--muted);
    max-width: 68ch;
}

.chips {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.chip {
    border-radius: 999px;
    padding: 0.28rem 0.64rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.chip-blue {
    background: var(--blue-soft);
    color: #0a4e73;
}

.chip-green {
    background: var(--teal-soft);
    color: #125f50;
}

.chip-orange {
    background: var(--orange-soft);
    color: #8e3d1f;
}

.grid {
    margin: 1rem 0 0;
    display: grid;
    gap: 0.8rem;
}

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

.panel {
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
}

.panel h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
}

.panel h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
}

.panel p {
    margin: 0.58rem 0 0;
    color: var(--muted);
}

.list {
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
}

.list li {
    border-top: 1px dashed var(--line);
    padding: 0.6rem 0;
}

.list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.list .k {
    color: var(--ink);
    font-weight: 700;
}

.map-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.6rem;
    font-size: 0.95rem;
}

.map-table th,
.map-table td {
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    padding: 0.56rem 0.45rem;
}

.map-table th {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    background: #eef2f7;
    color: #33455f;
}

.flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.7rem;
}

.step {
    border-radius: 0.85rem;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.72rem;
}

.step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #fff;
    background: var(--ink);
}

.step h3 {
    margin: 0.5rem 0 0.3rem;
}

.step p {
    margin: 0;
    font-size: 0.93rem;
}

.code {
    margin-top: 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid #ced9e4;
    background: #f7fbff;
    padding: 0.7rem 0.8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.84rem;
    overflow-x: auto;
}

.timeline {
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.6rem;
    border-top: 1px dashed var(--line);
    padding: 0.58rem 0;
}

.timeline li:first-child {
    border-top: 0;
    padding-top: 0;
}

.timeline .phase {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer {
    margin: 1rem 0 2rem;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
    background: rgba(255, 250, 242, 0.84);
    padding: 0.8rem 0.95rem;
    color: var(--muted);
    font-size: 0.93rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].show {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    .grid-two {
        grid-template-columns: 1fr;
    }

    .flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .top-actions {
        width: 100%;
    }

    .top-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .timeline li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

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