/* ============================================
   SMART DIGITAL GROUP — BLUE & WHITE
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --bg-soft: #eef3fb;
    --bg-card: #ffffff;

    --text: #1e1919;
    --text-2: #5b5b5b;
    --text-3: #8a8a8a;
    --text-on-blue: #ffffff;

    --blue: #0061ff;
    --blue-dark: #0052d9;
    --blue-soft: #e8f0ff;
    --blue-mid: #4d8dff;

    --border: rgba(30, 25, 25, 0.08);
    --border-strong: rgba(30, 25, 25, 0.14);

    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;

    --container: 1120px;
    --header-h: 72px;

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 1px 2px rgba(30, 25, 25, 0.04), 0 4px 12px rgba(0, 97, 255, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 97, 255, 0.08), 0 2px 8px rgba(30, 25, 25, 0.04);
    --shadow-lg: 0 20px 48px rgba(0, 97, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--text);
}

p { margin: 0; }

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--blue-dark); }

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

ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 4px 14px rgba(0, 97, 255, 0.25);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 97, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-soft);
}

.btn-white {
    background: #fff;
    color: var(--blue);
    border-color: #fff;
    font-weight: 700;
}

.btn-white:hover {
    background: var(--blue-soft);
    color: var(--blue-dark);
    border-color: var(--blue-soft);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---- Brand ---- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
}

.brand:hover { color: var(--text); }

.brand-mark {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: contain;
}

.brand-type {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    gap: 0.12rem;
}

.brand-type-smart {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-type-group {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.brand-logo {
    height: 36px;
    width: auto;
    max-width: 240px;
    display: block;
    flex-shrink: 0;
}

.site-footer .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 11px;
}

.site-footer .brand-logo {
    height: 40px;
    max-width: 260px;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
}

.nav-links li { list-style: none; }

.nav-links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-links a:not(.btn):hover .nav-icon,
.nav-links a:not(.btn).active .nav-icon,
.nav-dropdown-trigger:hover .nav-icon,
.nav-dropdown.is-active .nav-dropdown-trigger .nav-icon,
.nav-dropdown.is-open .nav-dropdown-trigger .nav-icon {
    opacity: 1;
}

.nav-icon-btn {
    opacity: 1;
}

.nav-dropdown-trigger .nav-icon {
    margin-right: 0.05rem;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.8rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.is-active .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-dropdown-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

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

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-menu .nav-icon {
    width: 1rem;
    height: 1rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    color: var(--text);
    background: var(--bg-alt);
}

@media (min-width: 721px) {
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown:hover .nav-dropdown-chevron,
    .nav-dropdown:focus-within .nav-dropdown-chevron {
        transform: rotate(180deg);
    }
}

.nav-cta { margin-left: 0.45rem; }

.nav-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 88px;
    overflow: hidden;
    background: #f3f7ff;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-wash {
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(ellipse 50% 45% at 80% 20%, rgba(0, 97, 255, 0.2), transparent 58%),
        radial-gradient(ellipse 40% 35% at 10% 85%, rgba(11, 110, 79, 0.1), transparent 55%),
        linear-gradient(135deg, #e8f0ff 0%, #f7f9fc 42%, #ffffff 100%);
    animation: heroWash 18s ease-in-out infinite alternate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 97, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 97, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 75% 65% at 70% 45%, black 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 70% 45%, black 20%, transparent 78%);
}

.hero-wordmark {
    position: absolute;
    left: 8%;
    top: 48%;
    transform: translateY(-50%);
    font-size: clamp(5.5rem, 18vw, 14rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 97, 255, 0.12);
    user-select: none;
    white-space: nowrap;
    pointer-events: none;
    animation: heroMark 20s ease-in-out infinite alternate;
}

@keyframes heroMark {
    from { opacity: 0.5; transform: translateY(-52%); }
    to { opacity: 0.95; transform: translateY(-46%); }
}

@keyframes heroWash {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.05) translate3d(-1%, -1%, 0); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.hero-brand {
    margin: 0 0 1rem;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero-brand::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 2px;
    background: var(--blue);
    transform-origin: left center;
    animation: heroRule 0.9s ease 0.15s both;
}

@keyframes heroRule {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.6rem, 5.8vw, 4.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--text);
}

.hero-title-accent {
    color: var(--blue);
    display: inline-block;
    animation: heroAccent 0.9s ease 0.2s both;
}

@keyframes heroAccent {
    from { opacity: 0; transform: translateY(0.3em); }
    to { opacity: 1; transform: translateY(0); }
}

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

.hero-lead {
    margin-top: 1.25rem;
    max-width: 30rem;
    font-size: 1.1rem;
    color: var(--text-2);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.85rem;
}

.hero-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.35rem;
    margin-top: 1.6rem;
}

.hero-capabilities li {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

.hero-locale {
    margin-top: 1.15rem;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-3);
}

/* Mosaic visual */
.hero-visual {
    position: relative;
}

