:root {
    --ms-bg: #070b18;
    --ms-bg-soft: #0d1326;
    --ms-surface: #ffffff;
    --ms-surface-soft: #f5f7fb;
    --ms-surface-dark: #10172f;
    --ms-text: #111827;
    --ms-text-light: #ffffff;
    --ms-muted: #667085;
    --ms-muted-light: rgba(255, 255, 255, 0.72);
    --ms-border: #e5e7eb;
    --ms-border-dark: rgba(255, 255, 255, 0.12);
    --ms-primary: #6366f1;
    --ms-primary-dark: #4f46e5;
    --ms-primary-soft: #eef2ff;
    --ms-accent: #22c55e;
    --ms-accent-soft: rgba(34, 197, 94, 0.14);
    --ms-radius-xl: 32px;
    --ms-radius-lg: 24px;
    --ms-radius-md: 18px;
    --ms-radius-sm: 12px;
    --ms-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --ms-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --ms-container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--ms-surface-soft);
    color: var(--ms-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
}

.ms-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ms-container {
    width: min(var(--ms-container), calc(100% - 40px));
    margin: 0 auto;
}

.ms-main {
    flex: 1;
}

/* Header */

.ms-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    backdrop-filter: blur(18px);
}

.ms-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.ms-logo,
.ms-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ms-text);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.ms-logo:hover,
.ms-footer-logo:hover {
    color: var(--ms-primary);
}

.ms-logo-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), transparent 24%),
        linear-gradient(135deg, var(--ms-primary), #06b6d4);
    box-shadow: 0 14px 34px rgba(99, 102, 241, 0.32);
}

.ms-logo-text {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--ms-border);
    border-radius: 999px;
    background: #ffffff;
}

.ms-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    color: #475467;
    font-size: 14px;
    font-weight: 750;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.ms-nav a:hover {
    background: var(--ms-primary-soft);
    color: var(--ms-primary-dark);
    transform: translateY(-1px);
}

.ms-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ms-text);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ms-header-cta:hover {
    background: var(--ms-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(79, 70, 229, 0.24);
}

/* Buttons */

.ms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 850;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ms-button:hover {
    transform: translateY(-2px);
}

.ms-button-primary {
    background: var(--ms-primary);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(99, 102, 241, 0.28);
}

.ms-button-primary:hover {
    background: var(--ms-primary-dark);
}

.ms-button-secondary {
    background: #ffffff;
    color: var(--ms-text);
    border-color: var(--ms-border);
}

.ms-button-secondary:hover {
    border-color: var(--ms-primary);
    color: var(--ms-primary-dark);
}

.ms-button-light {
    background: #ffffff;
    color: var(--ms-primary-dark);
}

.ms-button-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.ms-button-outline-light:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

/* Common */

.ms-kicker {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--ms-primary-soft);
    color: var(--ms-primary-dark);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ms-section {
    padding: 78px 0;
}

.ms-section-soft {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 30rem),
        #ffffff;
    border-top: 1px solid var(--ms-border);
    border-bottom: 1px solid var(--ms-border);
}

.ms-section-header {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}

.ms-section-header-left {
    margin-left: 0;
    text-align: left;
}

.ms-section-header h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.ms-section-header p:not(.ms-kicker) {
    margin-top: 16px;
    color: var(--ms-muted);
    font-size: 18px;
}

/* Home hero */

.ms-hero {
    position: relative;
    padding: 92px 0 84px;
    background:
        radial-gradient(circle at 78% 16%, rgba(34, 197, 94, 0.22), transparent 20rem),
        radial-gradient(circle at 18% 20%, rgba(99, 102, 241, 0.35), transparent 24rem),
        linear-gradient(135deg, #080b17, #10172f 56%, #111827);
    color: var(--ms-text-light);
}

.ms-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(245, 247, 251, 0.08));
    pointer-events: none;
}

.ms-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
    gap: 36px;
    align-items: center;
}

