/* ==========================================================================
   Bati B2B — Landing page
   Self-contained stylesheet. Display type: BR Firma. Body text: Outfit.
   ========================================================================== */

/* ---------- Fonts ----------------------------------------------------
   BR Firma @font-face lives in brfirma.css, linked alongside this file. */

/* ---------- Tokens ---------------------------------------------------- */
:root {
    --ink:          #050D16;
    --ink-2:        #0A1726;
    --ink-3:        #11243A;
    --line:         rgba(255, 255, 255, .09);
    --line-strong:  rgba(255, 255, 255, .16);

    --blue:         #1A5D94;
    --blue-bright:  #2E86D6;
    --blue-soft:    #9CC9F0;
    --lime:         #A6CF52;
    --lime-bright:  #BEE463;

    --fg:           #F3F7FB;
    --fg-muted:     #9DB0C4;
    --fg-dim:       #6B8098;

    --paper:        #FFFFFF;
    --paper-2:      #F4F7FA;
    --paper-ink:    #0B1824;
    --paper-muted:  #55697D;
    --paper-line:   #E3EAF1;

    --display: 'BRFirma', 'Outfit', system-ui, sans-serif;
    --body:    'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shell: 1200px;
    --gutter: 24px;
    --head-h: 84px;

    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.bati {
    margin: 0;
    background: var(--ink);
    color: var(--fg);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--lime); color: #0B1824; }

/* ---------- Layout ---------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--tint  { background: var(--paper-2); color: var(--paper-ink); }

/* ---------- Type ------------------------------------------------------ */
.display {
    font-family: var(--display);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.028em;
    margin: 0;
}

.h2 {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -.025em;
    margin: 0;
}

.h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}

.lede {
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--fg-muted);
    margin: 20px 0 0;
    max-width: 62ch;
}

.section--paper .lede,
.section--tint  .lede { color: var(--paper-muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--display);
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lime);
    margin: 0 0 22px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, var(--lime), transparent);
}

.section--paper .eyebrow,
.section--tint  .eyebrow { color: var(--blue); }

.section--paper .eyebrow::before,
.section--tint  .eyebrow::before { background: linear-gradient(90deg, var(--blue), transparent); }

.grad-text {
    background: linear-gradient(104deg, var(--lime-bright) 0%, var(--blue-soft) 62%, var(--blue-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head { max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Buttons --------------------------------------------------- */
.btn {
    --btn-bg: var(--lime);
    --btn-fg: #0B1824;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 100px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--display);
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: -.005em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease),
                background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

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

.btn--primary { box-shadow: 0 10px 30px -12px rgba(166, 207, 82, .75); }
.btn--primary:hover { --btn-bg: var(--lime-bright); box-shadow: 0 18px 40px -14px rgba(166, 207, 82, .9); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--fg);
    border-color: var(--line-strong);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }

.btn--dark { --btn-bg: var(--ink-2); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--ink-3); box-shadow: 0 16px 34px -18px rgba(5, 13, 22, .8); }

.btn--outline-ink {
    --btn-bg: transparent;
    --btn-fg: var(--paper-ink);
    border-color: var(--paper-line);
}
.btn--outline-ink:hover { --btn-bg: var(--paper-2); border-color: #C9D6E3; }

.btn--sm { padding: 11px 22px; font-size: .9rem; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------------------------------------------------- */
.site-head {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-head.is-stuck {
    background: rgba(5, 13, 22, .82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--line);
}

.site-head__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--head-h);
}

.brand img { width: 136px; }

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

.nav a {
    position: relative;
    padding: 9px 16px;
    border-radius: 100px;
    font-family: var(--display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--fg-muted);
    transition: color .25s var(--ease), background-color .25s var(--ease);
}

.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }

.head-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: var(--fg);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: background-color .2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ------------------------------------------------------ */
.hero {
    position: relative;
    padding: clamp(140px, 17vw, 196px) 0 clamp(80px, 9vw, 120px);
    overflow: hidden;
    isolation: isolate;
}

.hero__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero__glow--a {
    width: 640px; height: 640px;
    top: -220px; left: -160px;
    background: radial-gradient(circle, rgba(26, 93, 148, .62), transparent 68%);
}

.hero__glow--b {
    width: 560px; height: 560px;
    top: 40px; right: -180px;
    background: radial-gradient(circle, rgba(166, 207, 82, .3), transparent 68%);
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .038) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .038) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 85% 62% at 50% 28%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 62% at 50% 28%, #000 25%, transparent 78%);
}

/* grid/flex children must be allowed to shrink below their content width,
   otherwise the wide <pre> blocks force a horizontal scrollbar on phones */
