:root {
    --ft-blue: #0b55d9;
    --ft-blue-dark: #082d72;
    --ft-red: #c4121a;
    --ft-ink: #07111f;
    --ft-text: #142033;
    --ft-muted: #64748b;
    --ft-line: #dbe3ef;
    --ft-soft: #f3f7fb;
    --ft-white: #ffffff;
    --ft-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ft-white);
    color: var(--ft-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

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

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ft-blue);
    color: var(--ft-white);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(219, 227, 239, .84);
    backdrop-filter: blur(16px);
}

.nav-shell {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
}

.brand-link,
.brand-copy {
    display: flex;
    align-items: center;
}

.brand-link {
    gap: 11px;
    min-width: 210px;
}

.brand-link .custom-logo {
    width: auto;
    max-height: 54px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--ft-blue);
    color: var(--ft-white);
    font-weight: 900;
}

.brand-copy {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.brand-copy strong {
    color: var(--ft-blue);
    font-size: 18px;
}

.brand-copy small {
    color: var(--ft-red);
    font-weight: 800;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #334155;
    font-weight: 800;
    font-size: 14px;
}

.menu a:hover,
.current-menu-item > a {
    background: #edf4ff;
    color: var(--ft-blue);
}

.header-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    padding: 11px 16px;
    background: var(--ft-blue);
    color: var(--ft-white);
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--ft-red);
    color: var(--ft-white);
}

.button-light {
    background: #edf4ff;
    color: var(--ft-blue);
}

.button-small {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
}

.icon-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--ft-line);
    border-radius: 7px;
    color: #334155;
    font-weight: 900;
    font-size: 13px;
}

.icon-link span {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--ft-red);
    color: var(--ft-white);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ft-line);
    border-radius: 7px;
    background: var(--ft-white);
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: var(--ft-ink);
}

.hero {
    min-height: 640px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(110deg, rgba(7, 17, 31, .94) 0%, rgba(8, 45, 114, .84) 52%, rgba(196, 18, 26, .82) 100%),
        url("https://ft-mw.com/wp-content/uploads/2025/05/laptop-keyboard-1-510x510.webp") center / cover;
    color: var(--ft-white);
}

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

.eyebrow {
    margin: 0 0 8px;
    color: var(--ft-red);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffb3b8;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 82px);
    line-height: .96;
    letter-spacing: 0;
}

.hero-lead,
.page-hero p {
    max-width: 690px;
    margin: 22px 0;
    color: rgba(255, 255, 255, .86);
    font-size: 19px;
}

.hero-panel {
    display: grid;
    gap: 12px;
}

.status-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .11);
    backdrop-filter: blur(12px);
}

.status-card.active {
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 4px 0 0 #ffffff;
}

.status-card span {
    color: #ffb3b8;
    font-weight: 950;
}

.status-card strong,
.status-card small {
    display: block;
}

.status-card strong {
    margin-top: 5px;
    font-size: 20px;
}

.status-card small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .76);
}

.action-band {
    position: relative;
    z-index: 3;
    margin-top: -44px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: 8px;
    background: var(--ft-white);
    box-shadow: var(--ft-shadow);
}

.action-grid a {
    min-height: 118px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 20px;
    border-right: 1px solid var(--ft-line);
}

.action-grid a:last-child {
    border-right: 0;
}

.action-grid span,
.portal-grid span {
    color: var(--ft-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.action-grid strong,
.portal-grid strong {
    color: var(--ft-ink);
    font-size: 18px;
}

.section {
    padding: 84px 0;
}

.section-muted {
    background: var(--ft-soft);
}

.section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-head h2,
.split h2,
.page-hero h1 {
    margin: 0;
    color: var(--ft-ink);
    font-size: clamp(31px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-head p,
.split p {
    color: var(--ft-muted);
}

.row-head {
    max-width: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}

.service-grid,
.promise-grid,
.service-detail-grid,
.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card,
.promise-grid article,
.service-detail-grid article,
.portal-grid a,
.post-card {
    padding: 22px;
    border: 1px solid var(--ft-line);
    border-radius: 8px;
    background: var(--ft-white);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.service-card span {
    width: 42px;
    height: 42px;
    display: block;
    margin-bottom: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ft-blue), var(--ft-red));
}

.service-card h3,
.promise-grid strong,
.service-detail-grid h2 {
    margin: 0 0 9px;
    color: var(--ft-ink);
    font-size: 20px;
}

.service-card p,
.promise-grid p,
.service-detail-grid p,
.portal-grid p,
.post-card p {
    margin: 0;
    color: var(--ft-muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 46px;
    align-items: center;
}

.feature-list {
    display: grid;
    gap: 8px;
    margin: 22px 0;
}

.feature-list span {
    padding: 12px 14px;
    border: 1px solid var(--ft-line);
    border-radius: 7px;
    background: var(--ft-white);
    color: #334155;
    font-weight: 800;
}

.system-preview {
    padding: 22px;
    border-radius: 8px;
    background: var(--ft-ink);
    color: var(--ft-white);
    box-shadow: var(--ft-shadow);
}

.system-preview header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.system-preview header span {
    color: #93c5fd;
}

.system-preview p {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .78);
}

.system-preview b {
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
}

.shop-section {
    background: #07111f;
    color: var(--ft-white);
}

.shop-section .section-head h2,
.shop-section .woocommerce-loop-product__title,
.shop-section .price {
    color: var(--ft-white);
}

.shop-section .section-head p {
    color: rgba(255, 255, 255, .68);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-grid a {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: var(--ft-white);
    font-weight: 900;
}

.page-hero {
    padding: 100px 0 82px;
    background: linear-gradient(135deg, var(--ft-ink), var(--ft-blue-dark));
    color: var(--ft-white);
}

.page-hero h1 {
    color: var(--ft-white);
}

.content-shell {
    max-width: 860px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 42px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid var(--ft-line);
    border-radius: 8px;
    background: var(--ft-white);
}

.faq-list summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--ft-ink);
    font-weight: 900;
}

.faq-list p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--ft-muted);
}

.portal-grid {
    grid-template-columns: repeat(3, 1fr);
}

.site-footer {
    background: #050b14;
    color: rgba(255, 255, 255, .76);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr;
    gap: 36px;
    padding: 54px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
    color: var(--ft-white);
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, .82);
}

.footer-bottom {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(219, 227, 239, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.woo-shell .woocommerce ul.products li.product {
    border-color: var(--ft-line);
    background: var(--ft-white);
}

.woocommerce ul.products li.product img {
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    object-fit: cover;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin-bottom: 24px;
}

.post-list {
    display: grid;
    gap: 16px;
}

@media (max-width: 1020px) {
    .nav-shell {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav,
    .header-actions {
        grid-column: 1 / -1;
    }

    .primary-nav,
    .header-actions {
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav.is-open + .header-actions,
    .nav-shell:has(.primary-nav.is-open) .header-actions {
        display: flex;
    }

    .menu {
        display: grid;
        justify-content: stretch;
        padding-bottom: 12px;
    }

    .hero-grid,
    .split,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .action-grid,
    .service-grid,
    .promise-grid,
    .service-detail-grid,
    .portal-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero {
        min-height: auto;
        padding: 86px 0 112px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 42px;
    }

    .hero-panel {
        display: none;
    }

    .action-grid,
    .service-grid,
    .promise-grid,
    .service-detail-grid,
    .portal-grid,
    .category-grid,
    .woocommerce ul.products,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .action-grid a {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--ft-line);
    }

    .row-head {
        display: grid;
    }

    .section {
        padding: 58px 0;
    }
}
