:root {
    color-scheme: light;
    --ink: #05070b;
    --text: #18202b;
    --muted: #5d6675;
    --quiet: #7a8290;
    --paper: #f7f8fb;
    --surface: #ffffff;
    --surface-strong: #eef2f7;
    --brand: #1e63ff;
    --brand-strong: #0049e7;
    --cyan: #06d7c6;
    --sky: #68c7ff;
    --violet: #7a69ff;
    --night: #05080d;
    --night-soft: #111827;
    --line: #dce2ec;
    --line-strong: #c7d0dd;
    --cream: #f3eee6;
    --shadow: 0 18px 44px rgba(8, 16, 32, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(145deg, rgba(6, 215, 198, 0.06), transparent 28%),
        linear-gradient(320deg, rgba(122, 105, 255, 0.07), transparent 34%),
        var(--paper);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

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

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

p,
h1,
h2,
h3,
dl {
    margin: 0;
}

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 100;
    transform: translateY(-140%);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    padding: 10px 14px;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(199, 208, 221, 0.72);
    background: rgba(249, 251, 255, 0.9);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand-logo {
    width: 202px;
    height: auto;
}

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

.main-nav a,
.login-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
    padding: 0 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: var(--surface-strong);
    color: var(--ink);
}

.login-link {
    border: 1px solid rgba(5, 7, 11, 0.9);
    background: linear-gradient(135deg, var(--ink), #111b2d);
    color: #ffffff;
}

.login-link:hover,
.login-link:focus-visible {
    background: var(--brand);
    border-color: var(--brand);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 104px 0 92px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(115deg, rgba(0, 222, 192, 0.34), transparent 34%),
        linear-gradient(280deg, rgba(122, 105, 255, 0.42), transparent 44%),
        linear-gradient(180deg, #081014 0%, #05080d 54%, #070a12 100%);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 88%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(6, 215, 198, 0.08));
}

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

.hero-copy {
    max-width: 700px;
}

.eyebrow,
.section-kicker {
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero .eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.72);
    padding: 8px 13px;
    letter-spacing: 0.08em;
}

.hero .eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(6, 215, 198, 0.86);
}

.hero h1 {
    margin-top: 22px;
    color: #f8fbff;
    font-size: 68px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-gradient-text {
    display: block;
    width: fit-content;
    background: linear-gradient(105deg, var(--cyan), var(--sky) 52%, var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 640px;
    margin-top: 24px;
    color: rgba(226, 234, 244, 0.78);
    font-size: 20px;
    line-height: 1.55;
}

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

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 800;
    line-height: 1.2;
}

.button-primary {
    background: linear-gradient(135deg, #06d7c6, #1e63ff 72%, #7a69ff);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(30, 99, 255, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: linear-gradient(135deg, #02c0b0, #0049e7 70%, #6656ed);
}

.button-secondary {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.hero .button-secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.hero .button-secondary:hover,
.hero .button-secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--ink);
}

.signal-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
}

.signal-row div {
    min-height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    padding: 16px;
}

.signal-row dt {
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.signal-row dd {
    margin: 6px 0 0;
    color: rgba(226, 234, 244, 0.68);
    font-size: 14px;
}

.ops-preview {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(11, 17, 29, 0.78);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.preview-top {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    color: #ffffff;
    padding: 0 20px;
    font-weight: 800;
}

.preview-top span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    text-transform: uppercase;
}

.preview-status {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-status div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(226, 234, 244, 0.74);
    font-size: 14px;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 99px;
}

.status-ok {
    background: #14b86f;
}

.status-info {
    background: var(--cyan);
}

.status-warn {
    background: #f4a62a;
}

.preview-event {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-label {
    display: block;
    color: rgba(226, 234, 244, 0.54);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-event strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.2;
}

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

.preview-metrics span {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    color: rgba(226, 234, 244, 0.62);
    font-size: 13px;
    line-height: 1.35;
}

.preview-metrics b {
    display: block;
    color: #ffffff;
    font-size: 19px;
}

.preview-table {
    display: grid;
}

.preview-table div {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 20px;
}

.preview-table div:last-child {
    border-bottom: 0;
}

.preview-table span {
    color: rgba(226, 234, 244, 0.54);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-table strong {
    color: #ffffff;
    font-size: 14px;
}

.section {
    padding: 86px 0;
}

.section-quiet {
    background:
        linear-gradient(120deg, rgba(6, 215, 198, 0.06), transparent 36%),
        var(--surface);
}

.section-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 64px;
}

.section h2,
.contact-panel h2 {
    margin-top: 12px;
    color: var(--ink);
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.section-copy {
    display: grid;
    gap: 18px;
    color: var(--muted);
    font-size: 18px;
}

.section-head {
    max-width: 780px;
    margin-bottom: 30px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.workflow-card {
    position: relative;
    overflow: hidden;
    min-height: 254px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
}

.workflow-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--brand), var(--violet));
}

.card-index {
    display: inline-flex;
    min-width: 42px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(6, 215, 198, 0.16), rgba(30, 99, 255, 0.14));
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 900;
}

.workflow-card h3 {
    margin-top: 28px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
}

.workflow-card p {
    margin-top: 14px;
    color: var(--muted);
}

.section-split {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(130deg, rgba(6, 215, 198, 0.13), transparent 38%),
        linear-gradient(310deg, rgba(122, 105, 255, 0.13), transparent 44%),
        #eef3f9;
}

.split-copy p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    color: var(--brand-strong);
    font-weight: 900;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--ink);
}