/* Hero demo preview stack */
.hero-demo-stack {
    position: relative;
    min-height: 360px;
    animation: heroMosaicIn 0.9s ease 0.15s both;
}

.hero-demo-frame {
    position: absolute;
    display: block;
    width: min(100%, 340px);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-demo-frame:hover {
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    color: inherit;
}

.hero-demo-frame-rfts {
    top: 0;
    right: 8%;
    z-index: 1;
    transform: rotate(4deg);
}

.hero-demo-frame-rfts:hover { transform: rotate(4deg) translateY(-4px); }

.hero-demo-frame-van {
    top: 72px;
    left: 0;
    z-index: 2;
    transform: rotate(-5deg);
}

.hero-demo-frame-van:hover { transform: rotate(-5deg) translateY(-4px); }

.hero-demo-frame-charleys {
    top: 148px;
    right: 0;
    z-index: 3;
    width: min(100%, 360px);
}

.hero-demo-frame-charleys:hover { transform: translateY(-4px); }

.hero-demo-frame-chrome {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
}

.hero-demo-frame-chrome-van { background: #101a2c; }

.hero-demo-frame-chrome-charleys {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: #fff;
    color: #64748b;
    border-bottom: 1px solid #ffe4e6;
}

.hero-demo-frame-dots {
    display: inline-flex;
    gap: 0.28rem;
}

.hero-demo-frame-dots i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #64748b;
}

.hero-demo-frame-dots i:nth-child(1) { background: #f87171; }
.hero-demo-frame-dots i:nth-child(2) { background: #fbbf24; }
.hero-demo-frame-dots i:nth-child(3) { background: #34d399; }

.hero-demo-frame-rainbow {
    display: flex;
    height: 3px;
}

.hero-demo-frame-rainbow i { flex: 1; }
.hero-demo-frame-rainbow i:nth-child(1) { background: #fb7185; }
.hero-demo-frame-rainbow i:nth-child(2) { background: #a78bfa; }
.hero-demo-frame-rainbow i:nth-child(3) { background: #fbbf24; }
.hero-demo-frame-rainbow i:nth-child(4) { background: #2dd4bf; }
.hero-demo-frame-rainbow i:nth-child(5) { background: #38bdf8; }

.hero-demo-frame-body {
    padding: 1rem 1.1rem 1.15rem;
    min-height: 96px;
}

.hero-demo-frame-body strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.hero-demo-frame-body em {
    display: block;
    font-style: normal;
    font-size: 0.82rem;
    color: var(--text-2);
    margin-bottom: 0.75rem;
}

.hero-demo-frame-body-rfts {
    background: linear-gradient(165deg, #0a0a0a, #1a1a1a);
    color: #fff;
}

.hero-demo-frame-body-rfts em { color: rgba(255, 255, 255, 0.7); }

.hero-demo-frame-body-van {
    background: #f2f4f7;
    border-top: 3px solid #ffc400;
}

.hero-demo-frame-body-charleys {
    background: #fffbf7;
}

.hero-demo-pill {
    display: inline-flex;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-demo-pill-van { background: #1c4499; border-radius: 2px; }
.hero-demo-pill-charleys { background: #f43f5e; }

.hero-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 14px;
    animation: heroMosaicIn 0.9s ease 0.15s both;
}

@keyframes heroMosaicIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 1.25rem 1.3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 128px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-tile:hover {
    transform: translateY(-3px);
    color: inherit;
}

.hero-tile-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.hero-tile strong {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-tile p {
    font-size: 0.88rem;
    line-height: 1.4;
    opacity: 0.85;
    max-width: 18rem;
}

.hero-tile-link {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.hero-tile-main {
    grid-column: 1 / -1;
    min-height: 190px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(0, 97, 255, 0.95) 0%, #0047c2 100%);
    box-shadow: 0 18px 40px rgba(0, 97, 255, 0.28);
}

.hero-tile-main .hero-tile-label,
.hero-tile-main p { color: rgba(255, 255, 255, 0.82); }

.hero-tile-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 54px;
    margin-top: 1rem;
}

.hero-tile-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 2px 2px;
    background: rgba(255, 255, 255, 0.28);
    animation: heroBar 2.8s ease-in-out infinite alternate;
}

.hero-tile-chart span:nth-child(2) { animation-delay: 0.15s; background: rgba(255, 255, 255, 0.45); }
.hero-tile-chart span:nth-child(3) { animation-delay: 0.3s; }
.hero-tile-chart span:nth-child(4) { animation-delay: 0.45s; background: rgba(255, 255, 255, 0.55); }
.hero-tile-chart span:nth-child(5) { animation-delay: 0.6s; }
.hero-tile-chart span:nth-child(6) { animation-delay: 0.75s; background: #fff; }

@keyframes heroBar {
    from { transform: scaleY(0.82); }
    to { transform: scaleY(1); }
}

.hero-tile-chimp {
    background: #fff;
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.hero-tile-chimp .hero-tile-label { color: var(--blue); opacity: 1; }
.hero-tile-chimp p { color: var(--text-2); opacity: 1; }
.hero-tile-chimp .hero-tile-link { color: var(--blue); }
.hero-tile-chimp:hover { box-shadow: var(--shadow-md); border-color: rgba(0, 97, 255, 0.2); }

.hero-tile-armadillo {
    background: #0b6e4f;
    color: #fff;
    box-shadow: 0 14px 32px rgba(11, 110, 79, 0.22);
}

.hero-tile-armadillo .hero-tile-label,
.hero-tile-armadillo p { color: rgba(255, 255, 255, 0.8); }
.hero-tile-armadillo .hero-tile-link { color: #fff; }
.hero-tile-armadillo:hover { box-shadow: 0 18px 36px rgba(11, 110, 79, 0.3); }

.hero-tile-build {
    grid-column: 1 / -1;
    min-height: 110px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-tile-build .hero-tile-label { color: var(--text-3); opacity: 1; }
.hero-tile-build p { color: var(--text-2); opacity: 1; }

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 1.5px solid rgba(0, 97, 255, 0.28);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 2;
    transition: border-color 0.2s ease;
}

.hero-scroll:hover { border-color: var(--blue); }

.hero-scroll span {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: var(--blue);
    animation: heroScroll 1.6s ease-in-out infinite;
}

@keyframes heroScroll {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-wash,
    .hero-wordmark,
    .hero-brand::after,
    .hero-title-accent,
    .hero-mosaic,
    .hero-tile-chart span,
    .hero-scroll span {
        animation: none !important;
    }
}

/* ---- Sections ---- */
.section {
    padding: 96px 0;
}

.section-alt { background: var(--bg-alt); }

.section-blue {
    background: linear-gradient(145deg, #0061ff 0%, #0047c2 100%);
    color: var(--text-on-blue);
}

.section-head {
    max-width: 560px;
    margin-bottom: 48px;
}

.section-head-center {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 48px;
}

.section-head-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    max-width: none;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.section-tag-light { color: rgba(255, 255, 255, 0.8); }

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-title-light { color: #fff; }

.section-desc {
    color: var(--text-2);
    font-size: 1.05rem;
    line-height: 1.65;
}

.section-desc-light { color: rgba(255, 255, 255, 0.85); }

.section-desc-right {
    text-align: right;
    max-width: 340px;
    margin-left: auto;
}

.section-head-center .section-desc { margin: 0 auto; }

/* ---- Core offerings ---- */
.core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.core-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.core-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 97, 255, 0.2);
}

.core-card-accent {
    background: var(--blue-soft);
    border-color: rgba(0, 97, 255, 0.15);
}

.core-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    margin-bottom: 1.25rem;
}

.core-icon svg { width: 26px; height: 26px; }

.core-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.core-card > p {
    color: var(--text-2);
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
}

.core-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.core-list li {
    font-size: 0.9rem;
    color: var(--text-2);
    padding-left: 1.1rem;
    position: relative;
}

.core-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.core-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.92rem;
}

/* ---- Brands (Chimp / Armadillo) ---- */
.brands-section {
    background:
        radial-gradient(ellipse 70% 60% at 10% 20%, rgba(0, 97, 255, 0.06), transparent 55%),
        radial-gradient(ellipse 50% 50% at 90% 80%, rgba(0, 97, 255, 0.05), transparent 50%),
        var(--bg-alt);
}

.brands-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.brand-panel {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 97, 255, 0.22);
}

.brand-panel-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.brand-mark {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    color: var(--blue);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-panel-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.25rem;
}

.brand-panel h3 {
    font-size: 1.45rem;
    margin-bottom: 0.2rem;
}

.brand-panel-tagline {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.brand-panel-summary {
    color: var(--text-2);
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
}

.brand-panel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}

.brand-panel-list li {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

.brand-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
}

.brand-panel-chimp .brand-mark { color: #0061ff; }
.brand-panel-armadillo .brand-mark { color: #0b6e4f; }
.brand-panel-armadillo .brand-panel-tagline { color: #0b6e4f; }
.brand-panel-armadillo .btn-primary {
    background: #0b6e4f;
    border-color: #0b6e4f;
    box-shadow: 0 4px 14px rgba(11, 110, 79, 0.25);
}
.brand-panel-armadillo .btn-primary:hover {
    background: #095a41;
    border-color: #095a41;
}

.brands-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.brands-inline article {
    padding: 0;
    border: 0;
}

.brands-inline h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.brands-inline p {
    color: var(--text-2);
    font-size: 0.95rem;
}

@media (max-width: 800px) {
    .brands-grid,
    .brands-inline {
        grid-template-columns: 1fr;
    }
}

/* ---- Brand destination pages ---- */
.brand-page {
    --brand-accent: var(--blue);
    --brand-accent-soft: rgba(0, 97, 255, 0.08);
    --brand-accent-mid: rgba(0, 97, 255, 0.16);
}

.brand-page-armadillo {
    --brand-accent: #0b6e4f;
    --brand-accent-soft: rgba(11, 110, 79, 0.1);
    --brand-accent-mid: rgba(11, 110, 79, 0.18);
}

.brand-hero {
    position: relative;
    padding: 7.5rem 0 4rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.brand-hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 85% 15%, var(--brand-accent-mid), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%, var(--brand-accent-soft), transparent 55%),
        linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
    pointer-events: none;
}

.brand-page-armadillo .brand-hero-atmosphere {
    background:
        radial-gradient(ellipse 70% 55% at 85% 15%, var(--brand-accent-mid), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%, var(--brand-accent-soft), transparent 55%),
        linear-gradient(180deg, #f3f8f5 0%, var(--bg) 100%);
}

.brand-hero .container { position: relative; z-index: 1; }

.brand-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.75rem;
}

.brand-hero-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 0.85rem;
}

.brand-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
}

.brand-hero-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-accent);
    margin-bottom: 1rem;
}

.brand-hero-lead {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.brand-hero-meta {
    font-size: 0.9rem;
    color: var(--text-3);
    margin: 0.35rem 0 0;
}

.brand-hero-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-sm);
}

.brand-hero-panel-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.9rem;
}

.brand-hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.brand-hero-points li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--text-2);
    font-size: 0.98rem;
    line-height: 1.45;
}

.brand-hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--brand-accent);
}

.brand-intro {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.brand-intro-desc {
    margin-left: auto;
    margin-right: auto;
}

.brand-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.brand-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.55rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-service-card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.brand-service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--brand-accent);
}

.brand-service-card > p {
    color: var(--text-2);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.brand-service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.brand-service-card li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--text-2);
}

.brand-service-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: 700;
}

.brand-feature {
    display: grid;
    grid-template-columns: 1.4fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

.brand-feature-aside {
    background: var(--brand-accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}

.brand-feature-aside-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.85rem;
}

.brand-feature-aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.brand-feature-aside a {
    font-weight: 600;
    color: var(--text);
}

.brand-feature-aside a:hover { color: var(--brand-accent); }

.brand-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.brand-proof-card {
    padding: 1.35rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.brand-proof-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.brand-proof-card p {
    color: var(--text-2);
    font-size: 0.94rem;
}

.brand-group-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 1.85rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.brand-group-note p {
    color: var(--text-2);
    max-width: 40rem;
}

.brand-page-armadillo .btn-primary {
    background: #0b6e4f;
    border-color: #0b6e4f;
    box-shadow: 0 4px 14px rgba(11, 110, 79, 0.25);
}

.brand-page-armadillo .btn-primary:hover {
    background: #095a41;
    border-color: #095a41;
}

@media (max-width: 900px) {
    .brand-hero-grid,
    .brand-feature {
        grid-template-columns: 1fr;
    }

    .brand-services-grid {
        grid-template-columns: 1fr;
    }

    .brand-proof-grid {
        grid-template-columns: 1fr;
    }

    .brand-group-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Services ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    padding: 1.4rem;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    background: var(--bg-card);
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--blue-soft);
    color: var(--blue);
    margin-bottom: 0.9rem;
}

.service-icon svg { width: 20px; height: 20px; }

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.5;
}

/* ---- Managed ---- */
.managed-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.managed-intro .section-desc {
    max-width: 28rem;
    margin-bottom: 1.75rem;
}

.managed-intro .btn {
    margin-bottom: 1.25rem;
}

.managed-aside {
    margin: 0;
    max-width: 26rem;
    font-size: 0.88rem;
    color: var(--text-3);
    line-height: 1.55;
    padding-left: 0.85rem;
    border-left: 2px solid var(--blue-soft);
}

.managed-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.managed-point {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.1rem 1.15rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.managed-point:hover {
    border-color: rgba(0, 97, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.managed-point h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.managed-point p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.5;
}

/* ---- Portfolio ---- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.work-card-wrap {
    display: flex;
    height: 100%;
}

.work-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 97, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.work-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.work-card-link:hover { color: inherit; }

.work-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-media-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 26, 46, 0.15) 0%, rgba(15, 26, 46, 0.55) 100%);
}

.work-media-photo--brand::after {
    background: linear-gradient(180deg, rgba(15, 26, 46, 0.35) 0%, rgba(15, 26, 46, 0.72) 100%);
}

.work-logo {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.work-logo img {
    max-width: 150px;
    max-height: 72px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.work-logo-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    color: #fff;
}

.work-media-photo--brand .work-brand-name,
.work-media-photo--brand .work-brand-tag {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.work-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue);
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.work-brand-mark--qs {
    color: #0d9488;
}

.work-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.work-brand-tag {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.9;
}

.work-body {
    padding: 1.15rem 1.25rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.work-category {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
}

.work-arrow {
    font-size: 0.9rem;
    color: var(--text-3);
    transition: transform 0.2s ease, color 0.2s ease;
}

.work-card:hover .work-arrow {
    color: var(--blue);
    transform: translate(2px, -2px);
}

.work-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.work-body > p {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-desc {
    margin-top: 1rem;
    color: var(--text-2);
    line-height: 1.7;
}

.about-desc + .about-desc { margin-top: 0.85rem; }

.about-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.about-feature {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.95rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--blue-soft);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.tick::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-3);
}

/* Trustpilot */
.trustpilot-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.trustpilot-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 97, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.trustpilot-badge-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.trustpilot-logo {
    color: #00b67a;
}

.trustpilot-badge-score {
    font-size: 0.8rem;
    color: var(--text-3);
}

.trustpilot-badge-score strong {
    color: var(--text);
    font-weight: 700;
}

.tp-stars {
    display: inline-flex;
    gap: 2px;
}

.tp-star {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: #dcdce6;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.tp-star-full {
    background: #00b67a;
}

.tp-star-half {
    background: linear-gradient(90deg, #00b67a 50%, #dcdce6 50%);
}

.testimonial-stars {
    display: block;
    margin-bottom: 0.55rem;
}

.testimonial-stars .tp-star {
    width: 14px;
    height: 14px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.testimonials-grid-stack {
    grid-template-columns: 1fr;
}

.testimonial-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    min-height: 168px;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-box:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 97, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.testimonial-box-text {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-2);
}

.testimonial-box-text::before {
    content: '\201C';
    color: var(--blue);
    font-size: 1.4rem;
    line-height: 0;
    vertical-align: -0.25em;
    margin-right: 0.15rem;
}

.testimonial-box-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.testimonial-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    padding: 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    margin-bottom: 1rem;
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item a { font-weight: 600; }

.contact-note {
    color: var(--text-2);
    font-size: 0.92rem;
    padding: 0 0.25rem;
}

.contact-form-wrap {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: block;
    margin-bottom: 1rem;
}

.field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-3);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.12);
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.input-error { border-color: #e11d48 !important; }

.field-error {
    color: #e11d48;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.form-message {
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 97, 255, 0.25);
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
    background: var(--bg-alt);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-3);
    max-width: 22rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-soft);
}

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    color: var(--text-3);
    font-size: 0.88rem;
}

