/* ==========================================================
   SafiTrack home page
   Shared base: tokens, nav, footer, buttons and home page sections.
   ========================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f8;
    --bg-sunk: #f1f1f3;
    --ink: #0d0e10;
    --ink-2: #2b2d33;
    --muted: #686b73;
    --faint: #9a9da5;
    --line: #e8e8eb;
    --line-2: #dcdde1;
    --accent: #2f5fd0;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --wrap: 1180px;
    --nav-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --shadow-ui: 0 1px 2px rgba(16, 18, 24, .04), 0 8px 24px -8px rgba(16, 18, 24, .10), 0 32px 64px -24px rgba(16, 18, 24, .12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
video {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

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

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 48px);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-sm {
    height: 34px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 13.5px;
}

.btn-lg {
    height: 46px;
    padding: 0 20px;
    border-radius: 11px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .16);
}

.btn-dark:hover {
    background: #2a2c31;
}

.btn-light {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-2);
    box-shadow: 0 1px 2px rgba(16, 18, 24, .05);
}

.btn-light:hover {
    background: var(--bg-soft);
    border-color: #cfd0d5;
}

.text-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.text-link span,
.card-link span,
.announce-arrow {
    display: inline-block;
    transition: transform .2s var(--ease);
}

.text-link:hover span,
.card-link:hover span,
.announce:hover .announce-arrow {
    transform: translateX(3px);
}

/* ---------- Shared type ---------- */

.eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

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

.section-title {
    font-size: clamp(32px, 4.4vw, 50px);
    line-height: 1.06;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-wrap: balance;
}

.section-sub {
    margin-top: 18px;
    max-width: 580px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--muted);
    text-wrap: pretty;
}

/* ==========================================================
   Navigation
   ========================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.nav.is-scrolled,
.nav.is-open {
    border-bottom-color: var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    gap: 48px;
}

/* the bar spans the full window, not the content column */
.wrap.nav-inner {
    max-width: none;
    padding: 0 24px;
}

.nav-logo img,
.footer-brand img {
    width: 108px;
    height: auto;
    /* the logo artwork is white; render it in ink */
    filter: brightness(0);
}

.nav-logo {
    display: flex;
    flex: none;
}

.nav-logo img {
    width: 128px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-trigger,
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.nav-trigger:hover,
.nav-link:hover,
.nav-item.is-open .nav-trigger {
    background: var(--bg-sunk);
    color: var(--ink);
}

.nav-trigger svg {
    color: var(--faint);
    transition: transform .2s var(--ease);
}

.nav-item.is-open .nav-trigger svg {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-open {
    height: 36px;
    padding: 0 15px;
    font-size: 14px;
}

/* Mega menu */

.menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -12px;
    width: 760px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 40px -12px rgba(16, 18, 24, .18), 0 2px 6px rgba(16, 18, 24, .04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.menu::before {
    /* hover bridge between trigger and panel */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.menu-sm {
    width: 520px;
}

.nav-item.is-open .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
}

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

.menu-sm .menu-grid {
    grid-template-columns: 1.4fr 1fr;
}

.menu-col {
    padding: 8px 4px;
}

.menu-heading {
    padding: 4px 10px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--faint);
}

.menu-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    transition: background-color .12s ease;
}

.menu-link:hover {
    background: var(--bg-soft);
}

.menu-link strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.menu-link small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}

.menu-link-plain {
    padding-top: 8px;
    padding-bottom: 8px;
}

.menu-link-plain strong {
    font-weight: 500;
}

.menu-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink-2);
}

.menu-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-foot {
    margin-top: 4px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
}

.menu-foot a:hover {
    color: var(--accent);
}

/* Mobile menu */

.nav-burger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-right: -8px;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-burger span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s var(--ease), top .25s var(--ease);
}

.nav-burger span:first-child {
    top: 16px;
}

.nav-burger span:last-child {
    top: 23px;
}

.nav.is-open .nav-burger span:first-child {
    top: 19.5px;
    transform: rotate(45deg);
}

.nav.is-open .nav-burger span:last-child {
    top: 19.5px;
    transform: rotate(-45deg);
}

.mobile-menu {
    /* absolute, not fixed: the nav's backdrop-filter would trap a fixed child */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    border-top: 1px solid var(--line);
    overflow-y: auto;
    background: #fff;
    padding: 8px 0 32px;
}

.mobile-menu a:not(.btn) {
    display: block;
    padding: 11px 0;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
}