.hero__inner > *,
.split > *,
.grid > *,
.steps > * { min-width: 0; }

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}

.hero__title {
    font-size: clamp(2.7rem, 6.1vw, 5rem);
}

.hero .lede { max-width: 50ch; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 7px 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    background: rgba(255, 255, 255, .04);
    font-size: .82rem;
    color: var(--fg-muted);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.pill b {
    font-family: var(--display);
    font-weight: 700;
    color: var(--ink);
    background: var(--lime);
    border-radius: 100px;
    padding: 3px 11px;
    font-size: .74rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    color: var(--fg-dim);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { flex: none; color: var(--lime); }

/* ---------- Hero terminal card ---------------------------------------- */
.hero__visual { position: relative; }

.console {
    position: relative;
    max-width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgba(17, 36, 58, .95), rgba(5, 13, 22, .97));
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
    overflow: hidden;
}

.console__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
}

.console__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.console__dot:nth-child(3) { background: rgba(166, 207, 82, .55); }

.console__label {
    margin-left: auto;
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .05em;
    color: var(--fg-dim);
}

.console__body {
    padding: 22px;
    font-family: var(--mono);
    font-size: .8rem;
    line-height: 1.85;
    color: #C6D5E4;
    overflow-x: auto;
}

.console__body pre { margin: 0; }
.tk-key   { color: var(--blue-soft); }
.tk-str   { color: var(--lime-bright); }
.tk-num   { color: #F0B36B; }
.tk-com   { color: #51657B; }
.tk-punc  { color: #6B8098; }

.console__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    background: rgba(166, 207, 82, .05);
    font-size: .8rem;
    color: var(--fg-muted);
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(166, 207, 82, .6);
    animation: ping 2.4s var(--ease) infinite;
    flex: none;
}

@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(166, 207, 82, .55); }
    70%  { box-shadow: 0 0 0 11px rgba(166, 207, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(166, 207, 82, 0); }
}

.console__foot .ms { margin-left: auto; font-family: var(--mono); color: var(--lime); }

.float-card {
    position: absolute;
    left: -30px;
    bottom: -64px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 20px 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: rgba(10, 23, 38, .9);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95);
    animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

.float-card__icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--lime), #86B434);
    color: #0B1824;
    flex: none;
}

.float-card__v {
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.1;
}

.float-card__l { font-size: .76rem; color: var(--fg-dim); }

/* ---------- Marquee --------------------------------------------------- */
.marquee {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, .015);
    padding: 26px 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: 56px;
    animation: slide 32s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--fg-dim);
    white-space: nowrap;
    transition: color .3s var(--ease);
}

.marquee__item:hover { color: var(--fg); }
.marquee__item svg { color: var(--lime); opacity: .8; flex: none; }

/* ---------- Stats ----------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 64px;
}

.stat { background: var(--paper); padding: 32px 28px; }
.section--tint .stat { background: var(--paper-2); }

.stat__v {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--blue);
}

.stat__l {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--paper-muted);
}

/* ---------- Cards ----------------------------------------------------- */
.grid { display: grid; gap: 22px; margin-top: 60px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    position: relative;
    padding: 34px 30px;
    border: 1px solid var(--paper-line);
    border-radius: var(--r-lg);
    background: var(--paper);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--lime));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.card:hover {
    transform: translateY(-5px);
    border-color: #D2DEE9;
    box-shadow: 0 30px 60px -36px rgba(11, 24, 36, .4);
}

.card:hover::after { transform: scaleX(1); }

.card p { margin: 0; color: var(--paper-muted); font-size: .97rem; }

.card__icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    background: linear-gradient(150deg, rgba(26, 93, 148, .12), rgba(166, 207, 82, .18));
    color: var(--blue);
}

/* dark variant */
.card--dark {
    background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
    border-color: var(--line);
}
.card--dark p { color: var(--fg-muted); }
.card--dark:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9); }
.card--dark .card__icon {
    background: linear-gradient(150deg, rgba(46, 134, 214, .22), rgba(166, 207, 82, .18));
    color: var(--lime);
}

