@font-face {
    font-family: "UltraBody";
    src: url("../fonts/LiberationSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "UltraBody";
    src: url("../fonts/LiberationSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "UltraDisplay";
    src: url("../fonts/URWGothic-Demi.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #17211d;
    --muted: #5d6b64;
    --surface: #fffaf0;
    --surface-2: #f2ead9;
    --line: #d9cfbc;
    --panel: #12342d;
    --panel-2: #0d2824;
    --panel-line: rgba(255, 250, 240, 0.16);
    --white: #ffffff;
    --green: #1f7a5c;
    --green-dark: #0f372f;
    --lime: #b6e24d;
    --amber: #e7a72b;
    --red: #cf4d38;
    --blue: #306f91;
    --shadow: 0 24px 70px rgba(23, 33, 29, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "UltraBody", "Nimbus Sans", "Liberation Sans", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(23, 33, 29, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23, 33, 29, 0.035) 1px, transparent 1px),
        var(--surface);
    background-size: 42px 42px, 42px 42px, auto;
    line-height: 1.55;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(217, 207, 188, 0.78);
    background: rgba(255, 250, 240, 0.94);
    backdrop-filter: blur(16px);
}

.header-shell {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: var(--surface);
    background: var(--green-dark);
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(15, 55, 47, 0.24);
}

.brand-mark svg {
    width: 28px;
    height: 28px;
}

.brand-text {
    font-family: "UltraDisplay", "URW Gothic", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 13px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--surface-2);
    outline: none;
}

.contact-pill {
    justify-self: end;
    padding: 9px 12px;
    border: 1px solid rgba(207, 77, 56, 0.35);
    border-radius: 8px;
    background: rgba(207, 77, 56, 0.08);
    color: #8a2f22;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.contact-pill.is-link {
    text-decoration: none;
    color: var(--surface);
    border-color: var(--green-dark);
    background: var(--green-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    padding: 64px 0 52px;
    background:
        linear-gradient(135deg, rgba(31, 122, 92, 0.16), transparent 36%),
        linear-gradient(180deg, var(--surface), #efe6d4);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
    gap: 44px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3 {
    font-family: "UltraDisplay", "URW Gothic", sans-serif;
    line-height: 1.03;
    letter-spacing: 0;
}

h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.7rem);
}

.hero-subtitle {
    max-width: 690px;
    margin: 24px 0 0;
    color: #33423b;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 17px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

.button svg {
    width: 18px;
    height: 18px;
}

.button.primary {
    color: var(--surface);
    background: var(--green-dark);
}

.button.primary:hover,
.button.primary:focus-visible {
    background: #174c40;
    outline: 3px solid rgba(31, 122, 92, 0.18);
}

.button.ghost {
    color: #8a2f22;
    border: 1px solid rgba(207, 77, 56, 0.35);
    background: rgba(207, 77, 56, 0.08);
}

.operation-board {
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
        var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.board-topline,
.board-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--panel-line);
}

.board-topline span,
.board-bottom span,
.order-card small {
    color: rgba(255, 255, 255, 0.68);
}

.channel-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--panel-line);
}

.channel-strip span {
    padding: 12px 10px;
    border-right: 1px solid var(--panel-line);
    color: var(--lime);
    font-weight: 700;
    text-align: center;
}

.channel-strip span:last-child {
    border-right: 0;
}

.board-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 280px;
}

.board-column {
    padding: 16px;
    border-right: 1px solid var(--panel-line);
    background: rgba(0, 0, 0, 0.08);
}

.board-column:last-child {
    border-right: 0;
}

.board-column h2 {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-family: "UltraBody", "Nimbus Sans", sans-serif;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.order-card {
    min-height: 90px;
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.order-card.warning {
    border-left-color: var(--amber);
}

.order-card.success {
    border-left-color: var(--lime);
}

.board-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--panel-line);
    border-bottom: 0;
}

.board-bottom div {
    min-height: 72px;
    display: grid;
    gap: 2px;
}

.board-bottom strong {
    font-size: 1.38rem;
}

.section {
    padding: 76px 0;
    border-bottom: 1px solid var(--line);
}

.split-grid,
.marketplace-grid,
.compare-grid,
.contact-box {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 40px;
    align-items: start;
}

.section h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
}

.section-heading {
    max-width: 810px;
    margin-bottom: 34px;
}

.problem-solution {
    display: grid;
    gap: 14px;
}

.problem-solution article,
.module-card,
.roadmap-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.problem-solution article {
    padding: 22px;
}

.problem-solution p {
    margin: 12px 0 0;
    color: #33423b;
    font-size: 1.04rem;
}

.state-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.state-badge.bad {
    color: #8a2f22;
    background: rgba(207, 77, 56, 0.12);
}

.state-badge.good {
    color: #0f4f3c;
    background: rgba(31, 122, 92, 0.13);
}

