:root {
    --ft-bg: #f4f6f2;
    --ft-bg-soft: #eef3ee;
    --ft-card: #ffffff;
    --ft-card-soft: #f8faf7;

    --ft-ink: #17231f;
    --ft-muted: #69756f;
    --ft-line: #dfe6e0;

    --ft-green: #0e5a47;
    --ft-green-2: #18745b;
    --ft-green-soft: #e7f2ed;

    --ft-gold: #b98a3d;
    --ft-gold-soft: #f6efe1;

    --ft-shadow:
        0 18px 50px rgba(28, 55, 45, .08);

    --ft-shadow-soft:
        0 10px 30px rgba(28, 55, 45, .06);

    --ft-radius-xl: 30px;
    --ft-radius-lg: 22px;
    --ft-radius-md: 16px;

    --ft-shell: 1460px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ft-bg);
    color: var(--ft-ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.ft-page {
    min-height: 100vh;
    overflow: hidden;
}

.ft-shell {
    width: min(
        calc(100% - 64px),
        var(--ft-shell)
    );
    margin: 0 auto;
}


/* ==========================================================
   UTILITY
========================================================== */

.ft-utility {
    background: #173c34;
    color: rgba(255,255,255,.84);
    font-size: 12px;
}

.ft-utility-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.ft-utility-brand,
.ft-utility-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ft-utility-brand strong {
    color: #fff;
    letter-spacing: .04em;
}

.ft-utility-actions a {
    transition: color .2s ease;
}

.ft-utility-actions a:hover {
    color: #fff;
}

.ft-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7bd4a8;
    box-shadow:
        0 0 0 4px rgba(123,212,168,.12);
}

.ft-system-state {
    color: #d9e8df;
}


/* ==========================================================
   HEADER
========================================================== */

.ft-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--ft-line);
}

.ft-header-main {
    min-height: 92px;
    display: grid;
    grid-template-columns:
        minmax(260px, .7fr)
        minmax(440px, 1.4fr)
        minmax(260px, .7fr);
    align-items: center;
    gap: 34px;
}

.ft-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: max-content;
}

.ft-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            #196d56,
            #0c4d3d
        );
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    box-shadow:
        0 10px 25px rgba(14,90,71,.18);
}

.ft-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ft-brand-copy strong {
    font-size: 20px;
    letter-spacing: -.02em;
}

.ft-brand-copy small {
    color: var(--ft-muted);
    font-size: 11px;
    letter-spacing: .04em;
}

.ft-global-search {
    height: 48px;
    display: flex;
    align-items: center;
    background: #f7f9f7;
    border: 1px solid #dfe6e0;
    border-radius: 14px;
    overflow: hidden;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.ft-global-search:focus-within {
    border-color: #9ebcaf;
    box-shadow:
        0 0 0 4px rgba(14,90,71,.06);
}

.ft-search-icon {
    margin-left: 17px;
    color: #748078;
    font-size: 22px;
}

.ft-global-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ft-ink);
}

.ft-global-search button {
    height: 38px;
    min-width: 76px;
    margin-right: 5px;
    border: 0;
    border-radius: 10px;
    background: var(--ft-green);
    color: #fff;
    font-weight: 700;
}

.ft-header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.ft-header-button {
    height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ft-line);
    border-radius: 12px;
    background: #fff;
    color: #35423d;
    font-size: 13px;
    font-weight: 650;
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.ft-header-button:hover {
    transform: translateY(-1px);
    border-color: #b8c8c0;
}

.ft-engine-nav {
    border-top: 1px solid #edf0ed;
}

.ft-engine-nav-inner {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
    white-space: nowrap;
}

.ft-engine-nav a {
    position: relative;
    color: #4d5a54;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .015em;
}

.ft-engine-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -16px;
    height: 2px;
    background: var(--ft-green);
    transition:
        left .2s ease,
        right .2s ease;
}

.ft-engine-nav a:hover {
    color: var(--ft-green);
}

.ft-engine-nav a:hover::after {
    left: 0;
    right: 0;
}

.ft-engine-nav .ft-product-link {
    color: var(--ft-green);
}


/* ==========================================================
   HERO
========================================================== */

.ft-hero {
    position: relative;
    background:
        radial-gradient(
            circle at 83% 35%,
            rgba(188,218,203,.45),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #f7f8f3 0%,
            #edf3ee 100%
        );
    border-bottom: 1px solid var(--ft-line);
}

