/* ==========================================================================
   In2Digital Communications — site styles (2026 revamp)
   No framework, no build step. Tokens first, then layout, then components.
   ========================================================================== */

/* Registered so theme changes (body[data-theme]) animate smoothly */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #07060c; }
@property --bg-2 { syntax: "<color>"; inherits: true; initial-value: #0b0a12; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #110f1a; }
@property --surface-2 { syntax: "<color>"; inherits: true; initial-value: #171423; }
@property --border { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.08); }
@property --border-strong { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.14); }
@property --text { syntax: "<color>"; inherits: true; initial-value: #f5f3fa; }
@property --text-2 { syntax: "<color>"; inherits: true; initial-value: #c9c4d6; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #9a94ab; }
@property --violet { syntax: "<color>"; inherits: true; initial-value: #a78bfa; }
@property --header-bg { syntax: "<color>"; inherits: true; initial-value: rgba(7, 6, 12, 0.78); }
@property --tile-fg { syntax: "<color>"; inherits: true; initial-value: #ddd6fe; }

:root {
    /* Brand (sampled from the logo gradient) */
    --brand-violet: #7350a0;
    --brand-magenta: #a0449a;

    /* Brightened brand tones for use on dark backgrounds */
    --violet: #a78bfa;
    --violet-strong: #8b5cf6;
    --magenta: #e879c9;
    --cyan: #67e8f9;
    --green: #4ade80;

    --grad: linear-gradient(100deg, #8b5cf6 0%, #c05bd0 55%, #e879c9 100%);
    --grad-text: linear-gradient(100deg, #c4b5fd 0%, #e9a5f0 50%, #f9a8d4 100%);
    --grad-brand: linear-gradient(100deg, var(--brand-violet), var(--brand-magenta));

    /* Surfaces */
    --bg: #07060c;
    --bg-2: #0b0a12;
    --surface: #110f1a;
    --surface-2: #171423;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* Text */
    --text: #f5f3fa;
    --text-2: #c9c4d6;
    --muted: #9a94ab;
    --header-bg: rgba(7, 6, 12, 0.78);
    --tile-fg: #ddd6fe;

    /* Type */
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

    /* Layout */
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --radius: 18px;
    --radius-sm: 12px;
    --header-h: 72px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-feature-settings: "cv11", "ss01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: --bg 0.7s ease, --bg-2 0.7s ease, --surface 0.7s ease, --surface-2 0.7s ease,
        --border 0.7s ease, --border-strong 0.7s ease, --text 0.7s ease, --text-2 0.7s ease,
        --muted 0.7s ease, --violet 0.7s ease, --header-bg 0.7s ease, --tile-fg 0.7s ease;
}

/* Light theme — pages fade into it for sections marked data-theme="light" as you scroll */
body[data-theme="light"] {
    --bg: #f5f3fa;
    --bg-2: #efebf7;
    --surface: #ffffff;
    --surface-2: #f7f5fc;
    --border: rgba(30, 16, 60, 0.1);
    --border-strong: rgba(30, 16, 60, 0.16);
    --text: #15121e;
    --text-2: #3d3850;
    --muted: #686279;
    --violet: #6d28d9;
    --header-bg: rgba(245, 243, 250, 0.82);
    --tile-fg: #6d28d9;
    color-scheme: light;
}
body[data-theme="light"] .grad-text { background-image: linear-gradient(100deg, #6d28d9 0%, #a0449a 55%, #c026d3 100%); }
body[data-theme="light"] .nav__logo-light { opacity: 0; }
body[data-theme="light"] .nav__logo-dark { opacity: 1; }
body[data-theme="light"] .icon-tile { background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(232, 121, 201, 0.08)); }
body[data-theme="light"] .nav__badge { color: #5b21b6; }
body[data-theme="light"] .nav__toggle span { background: var(--text); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); letter-spacing: -0.045em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.04em; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; text-wrap: pretty; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

.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;
}

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

.section { padding-block: clamp(64px, 8.5vw, 112px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.125rem; margin: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--violet);
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
}
.section-head--center .eyebrow::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
}

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--surface-2);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--text);
    font-size: 0.9875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.28); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
    border-color: transparent;
    background: linear-gradient(100deg, #6d28d9 0%, #9333ea 55%, #a21caf 100%);
    color: #fff;
    box-shadow: 0 8px 30px -8px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px -8px rgba(192, 91, 208, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--violet);
    transition: gap 0.25s var(--ease), color 0.2s;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 10px; color: #c4b5fd; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}
.nav__logo { flex-shrink: 0; display: grid; align-items: center; }
.nav__logo img { grid-area: 1 / 1; width: 158px; height: auto; transition: opacity 0.6s ease; }
.nav__logo-dark { opacity: 0; }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}
.nav__badge {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #ddd6fe;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 8px 10px;
}
.nav__phone svg { width: 16px; height: 16px; color: var(--violet); }
.nav__phone:hover { color: var(--text); }

.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
}
.nav__toggle span {
    position: absolute;
    left: 12px; right: 12px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1040px) {
    .nav__phone span { display: none; }
}

@media (max-width: 900px) {
    .nav__toggle { display: block; }
    .nav__actions .btn { display: none; }
    .nav__phone { display: none; }
    .nav__menu {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        height: calc(100dvh - var(--header-h));
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 24px var(--gutter) 40px;
        background: var(--bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    }
    .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__link {
        padding: 16px 4px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text);
    }
    .nav__link:hover { background: none; }
    .nav__link[aria-current="page"]::after { display: none; }
    .nav__link[aria-current="page"] { color: var(--violet); }
    .nav__menu .nav__mobile-cta { display: flex !important; flex-direction: column; gap: 12px; margin-top: 24px; }
    .nav__mobile-cta .btn { width: 100%; }
}
.nav__mobile-cta { display: none !important; }

/* Services dropdown: a panel under the header on desktop, an accordion in the mobile menu */
.nav__item--has-menu { position: relative; }
.nav__drop { border: 0; background: none; cursor: pointer; }
.nav__caret { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav__drop[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__drop.is-current { color: var(--text); }
.nav__drop.is-current::after {
    content: "";
    position: absolute;
    left: 14px; right: 30px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}
.mega {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: min(660px, calc(100vw - 2 * var(--gutter)));
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__item--has-menu.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega__link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.mega__link:hover, .mega__link:focus-visible { background: rgba(255, 255, 255, 0.05); }
body[data-theme="light"] .mega__link:hover { background: rgba(30, 16, 60, 0.05); }
.mega__link strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.mega__link small { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }
.mega__link[aria-current="page"] strong { color: var(--violet); }
.mega__link .icon-tile { flex-shrink: 0; }
.mega__all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 2px 0;
    padding: 12px 10px 4px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--violet);
}
.mega__all svg { width: 16px; height: 16px; transition: transform 0.2s; }
.mega__all:hover svg { transform: translateX(3px); }
@media (max-width: 900px) {
    .nav__menu > li > .nav__link { display: flex; }
    .nav__item--has-menu { position: static; }
    .nav__drop { width: 100%; justify-content: space-between; text-align: left; border-bottom: 1px solid var(--border); }
    .nav__item--has-menu.is-open .nav__drop { border-bottom-color: transparent; }
    .nav__drop.is-current::after { display: none; }
    .nav__drop.is-current { color: var(--violet); }
    .nav__caret { width: 20px; height: 20px; }
    .mega {
        position: static;
        display: none;
        width: auto;
        padding: 6px 0 10px;
        border: 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .mega::before { display: none; }
    .nav__item--has-menu.is-open .mega { display: block; transform: none; }
    .mega__grid { grid-template-columns: 1fr; }
    .mega__link { padding: 10px 4px; }
    .mega__all { margin: 4px 0 0; padding: 12px 4px 4px; }
}

/* --------------------------------------------------------------------------
   Background decoration
   -------------------------------------------------------------------------- */
.bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.55;
}
.glow--violet { background: #6d28d9; }
.glow--magenta { background: #a21caf; }
.glow--cyan { background: #0e7490; opacity: 0.25; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 8vw, 104px);
    overflow: hidden;
    isolation: isolate;
}
.hero .glow--violet { width: 560px; height: 560px; top: -200px; left: -120px; }
.hero .glow--magenta { width: 480px; height: 480px; top: -80px; right: -160px; opacity: 0.4; }
.hero .glow--cyan { width: 380px; height: 380px; bottom: -180px; left: 40%; }

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
}
.hero__title { margin-bottom: 24px; font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
.hero__title .grad-text { display: block; }
.hero__lead { max-width: 580px; margin-bottom: 36px; }
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 36px;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--muted);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--green); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.875rem;
    color: var(--text-2);
    transition: border-color 0.2s;
}
.pill:hover { border-color: rgba(167, 139, 250, 0.5); }
.pill__tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.pill svg { width: 14px; height: 14px; }

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

/* Agent console (hero visual) */
.console {
    position: relative;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(167, 139, 250, 0.55), rgba(255, 255, 255, 0.06) 40%, rgba(232, 121, 201, 0.4));
    box-shadow: 0 40px 120px -40px rgba(139, 92, 246, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.console__inner {
    border-radius: 19px;
    background: linear-gradient(180deg, rgba(20, 17, 31, 0.96), rgba(12, 10, 19, 0.98));
    overflow: hidden;
}
.console__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}
.console__title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.console__avatar {
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--grad);
}
.console__avatar svg { width: 16px; height: 16px; color: #fff; }
.console__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.1);
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 600;
}
.console__status::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: ping 2s infinite;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.console__body { padding: 18px; display: grid; gap: 10px; min-height: 380px; align-content: start; }