/* ---------- Steps ----------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 64px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 31px;
    left: 31px;
    right: calc(33.333% - 49.7px);
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--paper-line) 0 7px, transparent 7px 15px);
}

.step { position: relative; }

.step__n {
    position: relative;
    z-index: 1;
    width: 62px; height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(145deg, var(--blue), #0F3F67);
    box-shadow: 0 0 0 8px var(--paper-2), 0 16px 32px -16px rgba(26, 93, 148, .7);
    margin-bottom: 26px;
}

.step:nth-child(3) .step__n { background: linear-gradient(145deg, var(--lime), #7FA93C); color: #0B1824; box-shadow: 0 0 0 8px var(--paper-2), 0 16px 32px -16px rgba(166, 207, 82, .8); }

.step p { margin: 0; color: var(--paper-muted); font-size: .97rem; }

/* ---------- Split (developer) ----------------------------------------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(40px, 6vw, 76px);
    align-items: center;
}

.ticks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 15px; }

.ticks li {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    font-size: 1rem;
    color: var(--fg-muted);
}

.ticks svg { flex: none; margin-top: 4px; color: var(--lime); }
.ticks b { color: var(--fg); font-weight: 600; }

/* ---------- CTA band -------------------------------------------------- */
.cta {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(46px, 6vw, 76px);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #0F3F67 0%, var(--blue) 46%, #1F7A74 100%);
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(166, 207, 82, .42), transparent 65%);
    filter: blur(70px);
    z-index: -1;
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
}

.cta .h2 { color: #fff; }
.cta .lede { color: rgba(255, 255, 255, .8); margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

.cta .btn--ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, .35); }
.cta .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }

/* ---------- Footer ---------------------------------------------------- */
.site-foot {
    background: var(--ink);
    border-top: 1px solid var(--line);
    padding-top: clamp(60px, 7vw, 92px);
}

.foot-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}

.foot-top h3 {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.15;
}

.foot-top p { margin: 10px 0 0; color: var(--fg-dim); font-size: .95rem; }

.nw-form {
    display: flex;
    gap: 10px;
    padding: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    background: rgba(255, 255, 255, .035);
}

.nw-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--fg);
    padding: 0 20px;
    font-family: var(--body);
    font-size: .96rem;
    outline: none;
}

.nw-form input::placeholder { color: var(--fg-dim); }

.foot-cols {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    padding: 56px 0;
}

.foot-brand img { width: 142px; margin-bottom: 20px; }
.foot-brand p { margin: 0; color: var(--fg-dim); font-size: .93rem; max-width: 34ch; }

.foot-col h4 {
    font-family: var(--display);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg);
    margin: 0 0 18px;
}

.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-col a { color: var(--fg-dim); font-size: .94rem; transition: color .25s var(--ease); }
.foot-col a:hover { color: var(--lime); }

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--fg-dim);
    font-size: .88rem;
}

.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }

.socials a {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--fg-muted);
    transition: all .3s var(--ease);
}

.socials a:hover { background: var(--lime); border-color: var(--lime); color: #0B1824; transform: translateY(-2px); }

/* ---------- Back to top ----------------------------------------------- */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 80;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(10, 23, 38, .85);
    backdrop-filter: blur(10px);
    color: var(--fg);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .35s var(--ease);
}

.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--lime); border-color: var(--lime); color: #0B1824; }

/* ---------- Reveal ----------------------------------------------------
   Progressive enhancement: without JS the content is simply visible. */
.has-js .rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.has-js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { max-width: 640px; }
    .split { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .foot-cols { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-grid; }

    .nav {
        position: fixed;
        inset: var(--head-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 18px var(--gutter) 26px;
        background: rgba(5, 13, 22, .97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: all .3s var(--ease);
    }

    body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }

    .nav a { padding: 14px 16px; font-size: 1.05rem; color: var(--fg); }

    .head-actions .btn--ghost { display: none; }

    .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .foot-top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    :root { --gutter: 18px; --head-h: 72px; }

    .site-head__bar { gap: 12px; }
    .brand img { width: 108px; }
    .head-actions { gap: 8px; }
    .head-actions .btn--sm { padding: 10px 16px; font-size: .86rem; }
    .head-actions .btn--sm .arr { display: none; }
    .nav-toggle { width: 40px; height: 40px; }

    body.bati { font-size: 16px; }
    .hero__cta .btn { width: 100%; }
    .stats { grid-template-columns: 1fr; }
    .foot-cols { grid-template-columns: 1fr; }
    .console__body { font-size: .72rem; }

    /* the badge would cover the console footer at this width — stack it instead */
    .float-card {
        position: static;
        margin-top: 16px;
        animation: none;
    }

    /* let the centred headings wrap naturally rather than at the authored break */
    .section-head--center .h2 br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .has-js .rv { opacity: 1; transform: none; }
}

/* ---------- Inline code ----------------------------------------------- */
.ticks code {
    font-family: var(--mono);
    font-size: .86em;
    padding: 2px 7px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    color: var(--lime-bright);
}

/* ---------- Footer parent-company line -------------------------------- */
.foot-parent {
    margin: 16px 0 0 !important;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: inline-block;
    font-size: .86rem;
    letter-spacing: .01em;
    color: var(--fg-dim);
}

.foot-parent strong {
    font-family: var(--display);
    font-weight: 700;
    color: var(--fg);
}
