/* ============================================================
   LOGITRACK · DESIGN SYSTEM
   White, with one blue. Outfit speaks, IBM Plex Mono keeps the
   record. The blue line is the evidence: it runs through the
   brand film, the town in the hero and every page of the site.
   Shared by every page; page layouts live alongside.
   ============================================================ */

:root {
    --paper: #FFFFFF;
    --paper-2: #F5F7FA;
    --paper-3: #E9EDF3;
    --tint: #EEF4FF;

    --text: #0F1720;
    --text-2: #4E5A6A;
    --text-3: #8792A2;

    --blue: #2F7DF6;
    --blue-2: #1C63D4;
    --blue-3: #8DB8FB;
    --blue-4: #DCE8FD;
    --blue-tint: rgba(47, 125, 246, .09);
    --red: #D93A3A;
    --amber: #C97A12;
    --green: #2C8A57;

    --line: rgba(15, 23, 32, .09);
    --line-2: rgba(15, 23, 32, .16);
    --line-w: rgba(255, 255, 255, .22);

    --display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);

    --max: 1320px;
    --gutter: clamp(20px, 4.4vw, 64px);
    --sec: clamp(96px, 11vw, 176px);

    --sh-1: 0 1px 2px rgba(15, 23, 32, .06);
    --sh-2: 0 16px 36px -16px rgba(15, 23, 32, .18), 0 2px 6px rgba(15, 23, 32, .05);
    --sh-3: 0 50px 90px -40px rgba(15, 23, 32, .3), 0 12px 28px -12px rgba(15, 23, 32, .1);
    --sh-blue: 0 30px 70px -30px rgba(47, 125, 246, .55);
}

/* ---------- Reset ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 84px;
}

body {
    background: var(--paper);
    color: var(--text);
    font-family: var(--display);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

ol,
ul {
    list-style: none;
}

::selection {
    background: var(--blue);
    color: #fff;
}

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

.skip {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    transition: top .2s;
}

.skip:focus {
    top: 16px;
}

/* ---------- Layout ---------- */