.msg {
    max-width: 92%;
    padding: 12px 14px;
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-2);
}
.msg__who { display: block; margin-bottom: 2px; font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.step {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.16);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-2);
}
.step__icon {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: rgba(167, 139, 250, 0.15);
    color: var(--violet);
}
.step__icon svg { width: 13px; height: 13px; }
.step b { color: var(--text); font-weight: 600; }
.step__time { color: var(--muted); font-size: 0.72rem; }
.step--done { background: rgba(74, 222, 128, 0.07); border-color: rgba(74, 222, 128, 0.22); }
.step--done .step__icon { background: rgba(74, 222, 128, 0.15); color: var(--green); }

.console__foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted);
}

/* Console reveal animation — JS adds .is-playing; without JS everything shows */
.console.is-playing [data-seq] { opacity: 0; transform: translateY(8px); }
.console.is-playing [data-seq].is-shown {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(17, 15, 26, 0.9);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
    font-size: 0.8125rem;
    animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.float-chip span { color: var(--muted); }
.float-chip__icon {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.12);
    color: var(--green);
}
.float-chip__icon svg { width: 18px; height: 18px; }
.float-chip--a { right: -28px; bottom: -30px; }
.float-chip--b .float-chip__icon { background: rgba(167, 139, 250, 0.14); color: var(--violet); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1100px) { .float-chip { display: none; } }

/* --------------------------------------------------------------------------
   Logo / tech marquee
   -------------------------------------------------------------------------- */