.mobile-heading {
    margin-top: 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--faint);
}

.mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
}

.mobile-actions .btn {
    height: 46px;
}

/* Nav over dark sections */
.nav {
    transition: border-color .2s ease, background-color .25s ease;
}

.nav.is-dark:not(.is-open) {
    background: rgba(14, 14, 16, .94);
    border-bottom-color: rgba(255, 255, 255, .08);
}

.nav.is-dark:not(.is-open) .nav-logo img {
    filter: none;
}

.nav.is-dark:not(.is-open) .nav-trigger,
.nav.is-dark:not(.is-open) .nav-link {
    color: #d7d8dc;
}

.nav.is-dark:not(.is-open) .nav-trigger:hover,
.nav.is-dark:not(.is-open) .nav-link:hover,
.nav.is-dark:not(.is-open) .nav-item.is-open .nav-trigger {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.nav.is-dark:not(.is-open) .nav-trigger svg {
    color: #8e9098;
}

.nav.is-dark:not(.is-open) .nav-actions .btn-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    box-shadow: none;
}

.nav.is-dark:not(.is-open) .nav-actions .btn-light:hover {
    background: rgba(255, 255, 255, .08);
}

.nav.is-dark:not(.is-open) .nav-burger span {
    background: #fff;
}


/* ==========================================================
   Hero
   ========================================================== */

.hero {
    padding: 88px 0 56px;
    text-align: center;
}

.announce {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    padding: 0 12px 0 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    box-shadow: 0 1px 2px rgba(16, 18, 24, .04);
    transition: border-color .15s ease;
}

.announce:hover {
    border-color: var(--line-2);
}

.announce-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--bg-sunk);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}

.announce-arrow {
    color: var(--faint);
}

.hero-title {
    /* the widest state ("Safi customers") is ~6.9em, so cap the size to always fit one line */
    --size: clamp(40px, min(11vw, calc((100vw - 32px) / 7)), 88px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .2em;
    margin-top: 32px;
    font-size: var(--size);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.055em;
}

.hero-word {
    /* optical nudge so the plain word sits level with the chip text */
    padding-bottom: .04em;
}

.rotator {
    position: relative;
    display: inline-block;
    height: 1.16em;
    padding: 0 .2em;
    overflow: hidden;
    vertical-align: middle;
    background: var(--ink);
    color: #fff;
    border-radius: .17em;
    transition: width .55s var(--ease);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px -12px rgba(0, 0, 0, .35);
}

.rotator-word {
    position: absolute;
    left: .2em;
    top: 0;
    line-height: 1.12em;
    white-space: nowrap;
    transform: translateY(105%);
    opacity: 0;
    transition: transform .55s var(--ease), opacity .4s ease;
}

.rotator-word.is-active {
    position: relative;
    left: auto;
    display: inline-block;
    transform: none;
    opacity: 1;
}

.rotator-word.is-leaving {
    transform: translateY(-105%);
    opacity: 0;
}

.hero-sub {
    max-width: 600px;
    margin: 28px auto 0;
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--muted);
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--faint);
}

/* ==========================================================
   Showcase
   ========================================================== */

.showcase {
    padding: 24px 0 0;
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.showcase-tabs::-webkit-scrollbar {
    display: none;
}

.showcase-tab {
    position: relative;
    flex: none;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--faint);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.showcase-tab:hover {
    color: var(--ink-2);
}

.showcase-tab.is-active {
    color: var(--ink);
    background: var(--bg-sunk);
}

.tab-bar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: rgba(13, 14, 16, .08);
    overflow: hidden;
    opacity: 0;
    transition: opacity .2s ease;
}

.showcase-tab.is-active .tab-bar {
    opacity: 1;
}

.tab-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
}

.showcase-frame {
    position: relative;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-soft);
    box-shadow: var(--shadow-ui);
}

.showcase-frame video {
    width: 100%;
    aspect-ratio: 2880 / 1556;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: #fff;
    object-fit: cover;
    transition: opacity .3s ease;
}

.showcase-frame video.is-fading {
    opacity: 0;
}

/* ==========================================================
   Showcase: draggable windows
   ========================================================== */

.showcase {
    position: relative;
    isolation: isolate;
}

.stage {
    position: relative;
}

.showcase-frame {
    max-width: 1060px;
    margin: 0 auto;
}