.ms-hero-title {
    max-width: 850px;
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.ms-hero-text {
    max-width: 720px;
    margin-top: 24px;
    color: var(--ms-muted-light);
    font-size: 19px;
}

.ms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.ms-hero-panel {
    padding: 34px;
    border: 1px solid var(--ms-border-dark);
    border-radius: var(--ms-radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.ms-panel-label {
    margin-bottom: 14px;
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ms-panel-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.ms-panel-text {
    color: var(--ms-muted-light);
}

.ms-panel-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.ms-panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--ms-border-dark);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.ms-panel-item span {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--ms-accent);
    box-shadow: 0 0 0 6px var(--ms-accent-soft);
}

.ms-panel-item p {
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
}

/* Feature cards */

.ms-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ms-feature-card {
    padding: 30px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    background: #ffffff;
    box-shadow: var(--ms-shadow-soft);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.ms-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.32);
    box-shadow: var(--ms-shadow);
}

.ms-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--ms-primary-soft);
    color: var(--ms-primary-dark);
    font-size: 15px;
    font-weight: 900;
}

.ms-feature-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.ms-feature-card p {
    color: var(--ms-muted);
}

/* Content cards */

.ms-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.ms-content-card {
    padding: 30px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    background: var(--ms-surface-soft);
}

.ms-card-number {
    margin-bottom: 12px;
    color: var(--ms-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ms-content-card h2 {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.ms-content-card p {
    color: var(--ms-muted);
}

/* CTA */

.ms-cta-section {
    padding: 72px 0;
    background: #ffffff;
}

.ms-cta-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 42px;
    border-radius: var(--ms-radius-xl);
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.3), transparent 20rem),
        linear-gradient(135deg, var(--ms-primary-dark), #111827);
    box-shadow: var(--ms-shadow);
}

.ms-cta-box .ms-kicker {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.ms-cta-box h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.ms-cta-box p:not(.ms-kicker) {
    max-width: 680px;
    margin-top: 14px;
    color: var(--ms-muted-light);
}

.ms-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

/* Articles on home */

.ms-articles-section {
    background: var(--ms-surface-soft);
}

.ms-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ms-article-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    background: #ffffff;
    box-shadow: var(--ms-shadow-soft);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.ms-article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.32);
    box-shadow: var(--ms-shadow);
}

.ms-article-meta {
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--ms-primary-soft);
    color: var(--ms-primary-dark);
    font-size: 13px;
    font-weight: 850;
}

.ms-article-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.ms-article-card p {
    margin-bottom: 22px;
    color: var(--ms-muted);
}

.ms-read-more {
    margin-top: auto;
    color: var(--ms-primary-dark);
    font-weight: 900;
}

.ms-read-more::after {
    content: " →";
}

/* Page layout */

.ms-page-hero,
.ms-article-hero {
    padding: 72px 0 40px;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 24rem),
        linear-gradient(135deg, #ffffff, #eef2ff);
    border-bottom: 1px solid var(--ms-border);
}

.ms-page-hero-inner,
.ms-article-hero-inner {
    max-width: 880px;
}

.ms-page-hero-inner h1,
.ms-article-hero-inner h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.ms-page-hero-inner p:not(.ms-kicker),
.ms-article-hero-inner p:not(.ms-kicker) {
    max-width: 760px;
    margin-top: 20px;
    color: var(--ms-muted);
    font-size: 19px;
}

.ms-page-section,
.ms-article-section {
    padding: 52px 0 72px;
}

.ms-page-layout,
.ms-article-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.ms-page-sidebar,
.ms-article-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 16px;
}

.ms-sidebar-card {
    padding: 24px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    background: #ffffff;
    box-shadow: var(--ms-shadow-soft);
}

.ms-sidebar-label {
    margin-bottom: 10px;
    color: var(--ms-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ms-sidebar-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.ms-sidebar-card p {
    color: var(--ms-muted);
    font-size: 15px;
}

.ms-sidebar-links {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    background: #ffffff;
}

.ms-sidebar-links a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    color: #475467;
    font-size: 14px;
    font-weight: 800;
}

.ms-sidebar-links a:hover {
    background: var(--ms-primary-soft);
    color: var(--ms-primary-dark);
}

.ms-page-content,
.ms-article-content {
    min-width: 0;
}

.ms-content-stack {
    display: grid;
    gap: 18px;
}

.ms-info-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    background: #ffffff;
    box-shadow: var(--ms-shadow-soft);
}

.ms-info-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--ms-primary-soft);
    color: var(--ms-primary-dark);
    font-weight: 900;
}

.ms-info-card h2 {
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.ms-info-card p {
    color: var(--ms-muted);
}

/* Article page */

.ms-article-page {
    background: var(--ms-surface-soft);
}

.ms-breadcrumb {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--ms-primary-dark);
    font-size: 14px;
    font-weight: 900;
}