.footer-col a:hover { color: var(--blue); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 1.5rem;
    padding-top: 28px;
    font-size: 0.8rem;
    color: var(--text-3);
}

.footer-legal a {
    color: var(--text-3);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal a:hover {
    color: var(--blue);
}

/* ---- Legal ---- */
.legal-page {
    padding: calc(var(--header-h) + 64px) 0 80px;
    min-height: 70vh;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-2);
    margin-bottom: 0.75rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content a:hover { text-decoration: underline; }

/* ---- Service pages ---- */
.service-page {
    padding: calc(var(--header-h) + 48px) 0 80px;
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-3);
    margin-bottom: 1.5rem;
}

.service-breadcrumb a:hover { color: var(--blue); }

.service-hero {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.service-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.service-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-2);
    margin: 0;
}

.service-content {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.service-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.service-content h2:first-child { margin-top: 0; }

.service-content p,
.service-content li {
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.service-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.service-content a:hover { text-decoration: underline; }

.service-cta {
    max-width: 720px;
    padding: 1.75rem;
    background: var(--blue-soft);
    border: 1px solid rgba(0, 97, 255, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.service-cta h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.service-cta p {
    color: var(--text-2);
    margin: 0 0 1.25rem;
}

.service-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-related {
    max-width: 720px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.service-related p {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-3);
    margin: 0 0 0.5rem;
}

.service-related ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-related a {
    font-weight: 600;
    font-size: 0.92rem;
}

.service-related a:hover { text-decoration: underline; }

/* ---- Case studies ---- */
.case-studies-page {
    padding: calc(var(--header-h) + 48px) 0 80px;
}

.case-studies-head {
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.case-studies-head h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.85rem;
}

.case-studies-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0;
}

.case-studies-cta {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.case-studies-cta h2 {
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
}

/* ---- Work page (booking-first) ---- */
.work-page {
    padding-bottom: 0;
}

.work-hero {
    padding: calc(var(--header-h) + 48px) 0 2.5rem;
    background:
        radial-gradient(ellipse 60% 50% at 90% 0%, rgba(0, 97, 255, 0.1), transparent 55%),
        linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.work-hero-copy {
    max-width: 40rem;
}

.work-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 0.85rem;
}

.work-hero-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0 0 1.5rem;
}

.work-demo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.work-demo-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.5rem 1.55rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 100%;
}

.work-demo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 16px 36px rgba(15, 23, 42, 0.12));
    color: inherit;
}

