@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --mt-bg: #060d16;
    --mt-surface: #0b1422;
    --mt-surface-soft: #0f1a2e;
    --mt-panel: #0a1220;
    --mt-text: #e2eaf4;
    --mt-muted: #8a9bba;
    --mt-primary: #38bdf8;
    --mt-primary-strong: #0891b2;
    --mt-warm: #f0abfc;
    --mt-border: rgba(56, 189, 248, 0.14);
    --mt-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    --mt-glow: rgba(56, 189, 248, 0.15);
}

* { box-sizing: border-box; }

.mt-body *,
.mt-body *::before,
.mt-body *::after {
    border-radius: 0 !important;
}
html { scroll-behavior: smooth; }

body.mt-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--mt-text);
    line-height: 1.65;
    letter-spacing: 0.01em;
    background: var(--mt-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 30% 0%, rgba(8, 145, 178, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 45% at 80% 100%, rgba(240, 171, 252, 0.04) 0%, transparent 55%);
}

.mt-footer__inner,
.mt-main,
.mt-topbar__frame {
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
}

.mt-main { margin-top: 2rem; margin-bottom: 3rem; }

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.25; }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--mt-primary); }
img { display: block; max-width: 100%; border-radius: 12px; }

/* ── TOPBAR ── */
.mt-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px) saturate(1.4);
    background: rgba(6, 13, 22, 0.88);
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.mt-topbar__outer {
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
}

.mt-topbar__frame {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
}

.mt-brand__logo { width: 156px; height: auto; }

.mt-nav { display: flex; align-items: center; gap: 1.4rem; margin: 0 auto; }
.mt-nav a,
.mt-drawer > a {
    color: var(--mt-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    transition: all 0.2s ease;
}
.mt-nav a:hover,
.mt-drawer > a:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.12);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

/* ── HAMBURGER ── */
.mt-menu-toggle {
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
}

.mt-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 4px;
    background: var(--mt-text);
    transition: 0.2s;
}
.mt-menu-toggle span:nth-child(1) { top: 6px; }
.mt-menu-toggle span:nth-child(2) { top: 15px; }
.mt-menu-toggle span:nth-child(3) { top: 24px; }
.mt-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mt-menu-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mt-menu-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── AUTH ── */
.mt-auth { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

.mt-btn {
    border-radius: 12px;
    padding: 0.58rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: #fff;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: all 0.25s ease;
}

.mt-btn--solid {
    background: linear-gradient(135deg, var(--mt-primary-strong), var(--mt-primary));
    box-shadow: 0 6px 20px var(--mt-glow);
    color: #021b26;
    font-weight: 700;
}
.mt-btn--solid:hover {
    background: linear-gradient(135deg, #0e7490, #22d3ee);
    color: #021b26;
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}
.mt-btn--ghost {
    border-color: rgba(56, 189, 248, 0.25);
    color: var(--mt-text);
    background: rgba(11, 20, 34, 0.8);
}
.mt-btn--ghost:hover {
    border-color: var(--mt-primary);
    color: #fff;
    background: rgba(56, 189, 248, 0.08);
}

.mt-hero-block .mt-btn--ghost,
.mt-content-shell .mt-btn--ghost {
    color: var(--mt-primary);
    border-color: rgba(56, 189, 248, 0.25);
}
.mt-hero-block .mt-btn--ghost:hover,
.mt-content-shell .mt-btn--ghost:hover {
    border-color: var(--mt-primary);
    color: var(--mt-primary);
}

/* ── DRAWER ── */
.mt-drawer-wrap { position: relative; }
.mt-drawer { display: none; }
.mt-main-column,
.mt-page-wrap { width: 100%; }

/* ── HERO & CONTENT SHELL ── */
.mt-hero-block,
.mt-content-shell {
    background: linear-gradient(170deg, rgba(15, 26, 46, 0.96), rgba(11, 20, 34, 0.98));
    border: 1px solid var(--mt-border);
    border-radius: 18px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.mt-hero-block::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.mt-hero-block::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 171, 252, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.mt-hero-block { margin-bottom: 1rem; }
.mt-hero-block h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, #e2eaf4 0%, var(--mt-primary) 60%, var(--mt-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.mt-hero-block--image-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 40%);
    grid-template-areas:
        "text media"
        "cta media";
    align-items: center;
    column-gap: 1.2rem;
    row-gap: .8rem;
}

.mt-hero-block--image-right .mt-hero-block__text { grid-area: text; }
.mt-hero-block--image-right .mt-hero-block__media { grid-area: media; }
.mt-hero-block--image-right .mt-hero-block__cta { grid-area: cta; }
.mt-hero-block--image-right .mt-hero-block__media img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── CONTENT TYPOGRAPHY ── */
.mt-content-shell h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.mt-content-shell h2,
.mt-content-shell h3,
.mt-content-shell h4 {
    color: #e2eaf4;
    line-height: 1.35;
    letter-spacing: 0;
}
.mt-content-shell p,
.mt-content-shell li,
.mt-content-shell td,
.mt-content-shell th,
.mt-outline,
.mt-footer {
    color: var(--mt-muted);
}
.mt-content-shell ul,
.mt-content-shell ol { padding-left: 1.2rem; }
.mt-content-shell code {
    background: var(--mt-surface-soft);
    border-radius: 6px;
    padding: 0.08rem 0.35rem;
}

/* ── TABLES ── */
figure.table {
    width: 100%;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
}

.mt-content-shell figure.table > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.mt-content-shell thead {
    background: rgba(56, 189, 248, 0.07);
}

.mt-content-shell th,
.mt-content-shell td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--mt-border);
    text-align: left;
    vertical-align: top;
}