.ms-breadcrumb:hover {
    color: var(--ms-primary);
}

.ms-article-block {
    position: relative;
    padding: 34px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    background: #ffffff;
    box-shadow: var(--ms-shadow-soft);
}

.ms-article-block-number {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--ms-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ms-article-block h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -0.045em;
}

.ms-article-block p {
    color: var(--ms-muted);
    font-size: 17px;
}

/* FAQ */

.ms-faq-section {
    margin-top: 40px;
    padding-top: 34px;
    border-top: 1px solid var(--ms-border);
}

.ms-faq-list {
    display: grid;
    gap: 14px;
}

.ms-faq-item {
    padding: 24px 26px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-md);
    background: #ffffff;
}

.ms-faq-item h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.ms-faq-item p {
    color: var(--ms-muted);
}

/* Footer */

.ms-footer {
    padding: 58px 0 26px;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.24), transparent 24rem),
        var(--ms-bg);
    color: #ffffff;
}

.ms-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
    gap: 36px;
}

.ms-footer-logo {
    color: #ffffff;
}

.ms-footer-logo:hover {
    color: #c7d2fe;
}

.ms-footer-text {
    max-width: 440px;
    margin-top: 16px;
    color: var(--ms-muted-light);
}

.ms-footer-column h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.ms-footer-links {
    display: grid;
    gap: 9px;
}

.ms-footer-links a {
    color: var(--ms-muted-light);
    font-size: 15px;
    font-weight: 650;
}

.ms-footer-links a:hover {
    color: #ffffff;
}

.ms-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--ms-border-dark);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

/* Responsive */

@media (max-width: 1040px) {
    .ms-header-cta {
        display: none;
    }

    .ms-hero-grid,
    .ms-page-layout,
    .ms-article-layout {
        grid-template-columns: 1fr;
    }

    .ms-page-sidebar,
    .ms-article-sidebar {
        position: static;
    }

    .ms-sidebar-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ms-feature-grid,
    .ms-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ms-cta-box {
        grid-template-columns: 1fr;
    }

    .ms-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .ms-header-inner {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .ms-nav {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .ms-hero {
        padding: 62px 0;
    }

    .ms-section {
        padding: 56px 0;
    }

    .ms-content-grid,
    .ms-feature-grid,
    .ms-article-grid {
        grid-template-columns: 1fr;
    }

    .ms-sidebar-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ms-footer-top {
        grid-template-columns: 1fr;
    }

    .ms-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .ms-container {
        width: min(100% - 24px, var(--ms-container));
    }

    .ms-logo-text {
        max-width: 210px;
    }

    .ms-nav a {
        padding: 0 13px;
        font-size: 13px;
    }

    .ms-hero-title,
    .ms-page-hero-inner h1,
    .ms-article-hero-inner h1 {
        font-size: 36px;
        letter-spacing: -0.05em;
    }

    .ms-hero-text,
    .ms-page-hero-inner p:not(.ms-kicker),
    .ms-article-hero-inner p:not(.ms-kicker) {
        font-size: 16px;
    }

    .ms-hero-panel,
    .ms-cta-box,
    .ms-article-block,
    .ms-info-card,
    .ms-feature-card,
    .ms-content-card,
    .ms-article-card {
        padding: 24px;
        border-radius: 22px;
    }

    .ms-info-card {
        grid-template-columns: 1fr;
    }

    .ms-sidebar-links {
        grid-template-columns: 1fr;
    }

    .ms-hero-actions,
    .ms-cta-actions {
        flex-direction: column;
    }

    .ms-button {
        width: 100%;
    }
}

/* Generated SVG images */

.ms-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.ms-article-card-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 18px;
    border: 1px solid var(--ms-border);
    background: var(--ms-primary-soft);
}

.ms-article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 0 0 28px;
    border-radius: var(--ms-radius-lg);
    border: 1px solid var(--ms-border);
    background: #ffffff;
    box-shadow: var(--ms-shadow-soft);
}

@media (max-width: 560px) {
    .ms-hero-image,
    .ms-article-card-cover,
    .ms-article-cover {
        border-radius: 16px;
    }

    .ms-hero-image {
        margin-bottom: 20px;
    }

    .ms-article-cover {
        margin-bottom: 22px;
    }
}