.marquee {
    position: relative;
    padding-block: 28px;
    border-block: 1px solid var(--border);
    background: var(--bg-2);
    overflow: hidden;
}
.marquee__label {
    text-align: center;
    margin-bottom: 18px;
    font-size: 0.8125rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.marquee__viewport {
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #8f89a1;
    white-space: nowrap;
    margin-right: 48px;
}
.marquee__item::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 2px;
    background: var(--grad);
    transform: rotate(45deg);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Answer block (AEO: definition-first content)
   -------------------------------------------------------------------------- */
.answer {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
.answer__def {
    position: relative;
    padding: 28px 28px 28px 32px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.02));
    border: 1px solid rgba(167, 139, 250, 0.22);
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--text);
}
.answer__def::before {
    content: "";
    position: absolute;
    left: 0; top: 24px; bottom: 24px;
    width: 3px;
    border-radius: 3px;
    background: var(--grad);
}
.answer__def p:last-child { margin: 0; }
.answer__list { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.answer__list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.answer__list h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.answer__list p { color: var(--muted); margin: 0; font-size: 0.975rem; }
@media (max-width: 860px) { .answer { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Icon tile
   -------------------------------------------------------------------------- */
.icon-tile {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(167, 139, 250, 0.22), rgba(232, 121, 201, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.28);
    color: var(--tile-fg);
    flex-shrink: 0;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 10px; }
.icon-tile--sm svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   Cards & bento
   -------------------------------------------------------------------------- */
.card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139, 92, 246, 0.14), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover { border-color: rgba(167, 139, 250, 0.3); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; font-size: 0.9375rem; }
a.card:hover { transform: translateY(-3px); }

.card__list { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.card__list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9375rem;
    color: var(--text-2);
}
.card__list li::before {
    content: "";
    position: absolute;
    left: 2px; top: 0.62em;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--grad);
    transform: rotate(45deg);
    opacity: 0.85;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}
.bento > * { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
@media (max-width: 960px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento > *, .bento > .span-3, .bento > .span-4 { grid-column: span 1; }
    .bento > .span-4 { grid-column: span 2; }
}
@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .bento > .span-4 { grid-column: span 1; }
}

.card--feature {
    background:
        radial-gradient(600px circle at 100% 0%, rgba(139, 92, 246, 0.2), transparent 50%),
        radial-gradient(500px circle at 0% 100%, rgba(192, 91, 208, 0.12), transparent 50%),
        var(--surface);
    border-color: rgba(167, 139, 250, 0.25);
}
.card--feature h3 { font-size: 1.5rem; }
.card__tag {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ddd6fe;
    letter-spacing: 0.02em;
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Mini flow diagram inside feature card */
.flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.78rem;
}
.flow span {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--text-2);
}
.flow span.is-agent { background: rgba(139, 92, 246, 0.16); border-color: rgba(167, 139, 250, 0.4); color: #ede9fe; }
.flow i { font-style: normal; color: var(--muted); }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
    list-style: none;
}
.steps li {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.steps li::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: 20px;
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--violet);
}
.steps li::after {
    content: "";
    position: absolute;
    top: 38px;
    left: 64px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.4), transparent);
}
.steps h3 { font-size: 1.125rem; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.steps .step-meta {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-2);
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.stat { padding: 32px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat__num {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}
.stat__label { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 860px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 420px) {
    .stats { grid-template-columns: 1fr; }
    .stat { border-left: 0; }
    .stat:nth-child(n + 2) { border-top: 1px solid var(--border); }
}

/* --------------------------------------------------------------------------
   Split / feature row
   -------------------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; display: grid; gap: 14px; margin: 24px 0 32px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.checklist svg { width: 20px; height: 20px; margin-top: 3px; color: var(--green); }
.checklist strong { color: var(--text); font-weight: 600; }

/* Architecture diagram (AI agents page) */
.arch {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr auto 1fr;
    align-items: stretch;
    gap: 12px;
}
.arch__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.arch__col h3 {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.arch__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-2);
}
.arch__item svg { width: 16px; height: 16px; color: var(--violet); flex-shrink: 0; }
.arch__col--agent {
    background:
        radial-gradient(400px circle at 50% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
        var(--surface);
    border-color: rgba(167, 139, 250, 0.35);
}
.arch__col--agent .arch__item { background: rgba(139, 92, 246, 0.08); border-color: rgba(167, 139, 250, 0.22); color: var(--text); }
.arch__arrow { display: grid; place-items: center; color: var(--muted); }
.arch__arrow svg { width: 22px; height: 22px; }
.arch__guard {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 24px;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px dashed rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.04);
    font-size: 0.9rem;
    color: var(--text-2);
}
.arch__guard strong { color: #86efac; display: inline-flex; align-items: center; gap: 8px; }
.arch__guard strong svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
    .arch { grid-template-columns: 1fr; }
    .arch__arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}
.compare {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.compare th, .compare td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}
.compare thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}
.compare tbody th { font-weight: 600; color: var(--text); width: 22%; }
.compare td { color: var(--text-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .is-highlight { background: rgba(139, 92, 246, 0.07); color: var(--text); }
.compare thead .is-highlight { color: #ddd6fe; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq details {
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.25s, background 0.25s;
}
.faq details[open] { border-color: rgba(167, 139, 250, 0.3); background: var(--surface-2); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex-shrink: 0;
    width: 12px; height: 12px;
    border-right: 2px solid var(--violet);
    border-bottom: 2px solid var(--violet);
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq .faq__a { padding: 0 24px 22px; color: var(--text-2); }
.faq .faq__a p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 72px);
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background: #120d22;
    border: 1px solid rgba(167, 139, 250, 0.3);
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px circle at 15% 0%, rgba(139, 92, 246, 0.45), transparent 55%),
        radial-gradient(600px circle at 85% 100%, rgba(192, 91, 208, 0.4), transparent 55%);
}
.cta .bg-grid { mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); z-index: -1; }
.cta h2 { max-width: 760px; margin-inline: auto; }
.cta p { max-width: 620px; margin: 0 auto 32px; color: var(--text-2); font-size: 1.125rem; }
.cta .btn-row { justify-content: center; }
.cta__fine { margin-top: 20px !important; margin-bottom: 0 !important; font-size: 0.875rem !important; color: var(--muted) !important; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 6vw, 80px);
    overflow: hidden;
    isolation: isolate;
}
.page-hero .glow--violet { width: 520px; height: 520px; top: -260px; left: 10%; }
.page-hero .glow--magenta { width: 420px; height: 420px; top: -200px; right: 5%; opacity: 0.35; }
.page-hero h1 { font-size: clamp(2.375rem, 5.6vw, 4.25rem); max-width: 900px; }
.page-hero .lead { max-width: 720px; margin-bottom: 32px; }

.breadcrumbs { margin-bottom: 28px; font-size: 0.875rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.2); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-2); }

/* In-page sub navigation (services) */
.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    background: rgba(7, 6, 12, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-block: 1px solid var(--border);
}
.subnav ul {
    display: flex;
    gap: 6px;
    padding-block: 10px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.subnav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.subnav a.is-active { background: rgba(139, 92, 246, 0.16); color: #ede9fe; }

.service-block { scroll-margin-top: calc(var(--header-h) + 72px); }
.service-block + .service-block { border-top: 1px solid var(--border); }
.service-block__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: end;
    margin-bottom: 40px;
}
.service-block__head h2 { margin: 0; }
.service-block__head p { margin: 0; color: var(--text-2); font-size: 1.0625rem; }
@media (max-width: 860px) { .service-block__head { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Case studies
   -------------------------------------------------------------------------- */
.case {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}
.case + .case { margin-top: 20px; }
.case__main { padding: clamp(24px, 4vw, 40px); }
.case__main h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 20px; }
.case__part + .case__part { margin-top: 18px; }
.case__part h3 {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--violet);
}
.case__part p { margin: 0; color: var(--text-2); }
.case__results {
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.02));
    border-left: 1px solid var(--border);
}
.case__results h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.case__headline {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}
.case__headline-label { display: block; margin-bottom: 24px; color: var(--text-2); font-size: 0.975rem; }
.case--featured { border-color: rgba(167, 139, 250, 0.35); }
@media (max-width: 860px) {
    .case { grid-template-columns: 1fr; }
    .case__results { border-left: 0; border-top: 1px solid var(--border); }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
a.contact-item:hover { border-color: rgba(167, 139, 250, 0.35); }
.contact-item__label { display: block; font-size: 0.8125rem; color: var(--muted); }
.contact-item__value { display: block; font-weight: 600; color: var(--text); word-break: break-word; }
.contact-item__note { display: block; font-size: 0.85rem; color: var(--muted); }

.form-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 120px -60px rgba(139, 92, 246, 0.6);
}
.form-card h2 { font-size: 1.75rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a78bfa' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.field select option { background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: #6e6880; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--violet);
    background: rgba(139, 92, 246, 0.06);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot small { color: var(--muted); font-size: 0.8125rem; max-width: 320px; }
.form-status {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
}
.form-status[hidden] { display: none; }
.form-status--success { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35); color: #bbf7d0; }
.form-status--error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.hp { position: absolute; left: -9999px; }

.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    padding-top: clamp(64px, 8vw, 96px);
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    font-size: 0.9375rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 40px;
}
.footer__brand img { width: 158px; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); max-width: 320px; }
.footer__nap { font-style: normal; color: var(--text-2); line-height: 1.8; }
.footer__nap a:hover { color: var(--text); }
.footer__col h2 {
    margin-bottom: 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { color: var(--text-2); transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    color: var(--text-2);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.socials a:hover { color: var(--text); border-color: rgba(167, 139, 250, 0.5); background: rgba(139, 92, 246, 0.1); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 64px;
    padding-block: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.875rem;
}
.footer__wordmark {
    margin-top: 40px;
    font-size: clamp(3.5rem, 15vw, 13rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    margin-bottom: -0.12em;
    text-align: center;
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.16), rgba(167, 139, 250, 0));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
    pointer-events: none;
    overflow: hidden;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
    transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   Prose (about, 404)
   -------------------------------------------------------------------------- */
.prose p { color: var(--text-2); }
.prose p:first-of-type { font-size: 1.1875rem; color: var(--text); }

.value-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border); }
.value-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}
.value-list h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.value-list p { margin: 0; color: var(--muted); font-size: 0.975rem; }

