:root {
    --bg: #f7f8f9;
    --surface: #ffffff;
    --text: #1a202c;
    --muted: #4a5568;
    --accent: #0f4c81;
    --accent-2: #08345a;
    --border: #d9e2ec;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    line-height: 1.5;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(
        180deg,
        #eef3f7 0%,
        var(--bg) 40%,
        #ffffff 100%
    );
}

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

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(6px);
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 68px;
}

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

.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.nav-toggle-label {
    display: none;
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
}

a:focus-visible,
.nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid #1d6faa;
    outline-offset: 2px;
}

.nav-links a[aria-current="page"] {
    color: var(--text);
    background: #e8eef5;
}

.button-link {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    padding: 0.6rem 0.9rem !important;
}

.button-link.secondary {
    background: var(--accent-2);
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    margin: 0;
}

.lead {
    margin: 0;
    max-width: 70ch;
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.home-section {
    margin: 1.15rem 0;
    animation: section-in 0.45s ease-out both;
}

.home-section:nth-of-type(1) {
    animation-delay: 0.04s;
}

.home-section:nth-of-type(2) {
    animation-delay: 0.08s;
}

.home-section:nth-of-type(3) {
    animation-delay: 0.12s;
}

.home-section:nth-of-type(4) {
    animation-delay: 0.16s;
}

.home-section:nth-of-type(5) {
    animation-delay: 0.2s;
}

.home-section:nth-of-type(6) {
    animation-delay: 0.24s;
}

.home-section:nth-of-type(7) {
    animation-delay: 0.28s;
}

.home-section:nth-of-type(8) {
    animation-delay: 0.32s;
}

@keyframes section-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.hero-block {
    margin-top: 2.6rem;
    padding: 2.25rem;
    border-radius: 18px;
    border: 1px solid #cfdceb;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(15, 76, 129, 0.11),
            rgba(255, 255, 255, 0.95) 42%
        ),
        var(--surface);
}

.hero-block h1 {
    margin: 0.6rem 0 1rem;
    line-height: 1.15;
    font-size: clamp(1.85rem, 5.2vw, 3rem);
    max-width: 17ch;
}

.hero-block .actions {
    margin-top: 1.25rem;
}

.content-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.55rem;
}

.content-block h2,
.final-cta-block h2 {
    margin: 0;
    line-height: 1.2;
    font-size: clamp(1.3rem, 3vw, 1.95rem);
}

.problem-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.problem-list li {
    color: var(--muted);
}

.pillars-grid,
.teaser-grid,
.trust-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.info-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    background: #fdfefe;
    overflow-wrap: anywhere;
}

.info-card h3 {
    margin: 0;
    font-size: 1.03rem;
}

.info-card p {
    margin: 0.55rem 0 0;
    color: var(--muted);
}

.flow-list {
    margin: 1rem 0 0;
    padding-left: 1.3rem;
    display: grid;
    gap: 0.5rem;
}

.flow-list li {
    color: var(--muted);
}

.flow-list strong {
    color: var(--text);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.text-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.hint {
    margin-top: 0.8rem !important;
    color: #35536f !important;
    font-size: 0.88rem;
    font-weight: 600;
}

.final-cta-block {
    border: 1px solid #b9d0e6;
    border-radius: 16px;
    background: linear-gradient(
        160deg,
        rgba(15, 76, 129, 0.92) 0%,
        rgba(8, 52, 90, 0.95) 65%,
        rgba(6, 40, 68, 0.98) 100%
    );
    color: #f4f8fb;
    padding: 2rem;
    margin-bottom: 2.6rem;
}

.final-cta-block p {
    margin: 0.8rem 0 1rem;
    color: #d8e4ef;
    max-width: 60ch;
}

.final-cta-block .button-link {
    background: #ffffff;
    color: #103a5e !important;
}

.final-cta-block .button-link.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #f4f8fb !important;
}

.pricing-section {
    margin: 2.7rem 0 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
}

.pricing-section h1 {
    margin: 0.7rem 0 0.85rem;
    line-height: 1.15;
    font-size: clamp(1.6rem, 4.5vw, 2.45rem);
}

.pricing-section .actions {
    margin-top: 1rem;
}

.pricing-table-wrap {
    margin-top: 1.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.pricing-table th,
.pricing-table td {
    text-align: left;
    padding: 0.8rem;
    border-bottom: 1px solid #e7edf4;
    vertical-align: top;
}

.pricing-table th {
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #35536f;
    background: #f6f9fc;
}

.pricing-table tr:last-child td {
    border-bottom: 0;
}

.pricing-cards {
    display: none;
}

.pricing-note {
    margin: 1rem 0 0;
    color: var(--muted);
    max-width: 72ch;
}

.roles-section {
    margin: 2.7rem 0 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
}

.roles-section h1 {
    margin: 0.7rem 0 0.85rem;
    line-height: 1.15;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}

.roles-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.role-card {
    background: #fcfdff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    overflow-wrap: anywhere;
}

.role-card h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
}

.role-card h3 {
    margin: 0.9rem 0 0.4rem;
    font-size: 0.95rem;
}

.role-card p {
    margin: 0.55rem 0 0;
    color: var(--muted);
}

.role-card ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.role-card li {
    margin: 0.35rem 0 0;
}

.roles-actions {
    margin-top: 1.15rem;
}

.page-card {
    margin: 3rem auto 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: inherit;
}

@media (max-width: 720px) {
    .nav-row {
        min-height: auto;
        padding: 0.85rem 0;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.6rem;
    }

    .nav-toggle-label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        background: #fff;
        border-radius: 8px;
        min-height: 40px;
        min-width: 64px;
        padding: 0 0.8rem;
        color: var(--text);
        font-size: 0.9rem;
        cursor: pointer;
        touch-action: manipulation;
    }

    .nav-links {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 0.55rem;
        margin-top: 0.25rem;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 0.55rem 0.65rem;
    }

    .nav-links .button-link {
        text-align: center;
    }

    .hero-block {
        margin-top: 1.2rem;
        padding: 1.35rem;
    }

    .content-block {
        padding: 1.2rem;
    }

    .problem-list,
    .flow-list {
        padding-left: 1rem;
    }

    .pillars-grid,
    .teaser-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .final-cta-block {
        padding: 1.3rem;
        margin-bottom: 1.8rem;
    }

    .pricing-section {
        margin-top: 1.2rem;
        padding: 1.2rem;
    }

    .roles-section {
        margin-top: 1.2rem;
        padding: 1.2rem;
    }

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

    .pricing-table-wrap {
        display: none;
    }

    .pricing-cards {
        margin-top: 1rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .pricing-card {
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fcfdff;
        padding: 0.95rem;
    }

    .pricing-card h2 {
        margin: 0;
        font-size: 1.05rem;
    }

    .pricing-card p {
        margin: 0.55rem 0 0;
        color: var(--muted);
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.9rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
