@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --page: #07101b;
    --page-raised: #0b1624;
    --surface: #101c2b;
    --surface-muted: #132235;
    --text: #f7f9fc;
    --text-soft: #b9c7dc;
    --text-muted: #8fa0b8;
    --border: #213149;
    --border-strong: #355278;
    --blue: #2f98f5;
    --blue-fill: #0872df;
    --blue-deep: #075ebd;
    --blue-soft: #8fc9ff;
    --danger: #ff9eb8;
    --warning-bg: #2a2112;
    --warning-border: #b98232;
    --warning-text: #f0ca91;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --wrap: 1140px;
    --measure: 68ch;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-wrap: break-word;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--blue-soft);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: #ffffff;
    text-decoration-thickness: 2px;
}

h1,
h2,
h3,
p,
ul,
ol {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.85rem);
}

h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

p,
ul,
ol {
    margin-bottom: 1.25rem;
}

ul,
ol {
    padding-left: 1.35rem;
}

li {
    margin-bottom: 0.4rem;
}

strong {
    font-weight: 700;
}

code {
    padding: 0.12em 0.38em;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: #0c1725;
    color: var(--text);
    font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
    border-radius: 5px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: -9999px;
    z-index: 100;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #08111e;
    font-weight: 700;
}

.skip-link:focus {
    left: 0.75rem;
}

.wrap {
    width: min(100%, var(--wrap));
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.wrap--prose {
    max-width: 860px;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 16, 27, 0.96);
}

.site-header__inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand:hover {
    color: var(--text);
}

.brand__mark {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 9px;
}

.language-switcher {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
}

.language-switcher a {
    min-width: 44px;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.language-switcher a[aria-current="page"] {
    background: var(--blue-fill);
    color: #ffffff;
}

.site-nav ul,
.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li,
.site-footer li {
    margin: 0;
}

.site-nav a {
    display: inline-block;
    padding: 0.5rem 0.15rem;
    color: var(--text-soft);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer__inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--text-soft);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
    color: #ffffff;
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.7rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.btn--primary {
    background: var(--blue-fill);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(8, 119, 237, 0.23);
}

.btn--primary:hover {
    background: var(--blue-deep);
    color: #ffffff;
    text-decoration: none;
}

.btn--block {
    width: 100%;
}

.eyebrow {
    margin-bottom: 1.25rem;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* Landing page */

.landing-page {
    background: #07101b;
}

.landing-main {
    padding: 0;
}

.landing-hero {
    display: grid;
    min-height: 675px;
    grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
    align-items: center;
    gap: 1rem;
    overflow: visible;
}

.landing-hero__copy {
    position: relative;
    z-index: 4;
    padding-block: 4.5rem;
}

.landing-hero h1 {
    max-width: 660px;
    width: max-content;
    margin-bottom: 1.5rem;
    font-size: clamp(3.2rem, 5.5vw, 5.35rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.landing-hero h1 span {
    color: var(--blue-fill);
}

.landing-hero__lead {
    max-width: 500px;
    margin-bottom: 2rem;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
    line-height: 1.55;
}

.landing-hero__aside {
    margin: 1.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.landing-hero .btn {
    min-width: 180px;
}

.product-showcase {
    position: relative;
    height: 640px;
    margin: 0;
}

.product-showcase__halo {
    display: none;
}

.product-screen {
    position: absolute;
    width: 305px;
    border: 1px solid rgba(143, 201, 255, 0.45);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 73, 168, 0.34), 0 18px 34px rgba(0, 0, 0, 0.4);
}

.product-screen--front {
    top: -35px;
    left: 42px;
    z-index: 3;
    transform: rotate(-4deg);
}

.product-screen--back {
    top: 30px;
    right: -6px;
    z-index: 2;
    width: 275px;
    transform: rotate(5deg);
}

.capabilities {
    scroll-margin-top: 1rem;
    border-top: 1px solid var(--border);
    background: #091321;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-block: 2.6rem;
}

.capability {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1.1rem;
    align-items: center;
    min-width: 0;
    padding-inline: 1.75rem;
}

.capability:first-child {
    padding-left: 0;
}

.capability:last-child {
    padding-right: 0;
}

.capability + .capability {
    border-left: 1px solid var(--border);
}

.capability__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
}

.capability__icon img {
    width: 30px;
    height: 30px;
    filter: invert(54%) sepia(92%) saturate(1776%) hue-rotate(185deg) brightness(101%) contrast(92%);
}

.capability h2 {
    margin: 0 0 0.2rem;
    font-size: 1.04rem;
    letter-spacing: -0.02em;
}

.capability p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Documents */

main:not(.landing-main) {
    padding-block: 3.5rem 5rem;
}

.doc h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 900;
}

.doc-hero {
    margin-bottom: 2rem;
}

.doc-intro {
    max-width: 60ch;
    color: var(--text-soft);
    font-size: 1.12rem;
}

.doc-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doc-meta p {
    margin-bottom: 0.25rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 2.5rem 0 3.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--border);
}

.summary-grid > div {
    padding: 1.4rem;
    background: var(--surface);
}

.summary-grid strong,
.summary-grid span {
    display: block;
}

.summary-grid strong {
    margin-bottom: 0.4rem;
    color: var(--text);
}

.summary-grid span {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.doc-layout {
    display: grid;
    gap: 2rem;
}

.doc-body {
    max-width: var(--measure);
}

.doc-body--centered {
    margin-inline: auto;
}

.doc section {
    scroll-margin-top: 1.5rem;
}

.doc section + section {
    margin-top: 2.6rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
}

.doc section h2 {
    margin-top: 0;
    padding-top: 0.5rem;
}

.doc p,
.doc li {
    color: var(--text-soft);
}

.doc strong,
.doc h2,
.doc h3 {
    color: var(--text);
}

.toc,
.card,
.note,
.action-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.toc {
    padding: 1.25rem;
    font-size: 0.88rem;
}

.toc h2 {
    margin: 0 0 0.7rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc a {
    color: var(--text-soft);
    text-decoration: none;
}

.toc a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.card,
.action-panel {
    padding: clamp(1.35rem, 3vw, 2.2rem);
}

.card > :last-child,
.note > :last-child,
.action-panel > :last-child {
    margin-bottom: 0;
}

.note {
    margin-bottom: 1.25rem;
    padding: 1.2rem;
    border-left: 4px solid var(--blue);
}

.todo {
    margin-bottom: 1.5rem;
    padding: 1.15rem;
    border: 2px dashed var(--warning-border);
    border-radius: var(--radius-sm);
    background: var(--warning-bg);
    color: var(--warning-text);
}

.todo p {
    color: inherit;
}

.action-panel {
    border-color: var(--border-strong);
    background: var(--surface-muted);
}

.action-panel__secondary {
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.rights-list li {
    margin-bottom: 0.75rem;
}

.email-plain {
    display: block;
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    overflow-wrap: anywhere;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #0c1725;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.operator {
    margin-bottom: 1.25rem;
    padding: 0.95rem 1.15rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-soft);
    font-style: normal;
    line-height: 1.75;
}

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

.steps {
    counter-reset: step;
    padding-left: 0;
    list-style: none;
}

.steps li {
    position: relative;
    min-height: 2.2rem;
    padding-left: 3rem;
    counter-increment: step;
}

.steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-fill);
    color: #ffffff;
    content: counter(step);
    font-size: 0.85rem;
    font-weight: 700;
}

table {
    display: block;
    width: 100%;
    margin: 1.25rem 0;
    overflow-x: auto;
    border-collapse: collapse;
    color: var(--text-soft);
    font-size: 0.9rem;
}

th,
td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-muted);
    color: var(--text);
}