.modules-section {
    background: #f7f0e2;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.module-card {
    min-height: 235px;
    padding: 20px;
}

.module-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--green-dark);
    border: 1px solid rgba(31, 122, 92, 0.28);
    border-radius: 8px;
    background: rgba(31, 122, 92, 0.09);
}

.module-icon svg {
    width: 24px;
    height: 24px;
}

.module-card h3,
.roadmap-grid h3 {
    margin: 18px 0 10px;
    font-size: 1.2rem;
}

.module-card p,
.roadmap-grid p,
.marketplace-section p,
.compare-list p,
.contact-box p,
.site-footer p,
.footer-status span,
.prose p {
    color: var(--muted);
}

.marketplace-section {
    color: var(--white);
    background: var(--panel-2);
}

.marketplace-section .section-kicker,
.marketplace-section .notice-text {
    color: var(--lime);
}

.marketplace-section p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
}

.integration-flow {
    display: grid;
    gap: 14px;
}

.integration-flow div {
    min-height: 112px;
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-areas:
        "num title"
        "num text";
    gap: 2px 14px;
    align-content: center;
    padding: 20px;
    border: 1px solid var(--panel-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.integration-flow span {
    grid-area: num;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--panel-2);
    background: var(--lime);
    border-radius: 8px;
    font-weight: 700;
}

.integration-flow strong {
    grid-area: title;
}

.integration-flow small {
    grid-area: text;
    color: rgba(255, 255, 255, 0.68);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.roadmap-grid article {
    padding: 24px;
}

.roadmap-grid span {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.compare-section {
    background: #efe6d4;
}

.compare-list {
    display: grid;
    gap: 16px;
}

.compare-list p {
    margin: 0;
    padding: 20px;
    border-left: 4px solid var(--green);
    background: rgba(255, 255, 255, 0.5);
}

.contact-section {
    background: var(--surface);
}

.contact-box {
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(207, 77, 56, 0.28);
    border-radius: 8px;
    background: rgba(207, 77, 56, 0.08);
}

.status-large {
    justify-self: end;
    max-width: 330px;
    padding: 18px;
    border-radius: 8px;
    color: #8a2f22;
    background: rgba(255, 255, 255, 0.74);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.contact-actions {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-hero {
    padding: 72px 0 56px;
    background: #efe6d4;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page-hero p:last-child {
    max-width: 690px;
    color: var(--muted);
    font-size: 1.12rem;
}

.text-section {
    background: var(--surface);
}

.prose h2 {
    margin: 32px 0 10px;
    font-size: 1.8rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.site-footer {
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.9);
    background: var(--green-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 40px;
    align-items: start;
}

.footer-brand {
    color: var(--white);
}

.footer-brand .brand-mark {
    color: var(--green-dark);
    background: var(--lime);
    box-shadow: none;
}

.site-footer p,
.footer-status span {
    color: rgba(255, 255, 255, 0.72);
}

.footer-status {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-status strong,
.footer-status span,
.footer-status a {
    display: block;
}

.footer-status span,
.footer-status a {
    margin-top: 8px;
}

.footer-status a {
    color: var(--lime);
    font-weight: 700;
}

@media (max-width: 1080px) {
    .hero-grid,
    .split-grid,
    .marketplace-grid,
    .compare-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 32px;
    }

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

    .status-large {
        justify-self: start;
    }

    .contact-actions {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .shell,
    .narrow {
        width: min(100% - 28px, 1180px);
    }

    .header-shell {
        min-height: 66px;
        grid-template-columns: auto auto;
        gap: 12px;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .main-nav,
    .contact-pill {
        display: none;
    }

    .main-nav.is-open {
        position: fixed;
        inset: 66px 0 auto 0;
        display: grid;
        justify-content: stretch;
        gap: 0;
        padding: 12px 14px 18px;
        border-bottom: 1px solid var(--line);
        background: var(--surface);
        box-shadow: 0 26px 40px rgba(23, 33, 29, 0.14);
    }

    .main-nav.is-open a {
        padding: 14px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero {
        padding: 42px 0 34px;
    }

    h1 {
        font-size: clamp(2.55rem, 14vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .button {
        width: 100%;
    }

    .operation-board {
        border-radius: 8px;
    }

    .channel-strip,
    .board-columns,
    .board-bottom,
    .roadmap-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .channel-strip span,
    .board-column {
        border-right: 0;
        border-bottom: 1px solid var(--panel-line);
    }

    .board-bottom {
        gap: 0;
    }

    .board-bottom div {
        padding: 12px 0;
        border-bottom: 1px solid var(--panel-line);
    }

    .section {
        padding: 54px 0;
    }

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

    .module-card {
        min-height: auto;
    }

    .contact-box {
        padding: 20px;
    }
}