.mt-content-shell tr:last-child td {
    border-bottom: none;
}

.mt-content-shell th {
    font-weight: 600;
    color: var(--mt-text);
}

.mt-content-block h2 {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.mt-content-block ul,
.mt-content-block ol {
    padding-left: 1.2rem;
}

.mt-content-block code {
    background: var(--mt-surface-soft);
    border-radius: 6px;
    padding: 0.08rem 0.35rem;
}

/* ── CTA GROUP ── */
.mt-cta-group {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.mt-content-block .mt-btn--ghost {
    color: var(--mt-primary);
    border-color: rgba(56, 189, 248, 0.25);
}

.mt-content-block .mt-btn--ghost:hover {
    border-color: var(--mt-primary);
    color: var(--mt-primary);
}

/* ── TOC / OUTLINE ── */
.mt-outline-toggle {
    display: inline-flex;
    border-radius: 999px;
    background: var(--mt-surface);
    color: var(--mt-text);
    border: 1px solid var(--mt-border);
    font-weight: 600;
    margin: 0 0 1rem;
    cursor: pointer;
    padding: 10px 20px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: all 0.25s ease;
}

.mt-outline-toggle:hover {
    border-color: var(--mt-primary);
    box-shadow: 0 0 14px var(--mt-glow);
}

.mt-outline {
    display: none;
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 1rem;
    background: rgba(15, 26, 46, 0.5);
}

.mt-outline.is-open { display: block; }

.mt-outline__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--mt-primary); }
.mt-outline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.mt-outline__list a { color: var(--mt-muted); text-decoration: none; transition: color 0.2s; }
.mt-outline__list a:hover { color: var(--mt-primary); }

/* ── DIVIDER ── */
.mt-content-divider {
    border: 0;
    border-top: 1px solid var(--mt-border);
    margin: 1.25rem 0;
}

/* ── FAQ ── */
.mt-faq-list { display: grid; gap: 0.75rem; }
.mt-faq-entry {
    border: 1px solid var(--mt-border);
    border-radius: 14px;
    background: rgba(15, 26, 46, 0.3);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.mt-faq-entry:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 2px 16px var(--mt-glow);
}

.mt-faq-entry__trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    color: var(--mt-text);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.mt-faq-entry__trigger h3 { margin: 0; font-size: 1.3rem; color: var(--mt-text); }
.mt-faq-entry__glyph {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--mt-primary);
    transition: transform 0.2s;
}
.mt-faq-entry__trigger.is-open .mt-faq-entry__glyph { transform: rotate(45deg); }
.mt-faq-entry__answer { display: none; padding: 0 1rem 1rem; }
.mt-faq-entry__answer.is-open { display: block; }

/* ── FOOTER ── */
.mt-footer {
    background: linear-gradient(180deg, rgba(11, 20, 34, 0.98), rgba(6, 13, 22, 0.99));
    color: var(--mt-muted);
    margin-top: 1rem;
    border-top: 1px solid rgba(56, 189, 248, 0.08);
}

.mt-footer__inner {
    display: grid;
    gap: 1.35rem;
    border-radius: 18px;
    padding: 2.4rem 2.2rem;
    justify-items: center;
    text-align: center;
}

.mt-footer__top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mt-footer__company {
    max-width: 680px;
    display: grid;
    justify-items: center;
}

.mt-footer__kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--mt-primary);
}

.mt-footer__brand {
    margin: 0.2rem 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--mt-text);
}

.mt-footer__mission {
    margin: 0.5rem 0 0;
    color: var(--mt-muted);
}

.mt-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 0.8rem;
    border-top: 1px solid rgba(56, 189, 248, 0.08);
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    padding: 0.9rem 0;
}

.mt-footer__links a {
    color: var(--mt-text);
    text-decoration: none;
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.42rem 0.8rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mt-footer__links a:hover {
    color: #fff;
    border-color: var(--mt-primary);
    background: rgba(56, 189, 248, 0.08);
}

.mt-footer__compliance {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
}

.mt-footer__compliance-title {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mt-primary);
}

.mt-footer__logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.mt-footer__logos-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 46px;
    min-height: 42px;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.mt-footer__logos-item img {
    display: block;
    width: auto;
    height: 30px;
    max-width: min(132px, 32vw);
    object-fit: contain;
    object-position: center;
    opacity: 0.95;
}

.mt-footer__logos-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mt-footer__logos-item a:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