.win {
    position: absolute;
    z-index: 3;
    display: none;
    width: 264px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 18, 24, .06), 0 18px 40px -14px rgba(16, 18, 24, .28);
    font-size: 12px;
    line-height: 1.45;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    /* --dx/--dy: where the visitor dragged it; --px/--py: mouse parallax */
    transform: translate(calc(var(--dx, 0px) + var(--px, 0px)), calc(var(--dy, 0px) + var(--py, 0px)));
    animation: win-in .7s var(--ease) both;
    transition: box-shadow .2s ease;
}

.win.is-dragging {
    cursor: grabbing;
    box-shadow: 0 1px 2px rgba(16, 18, 24, .06), 0 28px 60px -16px rgba(16, 18, 24, .36);
}

@keyframes win-in {
    from {
        opacity: 0;
        translate: 0 12px;
    }
}

.win-ai {
    left: -28px;
    top: 44px;
    animation-delay: .35s;
}

.win-feed {
    left: -12px;
    bottom: 56px;
    animation-delay: .5s;
}

.win-visit {
    right: -28px;
    top: 150px;
    width: 284px;
    animation-delay: .65s;
}

.win-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line);
}

.win-dots {
    display: flex;
    gap: 5px;
}

.win-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
}

.win-dots i:nth-child(2) {
    background: #febc2e;
}

.win-dots i:nth-child(3) {
    background: #28c840;
}

.win-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
}

/* each window holds a crop of a real SafiTrack screen */
.win-shot {
    overflow: hidden;
}

.win-shot img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Dark activity window */
.win-dark {
    background: #141417;
    border-color: #2a2b30;
    color: #c9cacf;
}

.win-dark .win-bar {
    border-bottom-color: #26272c;
}

.win-dark .win-title {
    color: #9a9ca3;
}

.live-dot {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

@media (min-width: 1280px) {
    .win {
        display: block;
    }
}

/* ==========================================================
   Scroll statement
   ========================================================== */

.statement {
    position: relative;
    height: 180vh;
}

.statement-sticky {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: var(--nav-h) 0 0;
}

.statement-text {
    max-width: 900px;
    font-size: clamp(32px, 4.6vw, 58px);
    line-height: 1.14;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-wrap: pretty;
}

.statement.is-static {
    height: auto;
}

.statement.is-static .statement-sticky {
    position: static;
    min-height: 0;
    padding: 120px 0 0;
}

.statement-text .w {
    opacity: .14;
    transition: opacity .25s linear;
}

/* ==========================================================
   Rails (thin vertical borders framing sections)
   ========================================================== */

.rail {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.rail-dark {
    border-color: rgba(255, 255, 255, .09);
}

/* ==========================================================
   Features: sticky nav + scrolling panels
   ========================================================== */

.flow {
    padding-top: 120px;
}

.flow .rail {
    border-top: 1px solid var(--line);
}

.flow-head {
    padding: 96px 48px 64px;
    border-bottom: 1px solid var(--line);
}

.flow-head .section-sub {
    margin-top: 18px;
}

.flow-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.flow-nav {
    position: sticky;
    top: calc(var(--nav-h) + 56px);
    align-self: start;
    display: flex;
    flex-direction: column;
    padding: 48px 0;
}

.flow-nav a {
    position: relative;
    padding: 8px 24px 8px 40px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #b9bcc3;
    transition: color .25s ease;
}

.flow-nav a::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform .3s var(--ease);
}

.flow-nav a:hover {
    color: var(--ink-2);
}

.flow-nav a.is-active {
    color: var(--ink);
}

.flow-nav a.is-active::before {
    transform: none;
}

.flow-panels {
    border-left: 1px solid var(--line);
}

.flow-panel+.flow-panel {
    border-top: 1px solid var(--line);
}

.flow-copy {
    padding: 56px 56px 44px;
}

.flow-copy h3 {
    max-width: 640px;
    font-size: clamp(22px, 2.3vw, 29px);
    line-height: 1.24;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: pretty;
}

.flow-copy h3 span {
    color: #8a8d95;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* dotted canvas the product sits on */
.canvas {
    position: relative;
    height: 540px;
    overflow: hidden;
    border-top: 1px solid var(--line);
    background-color: #f7f8fa;
    background-image: radial-gradient(circle, #d3d6dd 1px, transparent 1.3px);
    background-size: 18px 18px;
}

.canvas img {
    position: absolute;
    height: auto;
    max-width: none;
    background: #fff;
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-ui);
}

.canvas-wide img {
    left: 56px;
    top: 56px;
    width: 980px;
    border-radius: 12px 0 0 0;
}

.canvas-panel img {
    left: 50%;
    top: 56px;
    width: 340px;
    transform: translateX(-50%);
    border-radius: 12px 12px 0 0;
}

/* The rest */

.more {
    margin-top: 96px;
}

.more-title {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.more-item {
    display: block;
    padding: 24px 24px 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color .15s ease;
}

.more-item:hover {
    background: var(--bg-soft);
}

.more-item strong {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.more-item span {
    display: block;
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--muted);
}

/* ==========================================================
   Field Intelligence (dark)
   ========================================================== */

.intel {
    --dark: #0e0e10;
    margin-top: 140px;
    background: var(--dark);
    color: #fff;
}

.intel-stage {
    position: relative;
    height: 660px;
    overflow: hidden;
}

/* fine vertical hairlines, strongest around the horizon */
.intel-stage::before,
.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 6px);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 78%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 78%, #000 10%, transparent 75%);
    pointer-events: none;
}

.intel-heading {
    position: relative;
    z-index: 2;
    padding-top: 128px;
    text-align: center;
}

.intel-kicker {
    font-size: 17px;
    font-weight: 500;
    color: #8e9098;
}

.intel-title {
    margin-top: 12px;
    font-size: clamp(46px, 7.4vw, 96px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #fff;
}

/* The planet: a huge circle whose top edge forms the glowing horizon.
   --p (0 → 1) is set from scroll position. */
.planet {
    --p: 1;
    position: absolute;
    left: 50%;
    top: 340px;
    width: 1400px;
    aspect-ratio: 1;
    transform: translate(-50%, calc((1 - var(--p)) * 180px));
    will-change: transform;
}

.planet>span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.planet-rim,
.planet-glow {
    background: conic-gradient(from 0deg,
            #4b4e56 0deg, #9da1aa 14deg, #5eead4 32deg, #38bdf8 45deg, #3b82f6 58deg,
            rgba(59, 130, 246, 0) 90deg, rgba(239, 68, 68, 0) 270deg,
            #ef4444 302deg, #f97316 315deg, #facc15 330deg, #9da1aa 346deg, #4b4e56 360deg);
}

.planet-rim {
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1px));
}

/* the glow sits outside the planet so it lights up the hairlines above it */
.planet-glow {
    inset: -36px !important;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 52px), #000 calc(100% - 36px), transparent 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 52px), #000 calc(100% - 36px), transparent 100%);
    filter: blur(18px);
    opacity: calc(.1 + var(--p) * .45);
    mix-blend-mode: screen;
}