.ft-hero-grid {
    min-height: 470px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(420px, .88fr);
    align-items: center;
    gap: 70px;
}

.ft-hero-copy {
    padding: 64px 0 70px;
}

.ft-eyebrow,
.ft-kicker,
.ft-panel-kicker {
    color: var(--ft-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.ft-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ft-eyebrow span {
    width: 26px;
    height: 2px;
    background: var(--ft-gold);
}

.ft-hero h1 {
    max-width: 780px;
    margin: 17px 0 18px;
    font-size: clamp(45px, 4.5vw, 74px);
    line-height: .99;
    letter-spacing: -.055em;
    font-weight: 790;
}

.ft-hero h1 em {
    display: block;
    color: var(--ft-green);
    font-family: Georgia, serif;
    font-weight: 500;
}

.ft-hero-lead {
    max-width: 700px;
    margin: 0;
    color: #5d6963;
    font-size: 17px;
    line-height: 1.7;
}

.ft-hero-search {
    max-width: 760px;
    margin-top: 29px;
}

.ft-hero-search-field {
    height: 64px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dbe4dd;
    border-radius: 18px;
    box-shadow: var(--ft-shadow);
}

.ft-hero-search-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 17px;
    color: var(--ft-ink);
    font-size: 15px;
}

.ft-hero-search-field button {
    height: 50px;
    margin-right: 7px;
    padding: 0 23px;
    border: 0;
    border-radius: 13px;
    background: var(--ft-green);
    color: #fff;
    font-weight: 750;
}

.ft-hero-search-field button span {
    margin-left: 8px;
}

.ft-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.ft-hero-chips span {
    padding: 7px 11px;
    border: 1px solid #d8e1da;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    color: #68746e;
    font-size: 11px;
    font-weight: 650;
}


/* ==========================================================
   HERO VISUAL
========================================================== */

.ft-hero-visual {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
}

.ft-intelligence-core {
    position: relative;
    z-index: 3;
    width: 265px;
    min-height: 250px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 36px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.92),
            rgba(238,245,240,.94)
        );
    box-shadow:
        0 35px 70px rgba(33,72,57,.16);
    transform: rotate(-2deg);
}

.ft-core-top {
    position: absolute;
    top: 20px;
    left: 23px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #68756e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ft-core-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #39a477;
}

.ft-core-logo {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            #177158,
            #0d4d3d
        );
    color: #fff;
    font-size: 49px;
    font-weight: 850;
    box-shadow:
        0 20px 38px rgba(14,90,71,.22);
}

.ft-intelligence-core > strong {
    margin-top: 19px;
    font-size: 19px;
}

.ft-intelligence-core > small {
    max-width: 180px;
    margin-top: 6px;
    color: var(--ft-muted);
    text-align: center;
    line-height: 1.5;
}

.ft-orbit {
    position: absolute;
    border: 1px dashed rgba(14,90,71,.18);
    border-radius: 50%;
}

.ft-orbit-one {
    width: 390px;
    height: 280px;
    transform: rotate(-17deg);
}

.ft-orbit-two {
    width: 470px;
    height: 330px;
    transform: rotate(23deg);
}

.ft-float-card {
    position: absolute;
    z-index: 4;
    min-width: 142px;
    padding: 13px 15px;
    border: 1px solid rgba(220,230,223,.9);
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--ft-shadow-soft);
}

.ft-float-card span {
    display: block;
    color: var(--ft-green);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.ft-float-card strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.ft-float-a {
    left: 5%;
    top: 18%;
}

.ft-float-b {
    right: 2%;
    top: 21%;
}

.ft-float-c {
    left: 4%;
    bottom: 15%;
}

.ft-float-d {
    right: 1%;
    bottom: 13%;
}


/* ==========================================================
   SECTIONS
========================================================== */

.ft-section {
    padding: 72px 0;
}

.ft-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 30px;
}

.ft-section-heading h2 {
    margin: 8px 0 9px;
    font-size: 34px;
    letter-spacing: -.035em;
}

.ft-section-heading h2 span {
    color: var(--ft-green);
}

.ft-section-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--ft-muted);
    line-height: 1.65;
}