.notfound {
    max-width: 650px;
    padding-block: 4rem 6rem;
}

@media (min-width: 1040px) {
    .wrap--with-toc {
        max-width: var(--wrap);
    }

    .doc-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 3.5rem;
        align-items: start;
    }

    .doc-layout .toc {
        position: sticky;
        top: 1.5rem;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }
}

@media (max-width: 980px) {
    .landing-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    .landing-hero__copy {
        padding-block: 3.5rem 1rem;
    }

    .landing-hero h1 {
        width: auto;
    }

    .product-showcase {
        width: min(100%, 620px);
        height: 590px;
        margin-inline: auto;
    }

    .product-screen--front {
        left: 12%;
    }

    .product-screen--back {
        right: 8%;
    }

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

    .capability,
    .capability:first-child,
    .capability:last-child {
        padding: 1.5rem 0;
    }

    .capability + .capability {
        border-top: 1px solid var(--border);
        border-left: 0;
    }
}

@media (min-width: 981px) {
    .landing-hero__copy {
        margin-left: -3rem;
    }

    .product-showcase {
        margin-left: -2rem;
    }
}

@media (max-width: 680px) {
    .wrap {
        padding-inline: 1.1rem;
    }

    .site-header__inner {
        min-height: 64px;
    }

    .landing-hero h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .landing-hero__lead {
        font-size: 1.05rem;
    }

    .product-showcase {
        height: 500px;
    }

    .product-screen {
        width: 225px;
        border-radius: 22px;
    }

    .product-screen--front {
        top: 10px;
        left: 4%;
    }

    .product-screen--back {
        top: 58px;
        right: 2%;
        width: 205px;
    }

    .capability {
        grid-template-columns: 64px 1fr;
        gap: 0.9rem;
    }

    .capability__icon {
        width: 58px;
        height: 58px;
    }

    .site-footer__inner {
        min-height: 110px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

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

    main:not(.landing-main) {
        padding-block: 2.5rem 4rem;
    }
}

@media (max-width: 420px) {
    .landing-hero h1 {
        font-size: 2.8rem;
    }

    .product-showcase {
        height: 430px;
    }

    .product-screen {
        width: 195px;
    }

    .product-screen--back {
        width: 178px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    :root {
        color-scheme: light;
    }

    body,
    .document-page,
    .doc p,
    .doc li {
        background: #ffffff;
        color: #111111;
    }

    .site-header,
    .site-footer,
    .toc,
    .btn {
        display: none;
    }

    main:not(.landing-main) {
        padding: 0;
    }

    .doc h1,
    .doc h2,
    .doc h3,
    .doc strong {
        color: #111111;
    }

    .wrap,
    .wrap--prose,
    .wrap--with-toc {
        max-width: none;
        padding: 0;
    }

    .doc-layout {
        display: block;
    }
}