/* light dropping down the hairlines onto the horizon, drawn by home.js */
.intel-sparks {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.planet-body {
    inset: 1px !important;
    background: radial-gradient(circle at 50% 0%, #17171a 0%, var(--dark) 30%);
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.intel-item {
    display: flex;
    flex-direction: column;
    min-height: 236px;
    padding: 28px 28px 34px;
}

.intel-item+.intel-item {
    border-left: 1px solid rgba(255, 255, 255, .09);
}

.intel-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #9a9ca3;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.intel-item h3 {
    margin-top: 64px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #fff;
}

.intel-item p {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #8e9098;
}

/* ==========================================================
   Signals (dark): copy + rotating list on the left, orbit on the right
   ========================================================== */

.signals {
    background: #0e0e10;
    color: #fff;
}

.signals .rail {
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.signals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}

.signals-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 72px;
    padding: 88px 48px 64px;
}

.signals-head .split-title {
    margin-top: 18px;
    max-width: 520px;
}

.signals-head .btn {
    margin-top: 32px;
}

.signals-list {
    max-width: 420px;
}

.signal {
    display: block;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.signal:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 4px;
    border-radius: 4px;
}

.signal-title {
    display: block;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #6f727a;
    transition: color .25s ease;
}

.signal:hover .signal-title,
.signal.is-active .signal-title {
    color: #fff;
}

.signal-text {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: #8e9098;
    transition: max-height .45s var(--ease), opacity .3s ease, margin-top .45s var(--ease);
}

.signal.is-active .signal-text {
    max-height: 96px;
    margin-top: 8px;
    opacity: 1;
}

.signals-bar {
    height: 2px;
    margin-top: 20px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}

.signals-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: #a3acc2;
}

