/* =========================================================================
   Studio design system: everything below the homepage hero, plus the
   site footer. Editorial agency look: big quiet type, hairlines, one card
   family, one button pair, brand blue as the only accent.
   Dark mode keeps sections see-through so the cursor fluid stays visible.
   ========================================================================= */

:root {
    --x-bg: #ffffff;
    --x-bg-soft: #f4f7fa;
    --x-card: #ffffff;
    --x-ink: #091E3E;
    --x-ink-2: #526077;
    --x-line: #e2e8ef;
    --x-accent: #06a3da;
    --x-accent-ink: #0779a3;
    --x-accent-glow: #38c4f5;
    --x-dark: #061429;
    --x-on-dark: #f4f7fb;
    --x-on-dark-2: #a9b7cc;
    --x-line-dark: rgba(255, 255, 255, .12);
    --x-btn-bg: #091E3E;
    --x-btn-ink: #ffffff;
    --x-r: 24px;
    --x-ease: cubic-bezier(.2, .7, .1, 1);
    --x-pad: clamp(88px, 10vw, 152px);
}

body.future-theme {
    --x-bg: transparent;
    --x-bg-soft: rgba(255, 255, 255, .015);
    --x-card: rgba(11, 23, 48, .62);
    --x-ink: #F4F7FB;
    --x-ink-2: #B5C2D6;
    --x-line: rgba(255, 255, 255, .1);
    --x-accent-ink: #38c4f5;
    --x-dark: rgba(5, 11, 24, .55);
    --x-btn-bg: #ffffff;
    --x-btn-ink: #091E3E;
}

/* ---------- Smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Navbar tucks away on scroll down, returns on scroll up ---------- */
:root .navbar { transition: transform .5s var(--x-ease), background-color .3s ease, box-shadow .3s ease; }
:root .navbar.x-nav-tuck { transform: translateY(-110%); }

/* ---------- Section shell & type ---------- */
:root .x-section {
    position: relative;
    padding-block: var(--x-pad);
    background: var(--x-bg);
    color: var(--x-ink-2);
}

:root .x-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--x-ink-2);
    font-family: var(--rn-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
:root .x-label__n {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--x-accent-ink);
    font-variant-numeric: tabular-nums;
}
:root .x-label__n::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

:root .x-h2 {
    max-width: 17ch;
    margin: 0 0 28px;
    color: var(--x-ink);
    font-family: var(--rn-display);
    font-size: clamp(2.1rem, 4.3vw, 3.85rem);
    font-weight: 500 !important;
    line-height: 1.04;
    letter-spacing: -.035em;
}

:root .x-lede {
    max-width: 40ch;
    margin: 0 0 18px;
    color: var(--x-ink);
    font-size: clamp(1.15rem, 1.55vw, 1.4rem);
    line-height: 1.5;
    letter-spacing: -.01em;
}
:root .x-lede strong { font-weight: 600; }

:root .x-body {
    max-width: 52ch;
    margin: 0 0 18px;
    color: var(--x-ink-2);
    font-size: 1.0625rem;
    line-height: 1.7;
}

:root .x-head { margin-bottom: clamp(44px, 5vw, 72px); }
:root .x-head .x-h2 { margin-bottom: 0; }
:root .x-head--center { text-align: center; }
:root .x-head--center .x-h2 { margin-inline: auto; }
:root .x-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* ---------- Buttons: one pair (solid + ghost), light variants for dark grounds ---------- */
:root .x-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 7px 7px 7px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--rn-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s var(--x-ease), color .3s var(--x-ease), border-color .3s var(--x-ease), transform .2s var(--x-ease);
}
:root .x-btn:active { transform: translateY(1px) scale(.985); }
:root .x-btn:focus-visible { outline: 3px solid var(--x-accent); outline-offset: 3px; }

:root .x-btn__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: background-color .3s var(--x-ease), transform .3s var(--x-ease);
}
:root .x-arr {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s var(--x-ease);
}
:root .x-btn:hover .x-arr { transform: translateX(3px); }
:root .x-btn:hover .x-btn__icon { transform: scale(1.06); }

