:root {
    --bg: #f6f8f4;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --surface-muted: #edf2eb;
    --border: rgba(24, 51, 43, 0.1);
    --text: #163128;
    --text-soft: #5a6f67;
    --brand: #27463e;
    --brand-strong: #18332b;
    --accent: #d46a43;
    --accent-soft: #f6e5de;
    --shadow: 0 16px 40px rgba(21, 47, 39, 0.08);
    --shadow-hover: 0 24px 56px rgba(21, 47, 39, 0.14);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(212, 106, 67, 0.1), transparent 28%),
        radial-gradient(circle at top right, rgba(39, 70, 62, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfcfa 0%, var(--bg) 42%, #f4f7f3 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.guide-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 248, 244, 0.82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(24, 51, 43, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 48px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--brand-strong);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: 0.96rem;
}

.brand-text span,
.lead,
.hero-note,
.stat-card span,
.section-copy p,
.caption,
.placeholder-card p,
.related-card p,
.footer-wrap p,
.empty-state p {
    color: var(--text-soft);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.nav-link,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 600;
}

.hero-section {
    padding: 42px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 26px;
}

.hero-card,
.section-card,
.placeholder-card,
.related-card,
.footer-wrap,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-width: 0;
}

.hero-card {
    padding: 42px;
    border-radius: var(--radius-xl);
}

.eyebrow,
.section-tag,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow,
.section-tag {
    margin-bottom: 16px;
    background: rgba(39, 70, 62, 0.08);
    color: var(--brand);
}

.hero-card h1,
.section-copy h2,
.related-section h2 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-card h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    max-width: 11ch;
    overflow-wrap: anywhere;
}

.lead {
    margin: 20px 0 0;
    max-width: 60ch;
    font-size: 1.05rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pill {
    background: rgba(212, 106, 67, 0.1);
    color: var(--brand-strong);
    letter-spacing: normal;
    text-transform: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-actions,
.placeholder-actions,
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    color: #fff;
    background: var(--brand);
}

.button-secondary {
    color: var(--brand);
    background: rgba(39, 70, 62, 0.08);
    border-color: rgba(39, 70, 62, 0.12);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.icon-card {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(39, 70, 62, 0.96) 0%, rgba(24, 51, 43, 0.98) 100%);
    color: #fff;
}

.icon-frame {
    display: grid;
    place-items: center;
    width: 170px;
    height: 170px;
    padding: 20px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.icon-card p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.hero-note-card {
    padding: 24px;
    border-radius: 26px;
}

.hero-note-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-card {
    padding: 18px;
    border-radius: 20px;
}

.stat-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.8rem;
    line-height: 1;
}

.content-section {
    padding: 18px 0 30px;
}

.section-stack {
    display: grid;
    gap: 22px;
}

.section-card {
    padding: 30px;
    border-radius: 30px;
}

.section-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-copy h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-copy p {
    margin: 12px 0 0;
    max-width: 62ch;
}

.section-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.carousel-shell {
    display: grid;
    gap: 18px;
}

.carousel-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(24, 51, 43, 0.08);
}

.carousel-image {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(237, 242, 235, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    cursor: zoom-in;
}

.figure-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 18px;
}

.caption {
    margin: 0;
    font-size: 0.98rem;
}

.progress {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(39, 70, 62, 0.08);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.84rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.thumb-track {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-button {
    width: 14px;
    height: 14px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(39, 70, 62, 0.18);
    cursor: pointer;
}

.thumb-button.is-active {
    width: 38px;
    background: var(--accent);
}

.placeholder-card,
.empty-state {
    padding: 32px;
    border-radius: 30px;
}

.placeholder-card strong,
.related-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.12rem;
}

.related-section {
    padding: 8px 0 40px;
}

.related-section h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    padding: 22px;
    border-radius: 24px;
}

.related-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.site-footer {
    padding: 12px 0 48px;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    border-radius: 28px;
}

.interactive {
    transition: all 0.3s ease-in-out;
}

.interactive:hover,
.interactive:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--brand-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.ghost-link:hover,
.ghost-link:focus-visible,
.related-card:hover,
.related-card:focus-visible,
.placeholder-card:hover,
.placeholder-card:focus-visible,
.section-card:hover,
.section-card:focus-visible,
.hero-card:hover,
.hero-card:focus-visible,
.hero-note-card:hover,
.hero-note-card:focus-visible,
.stat-card:hover,
.stat-card:focus-visible,
.brand:hover,
.brand:focus-visible {
    border-color: rgba(212, 106, 67, 0.22);
}

.button:focus-visible,
.nav-link:focus-visible,
.ghost-link:focus-visible,
.related-card:focus-visible,
.thumb-button:focus-visible,
.carousel-image:focus-visible,
.brand:focus-visible,
.button-control:focus-visible {
    outline: 2px solid rgba(212, 106, 67, 0.45);
    outline-offset: 3px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(12, 23, 19, 0.82);
}

.modal.is-open {
    display: flex;
}

.modal-panel {
    position: relative;
    width: min(100%, 1120px);
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(39, 70, 62, 0.08);
    color: var(--brand);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 20px;
    cursor: ew-resize;
}

.modal-caption {
    margin: 14px 4px 0;
    color: var(--text-soft);
}

@media (max-width: 1080px) {
    .hero-grid,
    .related-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrap,
    .section-header,
    .nav-wrap {
        flex-direction: column;
        align-items: start;
    }

    .hero-card h1 {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: 100vw;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-wrap {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }

    .brand {
        flex: 0 0 auto;
        gap: 10px;
        padding: 6px 8px;
    }

    .brand-mark {
        width: 56px;
        height: 38px;
        padding: 8px 10px;
    }

    .brand-text strong {
        font-size: 0.84rem;
    }

    .brand-text span {
        font-size: 0.74rem;
    }

    .hero-card,
    .section-card,
    .placeholder-card,
    .related-card,
    .footer-wrap,
    .modal-panel {
        padding: 22px;
        border-radius: 24px;
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }

    .hero-card h1 {
        max-width: 11ch;
        font-size: 2.25rem;
        letter-spacing: 0;
        line-height: 1.12;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .lead,
    .section-copy p,
    .caption,
    .placeholder-card p,
    .related-card p,
    .footer-wrap p {
        max-width: 28ch;
        overflow-wrap: break-word;
    }

    .hero-actions,
    .placeholder-actions,
    .footer-actions,
    .carousel-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .top-nav {
        min-width: 0;
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        scrollbar-width: none;
    }

    .top-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link,
    .ghost-link,
    .button {
        width: auto;
    }

    .nav-link,
    .ghost-link {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .hero-actions .button,
    .placeholder-actions .button,
    .footer-actions .button,
    .carousel-controls .button {
        width: 100%;
    }

    .related-card {
        grid-template-columns: 1fr;
    }

    .figure-footer {
        flex-direction: column;
        align-items: start;
    }

    .modal {
        padding: 18px;
    }
}