.signals-art {
    position: relative;
    min-height: 560px;
    border-left: 1px solid rgba(255, 255, 255, .09);
    overflow: hidden;
}

.signals-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 960px) {
    .signals-grid {
        grid-template-columns: 1fr;
    }

    .signals-copy {
        gap: 48px;
        padding: 64px 20px 40px;
    }

    .signals-art {
        min-height: 400px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .09);
    }
}

/* ==========================================================
   Connectivity (dark)
   ========================================================== */

.connect {
    background: #0e0e10;
    color: #fff;
}

.connect .rail {
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.connect-head {
    padding: 120px 24px 56px;
    text-align: center;
}

.tag.tag-dark {
    background: rgba(59, 130, 246, .16);
    color: #a9c4ff;
}

.connect-title {
    margin-top: 18px;
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #fff;
}

.connect-sub {
    max-width: 440px;
    margin: 14px auto 28px;
    font-size: 16px;
    line-height: 1.55;
    color: #8e9098;
    text-wrap: balance;
}

/* scrolling row of integration tiles */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 8px 0 112px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: marquee 42s linear infinite;
}

/* three identical sets: shift by one set for a seamless loop */
@keyframes marquee {
    to {
        transform: translateX(calc(-100% / 3 - 8px));
    }
}

.tile {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: #18181b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.tile svg {
    width: 34px;
    height: 34px;
    fill: #e6e7ea;
}

/* Import / export block */
.connect-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.connect-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 72px 48px;
}

.split-title.split-title-dark {
    margin-top: 0;
    color: #fff;
}

.split-title.split-title-dark span {
    color: #7c7f87;
}

.connect-art {
    position: relative;
    min-height: 340px;
    border-left: 1px solid rgba(255, 255, 255, .09);
}

.route-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lattice path {
    fill: none;
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.route-line {
    fill: none;
    stroke: rgba(255, 255, 255, .7);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 1.8s cubic-bezier(.4, 0, .2, 1);
}

.route-stops circle {
    fill: #0e0e10;
    stroke: rgba(255, 255, 255, .55);
    stroke-width: 1.2;
}

.route-stops .route-start {
    fill: #fff;
    stroke: none;
}

.route-stops text {
    fill: #e6e7ea;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    text-anchor: middle;
}

.route-stops > g {
    opacity: 0;
    transition: opacity .4s ease;
}

.route-art.is-run .route-line {
    stroke-dashoffset: 0;
}

.route-art.is-run .route-stops > g {
    opacity: 1;
}

.route-art.is-run .route-stops > g:nth-of-type(1) { transition-delay: .35s; }
.route-art.is-run .route-stops > g:nth-of-type(2) { transition-delay: .7s; }
.route-art.is-run .route-stops > g:nth-of-type(3) { transition-delay: 1.05s; }
.route-art.is-run .route-stops > g:nth-of-type(4) { transition-delay: 1.4s; }
.route-art.is-run .route-stops > g:nth-of-type(5) { transition-delay: 1.75s; }

/* interactive layer (home.js): a pulse runs the route; on hover the
   pointer scrubs along it, lighting stops and popping a file chip at each */
.connect-art {
    overflow: hidden;
    cursor: pointer;
}

.lattice {
    transition: transform .6s var(--ease);
}

.route-line {
    transition: stroke-dashoffset 1.8s cubic-bezier(.4, 0, .2, 1), stroke .3s ease;
}

.connect-art.is-scrubbing .route-line {
    stroke: rgba(255, 255, 255, .2);
}

.route-progress {
    fill: none;
    stroke: #e0f2fe;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(125, 211, 252, .8));
    opacity: 0;
    transition: opacity .3s ease;
}

.connect-art.is-scrubbing .route-progress {
    opacity: 1;
}

.route-stops .stop {
    transition: transform .3s var(--ease);
}

.route-stops .stop circle {
    transition: fill .3s ease, stroke .3s ease;
}

.route-stops .stop text {
    transition: fill .3s ease;
}

.route-stops .stop.is-lit {
    transform: scale(1.15);
}

.route-stops .stop.is-lit circle {
    fill: #e0f2fe;
    stroke: #e0f2fe;
}

.route-stops .stop.is-lit text {
    fill: #0e0e10;
}

.route-pulse {
    fill: #fff;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(125, 211, 252, .95));
    transition: opacity .4s ease;
}

.route-art.is-pulsing .route-pulse,
.connect-art.is-scrubbing .route-pulse {
    opacity: 1;
}

.route-chip .chip-in {
    opacity: 0;
    transform: translateY(6px) scale(.9);
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity .25s ease, transform .35s var(--ease);
}

.route-chip.is-on .chip-in {
    opacity: 1;
    transform: none;
}

.route-chip rect.chip-bg {
    fill: #17171b;
    stroke: rgba(255, 255, 255, .14);
}

.route-chip text {
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 500;
    fill: #d4d5d9;
}

.route-chip text.chip-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    fill: #0e0e10;
}