.wrap {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

main {
    /* Safari ignores overflow-x on body for touch panning; clipping here keeps
       any element mid-animation from widening the page on a phone. */
    overflow-x: clip;
}

main > section {
    position: relative;
    padding-block: var(--sec);
}

.paper { background: var(--paper); color: var(--text); }
.paper-2 { background: var(--paper-2); color: var(--text); }
.tint { background: var(--tint); color: var(--text); }

.blue {
    background: var(--blue);
    color: #fff;
}

/* ---------- Type ---------- */

.mono {
    font-family: var(--mono);
}

.h2 {
    font-size: clamp(2.3rem, 4.8vw, 4.5rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

h3 {
    font-size: clamp(1.12rem, 1.4vw, 1.3rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.lede {
    max-width: 46ch;
    font-size: clamp(1.05rem, 1.25vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-2);
    text-wrap: pretty;
}

.blue .lede {
    color: rgba(255, 255, 255, .84);
}

.accent {
    color: var(--blue);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: none;
    background: var(--blue);
}

.eyebrow b {
    font-weight: 500;
    color: var(--blue);
}

.eyebrow.live::before {
    content: none;
}

.blue .eyebrow {
    color: rgba(255, 255, 255, .72);
}

.blue .eyebrow::before {
    background: #fff;
}

.sec-head {
    margin-bottom: clamp(48px, 6vw, 88px);
}

.sec-head .h2 {
    margin-top: 22px;
}

.sec-head.split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(28px, 6vw, 96px);
    align-items: end;
}

.sec-head.center {
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}

.sec-head.center .lede {
    margin: 22px auto 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: var(--display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .35s var(--ease), background-color .2s, border-color .2s, box-shadow .35s var(--ease), color .2s;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex: none;
    transition: transform .35s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn:active {
    transform: translateY(0) scale(.98);
}

.btn-blue {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 28px -12px rgba(47, 125, 246, .75);
}

.btn-blue:hover {
    background: var(--blue-2);
    box-shadow: 0 16px 34px -12px rgba(47, 125, 246, .85);
}

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

.btn-ink:hover {
    background: #263241;
}

.btn-line {
    border-color: var(--line-2);
    background: rgba(255, 255, 255, .7);
    color: var(--text);
}

.btn-line:hover {
    border-color: var(--text);
    background: #fff;
}

.btn-white {
    background: #fff;
    color: var(--blue-2);
    box-shadow: 0 16px 34px -16px rgba(10, 30, 80, .5);
}

.btn-white:hover {
    background: var(--tint);
}

.btn-white-line {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.btn-white-line:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
}

.btn-sm {
    padding: 10px 14px;
    font-size: .88rem;
}

.btn-lg {
    padding: 16px 22px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Chips and markers ---------- */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--paper-3);
    color: var(--text-2);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.chip.red { background: rgba(217, 58, 58, .1); color: #B83232; }
.chip.amber { background: rgba(201, 122, 18, .13); color: #9C5F0C; }
.chip.blue { background: rgba(47, 125, 246, .1); color: var(--blue-2); }
.chip.green { background: rgba(44, 138, 87, .12); color: #237049; }
.chip.ink { background: var(--text); color: #fff; }

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #34B37A;
}

.pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: ping 2.2s var(--ease) infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: .7; }
    80%, 100% { transform: scale(3.2); opacity: 0; }
}

.note {
    max-width: 920px;
    margin-top: clamp(32px, 4vw, 56px);
    padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper-2);
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.7;
}

.note b {
    font-weight: 600;
    color: var(--text);
}

.note a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.brand-s {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.brand-s svg {
    width: 10px;
    height: 12px;
    color: var(--blue);
}

/* ---------- Header ---------- */

.hdr {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: var(--text);
    transition: background-color .35s, color .35s, box-shadow .35s;
}

.hdr-in {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -.025em;
}

.brand svg {
    width: 17px;
    height: 20px;
    color: var(--blue);
}

.hdr-chap {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-left: 22px;
    border-left: 1px solid var(--line-2);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-3);
}

.hdr-chap i {
    width: 6px;
    height: 6px;
    flex: none;
    background: var(--blue);
}

.hdr-chap b {
    font-weight: 500;
    color: var(--blue);
}

.hdr-nav {
    margin-left: auto;
    display: flex;
    gap: clamp(16px, 2vw, 30px);
}

.hdr-nav a {
    position: relative;
    font-size: .95rem;
    font-weight: 500;
    opacity: .8;
    transition: opacity .2s;
}

.hdr-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}

.hdr-nav a:hover {
    opacity: 1;
}

.hdr-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hdr-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    pointer-events: none;
}

.hdr-progress i {
    position: absolute;
    inset: 0;
    background: var(--blue);
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
}

.hdr.is-solid {
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 1px 0 var(--line);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.hdr.is-dark {
    color: #fff;
}

.hdr.is-dark .brand svg,
.hdr.is-dark .hdr-chap b {
    color: #fff;
}

.hdr.is-dark .hdr-chap {
    color: rgba(255, 255, 255, .7);
    border-color: var(--line-w);
}

.hdr.is-dark .hdr-chap i,
.hdr.is-dark .hdr-progress i,
.hdr.is-dark .hdr-nav a::after {
    background: #fff;
}

.hdr.is-solid.is-dark {
    background: rgba(28, 99, 212, .82);
    box-shadow: none;
}

.burger {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 10px;
    border: 1px solid var(--line-2);
}

.hdr.is-dark .burger {
    border-color: var(--line-w);
}

.burger span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: currentColor;
    transition: transform .4s var(--ease), top .4s var(--ease);
}

.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.hdr.menu-open,
.hdr.menu-open.is-dark {
    color: var(--text);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.mmenu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    color: var(--text);
}

.mmenu[hidden] {
    display: none;
}

.mmenu nav {
    display: grid;
}

.mmenu nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.mmenu nav a .mono {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--blue);
}

.motion .mmenu.open nav a {
    animation: menuIn .7s var(--ease) both;
}

.motion .mmenu.open nav a:nth-child(2) { animation-delay: .04s; }
.motion .mmenu.open nav a:nth-child(3) { animation-delay: .08s; }
.motion .mmenu.open nav a:nth-child(4) { animation-delay: .12s; }
.motion .mmenu.open nav a:nth-child(5) { animation-delay: .16s; }
.motion .mmenu.open nav a:nth-child(6) { animation-delay: .2s; }

@keyframes menuIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Forms ---------- */

.fgroup {
    margin-bottom: 16px;
}

.flabel {
    display: block;
    margin-bottom: 8px;
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.req {
    color: var(--blue);
}

.fin {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--paper-2);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .25s, background-color .2s;
}

.fin::placeholder {
    color: var(--text-3);
}

.fin:hover {
    border-color: rgba(15, 23, 32, .3);
}

.fin:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 125, 246, .16);
}

.fin.err {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(217, 58, 58, .12);
}

/* ---------- Footer ---------- */

.foot {
    overflow: hidden;
    padding-block: clamp(72px, 9vw, 120px) 0;
    border-top: 1px solid var(--line);
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
}

.foot-brand p {
    max-width: 34ch;
    margin-top: 18px;
    color: var(--text-2);
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    color: var(--text-2);
    transition: color .2s, border-color .2s, transform .35s var(--ease);
}

.socials a:hover {
    color: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.socials svg {
    width: 16px;
    height: 16px;
}

.foot h4 {
    margin-bottom: 16px;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.foot ul {
    display: grid;
    gap: 10px;
    color: var(--text-2);
}

.foot ul a {
    transition: color .2s;
}

.foot ul a:hover {
    color: var(--blue);
}

.foot-btm {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--text-3);
}

.foot-btm .fine {
    max-width: 72ch;
    justify-self: end;
    text-align: right;
}

.foot-word {
    margin-top: clamp(24px, 4vw, 48px);
    padding-bottom: .04em;
    font-size: clamp(4.6rem, 19.5vw, 19rem);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: .78;
    white-space: nowrap;
    user-select: none;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(47, 125, 246, .35);
    background: linear-gradient(90deg, var(--blue) 0 50%, transparent 50% 100%) 100% 0 / 200% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 1.8s var(--ease);
}

.foot-word.is-filled {
    background-position: 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .hdr-chap {
        display: none;
    }
}

@media (max-width: 900px) {
    .hdr-nav,
    .hdr-cta {
        display: none;
    }

    .burger {
        display: block;
    }

    .sec-head.split {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

    .foot-brand {
        grid-column: 1 / -1;
    }

    .foot-btm {
        grid-template-columns: 1fr;
    }

    .foot-btm .fine {
        justify-self: start;
        text-align: left;
    }
}

/* Reduced motion is a calm cut, not a frozen page: things still fade, fill
   and count in place. The scripts drop every movement that travels, home.css
   turns its few CSS ones into fades, and the page never scrolls by itself. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
}