.module-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.module-list div {
    min-height: 112px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    padding: 18px;
    box-shadow: 0 14px 30px rgba(8, 16, 32, 0.04);
}

.module-list strong,
.module-list span {
    display: block;
}

.module-list strong {
    color: var(--ink);
    font-size: 18px;
}

.module-list span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

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

.contact-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
    border: 1px solid rgba(6, 215, 198, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(6, 215, 198, 0.34), transparent 38%),
        linear-gradient(300deg, rgba(122, 105, 255, 0.46), transparent 48%),
        var(--night);
    color: #ffffff;
    padding: 44px;
}

.contact-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.42;
}

.contact-panel > * {
    position: relative;
}

.contact-panel .section-kicker {
    color: #74b8ff;
}

.contact-panel h2 {
    color: #ffffff;
}

.contact-panel p {
    max-width: 720px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
}

.contact-panel .button-secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--quiet);
    font-size: 14px;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer-inner a {
    color: var(--muted);
    font-weight: 700;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
    color: var(--brand-strong);
}

.legal-main {
    padding: 76px 0 92px;
}

.legal-article {
    max-width: 840px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 44px;
}

.legal-article h1 {
    margin-top: 10px;
    color: var(--ink);
    font-size: 46px;
    line-height: 1.08;
}

.legal-article section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.legal-article h2 {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.25;
}

.legal-article p {
    margin-top: 12px;
    color: var(--muted);
}

.legal-article a {
    color: var(--brand-strong);
    font-weight: 800;
}

.legal-note {
    margin-top: 32px;
    border-radius: 6px;
    background: var(--paper);
    padding: 16px;
    font-size: 14px;
}

.offline-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.offline-panel {
    width: min(520px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 32px;
    box-shadow: var(--shadow);
}

.offline-panel img {
    width: 260px;
}

.offline-panel h1 {
    margin-top: 28px;
    color: var(--ink);
    font-size: 34px;
    line-height: 1.1;
}

.offline-panel p {
    margin-top: 14px;
    color: var(--muted);
}

.offline-panel .button {
    margin-top: 24px;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 190px 1fr auto;
        gap: 18px;
    }

    .brand-logo {
        width: 184px;
    }

    .main-nav {
        justify-content: flex-end;
    }

    .main-nav a {
        display: none;
    }

    .hero {
        padding: 72px 0 64px;
    }

    .hero-grid,
    .section-grid,
    .split-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-lead,
    .section-copy,
    .split-copy p,
    .contact-panel p {
        font-size: 17px;
    }

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

    .contact-actions {
        margin-top: 0;
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(100% - 28px, 1120px);
    }

    .header-inner {
        min-height: 70px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .brand-logo {
        width: 170px;
    }

    .main-nav {
        display: none;
    }

    .login-link {
        min-height: 38px;
        padding: 0 12px;
    }

    .hero {
        padding: 52px 0 54px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.04;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .signal-row,
    .preview-metrics,
    .workflow-grid,
    .module-list {
        grid-template-columns: 1fr;
    }

    .preview-table div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 18px;
    }

    .section {
        padding: 58px 0;
    }

    .section h2,
    .contact-panel h2 {
        font-size: 32px;
    }

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

    .contact-panel,
    .legal-article {
        padding: 26px;
    }

    .footer-inner {
        min-height: 112px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-inner nav {
        justify-content: center;
    }

    .legal-main {
        padding: 42px 0 58px;
    }

    .legal-article h1 {
        font-size: 36px;
    }
}