/* ==========================================================
   Customers
   ========================================================== */

.customers-head {
    padding: 120px 48px 56px;
}

.tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    background: #eaf0fd;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.split-title {
    margin-top: 18px;
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.split-title span {
    display: block;
    color: #8a8d95;
}

.logo-cells {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--line);
}

.logo-cells>div {
    display: grid;
    place-items: center;
    height: 104px;
    transition: background-color .2s ease;
}

.logo-cells>div+div {
    border-left: 1px solid var(--line);
}

.logo-cells>div:hover {
    background: var(--bg-soft);
}

.logo-cells img {
    width: auto;
    height: 26px;
    /* logos come in mixed colours; flatten them to one tone */
    filter: brightness(0);
    opacity: .5;
    transition: opacity .2s ease;
}

.logo-cells>div:hover img {
    opacity: .85;
}

/* ==========================================================
   Testimonials (original cinematic carousel)
   ========================================================== */

.premium-testimonials {
    position: relative;
    padding: 100px 0;
    background: #fafafa;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.t-carousel-container {
    position: relative;
    max-width: 1100px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e6e9ef;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5);
    overflow: hidden;
}

.t-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 40% 60%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 1.2s ease, visibility 1.2s;
}

.t-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 5;
}

.t-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.t-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0);
    transition: filter 1.5s ease;
}

.t-slide.active .t-image-wrapper img {
    filter: saturate(1);
}

.t-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, #fff 100%);
}

.t-content {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    text-align: left;
}

.t-quote {
    margin-bottom: 40px;
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-size: 32px;
    line-height: 1.4;
    color: #0b1220;
    opacity: 0;
    transform: translateY(20px);
    transition: all .8s ease .4s;
}

.t-slide.active .t-quote {
    opacity: 1;
    transform: none;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all .8s ease .6s;
}

.t-slide.active .t-author {
    opacity: 1;
    transform: none;
}

.t-info {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-size: 20px;
    font-weight: 700;
    color: #0b1220;
}

.t-role {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.t-controls-bar {
    position: absolute;
    left: 40%;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    padding: 32px 60px;
}

.t-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.t-current,
.t-total {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.t-current {
    color: #0b1220;
}

.t-segments {
    flex-grow: 1;
    display: flex;
    gap: 6px;
}

.t-seg {
    flex-grow: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(11, 18, 32, .12);
    overflow: hidden;
}

.t-seg-fill {
    width: 0%;
    height: 100%;
    background: #000;
}

@media (max-width: 900px) {
    .t-carousel-container {
        flex-direction: column;
        height: auto;
        min-height: 600px;
    }

    .t-controls-bar {
        left: 0;
        justify-content: center;
        padding: 24px;
    }

    .t-slide {
        display: flex;
        flex-direction: column;
    }

    .t-image-wrapper {
        order: -1;
        width: 100%;
        height: 300px;
    }

    .t-image-wrapper::after {
        background: linear-gradient(180deg, transparent 0%, #fff 100%);
    }

    .t-content {
        padding: 40px 32px 80px;
        text-align: center;
    }

    .t-quote {
        font-size: 24px;
    }

    .t-author {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .premium-testimonials {
        padding: 50px 0;
    }

    .t-content {
        padding: 28px 18px 72px;
    }

    .t-quote {
        font-size: 20px;
        line-height: 1.35;
    }
}

/* ==========================================================
   Pricing
   ========================================================== */

.pricing {
    padding: 140px 0 0;
}

.pricing .section-head {
    margin-bottom: 40px;
}

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 32px;
    background: #fff;
}

.plan+.plan {
    border-left: 1px solid var(--line);
}

.plan-featured {
    background: var(--bg-soft);
}

.plan-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.plan-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
}

.plan-price {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--muted);
}

.plan-price span {
    margin-right: 4px;
    font-size: 36px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.plan-desc {
    min-height: 44px;
    margin: 12px 0 24px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.plan-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.plan-list li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 14px;
    color: var(--ink-2);
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 11px;
    height: 6px;
    margin-top: -5px;
    border-left: 1.6px solid var(--ink);
    border-bottom: 1.6px solid var(--ink);
    transform: rotate(-45deg);
}

/* ==========================================================
   CTA (dark)
   ========================================================== */

.cta {
    margin-top: 140px;
    background: #0e0e10;
    color: #fff;
}

.cta-box {
    position: relative;
    padding: 150px 24px 140px;
    text-align: center;
}

.cta-box::before {
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 0%, transparent 75%);
}

.cta-box>* {
    position: relative;
}

.cta-title {
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: #fff;
    text-wrap: balance;
}

.cta-sub {
    margin-top: 18px;
    font-size: 18px;
    color: #8e9098;
}

.btn-white {
    background: #fff;
    color: var(--ink);
}

.btn-white:hover {
    background: #e7e8eb;
}

.btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(255, 255, 255, .16);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .11);
}