:root .x-btn--primary { background: var(--x-btn-bg); color: var(--x-btn-ink); }
:root .x-btn--primary .x-btn__icon { background: var(--x-accent); color: #fff; }
:root .x-btn--primary:hover { background: var(--x-accent-ink); color: #fff; }
body.future-theme .x-btn--primary:hover { background: var(--x-accent-glow); color: #061429; }

:root .x-btn--ghost { border-color: var(--x-line); color: var(--x-ink); background: transparent; }
:root .x-btn--ghost .x-btn__icon { background: var(--x-bg-soft); color: var(--x-ink); }
body.future-theme .x-btn--ghost .x-btn__icon { background: rgba(255, 255, 255, .08); }
:root .x-btn--ghost:hover { border-color: var(--x-ink); color: var(--x-ink); }

:root .x-btn--light { background: #ffffff; color: #091E3E; }
:root .x-btn--light .x-btn__icon { background: var(--x-accent); color: #fff; }
:root .x-btn--light:hover { background: var(--x-accent-glow); color: #061429; }

:root .x-btn--ghost-light { border-color: rgba(255, 255, 255, .24); color: #ffffff; background: transparent; }
:root .x-btn--ghost-light .x-btn__icon { background: rgba(255, 255, 255, .1); color: #fff; }
:root .x-btn--ghost-light:hover { border-color: #ffffff; color: #ffffff; }

:root .x-btn--block { width: 100%; justify-content: space-between; }
:root button.x-btn { font: inherit; font-weight: 600; font-size: 15px; }
:root button.x-btn--block { justify-content: center; padding: 0 24px; }

:root .x-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Text link with a drawn underline */
:root .x-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    color: var(--x-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .45s var(--x-ease), color .2s ease;
}
:root .x-link:hover { color: var(--x-ink); background-size: 100% 1px; }
:root .x-link:hover .x-arr { transform: translateX(4px); }

/* ---------- Stats bar (sits on the hero edge) ---------- */
:root .x-stats { position: relative; z-index: 2; background: transparent; }
:root .x-stats__bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--x-line);
    border-radius: var(--x-r);
    background: var(--x-card);
    box-shadow: 0 40px 80px -40px rgba(9, 30, 62, .35);
    overflow: hidden;
}
body.future-theme .x-stats__bar {
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
:root .x-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 36px);
}
:root .x-stat + .x-stat { border-left: 1px solid var(--x-line); }
:root .x-stat__num {
    color: var(--x-ink);
    font-family: var(--rn-display);
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}
:root .x-stat__label { color: var(--x-ink-2); font-size: 14px; }

@media (min-width: 992px) { :root .x-stats { margin-top: -75px; } }
@media (max-width: 991.98px) {
    :root .x-stats { padding-top: 28px; }
    :root .x-stats__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :root .x-stat:nth-child(3) { border-left: 0; }
    :root .x-stat:nth-child(n + 3) { border-top: 1px solid var(--x-line); }
}

/* ---------- Frames (video, photographs) ---------- */
:root .x-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--x-r);
    background: #091E3E;
    isolation: isolate;
}
:root .x-frame--video { aspect-ratio: 16 / 9; }
:root .x-frame--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:root .x-frame--tall { aspect-ratio: 4 / 5; }
:root .x-frame img {
    position: absolute;
    inset: -6% 0;
    width: 100%;
    height: 112%;
    object-fit: cover;
    will-change: transform;
}

/* ---------- About ---------- */
:root .x-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
:root .x-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
:root .x-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--x-line);
    border-radius: 999px;
    color: var(--x-ink);
    font-size: 14px;
}
:root .x-chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x-accent); }