.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.error-code { font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin-bottom: 8px; }


/* --------------------------------------------------------------------------
   Scroll story (AI agents page): a pinned stage that changes scene per chapter
   -------------------------------------------------------------------------- */
.story {
    position: relative;
    isolation: isolate;
    padding-top: var(--header-h);
    overflow-x: clip; /* contain the glows without breaking position: sticky */
}
.story > .glow--violet { width: 620px; height: 620px; top: -220px; left: -160px; }
.story > .glow--magenta { width: 520px; height: 520px; top: 0; right: -200px; opacity: 0.35; }
.story > .bg-grid { height: 120vh; }

.story__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    column-gap: clamp(40px, 6vw, 96px);
}

.chapter {
    grid-column: 1;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 48px;
    max-width: 540px;
}
.chapter--hero { min-height: calc(100vh - var(--header-h)); max-width: 600px; padding-top: 24px; }
.chapter--hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.65rem); margin-bottom: 24px; }
.chapter--hero h1 .grad-text { display: block; }
.chapter--end { min-height: 80vh; }

.chapter__n {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.chapter__n b { color: var(--violet); font-weight: 700; }
.chapter h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 18px; }
.chapter h2 .grad-text { display: block; }
.chapter > p { color: var(--text-2); font-size: 1.125rem; }
.chapter .lead { margin-bottom: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 8px; }
.chips li {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
}
.chips li:first-child { background: var(--grad); border-color: transparent; color: #fff; }

.follow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-2);
}
.follow-link svg { width: 16px; height: 16px; transform: rotate(90deg); color: var(--violet); }
.follow-link:hover { color: var(--text); }