/* ==========================================================
   Footer (dark)
   ========================================================== */

.footer {
    background: #0e0e10;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #e6e7ea;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding: 80px 0 96px;
}

.footer-brand img {
    width: 124px;
    height: auto;
    /* white artwork, shown as-is on dark */
    filter: none;
}

.footer-brand p {
    margin-top: 14px;
    color: #8e9098;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, auto));
    gap: 48px;
}

.footer-heading {
    margin-bottom: 10px;
    font-weight: 500;
    color: #7c7f87;
}

.footer-cols a,
.footer-link {
    display: block;
    padding: 5px 0;
    border: 0;
    background: none;
    font: inherit;
    color: #e6e7ea;
    text-align: left;
    cursor: pointer;
    transition: color .15s ease;
}

.footer-cols a:hover,
.footer-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, .3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #6f727a;
    font-size: 13px;
}

.footer-bottom nav {
    display: flex;
    gap: 24px;
}

.footer-bottom a {
    color: #8e9098;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ==========================================================
   Contact dialog
   ========================================================== */

.contact {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 80px -16px rgba(16, 18, 24, .3);
}

.contact::backdrop {
    background: rgba(13, 14, 16, .38);
    backdrop-filter: blur(3px);
}

.contact[open] {
    animation: dialog-in .22s var(--ease);
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }
}

.contact-body {
    padding: 36px 32px 32px;
}

.contact-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.contact-close:hover {
    background: var(--bg-sunk);
    color: var(--ink);
}

.contact-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.contact-sub {
    margin: 8px 0 24px;
    font-size: 15px;
    color: var(--muted);
}

.contact-result .contact-sub {
    margin-bottom: 28px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    display: block;
    margin-bottom: 14px;
}

.field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.field input,
.field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field select {
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23686b73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}

.field select:invalid {
    color: var(--faint);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 95, 208, .14);
}

.field.is-invalid input,
.field.is-invalid select {
    border-color: #d64545;
}

/* Site dropdown (home.js enhanceSelect) replacing the native select */
.dd {
    position: relative;
}

.dd-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.dd-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dd-trigger.is-placeholder {
    color: var(--faint);
}

.dd-trigger:focus-visible,
.dd.is-open .dd-trigger {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 95, 208, .14);
}

.dd-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dd-chevron {
    flex: none;
    fill: none;
    stroke: #686b73;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s var(--ease);
}

.dd.is-open .dd-chevron {
    transform: rotate(180deg);
}

.field.is-invalid .dd-trigger {
    border-color: #d64545;
}

.dd-list {
    position: fixed;
    z-index: 10;
    margin: 0;
    padding: 5px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 18, 24, .06), 0 16px 40px -12px rgba(16, 18, 24, .24);
    outline: none;
    animation: dd-in .16s var(--ease);
}

.dd.opens-up .dd-list {
    animation-name: dd-in-up;
}

@keyframes dd-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@keyframes dd-in-up {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}

.dd-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--ink-2);
    cursor: pointer;
}

.dd-option.is-active {
    background: var(--bg-soft);
    color: var(--ink);
}

.dd-option[aria-selected="true"] {
    font-weight: 600;
    color: var(--ink);
}

.dd-check {
    flex: none;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.dd-option[aria-selected="true"] .dd-check {
    opacity: 1;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 22px;
    font-size: 13.5px;
    color: var(--muted);
}

.check input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--ink);
}