.work-demo-card-chimp {
    border-top: 3px solid #f43f5e;
}

.work-demo-card-chimp:hover {
    border-color: #fda4af;
}

.work-demo-card-van {
    border-top: 3px solid #1c4499;
}

.work-demo-card-van:hover {
    border-color: #93b4eb;
}

.work-demo-card-rfts {
    border-top: 3px solid #1d4ed8;
}

.work-demo-card-rfts:hover {
    border-color: #93c5fd;
}

.work-demo-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.work-demo-card-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.work-demo-card-badge {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 97, 255, 0.1);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.work-demo-card-van .work-demo-card-badge {
    background: rgba(28, 68, 153, 0.12);
    color: #1c4499;
}

.work-demo-card-chimp .work-demo-card-badge {
    background: rgba(244, 63, 94, 0.12);
    color: #e11d48;
}

.work-demo-card-rfts .work-demo-card-badge {
    background: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
}

.work-demo-card h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.work-demo-card > p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.98rem;
    line-height: 1.5;
}

.work-demo-card-steps {
    font-size: 0.85rem !important;
    font-weight: 600;
    color: var(--text-3) !important;
}

.work-demo-card-cta {
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 700;
    color: var(--blue);
}

.work-demo-card-chimp .work-demo-card-cta { color: #e11d48; }
.work-demo-card-van .work-demo-card-cta { color: #1c4499; }
.work-demo-card-rfts .work-demo-card-cta { color: #1d4ed8; }

.home-work-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* ---- Home demos strip ---- */
.home-demos-section {
    background:
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(0, 97, 255, 0.06), transparent 55%),
        var(--bg);
}

.home-demos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.home-demo-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-demo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 16px 36px rgba(15, 23, 42, 0.1));
    color: inherit;
}