/* The pinned stage */
.stage {
    grid-column: 2;
    grid-row: 1 / span 20;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
    height: calc(100vh - var(--header-h) - 40px);
    max-height: 760px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(167, 139, 250, 0.5), rgba(255, 255, 255, 0.06) 40%, rgba(232, 121, 201, 0.35));
    box-shadow: 0 50px 140px -50px rgba(139, 92, 246, 0.6);
    z-index: 2;
}
.stage__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 23px;
    overflow: hidden;
    background:
        radial-gradient(700px circle at 80% -10%, rgba(139, 92, 246, 0.18), transparent 55%),
        linear-gradient(180deg, #13101f, #0c0a14);
    color: #f5f3fa;
}
.stage__bar, .stage__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8f89a1;
}
.stage__bar { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.stage__foot { border-top: 1px solid rgba(255, 255, 255, 0.08); position: relative; }
.stage__count { color: #f5f3fa; font-weight: 700; }
.stage__count span { color: #8f89a1; font-weight: 500; }
.stage__label { display: inline-flex; align-items: center; gap: 8px; }
.stage__label::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: ping 2s infinite;
}
.stage__dots { display: flex; gap: 6px; }
.stage__dots i {
    width: 18px; height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.4s, width 0.4s var(--ease);
}
.stage__dots i.is-on { background: var(--violet-strong); }
.stage__dots i.is-current { width: 30px; background: linear-gradient(90deg, #8b5cf6, #e879c9); }
.stage__progress {
    position: absolute;
    left: 0; top: -1px;
    height: 1px;
    width: calc(var(--p, 0) * 100%);
    background: linear-gradient(90deg, #8b5cf6, #e879c9);
}

.stage__canvas { position: relative; flex: 1; min-height: 0; }
.scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.scene.is-active { opacity: 1; visibility: visible; }
.scene__box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 480px;
    height: 460px;
    margin: -230px 0 0 -240px;
    transform: scale(var(--scale, 1));
}
.scene [data-i] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: 0s;
}
.scene.is-active [data-i] {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 140ms + 150ms);
}
.no-js .scene [data-i], html:not(.js) .scene [data-i] { opacity: 1; transform: none; }

/* Shared scene parts */
.s-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 16px 18px;
    font-size: 0.875rem;
    color: #c9c4d6;
}
.s-card--glow { background: rgba(139, 92, 246, 0.1); border-color: rgba(167, 139, 250, 0.35); }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.s-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #f5f3fa; }
.s-ic {
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--grad);
    color: #fff;
    flex-shrink: 0;
}
.s-ic svg { width: 17px; height: 17px; }
.s-ic--soft { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
.s-ic--green { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
.s-ic--amber { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
.s-tag {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: #c9c4d6;
    white-space: nowrap;
}
.s-tag--violet { background: rgba(139, 92, 246, 0.2); color: #ddd6fe; }
.s-tag--green { background: rgba(74, 222, 128, 0.12); color: #86efac; }
.s-tag--amber { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }
.s-mono { font-family: var(--mono); font-size: 0.75rem; color: #8f89a1; }
.s-bubble {
    max-width: 86%;
    padding: 11px 14px;
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.84rem;
    line-height: 1.5;
    color: #dcd7e8;
}
.s-bubble small { display: block; margin-bottom: 3px; font-size: 0.7rem; color: #8f89a1; }
.s-bubble--agent {
    margin-left: auto;
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.3), rgba(192, 91, 208, 0.2));
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #f5f3fa;
}
.s-stack { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }

/* Scene 0 — agent hub */
.hub { position: absolute; inset: 0; }
.hub__core {
    position: absolute;
    left: 50%; top: 50%;
    width: 112px; height: 112px;
    margin: -56px 0 0 -56px;
    display: grid; place-items: center;
    border-radius: 32px;
    background: var(--grad);
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0.1), 0 0 80px rgba(168, 85, 247, 0.6);
    color: #fff;
}
.hub__core svg { width: 48px; height: 48px; }
.hub__ring {
    position: absolute;
    left: 50%; top: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(167, 139, 250, 0.28);
    transform: translate(-50%, -50%);
}
.hub__ring--1 { width: 250px; height: 250px; animation: spin 60s linear infinite; }
.hub__ring--2 { width: 390px; height: 390px; border-style: solid; border-color: rgba(255, 255, 255, 0.06); }
.hub__pulse {
    position: absolute;
    left: 50%; top: 50%;
    width: 112px; height: 112px;
    margin: -56px 0 0 -56px;
    border-radius: 32px;
    border: 1px solid rgba(167, 139, 250, 0.6);
    animation: hubPulse 2.8s ease-out infinite;
}
@keyframes hubPulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.3); opacity: 0; } }
.hub__chan {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #171423;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    color: #e8e4f2;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
.scene.is-active .hub__chan[data-i] { transform: translate(-50%, -50%); }
.scene .hub__chan[data-i] { transform: translate(-50%, calc(-50% + 12px)); }
.hub__chan svg { width: 15px; height: 15px; color: #a78bfa; }
.hub__caption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }

/* Scene 1 — the call */
.wave { display: flex; align-items: center; gap: 3px; height: 44px; margin: 6px 0 2px; }
.wave i {
    flex: 1;
    height: var(--h, 40%);
    border-radius: 3px;
    background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
    animation: wave 1.1s ease-in-out infinite;
    animation-delay: var(--dl, 0s);
    transform-origin: center;
}
@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* Scene 2 — understanding */
.s-quote { font-size: 0.95rem; line-height: 1.6; color: #dcd7e8; }
.s-quote mark {
    padding: 1px 4px;
    border-radius: 5px;
    background: rgba(139, 92, 246, 0.28);
    color: #fff;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-out { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.field-out small { display: block; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8f89a1; margin-bottom: 4px; }
.field-out strong { font-size: 0.92rem; color: #f5f3fa; }
.conf { display: flex; align-items: center; gap: 12px; }
.conf__bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.conf__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #8b5cf6, #4ade80); transition: width 1.2s var(--ease) 0.9s; }
.scene.is-active .conf__bar i { width: 96%; }

/* Scene 3 — actions */
.tools { display: grid; gap: 8px; }
.tool {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-family: var(--mono);
    font-size: 0.76rem;
    color: #c9c4d6;
}
.tool b { color: #f5f3fa; }
.tool .s-ic { width: 26px; height: 26px; border-radius: 7px; }
.tool .s-ic svg { width: 14px; height: 14px; }
.cal { display: grid; gap: 6px; }
.cal__slot { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: 0.78rem; color: #8f89a1; }
.cal__slot span:last-child { height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.08); }
.cal__slot.is-booked span:last-child {
    display: flex; align-items: center; padding: 0 10px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.45), rgba(192, 91, 208, 0.35));
    border: 1px solid rgba(167, 139, 250, 0.5);
    color: #fff; font-weight: 600; font-size: 0.76rem;
}
.sms {
    padding: 12px 14px;
    border-radius: 16px 16px 16px 4px;
    background: #2a2638;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #e8e4f2;
}

/* Scene 4 — guardrails */
.approve__btns { display: flex; gap: 8px; margin-top: 14px; }
.approve__btns span {
    flex: 1;
    padding: 9px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e8e4f2;
}
.approve__btns span:first-child { background: var(--grad); border-color: transparent; color: #fff; }
.rules { display: grid; gap: 8px; list-style: none; }
.rules li { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: #c9c4d6; }
.rules svg { width: 16px; height: 16px; color: #4ade80; flex-shrink: 0; }

/* Scene 5 — report */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { padding: 12px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.kpi strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: #fff; }
.kpi small { font-size: 0.7rem; color: #8f89a1; line-height: 1.3; display: block; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 8px; }
.bars i {
    flex: 1;
    height: var(--h);
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #a78bfa, rgba(139, 92, 246, 0.25));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.8s var(--ease);
    transition-delay: calc(var(--k) * 50ms + 700ms);
}
.scene.is-active .bars i { transform: scaleY(1); }
.bars-x { display: flex; justify-content: space-between; margin-top: 6px; }

/* Scene 6 — the foundations stack */
.layers { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.layer {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-weight: 600;
    color: #f5f3fa;
}
.layer small { display: block; font-weight: 400; font-size: 0.78rem; color: #8f89a1; }
.layer .s-ic { width: 36px; height: 36px; border-radius: 10px; }
.layer--top {
    background: linear-gradient(120deg, rgba(139, 92, 246, 0.3), rgba(192, 91, 208, 0.18));
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 20px 50px -20px rgba(168, 85, 247, 0.7);
}

/* Story — tablet & mobile: stage pins to the top, chapters scroll beneath */
@media (max-width: 960px) {
    .story__grid { grid-template-columns: minmax(0, 1fr); }
    .chapter, .stage { grid-column: 1; }
    .chapter--hero { order: -1; min-height: auto; padding: 32px 0 40px; }
    .stage {
        grid-row: auto;
        top: calc(var(--header-h) + 8px);
        height: min(46vh, 420px);
        margin-top: 0;
        border-radius: 20px;
        box-shadow: 0 -10px 0 2px var(--bg), 0 30px 60px -30px rgba(139, 92, 246, 0.6);
    }
    .stage__inner { border-radius: 19px; }
    .stage__bar, .stage__foot { padding: 10px 14px; font-size: 0.64rem; }
    .stage__label span { display: none; }
    .stage__foot [data-step-label] { display: none; }
    .chapter { min-height: 72vh; justify-content: flex-start; padding-top: 48px; max-width: none; }
    .chapter--end { min-height: 60vh; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll — only hides content once JS confirms it can reveal it
   -------------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .console.is-playing [data-seq] { opacity: 1; transform: none; }
    .scene [data-i] { opacity: 1 !important; transform: none !important; }
    .bars i { transform: none !important; }
    .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .marquee__track [aria-hidden] { display: none; }
}

@media print {
    .site-header, .wa-float, .subnav, .glow, .bg-grid, .footer__wordmark { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ==========================================================================
   Visual system — media tiles, device mockups and product UI cards
   Mockups are fixed-size artwork; tiles crop them like a photo.
   ========================================================================== */

/* Media tiles */
.tile {
    --tile-a: #2a1258;
    --tile-b: #6d28d9;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
        linear-gradient(160deg, var(--tile-a), var(--tile-b));
    color: #fff;
    transition: transform 0.5s var(--ease);
}
a.tile:hover { transform: translateY(-4px); }
.tile--violet { --tile-a: #24104d; --tile-b: #6d28d9; }
.tile--magenta { --tile-a: #3d0a3a; --tile-b: #c026d3; }
.tile--ocean { --tile-a: #071f3a; --tile-b: #0e7490; }
.tile--ember { --tile-a: #3a1206; --tile-b: #ea580c; }
.tile--forest { --tile-a: #052618; --tile-b: #15803d; }
.tile--rose { --tile-a: #3f0a1d; --tile-b: #e11d48; }
.tile--indigo { --tile-a: #0f1239; --tile-b: #4f46e5; }
.tile--ink { --tile-a: #15121e; --tile-b: #2a2540; }
.tile--sky { --tile-a: #0b2447; --tile-b: #2563eb; }

.tile__text { position: relative; z-index: 2; padding: 36px 36px 0; max-width: 520px; }
.tile__eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0.75; margin-bottom: 10px; display: block; }
.tile h2, .tile h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 10px; color: #fff; }
.tile p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 1rem; line-height: 1.5; }
.tile .link-arrow { color: #fff; margin-top: 14px; }
.tile__media {
    position: relative;
    flex: 1;
    min-height: 300px;
    margin-top: 28px;
}
.tile__media > * { position: absolute; }
.tile--short { min-height: 420px; }
.tile--tall { min-height: 640px; }
.tile--wide .tile__text { max-width: 440px; }

/* Horizontal tile rail (scroll-snap carousel) */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(400px, 82vw);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 4px var(--gutter) 24px;
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wrap { position: relative; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.rail-nav button:hover { border-color: var(--violet); }
.rail-nav button:disabled { opacity: 0.35; cursor: default; }
.rail-nav button svg { width: 20px; height: 20px; }
.rail-nav button:first-child svg { transform: rotate(180deg); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.head-row .section-head { margin-bottom: 0; }
@media (max-width: 640px) { .rail-nav { display: none; } }

/* Big statement heading (Revolut-style section openers) */
.statement { max-width: 980px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.statement h2 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: 18px; }
.statement p { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 620px; margin: 0 auto; }
.statement--left { text-align: left; margin-left: 0; }
.statement--left p { margin-left: 0; }

/* Feature rows: big visual + short copy, alternating */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature--flip .feature__media { order: 2; }
.feature__media .tile { min-height: 560px; }
.feature__copy h3 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 16px; }
.feature__copy > p { font-size: 1.125rem; color: var(--text-2); margin-bottom: 24px; }
.feature__copy .chips { margin-bottom: 28px; }
@media (max-width: 900px) {
    .feature { grid-template-columns: 1fr; }
    .feature--flip .feature__media { order: 0; }
    .feature__media .tile { min-height: 460px; }
}

/* Scroll-driven entrance for media (progressive enhancement) */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .tile, .feature__media, .bigstat {
            animation: rise-in linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 30%;
        }
        .float-y {
            animation: drift linear both;
            animation-timeline: view();
            animation-range: cover 0% cover 100%;
        }
    }
}
@keyframes rise-in {
    from { opacity: 0.2; transform: translateY(60px) scale(0.94); }
    to { opacity: 1; transform: none; }
}
@keyframes drift {
    from { translate: 0 40px; }
    to { translate: 0 -40px; }
}

/* --------------------------------------------------------------------------
   Phone mockup
   -------------------------------------------------------------------------- */
.phone {
    width: 280px;
    height: 580px;
    padding: 10px;
    border-radius: 48px;
    background: linear-gradient(160deg, #3a3646, #0c0b10 30%, #1d1a26);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.phone__screen {
    position: relative;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    background: #f6f5f9;
    color: #15121e;
    font-size: 13px;
    line-height: 1.4;
}
.phone__screen--dark { background: #0d0b14; color: #f5f3fa; }
.phone__island {
    position: absolute;
    top: 10px; left: 50%;
    width: 92px; height: 26px;
    margin-left: -46px;
    border-radius: 20px;
    background: #000;
    z-index: 5;
}
.phone__status {
    display: flex;
    justify-content: space-between;
    padding: 14px 26px 0;
    font-size: 12px;
    font-weight: 600;
}
.phone__body { padding: 18px 16px 16px; }

/* UI atoms used inside mockups (light UI) */
.ui-card {
    border-radius: 18px;
    background: #fff;
    color: #15121e;
    box-shadow: 0 1px 2px rgba(20, 10, 40, 0.06), 0 12px 32px -12px rgba(20, 10, 40, 0.25);
    padding: 14px;
    font-size: 13px;
    line-height: 1.4;
}
.ui-card--float { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.15); }
.ui-row { display: flex; align-items: center; gap: 10px; }
.ui-row + .ui-row { margin-top: 10px; }
.ui-grow { flex: 1; min-width: 0; }
.ui-title { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.ui-sub { font-size: 11.5px; color: #6b6578; }
.ui-big { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ui-ic {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 11px;
    flex-shrink: 0;
    background: #efeafc;
    color: #6d28d9;
}
.ui-ic svg { width: 17px; height: 17px; }
.ui-ic--grad { background: var(--grad); color: #fff; }
.ui-ic--green { background: #dcfce7; color: #15803d; }
.ui-ic--amber { background: #fef3c7; color: #b45309; }
.ui-ic--blue { background: #dbeafe; color: #1d4ed8; }
.ui-ic--rose { background: #ffe4e6; color: #be123c; }
.ui-ic--round { border-radius: 50%; }
.ui-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1eefa;
    color: #4c1d95;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.ui-pill--green { background: #dcfce7; color: #166534; }
.ui-pill--amber { background: #fef3c7; color: #92400e; }
.ui-pill--rose { background: #ffe4e6; color: #9f1239; }
.ui-pill--blue { background: #dbeafe; color: #1e40af; }
.ui-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.ui-dot--amber { background: #f59e0b; }
.ui-dot--rose { background: #f43f5e; }
.ui-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 12px;
    background: #f1eefa;
    color: #3b0764;
    text-align: center;
    font-weight: 700;
    font-size: 12.5px;
}
.ui-btn--primary { background: var(--grad); color: #fff; }
.ui-btn--red { background: #ef4444; color: #fff; }
.ui-btns { display: flex; gap: 8px; margin-top: 12px; }
.ui-bubble {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 16px 16px 16px 5px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 10, 40, 0.08);
    font-size: 12.5px;
    line-height: 1.45;
}
.ui-bubble--me {
    margin-left: auto;
    border-radius: 16px 16px 5px 16px;
    background: linear-gradient(135deg, #7c3aed, #c026d3);
    color: #fff;
}
.ui-thread { display: flex; flex-direction: column; gap: 8px; }
.ui-meter { height: 6px; border-radius: 6px; background: #ede9f6; overflow: hidden; }
.ui-meter i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.ui-meter--green i { background: #22c55e; }
.ui-divider { height: 1px; background: #eeeaf5; margin: 10px 0; }
.ui-mono { font-family: var(--mono); font-size: 11px; color: #6b6578; }
.ui-hl { background: #ede4ff; color: #4c1d95; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.ui-avatar {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbcfe8, #c4b5fd);
    color: #4c1d95;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

/* Call screen (dark phone UI) */
.call { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 46px 18px 22px; text-align: center; background: radial-gradient(120% 60% at 50% 0%, #3b1a6e, #0d0b14 70%); color: #fff; }
.call__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #c4b5fd; }
.call__avatar {
    display: grid; place-items: center;
    width: 84px; height: 84px;
    margin: 18px 0 12px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 10px rgba(168, 85, 247, 0.15), 0 0 0 22px rgba(168, 85, 247, 0.07);
}
.call__avatar svg { width: 40px; height: 40px; color: #fff; }
.call__name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.call__time { font-size: 13px; color: #a39dbb; margin-top: 2px; }
.call .wave { width: 170px; margin: 16px 0; height: 36px; }
.call__lines { width: 100%; text-align: left; display: grid; gap: 7px; margin-top: auto; }
.call__line { padding: 9px 11px; border-radius: 13px; background: rgba(255, 255, 255, 0.08); font-size: 12px; line-height: 1.4; color: #e7e3f2; }
.call__line b { display: block; font-size: 10px; font-weight: 600; color: #a39dbb; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1px; }
.call__line--ai { background: rgba(167, 139, 250, 0.22); }
.call__keys { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.call__keys span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.call__keys span:last-child { background: #ef4444; }
.call__keys svg { width: 20px; height: 20px; }

/* Lock-screen notifications */
.lock { height: 100%; padding: 60px 12px 0; background: linear-gradient(170deg, #4c1d95, #be185d 70%, #f97316); color: #fff; }
.lock__time { text-align: center; font-size: 64px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.lock__date { text-align: center; font-size: 14px; font-weight: 500; opacity: 0.85; margin-bottom: 26px; }
.notif {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    color: #15121e;
    font-size: 12px;
    line-height: 1.35;
}
.notif + .notif { margin-top: 8px; }
.notif b { display: flex; justify-content: space-between; font-size: 12.5px; }
.notif b small { font-weight: 400; color: #6b6578; }

/* Browser window mockup */
.browser {
    width: 560px;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
    color: #15121e;
}
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1eff6; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d3e3; }
.browser__bar i:nth-child(1) { background: #fb7185; }
.browser__bar i:nth-child(2) { background: #fbbf24; }
.browser__bar i:nth-child(3) { background: #4ade80; }
.browser__url { flex: 1; margin-left: 10px; padding: 5px 12px; border-radius: 8px; background: #fff; font-size: 11.5px; color: #6b6578; }
.browser__page { padding: 26px 28px 30px; }
.browser__hero { height: 120px; border-radius: 14px; background: linear-gradient(120deg, #c4b5fd, #f0abfc 60%, #fdba74); margin-bottom: 16px; position: relative; }
.browser__hero::after { content: ""; position: absolute; left: 22px; top: 30px; width: 46%; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 26px 0 -3px rgba(255, 255, 255, 0.6); }
.browser__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.browser__cols span { height: 64px; border-radius: 10px; background: #f3f0fa; }

/* Lighthouse-style score rings */
.scores { display: flex; gap: 14px; }
.score { text-align: center; font-size: 11px; color: #6b6578; font-weight: 600; }
.score__ring {
    --v: 100;
    display: grid; place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: conic-gradient(#16a34a calc(var(--v) * 1%), #dcfce7 0);
    font-size: 16px;
    font-weight: 800;
    color: #166534;
    position: relative;
}
.score__ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.score__ring span { position: relative; }

/* Document (invoice) mockup */
.doc {
    width: 300px;
    padding: 22px;
    border-radius: 14px;
    background: #fff;
    color: #15121e;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
    font-size: 11.5px;
    position: relative;
    overflow: hidden;
}
.doc__h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.doc__h b { font-size: 18px; letter-spacing: -0.03em; }
.doc__lines span { display: block; height: 8px; border-radius: 4px; background: #eeeaf5; margin-bottom: 8px; }
.doc__row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e6e1ef; }
.doc__row.is-hl { background: #f3edff; margin: 0 -8px; padding: 7px 8px; border-radius: 6px; border-bottom-color: transparent; }
.doc__total { display: flex; justify-content: space-between; margin-top: 12px; font-size: 15px; font-weight: 800; }
.doc__scan {
    position: absolute;
    left: 0; right: 0;
    height: 46px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.25), transparent);
    border-bottom: 2px solid #8b5cf6;
    animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan { 0% { top: -46px; } 60%, 100% { top: 100%; } }

/* Mini bar & line charts inside UI cards */
.ui-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; }
.ui-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #a78bfa, #ddd6fe); }
.ui-bars i.is-hi { background: var(--grad); }
.ui-spark { width: 100%; height: 60px; }

/* App grid (Microsoft 365 / cloud) */
.apps { display: grid; grid-template-columns: repeat(4, 64px); gap: 14px; }
.app {
    display: grid; place-items: center;
    width: 64px; height: 64px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5);
}
.app svg { width: 28px; height: 28px; }

/* Keypad (VoIP) */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; padding: 8px 20px; }
.keypad span { display: grid; place-items: center; height: 52px; border-radius: 50%; background: #ece8f5; font-size: 22px; font-weight: 500; }
.keypad span small { display: block; font-size: 8px; letter-spacing: 0.12em; color: #6b6578; margin-top: -6px; }

/* Map illustration (about / contact) */
.map-illo { position: absolute; inset: 0; }
.map-illo svg { width: 100%; height: 100%; }
.map-pin {
    position: absolute;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    background: #fff;
    color: #15121e;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -100%);
    white-space: nowrap;
}
.map-pin::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -7px;
    width: 14px; height: 14px;
    margin-left: -7px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}
.map-pin .ui-ic { width: 28px; height: 28px; border-radius: 50%; }

/* Big stat tiles */
.bigstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bigstat {
    padding: 32px 28px 28px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: 260px;
    display: flex;
    flex-direction: column;
}
.bigstat__num { font-size: clamp(3rem, 5.4vw, 4.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.95; margin-bottom: auto; }
.bigstat p { margin: 24px 0 0; color: var(--text-2); font-size: 0.975rem; line-height: 1.45; }
.bigstat small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 960px) { .bigstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bigstats { grid-template-columns: 1fr; } .bigstat { min-height: 0; } }

/* Hero with visual (inner pages) */
.vhero { position: relative; padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 0; overflow: hidden; isolation: isolate; }
.vhero .glow--violet { width: 560px; height: 560px; top: -240px; left: 5%; }
.vhero .glow--magenta { width: 460px; height: 460px; top: -160px; right: 0; opacity: 0.4; }
.vhero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.vhero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.vhero .lead { max-width: 560px; margin-bottom: 32px; }
.vhero__copy { padding-bottom: clamp(48px, 7vw, 96px); }
.vhero__media { position: relative; height: clamp(420px, 46vw, 600px); }
.vhero__media > * { position: absolute; }
@media (max-width: 900px) {
    .vhero__grid { grid-template-columns: 1fr; }
    .vhero__copy { padding-bottom: 8px; }
    .vhero__media { height: 460px; }
}

/* Logo-free trust row */
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; color: var(--muted); font-size: 0.9rem; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--green); }

/* Compact service list (services page) */
.svc-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border); }
.svc-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.svc-list h3 { font-size: 1.125rem; margin: 2px 0 4px; }
.svc-list p { margin: 0; color: var(--muted); font-size: 0.975rem; }
.svc-cat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-cat__media { position: sticky; top: calc(var(--header-h) + 80px); }
.svc-cat__media .tile { min-height: 560px; }
.svc-cat--flip .svc-cat__media { order: 2; }
@media (max-width: 900px) {
    .svc-cat { grid-template-columns: 1fr; }
    .svc-cat__media { position: relative; top: 0; }
    .svc-cat--flip .svc-cat__media { order: 0; }
    .svc-cat__media .tile { min-height: 420px; }
}

/* Scale fixed-size mockups down on small screens */
@media (max-width: 640px) {
    .tile__media .phone, .vhero__media .phone, .feature__media .phone { transform: scale(0.82); transform-origin: top center; }
    .tile__media .browser { transform: scale(0.62); transform-origin: top left; }
    .tile__media .doc { transform: scale(0.85); transform-origin: top left; }
    .tile__text { padding: 28px 24px 0; }
}

/* Split CTA with phone visual */
.cta--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: center;
    text-align: left;
    padding-bottom: 0;
}
.cta--split h2, .cta--split p { margin-left: 0; }
.cta--split .btn-row { justify-content: flex-start; }
.cta__copy { padding-bottom: clamp(48px, 7vw, 88px); }
.cta__media { position: relative; height: 460px; align-self: end; }
.cta__media > * { position: absolute; }
@media (max-width: 860px) {
    .cta--split { grid-template-columns: 1fr; text-align: center; }
    .cta__media { text-align: left; }   /* mockups keep their own alignment when the CTA stacks */
    .cta--split .btn-row { justify-content: center; }
    .cta--split h2, .cta--split p { margin-inline: auto; }
    .cta__copy { padding-bottom: 0; }
    .cta__media { height: 380px; }
}
.vhero__media > .tile { position: relative; height: 100%; min-height: 0; border-radius: 32px 32px 0 0; }
.ui-pill svg { width: 12px; height: 12px; }
@media (max-width: 640px) {
    .tile__media .apps { transform: scale(0.85); transform-origin: top center; }
}

/* Pinned service visuals: no scroll-linked entrance, and never taller than the viewport */
.svc-cat__media .tile { animation: none; min-height: min(560px, calc(100vh - var(--header-h) - 140px)); }
.subnav ul { position: relative; }

/* --------------------------------------------------------------------------
   Home: core-services hero, services grid and AI teaser
   -------------------------------------------------------------------------- */
.vhero--home { padding-bottom: clamp(16px, 3vw, 40px); }
.vhero--home .vhero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.vhero--home .vhero__copy { padding-bottom: 0; }
.vhero--home h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); margin-bottom: 24px; }
.vhero--home h1 .grad-text { display: block; }
.vhero--home .trust { margin-top: 32px; }
@media (max-width: 900px) {
    .vhero--home .vhero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* Hero artwork: a cluster of service mockups laid out at 600×560, scaled to its column.
   tan(atan2(100cqw, 600px)) is the column width divided by 600px, as a plain number. */
.hero-art { container-type: inline-size; position: relative; width: 100%; max-width: 600px; aspect-ratio: 600 / 560; justify-self: center; }
.hero-art__board { --s: 0.58; position: absolute; left: 0; top: 0; width: 600px; height: 560px; transform: scale(var(--s)); transform-origin: 0 0; }
@media (min-width: 640px) { .hero-art__board { --s: 0.9; } }
@supports (scale: tan(atan2(1px, 1px))) {
    .hero-art__board { --s: min(1, tan(atan2(100cqw, 600px))); }
}
.hero-art__board > * { position: absolute; }
.hero-art__phone { right: 0; top: 0; width: 224px; height: 464px; }
.hero-art__phone .phone { transform: scale(0.8); transform-origin: 0 0; }
.apps--sm { grid-template-columns: repeat(4, 62px); gap: 12px; }
.apps--sm .app { width: 62px; height: 62px; border-radius: 16px; background: #f4f1fa; box-shadow: none; }
.apps--sm .app svg { width: 26px; height: 26px; }

/* Services grid: whole-tile links with a round arrow in the corner */
.tile__go {
    position: absolute;
    top: 30px; right: 30px;
    z-index: 3;
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tile__go svg { width: 18px; height: 18px; }
a.tile:hover .tile__go { background: #fff; color: #15121e; transform: translateX(3px); }
.bento--svc .tile__eyebrow, .bento--svc .tile h3 { padding-right: 44px; }
@media (min-width: 641px) and (max-width: 900px) {
    .bento--svc > :last-child:nth-child(even) { grid-column: span 2; }   /* two columns: the first tile spans both, so an even count leaves the last one alone */
}
.center-row { margin: 32px 0 0; text-align: center; }
@media (max-width: 640px) {
    .bento--svc .tile, .bento--svc .tile--short { min-height: 430px; }
    .bento--svc .tile__media { min-height: 230px; }
    .tile__media .hide-sm { display: none; }
    .tile__go { top: 22px; right: 20px; width: 38px; height: 38px; }
}

/* One-line teaser card (e.g. AI on the homepage) */
.teaser {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.teaser:hover { border-color: rgba(167, 139, 250, 0.35); transform: translateY(-2px); }
.teaser__text { color: var(--text-2); }
.teaser__text strong { color: var(--text); font-weight: 600; }
.teaser .pill__tag { margin-right: 6px; vertical-align: 1px; }
@media (max-width: 700px) {
    .teaser { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 20px; gap: 16px; }
    .teaser .link-arrow { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Quick Exit (support pages: DFSV Standard s25(2))
   -------------------------------------------------------------------------- */
.quick-exit { position: fixed; top: calc(var(--header-h) + 10px); right: var(--gutter); z-index: 150; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #07060c; font-size: 0.9375rem; font-weight: 700; line-height: 1; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.08); }
.quick-exit:hover { background: #ede9fe; color: #07060c; }
.quick-exit:focus-visible { outline: 3px solid #a78bfa; outline-offset: 3px; }
.quick-exit svg { flex: none; width: 18px; height: 18px; }
.quick-exit__hint { display: none; font-weight: 500; color: #4b4560; }
@media (hover: hover) and (min-width: 720px) { .quick-exit__hint { display: inline; } }
@media screen { .has-quick-exit .page-hero { padding-top: calc(var(--header-h) + clamp(80px, 9vw, 104px)); } }
@media print { .quick-exit { display: none !important; } }