.ft-engine-summary {
    min-width: 220px;
    padding: 16px 19px;
    border: 1px solid var(--ft-line);
    border-radius: 15px;
    background: #fff;
}

.ft-engine-summary strong {
    display: block;
    color: var(--ft-green);
    font-size: 24px;
}

.ft-engine-summary span {
    color: var(--ft-muted);
    font-size: 11px;
}


/* ==========================================================
   ENGINE GRID
========================================================== */

.ft-engine-section {
    background: #f7f8f5;
}

.ft-engine-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 15px;
}

.ft-engine-card {
    position: relative;
    min-height: 238px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius-lg);
    background: var(--ft-card);
    box-shadow:
        0 8px 25px rgba(28,55,45,.035);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.ft-engine-card:hover {
    transform: translateY(-4px);
    border-color: #b8cec2;
    box-shadow: var(--ft-shadow);
}

.ft-engine-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ft-engine-icon {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    background: var(--ft-green-soft);
    color: var(--ft-green);
    font-size: 13px;
    font-weight: 850;
}

.ft-engine-status {
    max-width: 110px;
    padding: 5px 7px;
    border-radius: 999px;
    background: #f1f4f2;
    color: #7a8580;
    font-size: 9px;
    font-weight: 750;
    text-align: center;
}

.ft-engine-card > strong {
    margin-top: 17px;
    font-size: 17px;
}

.ft-engine-card > small {
    margin-top: 2px;
    color: var(--ft-green);
    font-size: 10px;
    font-weight: 750;
}

.ft-engine-card > p {
    margin: 12px 0 17px;
    color: var(--ft-muted);
    font-size: 12px;
    line-height: 1.55;
}

.ft-engine-foot {
    margin-top: auto;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #edf0ed;
}

.ft-engine-detail {
    overflow: hidden;
    color: #78837e;
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ft-engine-foot b {
    color: var(--ft-green);
}

.ft-engine-card[data-state="ready"]
.ft-engine-status {
    background: #e3f3eb;
    color: #176a50;
}

.ft-engine-card[data-state="context"]
.ft-engine-status {
    background: var(--ft-gold-soft);
    color: #8a652c;
}

.ft-engine-card[data-state="auth"]
.ft-engine-status {
    background: #edf0f5;
    color: #5c6574;
}

.ft-engine-card[data-state="unknown"]
.ft-engine-status {
    background: #f1f2f1;
    color: #7c8480;
}


/* ==========================================================
   PRODUCT CENTER
========================================================== */

.ft-product-section {
    background: var(--ft-bg);
}

.ft-product-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(310px, .7fr);
    gap: 18px;
}

.ft-product-main,
.ft-side-card {
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius-xl);
    background: #fff;
    box-shadow: var(--ft-shadow-soft);
}

.ft-product-main {
    min-height: 430px;
    padding: 27px;
}

.ft-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.ft-panel-head h3,
.ft-side-card h3 {
    margin: 6px 0 0;
    font-size: 21px;
    letter-spacing: -.02em;
}

.ft-live-pill {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--ft-green-soft);
    color: var(--ft-green);
    font-size: 9px;
    font-weight: 800;
}

.ft-product-search {
    height: 52px;
    margin-top: 24px;
    display: flex;
    border: 1px solid var(--ft-line);
    border-radius: 14px;
    overflow: hidden;
}

.ft-product-search:focus-within {
    border-color: #9ab9aa;
}

.ft-product-search input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: #fafbfa;
}

.ft-product-search button {
    width: 90px;
    border: 0;
    background: var(--ft-green);
    color: #fff;
    font-weight: 750;
}

.ft-product-results {
    margin-top: 20px;
}

.ft-empty-state {
    min-height: 235px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d7dfd9;
    border-radius: 18px;
    background: #fafbfa;
    text-align: center;
}

.ft-empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 15px;
    background: var(--ft-green-soft);
    color: var(--ft-green);
    font-size: 25px;
}

.ft-empty-state strong {
    font-size: 15px;
}

.ft-empty-state p {
    max-width: 380px;
    margin: 7px 20px 0;
    color: var(--ft-muted);
    font-size: 12px;
    line-height: 1.6;
}

.ft-product-side {
    min-width: 0;
}

.ft-side-card {
    height: 100%;
    padding: 27px;
}