/* ---------- Why us ---------- */
:root .x-why { background: var(--x-bg-soft); }
:root .x-why__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
:root .x-why__list { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--x-line); }
:root .x-why__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    padding: 26px 0;
    border-bottom: 1px solid var(--x-line);
}
:root .x-why__n {
    padding-top: 5px;
    color: var(--x-accent-ink);
    font-family: var(--rn-display);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
:root .x-why__item h3 {
    margin: 0 0 6px;
    color: var(--x-ink);
    font-family: var(--rn-display);
    font-size: 1.3rem;
    font-weight: 500 !important;
    letter-spacing: -.02em;
}
:root .x-why__item p { margin: 0; color: var(--x-ink-2); font-size: 1rem; line-height: 1.65; max-width: 52ch; }

/* ---------- Services (dark band) ---------- */
:root .x-dark { background: var(--x-dark); color: var(--x-on-dark-2); }
body.future-theme .x-dark { border-block: 1px solid var(--x-line); }
:root .x-dark .x-label { color: var(--x-on-dark-2); }
:root .x-dark .x-label__n { color: var(--x-accent-glow); }
:root .x-dark .x-h2 { color: var(--x-on-dark); }
:root .x-dark .x-body { color: var(--x-on-dark-2); }

:root .x-services__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
:root .x-sticky { position: sticky; top: 120px; }

:root .x-callout {
    margin-top: 40px;
    padding: 28px;
    border: 1px solid var(--x-line-dark);
    border-radius: var(--x-r);
    background: rgba(255, 255, 255, .035);
}
:root .x-callout__k {
    margin: 0 0 10px;
    color: var(--x-on-dark-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
:root .x-callout__phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--x-on-dark);
    font-family: var(--rn-display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -.02em;
    text-decoration: none;
    transition: color .2s ease;
}
:root .x-callout__phone i { color: #25d366; font-size: .85em; }
:root .x-callout__phone:hover { color: var(--x-accent-glow); }
:root .x-callout__p { margin: 10px 0 22px; color: var(--x-on-dark-2); font-size: 15px; line-height: 1.6; }

:root .x-svc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--x-line-dark); }
:root .x-svc {
    position: relative;
    display: grid;
    grid-template-columns: 36px 48px minmax(0, 1fr) 44px;
    gap: 20px;
    align-items: center;
    padding: 26px 12px;
    border-bottom: 1px solid var(--x-line-dark);
    color: var(--x-on-dark);
    text-decoration: none;
    isolation: isolate;
}
:root .x-svc::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 163, 218, .14), rgba(6, 163, 218, 0) 75%);
    opacity: 0;
    transition: opacity .4s var(--x-ease);
}
:root .x-svc:hover { color: var(--x-on-dark); }
:root .x-svc:hover::before, :root .x-svc:focus-visible::before { opacity: 1; }
:root .x-svc:focus-visible { outline: 2px solid var(--x-accent-glow); outline-offset: -2px; }
:root .x-svc__n { color: var(--x-on-dark-2); font-size: 13px; font-variant-numeric: tabular-nums; }
:root .x-svc__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--x-line-dark);
    border-radius: 50%;
    color: var(--x-accent-glow);
    font-size: 19px;
    transition: border-color .3s ease, background-color .3s ease;
}
:root .x-svc:hover .x-svc__icon { border-color: rgba(56, 196, 245, .5); background: rgba(56, 196, 245, .08); }
:root .x-svc__text { display: block; transition: transform .45s var(--x-ease); }
:root .x-svc:hover .x-svc__text { transform: translateX(6px); }
:root .x-svc__title {
    display: block;
    color: var(--x-on-dark);
    font-family: var(--rn-display);
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    font-weight: 500;
    letter-spacing: -.02em;
}
:root .x-svc__desc { display: block; max-width: 54ch; margin-top: 6px; color: var(--x-on-dark-2); font-size: 15px; line-height: 1.55; }
:root .x-svc__go {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--x-line-dark);
    border-radius: 50%;
    color: var(--x-on-dark);
    transition: background-color .35s var(--x-ease), border-color .35s var(--x-ease), transform .45s var(--x-ease);
}
:root .x-svc:hover .x-svc__go { background: var(--x-accent); border-color: var(--x-accent); transform: rotate(-45deg); }