.check.is-invalid {
    color: #d64545;
}

.check a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--line-2);
}

#contact-submit[disabled] {
    opacity: .6;
    cursor: progress;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1100px) {
    .canvas-wide img {
        width: 860px;
    }

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

    .intel-item:nth-child(4) {
        border-left: 0;
    }

    .intel-item:nth-child(n+4) {
        border-top: 1px solid rgba(255, 255, 255, .09);
    }

    .intel-item {
        min-height: 200px;
    }
}

@media (max-width: 960px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-burger {
        display: block;
    }

    .flow-body {
        grid-template-columns: 1fr;
    }

    .flow-nav {
        display: none;
    }

    .flow-panels {
        border-left: 0;
    }

    .planet {
        width: 1100px;
        top: 360px;
    }

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

    .logo-cells>div:nth-child(4) {
        border-left: 0;
    }

    .logo-cells>div:nth-child(n+4) {
        border-top: 1px solid var(--line);
    }

    .plans {
        grid-template-columns: 1fr 1fr;
    }

    .plan:nth-child(3) {
        border-left: 0;
    }

    .plan:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .wrap {
        padding: 0 16px;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero-title {
        margin-top: 28px;
        letter-spacing: -0.05em;
    }

    .showcase-tabs {
        justify-content: flex-start;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
    }

    .showcase-frame {
        padding: 5px;
        border-radius: 14px;
    }

    .showcase-frame video {
        border-radius: 10px;
    }

    .statement {
        height: 160vh;
    }

    .flow,
    .pricing {
        padding-top: 96px;
    }

    .flow-head,
    .customers-head {
        padding: 64px 20px 40px;
    }

    .flow-copy {
        padding: 36px 20px 28px;
    }

    .canvas {
        height: 400px;
    }

    .canvas-wide img {
        left: 20px;
        top: 28px;
        width: 640px;
    }

    .canvas-panel img {
        top: 28px;
        width: 260px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-sub {
        font-size: 16.5px;
    }

    .more {
        margin-top: 64px;
    }

    .more-grid {
        grid-template-columns: 1fr;
    }

    .more-item {
        padding: 18px 20px;
    }

    .intel,
    .cta {
        margin-top: 96px;
    }

    .intel-stage {
        height: 460px;
    }

    .intel-heading {
        padding-top: 88px;
    }

    .planet {
        width: 760px;
        top: 270px;
    }

    .intel-grid {
        grid-template-columns: 1fr;
    }

    .intel-item,
    .intel-item:nth-child(n) {
        min-height: 0;
        border-left: 0;
    }

    .intel-item+.intel-item {
        border-top: 1px solid rgba(255, 255, 255, .09);
    }

    .intel-item h3 {
        margin-top: 20px;
    }

    .connect-head {
        padding: 88px 20px 40px;
    }

    .marquee {
        padding-bottom: 80px;
    }

    .tile {
        width: 64px;
        height: 64px;
        border-radius: 15px;
    }

    .tile svg {
        width: 28px;
        height: 28px;
    }

    .connect-split {
        grid-template-columns: 1fr;
    }

    .connect-copy {
        padding: 56px 20px;
    }

    .connect-art {
        min-height: 240px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .09);
    }

    .logo-cells>div {
        height: 84px;
    }

    .logo-cells img {
        height: 22px;
    }

    .plans {
        grid-template-columns: 1fr;
    }

    .plan+.plan {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .plan-desc {
        min-height: 0;
    }

    .cta-box {
        padding: 104px 16px 96px;
    }

    .footer-top {
        padding: 56px 0 64px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-body {
        padding: 32px 20px 24px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================
   Pointer spotlight on cards (home.js sets --mx / --my)
   ========================================================== */

.plan,
.intel-item {
    --mx: 50%;
    --my: 50%;
}

.plan:hover {
    background-image: radial-gradient(280px circle at var(--mx) var(--my), rgba(47, 95, 208, .08), transparent 70%);
}

.intel-item {
    transition: background-color .2s ease;
}

.intel-item:hover {
    background-image: radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 70%);
}

/* ==========================================================
   Scroll reveal: only once home.js has marked the page, so
   content is never hidden if the script doesn't run
   ========================================================== */

.has-motion [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}

.has-motion [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .marquee-track {
        animation: none;
    }

    .route-line {
        stroke-dashoffset: 0;
    }

    .route-stops g {
        opacity: 1;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