.home-demo-card-charleys { border-top: 3px solid #f43f5e; }
.home-demo-card-van { border-top: 3px solid #1c4499; }
.home-demo-card-rfts { border-top: 3px solid #1d4ed8; }

.home-demo-preview {
    padding: 0.9rem 0.9rem 0;
    background: var(--bg-alt);
}

.home-demo-mini {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 0;
    min-height: 118px;
    background: #fff;
}

.home-demo-mini-charleys { background: #fffbf7; }

.home-demo-mini-bar {
    display: flex;
    height: 3px;
}

.home-demo-mini-bar i { flex: 1; }
.home-demo-mini-bar i:nth-child(1) { background: #fb7185; }
.home-demo-mini-bar i:nth-child(2) { background: #a78bfa; }
.home-demo-mini-bar i:nth-child(3) { background: #fbbf24; }
.home-demo-mini-bar i:nth-child(4) { background: #2dd4bf; }
.home-demo-mini-bar i:nth-child(5) { background: #38bdf8; }

.home-demo-mini-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.home-demo-mini-logo {
    display: inline-grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.4rem;
    background: #f43f5e;
    color: #fff;
    font-size: 0.65rem;
}

.home-demo-mini-van .home-demo-mini-logo {
    background: #1c4499;
    border-radius: 2px;
    font-size: 0.55rem;
}

.home-demo-mini-rfts .home-demo-mini-logo {
    background: #1d4ed8;
    border-radius: 999px;
}

.home-demo-mini-head em {
    margin-left: auto;
    font-style: normal;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #f43f5e;
    color: #fff;
    font-size: 0.62rem;
}

.home-demo-mini-steps {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.2rem 0 0.55rem;
}

.home-demo-mini-steps b {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #fecdd3;
}

.home-demo-mini-steps b:first-child { background: #f43f5e; }

.home-demo-mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0 0.65rem 0.65rem;
}

.home-demo-mini-cards span {
    height: 2.4rem;
    border-radius: 0.55rem;
    background: linear-gradient(160deg, #fb7185, #8b5cf6);
    opacity: 0.85;
}

.home-demo-mini-cards span:nth-child(2) {
    background: linear-gradient(160deg, #fbbf24, #f43f5e);
}

.home-demo-mini-cards span:nth-child(3) {
    background: linear-gradient(160deg, #38bdf8, #8b5cf6);
}

.home-demo-mini-util {
    padding: 0.3rem 0.65rem;
    background: #101a2c;
    color: #cdd4e0;
    font-size: 0.62rem;
}

.home-demo-mini-van .home-demo-mini-head {
    border-bottom: 2px solid #101a2c;
}

.home-demo-mini-van .home-demo-mini-head span:last-child {
    margin-left: auto;
    padding: 0.2rem 0.45rem;
    background: #1c4499;
    color: #fff;
    font-size: 0.62rem;
}

.home-demo-mini-fleet {
    display: grid;
    gap: 0.3rem;
    padding: 0.55rem 0.65rem 0.7rem;
}

.home-demo-mini-fleet span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.45rem;
    background: #f2f4f7;
    border-top: 2px solid #ffc400;
    font-size: 0.65rem;
    font-weight: 700;
}

.home-demo-mini-fleet i {
    flex: 1;
    height: 0.35rem;
    background: #d6dae2;
    border-radius: 2px;
}

.home-demo-mini-dark {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem;
    background: linear-gradient(165deg, #0a0a0a, #1a1a1a);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.home-demo-mini-cream {
    padding: 0.65rem 0.7rem 0.75rem;
    background: #f7f3eb;
}

.home-demo-mini-cream em {
    display: block;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1d4ed8;
    margin-bottom: 0.2rem;
}

.home-demo-mini-cream strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
}

.home-demo-mini-pay {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #635bff;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
}

.home-demo-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.15rem 1.2rem;
    flex: 1;
}

.home-demo-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.home-demo-body h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.home-demo-body p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.45;
}

.home-demo-cta {
    margin-top: auto;
    padding-top: 0.55rem;
    font-weight: 700;
    color: var(--blue);
}

.home-demo-card-charleys .home-demo-cta { color: #e11d48; }
.home-demo-card-van .home-demo-cta { color: #1c4499; }
.home-demo-card-rfts .home-demo-cta { color: #1d4ed8; }

.work-demo-study-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.work-demo-study-link {
    padding: 1.35rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.work-demo-study-link h3 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
}

.work-demo-study-link p {
    margin: 0 0 1rem;
    color: var(--text-2);
    font-size: 0.95rem;
}

.work-demo-study-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-demo-section .booking-demo {
    max-width: 760px;
}

.work-capability-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.work-capability-grid li {
    padding: 1.25rem 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.work-capability-grid strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.work-capability-grid span {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.45;
}

.work-flagship {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

.work-flagship .work-card-wrap {
    margin: 0;
}

.work-flagship-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
}

.work-flagship-aside > p {
    color: var(--text-2);
    font-size: 1.05rem;
    margin: 0;
}

.work-flagship-aside ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-2);
    display: grid;
    gap: 0.45rem;
}

.work-flagship-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
}

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

.work-more-sites {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
    padding: 0;
}

.work-more-sites summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 1.25rem 1.5rem;
}

.work-more-sites summary::-webkit-details-marker {
    display: none;
}

.work-more-sites summary strong {
    font-size: 1.15rem;
}

.work-more-sites-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-3);
    font-weight: 600;
}

.work-more-sites-list {
    list-style: none;
    margin: 0;
    padding: 0 1.5rem 1.25rem;
    display: grid;
    gap: 0.65rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.work-more-sites-list a {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
    color: inherit;
}

.work-more-sites-list a:hover {
    background: var(--bg-card);
}

.work-more-sites-list span {
    font-size: 0.9rem;
    color: var(--text-2);
}

.booking-demo-page {
    padding: calc(var(--header-h) + 48px) 0 80px;
}

.booking-demo-page-head {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.booking-demo-page-head h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.85rem;
}

.booking-demo-page-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0 0 1.5rem;
}

.booking-demo-page-widget {
    max-width: 760px;
}

.case-study-meta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .work-capability-grid,
    .work-flagship,
    .work-grid-systems,
    .work-demo-cards,
    .work-demo-study-links {
        grid-template-columns: 1fr;
    }

    .work-more-sites-count {
        margin-left: 0;
    }
}

.case-studies-cta p {
    color: var(--text-2);
    margin: 0 0 1.25rem;
}

.case-study-page {
    padding: calc(var(--header-h) + 32px) 0 80px;
}

.case-study-hero {
    margin-bottom: 2.5rem;
}

.case-study-hero-media {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 220px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin: 1.25rem 0 1.5rem;
}

.case-study-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(15, 26, 46, 0.1) 0%, rgba(15, 26, 46, 0.75) 100%);
    color: #fff;
}

.case-study-hero-overlay .work-category {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.case-study-hero-overlay h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.5rem;
    color: #fff;
}

.case-study-hero-overlay p {
    margin: 0;
    max-width: 640px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.case-study-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.case-study-meta-bar dl {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin: 0;
}

.case-study-meta-bar dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 0.15rem;
}

.case-study-meta-bar dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.case-study-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.case-study-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.case-study-content h2:first-child {
    margin-top: 0;
}

.case-study-content p {
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.case-study-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.case-study-results li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--text-2);
    line-height: 1.55;
}

.case-study-results li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
}

.case-study-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.case-study-sidebar-card {
    padding: 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.case-study-sidebar-card h3 {
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.case-study-sidebar-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.case-study-sidebar-card li {
    font-size: 0.88rem;
    color: var(--text-2);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.case-study-sidebar-card li:last-child {
    border-bottom: 0;
}

.case-study-sidebar-card p {
    font-size: 0.88rem;
    color: var(--text-2);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.case-study-sidebar-card .btn {
    width: 100%;
    text-align: center;
}

.case-study-more {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.case-study-more h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.case-study-more-link {
    margin-top: 1.25rem;
    text-align: center;
}

.case-study-more-link a {
    font-weight: 600;
}

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

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

    .case-study-sidebar {
        position: static;
    }

    .work-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .case-study-meta-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .case-study-meta-bar .btn {
        width: 100%;
        text-align: center;
    }

    .work-grid-compact {
        grid-template-columns: 1fr;
    }
}

/* ---- Clients strip ---- */
.clients-section {
    padding-top: 0;
    padding-bottom: 48px;
}

.clients-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin: 0 0 1rem;
}

.clients-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.client-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.client-pill:hover {
    color: var(--blue);
    border-color: rgba(0, 97, 255, 0.25);
    box-shadow: var(--shadow-sm);
}

/* ---- Process ---- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.process-grid-page {
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

.process-step {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.process-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.process-step h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.process-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-2);
}

/* ---- FAQ ---- */
.faq-home,
.faq-page-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.15rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    color: var(--text-1);
    cursor: pointer;
}

.faq-question:hover { color: var(--blue); }

.faq-chevron {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: var(--text-3);
    transition: transform 0.2s ease;
}

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

.faq-answer {
    padding: 0 1.15rem 1rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-2);
}

.faq-more {
    text-align: center;
    margin: 1.5rem 0 0;
    font-weight: 600;
}

.faq-more a:hover { color: var(--blue); }

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pricing-card-featured {
    border-color: rgba(0, 97, 255, 0.3);
    box-shadow: var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--blue);
    border-radius: 999px;
}

.pricing-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.pricing-price {
    margin: 0 0 0.75rem;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-3);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-2);
    margin: 0 0 1rem;
    line-height: 1.55;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-2);
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