.mt-footer__legal {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.mt-footer__copyright {
    margin: 0;
    color: var(--mt-text);
    font-weight: 500;
}

.mt-footer__disclaimer,
.footer-extra-text {
    margin: 0;
    color: var(--mt-muted);
    font-size: 0.92rem;
}

/* ── MOBILE ── */
@media (max-width: 980px) {
    .mt-topbar__outer {
        width: min(1240px, calc(100% - 3rem));
        margin: 0 auto;
    }

    .mt-topbar__frame { grid-template-columns: auto 1fr auto; }

    .mt-nav--desktop,
    .mt-auth--desktop {
        display: none;
    }

    .mt-menu-toggle { display: block; margin-left: auto; }

    .mt-drawer {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #0b1422;
        padding: 1rem;
        border-top: 1px solid rgba(56, 189, 248, 0.1);
        flex-direction: column;
        gap: 0.65rem;
        display: flex;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s;
    }

    .mt-drawer.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mt-footer__inner {
        padding: 1.7rem 1.1rem;
    }

    .mt-footer__brand {
        font-size: 1.1rem;
    }

    .mt-footer__links {
        gap: 0.5rem;
    }

    .mt-footer__links a {
        width: 100%;
        text-align: center;
    }
}

/* ── SECTION BASE ── */
.mt-section-base {
    padding: 1rem 0;
}

.mt-section-base__header {
    margin-bottom: .7rem;
}

.mt-section-base__subtitle {
    margin: .25rem 0 0;
    font-size: .92rem;
    color: var(--mt-muted);
}

/* ── IMAGE LAYOUTS ── */
.mt-text-image-left {
    display: grid;
    grid-template-columns: minmax(180px, 320px) 1fr;
    gap: 1rem;
    align-items: start;
}

.mt-text-image-left--image-right .mt-text-image-left__media {
    order: 2;
}

.mt-text-image-float__media {
    width: min(320px, 42%);
    margin-bottom: .55rem;
}

.mt-text-image-float__media img {
    width: 100%;
    height: auto;
}

.mt-text-image-float--left .mt-text-image-float__media {
    float: left;
    margin-right: 1rem;
}

.mt-text-image-float--right .mt-text-image-float__media {
    float: right;
    margin-left: 1rem;
}

.mt-text-image-float::after {
    content: "";
    display: table;
    clear: both;
}

.mt-text-image-left__media img {
    width: 100%;
    height: auto;
}

/* ── CARDS / CATALOGS / GALLERIES ── */
.mt-mini-cards,
.mt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.mt-catalog-extended {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.mt-catalog-extended__item,
.mt-catalog-image-only__item,
.mt-mini-cards__item,
.mt-gallery-slider__item,
.mt-gallery-grid figure,
.mt-section-fallback,
.mt-catalog-list-view__item {
    background: var(--mt-surface-soft);
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    padding: .85rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.mt-catalog-extended__item:hover,
.mt-mini-cards__item:hover,
.mt-catalog-list-view__item:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 18px var(--mt-glow);
}

.mt-catalog-extended__item {
    color: inherit;
    text-decoration: none;
    display: grid;
    gap: .55rem;
}

.mt-catalog-extended__item img,
.mt-catalog-image-only__item img,
.mt-catalog-list-view__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.mt-catalog-image-only {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.mt-catalog-image-only__item {
    display: block;
    padding: .4rem;
}

.mt-mini-inline,
.mt-catalog-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .55rem;
}

.mt-catalog-list-view {
    display: grid;
    gap: .75rem;
}

.mt-catalog-list-view__item {
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(120px, 180px) 1fr;
    align-items: start;
}

.mt-catalog-list-view__image {
    display: block;
}

.mt-catalog-list-view__link {
    display: inline-block;
    margin-top: .5rem;
}

.mt-gallery-slider {
    display: grid;
    gap: .65rem;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
}

.mt-gallery-grid img,
.mt-gallery-slider img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.mt-text-compact > *:first-child {
    margin-top: 0;
}

@media (max-width: 860px) {
    .mt-text-image-left {
        grid-template-columns: 1fr;
    }

    .mt-text-image-left--image-right .mt-text-image-left__media {
        order: initial;
    }

    .mt-text-image-float__media {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

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

    .mt-catalog-image-only {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mt-catalog-list-view__item {
        grid-template-columns: 1fr;
    }

    .mt-hero-block--image-right {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "media"
            "cta";
    }
    .mt-hero-block, .mt-content-shell {
        border-radius: 18px;
        padding: 1rem;
    }
}

/* ── COOKIE BANNER ── */
.mt-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: none;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--mt-border);
    background: rgba(6, 13, 22, 0.96);
    box-shadow: var(--mt-shadow);
    backdrop-filter: blur(12px);
}

.mt-cookie.is-visible {
    display: flex;
}

.mt-cookie__text {
    margin: 0;
    color: var(--mt-text);
    max-width: 760px;
}

.mt-cookie__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mt-cookie__btn {
    cursor: pointer;
}