/* ---------- Pricing ---------- */
:root .x-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
:root .x-plan {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 2.6vw, 36px);
    border: 1px solid var(--x-line);
    border-radius: var(--x-r);
    background: var(--x-card);
    color: var(--x-ink-2);
    transition: transform .35s var(--x-ease), box-shadow .35s var(--x-ease), border-color .35s var(--x-ease);
}
body.future-theme .x-plan { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:root .x-plan:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -36px rgba(9, 30, 62, .35); border-color: color-mix(in srgb, var(--x-accent) 40%, var(--x-line)); }
:root .x-plan__head h3 {
    margin: 0 0 4px;
    color: var(--x-ink);
    font-family: var(--rn-display);
    font-size: 1.3rem;
    font-weight: 500 !important;
    letter-spacing: -.02em;
}
:root .x-plan__head p { margin: 0; color: var(--x-ink-2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
:root .x-plan__price {
    margin: 30px 0 6px;
    color: var(--x-ink);
    font-family: var(--rn-display);
    font-size: clamp(2.1rem, 3vw, 2.75rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.04em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
:root .x-plan__cur { margin-right: 4px; font-size: .5em; vertical-align: .55em; letter-spacing: 0; }
:root .x-plan__dash { margin: 0 .1em; color: var(--x-ink-2); font-weight: 400; }
:root .x-plan__note { margin: 0; color: var(--x-ink-2); font-size: 13px; }
:root .x-plan__list { flex: 1; margin: 28px 0 30px; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--x-line); }
:root .x-plan__list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--x-ink); font-size: 15px; line-height: 1.5; }
:root .x-check { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--x-accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:root .x-plan .x-btn { justify-content: space-between; }
:root .x-plan__terms { margin: 12px 0 0; color: var(--x-ink-2); font-size: 12px; }

:root .x-plan--featured { background: #061429; border-color: #061429; color: var(--x-on-dark-2); }
body.future-theme .x-plan--featured { background: rgba(6, 163, 218, .12); border-color: rgba(56, 196, 245, .45); }
:root .x-plan--featured .x-plan__head h3,
:root .x-plan--featured .x-plan__price,
:root .x-plan--featured .x-plan__list li { color: var(--x-on-dark); }
:root .x-plan--featured .x-plan__head p,
:root .x-plan--featured .x-plan__note,
:root .x-plan--featured .x-plan__dash,
:root .x-plan--featured .x-plan__terms { color: var(--x-on-dark-2); }
:root .x-plan--featured .x-plan__list { border-color: var(--x-line-dark); }
:root .x-plan--featured .x-check { stroke: var(--x-accent-glow); }

/* ---------- Quote (keeps the band video and the peeking robot) ---------- */
:root .x-quote { background: var(--rn-navy-deep); }
:root .x-quote__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
}
:root .x-quote .x-label { color: var(--x-on-dark-2); }
:root .x-quote .x-label__n { color: var(--x-accent-glow); }
:root .x-quote .x-h2 { color: #ffffff; }
:root .x-quote .x-body { color: #c2cddd; }
:root .x-facts { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--x-line-dark); max-width: 460px; }
:root .x-facts li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--x-line-dark); color: #e6ecf5; font-size: 15px; }
:root .x-facts i { color: var(--x-accent-glow); font-size: 18px; }
:root .x-facts a { color: #ffffff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--x-ease); }
:root .x-facts a:hover { color: #ffffff; background-size: 100% 1px; }

:root .x-quote__form {
    padding: clamp(26px, 3vw, 40px);
    border-radius: var(--x-r);
    background: #ffffff;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6);
}
body.future-theme .x-quote__form {
    background: rgba(11, 23, 48, .82);
    border: 1px solid var(--x-line-dark);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
}
:root .x-field { margin-bottom: 16px; }
:root .x-field label {
    display: block;
    margin-bottom: 8px;
    color: #526077;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.future-theme .x-field label { color: var(--x-on-dark-2); }
:root .x-field input,
:root .x-field select,
:root .x-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #dfe6ee;
    border-radius: 14px;
    background: #f6f8fb;
    color: #091E3E;
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
:root .x-field textarea { padding: 14px 16px; resize: vertical; }
:root .x-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526077' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }
:root .x-field input:focus,
:root .x-field select:focus,
:root .x-field textarea:focus { outline: none; border-color: var(--x-accent); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(6, 163, 218, .16); }
body.future-theme .x-field input,
body.future-theme .x-field select,
body.future-theme .x-field textarea { border-color: var(--x-line-dark); background-color: rgba(255, 255, 255, .04); color: #ffffff; }
body.future-theme .x-field select option { color: #091E3E; }
body.future-theme .x-field input:focus,
body.future-theme .x-field select:focus,
body.future-theme .x-field textarea:focus { background-color: rgba(255, 255, 255, .07); }
:root .x-quote__form .x-btn--block { margin-top: 8px; }
:root .x-form-msg { margin-top: 14px; font-size: 14px; text-align: center; }

/* ---------- Ecosystem joins the system ---------- */
:root .eco.x-section { background: var(--x-bg-soft); padding-block: var(--x-pad); }
body.future-theme .eco.x-section { background: transparent; }
:root .eco .x-head { margin-bottom: 18px; }
:root .eco-card { border-radius: 20px; box-shadow: none; }

/* ---------- Journal ---------- */
:root .x-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
:root .x-post__link { display: block; color: var(--x-ink); text-decoration: none; }
:root .x-post__link:hover { color: var(--x-ink); }
:root .x-post__link:focus-visible { outline: 3px solid var(--x-accent); outline-offset: 6px; border-radius: 12px; }
:root .x-post__img { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; background: var(--x-bg-soft); }
:root .x-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--x-ease); }
:root .x-post__link:hover .x-post__img img { transform: scale(1.03); }
:root .x-post__meta { display: flex; gap: 14px; margin: 22px 0 10px; color: var(--x-ink-2); font-size: 13px; }
:root .x-post__meta span { color: var(--x-accent-ink); font-weight: 600; }
:root .x-post__title {
    display: inline;
    margin: 0;
    color: var(--x-ink);
    font-family: var(--rn-display);
    font-size: 1.3rem;
    font-weight: 500 !important;
    line-height: 1.3;
    letter-spacing: -.02em;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .5s var(--x-ease);
}
:root .x-post__link:hover .x-post__title { background-size: 100% 1px; }
:root .x-post__desc { margin: 12px 0 0; color: var(--x-ink-2); font-size: 15px; line-height: 1.6; }
:root .x-post__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--x-ink); font-size: 14px; font-weight: 600; }
:root .x-post__link:hover .x-arr { transform: translateX(4px); }

/* ---------- Footer (every page) ---------- */
:root .x-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(80px, 9vw, 128px);
    background: #061429;
    color: var(--x-on-dark-2);
}
body.future-theme .x-footer { background: rgba(5, 11, 24, .88); border-top: 1px solid var(--x-line); }
:root .x-footer__cta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: clamp(48px, 6vw, 72px);
    border-bottom: 1px solid var(--x-line-dark);
}
:root .x-footer__title {
    max-width: 12ch;
    margin: 0;
    color: #ffffff;
    font-family: var(--rn-display);
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    font-weight: 500 !important;
    line-height: .98;
    letter-spacing: -.045em;
}
:root .x-footer__cta .x-actions { margin-top: 0; }
:root .x-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 64px);
    padding-block: clamp(48px, 6vw, 72px);
}
:root .x-footer__logo { display: inline-flex; align-items: center; gap: 12px; color: #ffffff; font-family: var(--rn-display); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
:root .x-footer__logo:hover { color: #ffffff; }
:root .x-footer__logo img { width: 40px; height: 40px; padding: 4px; border-radius: 10px; background: #ffffff; }
:root .x-footer__brand > p { max-width: 38ch; margin: 18px 0 0; color: var(--x-on-dark-2); font-size: 15px; line-height: 1.65; }
:root .x-signup { margin-top: 28px; max-width: 420px; }
:root .x-signup label { display: block; margin-bottom: 10px; color: #ffffff; font-size: 14px; font-weight: 600; }
:root .x-signup__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 5px 5px 20px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
:root .x-signup__row:focus-within { border-color: var(--x-accent-glow); box-shadow: 0 0 0 4px rgba(56, 196, 245, .15); }
:root .x-signup input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; color: #ffffff; font-size: 15px; outline: none; }
:root .x-signup input::placeholder { color: rgba(255, 255, 255, .45); }
:root .x-signup button {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #091E3E;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .25s ease, transform .2s ease;
}
:root .x-signup button:hover { background: var(--x-accent-glow); }
:root .x-signup button:active { transform: scale(.97); }
:root .x-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
:root .x-footer__k { margin: 0 0 6px; color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
:root .x-footer__col p { margin: 0; color: var(--x-on-dark-2); font-size: 15px; }
:root .x-footer a:not(.x-btn):not(.x-footer__logo) {
    color: var(--x-on-dark-2);
    font-size: 15px;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color .2s ease, background-size .4s var(--x-ease);
}
:root .x-footer a:not(.x-btn):not(.x-footer__logo):hover { color: #ffffff; background-size: 100% 1px; }
:root .x-footer .x-social { display: flex; gap: 8px; margin-top: 10px; }
:root .x-footer .x-social a {
    display: grid !important;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: none !important;
    font-size: 15px !important;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease !important;
}
:root .x-footer .x-social a:hover { background-color: #ffffff !important; color: #091E3E !important; border-color: #ffffff; }
:root .x-footer__base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    flex-wrap: wrap;
    padding-block: 26px;
    border-top: 1px solid var(--x-line-dark);
    font-size: 13px;
}
:root .x-footer__base p { margin: 0; color: var(--x-on-dark-2); }
:root .x-footer__base nav { display: flex; gap: 22px; margin-right: auto; }
:root .x-footer__base nav a { font-size: 13px !important; }
:root .x-footer__badge { width: auto; height: 44px; border-radius: 6px; }
:root .x-footer__word {
    margin: 0;
    padding-top: 12px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
    font-family: var(--rn-display);
    font-size: clamp(5rem, 21vw, 21rem);
    font-weight: 600;
    line-height: .74;
    letter-spacing: -.06em;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

/* ---------- Scroll reveals ---------- */
.ms-js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .9s var(--x-ease), transform 1.1s var(--x-ease), clip-path 1.2s var(--x-ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}
.ms-js [data-reveal="media"] { transform: translate3d(0, 40px, 0); clip-path: inset(12% 0 0 0 round var(--x-r)); }
.ms-js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--x-r)); }
.ms-js [data-reveal]:not([data-reveal="media"]).is-in { clip-path: none; }
.ms-fail [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    :root .x-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    :root .x-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    :root .x-about__grid,
    :root .x-why__grid,
    :root .x-services__grid,
    :root .x-quote__grid { grid-template-columns: minmax(0, 1fr); }
    :root .x-why__media { order: 2; }
    :root .x-frame--tall { aspect-ratio: 4 / 3; }
    :root .x-sticky { position: static; }
    :root .x-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    :root .x-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :root .x-posts > :last-child { display: none; }
    :root .x-quote__form { margin-top: 80px; }
}

@media (max-width: 575.98px) {
    :root .x-h2 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
    :root .x-svc { grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 14px; padding: 22px 4px; }
    :root .x-svc__n { display: none; }
    :root .x-svc__icon { width: 40px; height: 40px; font-size: 16px; }
    :root .x-svc__go { width: 36px; height: 36px; }
    :root .x-posts { grid-template-columns: minmax(0, 1fr); }
    :root .x-posts > :last-child { display: block; }
    :root .x-actions .x-btn { width: 100%; justify-content: space-between; }
    :root .x-footer__grid { grid-template-columns: minmax(0, 1fr); }
    :root .x-footer__base nav { margin-right: 0; }
    :root .x-stat { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .ms-js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
    :root .x-svc__text, :root .x-svc__go, :root .x-post__img img, :root .x-arr, :root .navbar { transition: none !important; }
    :root .x-frame img { transform: none !important; }
}

/* Pricing: the classic cards in light mode, the new cards in dark mode */
body:not(.future-theme) .x-pricing,
body.future-theme .pricing-classic { display: none !important; }

/* Stats boxes: identical in dark mode to light mode */
body.future-theme .facts .bg-primary,
body.future-theme .facts .bg-light,
body.future-theme .facts .bg-white {
    border: 0 !important;
    background-image: none !important;
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
}
body.future-theme .facts .col-lg-4 > .bg-primary,
body.future-theme .facts .col-lg-4 > .bg-light { border-radius: 0 !important; }
body.future-theme .facts .bg-primary { background-color: #0779A3 !important; }
body.future-theme .facts .bg-light { background-color: #EEF9FF !important; }
body.future-theme .facts .rounded.mb-2 { border-radius: 2px !important; }
body.future-theme .facts .bg-white { background-color: #ffffff !important; }
body.future-theme .facts .bg-white i.text-primary { color: #0779A3 !important; }
body.future-theme .facts h5.text-primary { color: #0779A3 !important; }
body.future-theme .facts .bg-light .h1 { color: #091E3E !important; }
body.future-theme .facts .bg-white.rounded { background: #ffffff !important; }
body.future-theme .facts .bg-white.rounded i.text-primary { color: #0779A3 !important; }
body.future-theme .facts .row.gx-0 > [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