.ft-flow-step {
    margin-top: 22px;
    display: flex;
    gap: 13px;
}

.ft-flow-step > span {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--ft-green-soft);
    color: var(--ft-green);
    font-size: 10px;
    font-weight: 850;
}

.ft-flow-step div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ft-flow-step strong {
    font-size: 13px;
}

.ft-flow-step small {
    color: var(--ft-muted);
    font-size: 10px;
}

.ft-text-link {
    color: var(--ft-green);
    font-size: 12px;
    font-weight: 750;
}


/* ==========================================================
   INTELLIGENCE CARDS
========================================================== */

.ft-intelligence-section {
    padding-top: 0;
}

.ft-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 17px;
}

.ft-intelligence-card {
    min-height: 140px;
    padding: 22px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius-lg);
    background: #fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.ft-intelligence-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ft-shadow-soft);
}

.ft-intelligence-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--ft-gold-soft);
    color: #8c672d;
    font-size: 22px;
    font-weight: 800;
}

.ft-intelligence-card small {
    display: block;
    color: var(--ft-green);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
}

.ft-intelligence-card strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.ft-intelligence-card p {
    margin: 5px 0 0;
    color: var(--ft-muted);
    font-size: 10px;
    line-height: 1.5;
}

.ft-intelligence-card > b {
    color: var(--ft-green);
}


/* ==========================================================
   FOOTER
========================================================== */

.ft-footer {
    background: #183b33;
    color: #fff;
}

.ft-footer-grid {
    min-height: 190px;
    display: grid;
    grid-template-columns:
        minmax(280px,1.4fr)
        repeat(3,minmax(160px,.65fr));
    align-items: center;
    gap: 40px;
}

.ft-brand-footer .ft-brand-copy small {
    color: rgba(255,255,255,.6);
}

.ft-footer-brand p {
    max-width: 380px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.64);
    font-size: 12px;
    line-height: 1.6;
}

.ft-footer-value {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ft-footer-value strong {
    font-size: 12px;
}

.ft-footer-value span {
    color: rgba(255,255,255,.58);
    font-size: 10px;
    line-height: 1.5;
}

.ft-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
}

.ft-footer-bottom .ft-shell {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.55);
    font-size: 10px;
}

.ft-footer-bottom strong {
    color: rgba(255,255,255,.82);
}


/* ==========================================================
   PRODUCT RESULTS
========================================================== */

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

.ft-result-card {
    padding: 14px;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--ft-line);
    border-radius: 15px;
    background: #fff;
}

.ft-result-image {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f4f2;
}

.ft-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ft-result-image span {
    color: #829089;
    font-weight: 800;
}

.ft-result-copy strong {
    display: block;
    font-size: 13px;
}

.ft-result-copy small {
    display: block;
    margin-top: 4px;
    color: var(--ft-muted);
    font-size: 10px;
}

.ft-result-action {
    padding: 8px 11px;
    border: 1px solid var(--ft-line);
    border-radius: 10px;
    background: #fff;
    color: var(--ft-green);
    font-size: 10px;
    font-weight: 750;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1250px) {

    .ft-header-main {
        grid-template-columns:
            minmax(220px,.7fr)
            minmax(360px,1.2fr);
    }

    .ft-header-actions {
        display: none;
    }

    .ft-engine-nav-inner {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .ft-engine-grid {
        grid-template-columns:
            repeat(4,minmax(0,1fr));
    }

}

@media (max-width: 980px) {

    .ft-shell {
        width: min(
            calc(100% - 34px),
            var(--ft-shell)
        );
    }

    .ft-header-main {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 0;
    }

    .ft-global-search {
        width: 100%;
    }

    .ft-hero-grid {
        grid-template-columns: 1fr;
    }

    .ft-hero-visual {
        display: none;
    }

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

    .ft-product-layout,
    .ft-intelligence-grid {
        grid-template-columns: 1fr;
    }

    .ft-footer-grid {
        grid-template-columns: 1fr 1fr;
        padding: 40px 0;
    }

}

@media (max-width: 640px) {

    .ft-utility-actions {
        display: none;
    }

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

    .ft-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .ft-engine-grid {
        grid-template-columns: 1fr;
    }

    .ft-hero-search-field button {
        padding: 0 15px;
    }

    .ft-footer-grid {
        grid-template-columns: 1fr;
    }

}