/* ---- Testimonial links ---- */
a.testimonial-link {
    text-decoration: none;
    color: inherit;
}

a.testimonial-link blockquote {
    margin: 0;
}

.reviews-cta {
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-2);
    background: var(--blue-soft);
    border: 1px solid rgba(0, 97, 255, 0.15);
    border-radius: var(--radius);
}

.reviews-cta p { margin: 0; }
.reviews-cta a { color: var(--blue); }

/* ---- Footer contact ---- */
.footer-address,
.footer-phone {
    font-size: 0.85rem;
    color: var(--text-3);
    line-height: 1.55;
    margin: 0.75rem 0 0;
}

.footer-phone a:hover { color: var(--blue); }

/* ---- Tech tags ---- */
.tech-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tags li {
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 999px;
}

/* ---- 404 ---- */
.error-page {
    padding: calc(var(--header-h) + 80px) 0 100px;
    min-height: 70vh;
}

.error-content {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.error-code {
    font-size: clamp(4rem, 12vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: var(--blue-soft);
    margin: 0 0 0.5rem;
}

.error-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.75rem;
}

.error-lead {
    color: var(--text-2);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.error-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.error-links a:hover { color: var(--blue); }

/* ---- Status / redirect pages (e.g. GoCardless) ---- */
.status-page {
    padding: calc(var(--header-h) + 64px) 0 100px;
    min-height: 70vh;
}

.status-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
}

.status-icon-success {
    color: #059669;
    background: rgba(5, 150, 105, 0.12);
}

.status-icon-neutral {
    color: var(--text-3);
    background: rgba(102, 112, 133, 0.12);
}

.status-card .section-tag {
    margin-bottom: 0.75rem;
}

.status-card h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.85rem;
}

.status-lead {
    color: var(--text-2);
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

.status-points {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    text-align: left;
}

.status-points li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.35rem;
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
}

.status-points li:last-child {
    border-bottom: 0;
}

.status-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
}

.status-ref {
    margin: 0 0 1.5rem;
    font-size: 0.85rem;
    color: var(--text-3);
}

.status-ref code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: var(--text-1);
    word-break: break-all;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ---- Cookie banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}

.cookie-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-2);
    max-width: 52ch;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ---- WhatsApp float ---- */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    color: #fff;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: #fff;
}

body:has(.cookie-banner:not([hidden])) .whatsapp-float {
    bottom: 5.5rem;
}

/* ---- Scroll reveal ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .hero {
        min-height: 0;
        padding-bottom: 48px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-mosaic {
        max-width: 520px;
    }

    .hero-demo-stack {
        min-height: 320px;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-demo-frame-rfts { right: 4%; }
    .hero-demo-frame-charleys { right: 2%; }

    .home-demos-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner,
    .managed-split,
    .about-grid,
    .contact-grid,
    .core-grid,
    .process-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-head-row {
        grid-template-columns: 1fr;
    }

    .section-desc-right {
        text-align: left;
        margin-left: 0;
        max-width: none;
    }


    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 24px 1.5rem;
    }

    .nav-links a:not(.btn) {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 0.75rem 0.5rem 0.75rem 1.25rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav-cta { margin: 0.75rem 0 0; }
    .nav-cta .btn { width: 100%; }

    .services-grid,
    .work-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }


    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-banner-actions .btn {
        flex: 1;
    }
}
