/* ============================================================
   ImoSoft Solutions — Apple-inspired light theme
   ============================================================ */

:root {
    /* ImoSoft brand palette — derived from the cyan/sky-blue logo */
    --bg: #ffffff;
    --bg-alt: #eef9fb;       /* very pale cyan wash */
    /* Subtle vertical gradient on cards (white → off-white) creates a
       "lit from above" feel that pairs with the inset-top highlight in
       shadow vars to give every card a soft 3D depth. */
    --bg-card: linear-gradient(180deg, #ffffff 0%, #fafcfd 100%);
    --bg-card-solid: #ffffff;
    --text: #0e3742;         /* deep teal (brand-family dark) */
    --text-soft: #3f5963;    /* slate with cyan undertone */
    --text-light: #8aa1aa;
    --border: #d6e6ea;       /* light cyan-gray */
    --border-soft: rgba(14, 55, 66, 0.08);

    /* Dark tiles — deep teal instead of navy */
    --dark-bg: #0e3742;
    --dark-bg-2: #144a5a;
    --dark-text: #f3fbfc;
    --dark-text-soft: rgba(243, 251, 252, 0.74);
    --dark-text-mute: rgba(243, 251, 252, 0.55);
    --dark-border: rgba(255, 255, 255, 0.12);
    --dark-card: rgba(255, 255, 255, 0.06);

    /* Brand cyan accents — sampled from logo */
    --c-cyan: #3dafc0;       /* "Solutions" text — medium cyan (primary) */
    --c-cyan-light: #7dd2db;  /* "ImoSoft" wordmark — light cyan */
    --c-teal-deep: #0e3742;   /* deep teal for headlines */
    --accent: #2a98a8;       /* slightly deeper than brand cyan for accessibility on white */
    --accent-hover: #1e7a87;
    --accent-warm: #2a98a8;   /* legacy var — stays brand cyan */
    --grad-primary: linear-gradient(135deg, #2a98a8 0%, #7dd2db 100%);
    --grad-soft: linear-gradient(180deg, rgba(125, 210, 219, 0.18) 0%, rgba(255, 255, 255, 0) 100%);
    --glow-blue: 0 12px 40px rgba(42, 152, 168, 0.18);
    --glow-violet: 0 12px 40px rgba(42, 152, 168, 0.18);
    --glow-cyan: 0 12px 40px rgba(42, 152, 168, 0.22);

    /* 3D card shadows — multi-layered + inset top highlight for depth.
       Layers (top → bottom):
         1. inset top highlight: subtle white line simulating light from above
         2. tight near shadow: crisp edge
         3. mid shadow: soft falloff
         4. far shadow: ambient depth */
    --shadow-sm:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(14, 55, 66, 0.04),
        0 4px 10px rgba(14, 55, 66, 0.06),
        0 14px 28px rgba(14, 55, 66, 0.05);

    --shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(14, 55, 66, 0.05),
        0 8px 18px rgba(14, 55, 66, 0.08),
        0 24px 48px rgba(14, 55, 66, 0.10);

    --shadow-glow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 4px 10px rgba(42, 152, 168, 0.12),
        0 16px 38px rgba(42, 152, 168, 0.18),
        0 30px 60px rgba(42, 152, 168, 0.10);

    /* Radii / type */
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-pill: 980px;
    --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Monaco, "Courier New", monospace;
    --max: 1100px;
    --section-y: 120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;   /* clear the fixed 128px nav on anchor jumps */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    /* Subtle white → pale cyan wash, matching the brand */
    background: linear-gradient(180deg, #ffffff 0%, #ecf7f9 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text);
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.011em;
    font-weight: 400;
}

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
}

.display { font-weight: 800; letter-spacing: -0.045em; }
.headline { font-weight: 700; letter-spacing: -0.03em; }

p { color: var(--text-soft); }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; }

/* ============================================================
   Typography
   ============================================================ */

/* Eyebrow — plain mono-uppercase brand-cyan label, no decoration */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    background: none;
    border: 0;
    padding: 0;
    margin: 0 auto 24px;
    box-shadow: none;
}

.eyebrow::before { content: none; }

.section-head .eyebrow { display: inline-flex; }

/* Plain eyebrow variant — no decorative line, centered as a block */
.eyebrow--plain {
    display: block;
    text-align: center;
}
.eyebrow--plain::before { content: none; }

h1, h2, h3, h4 {
    margin: 0 0 16px;
    letter-spacing: -0.035em;
    line-height: 1.07;
    color: var(--text);
    font-weight: 600;
}

.display {
    font-size: clamp(40px, 7.5vw, 88px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0;
}

.headline {
    font-size: clamp(27px, 4.2vw, 46px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.subhead {
    font-size: clamp(19px, 1.6vw, 24px);
    line-height: 1.4;
    color: var(--text-soft);
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto;
}

.tile-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 12px;
}

.tile-eyebrow {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-soft);
    margin: 0 0 6px;
}

/* ============================================================
   Layout
   ============================================================ */

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
}

section { padding: var(--section-y) 0; }

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

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: 128px;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--border-soft);
}

/* Light theme throughout — nav text stays dark */
.nav .nav-brand,
.nav .nav-links a {
    color: var(--text);
    transition: color .3s ease, opacity .15s;
}
.nav.is-scrolled .nav-brand,
.nav.is-scrolled .nav-links a { color: var(--text); }

.nav-links a { font-weight: 500; }

/* Icons next to nav links are mobile-only; hidden by default on desktop */
.nav-icon { display: none; }

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 56px;
}

/* Push only the language switcher to the far right; everything else
   stays grouped close to the logo. */
.nav-lang { margin-left: auto; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.nav-brand img {
    height: 108px;
    width: auto;
    display: block;
    /* Boost saturation + contrast so the cyan logo doesn't wash out on
       the pale cyan hero background, and add a soft cyan glow underneath. */
    filter:
        saturate(1.5)
        contrast(1.08)
        drop-shadow(0 4px 14px rgba(14, 55, 66, 0.22))
        drop-shadow(0 0 24px rgba(42, 152, 168, 0.20));
    transition: filter .3s ease, height .3s ease;
}

/* When the nav scrolls past hero and gets the white frosted bg, the logo
   has more contrast available — back off the filter slightly. */
.nav.is-scrolled .nav-brand img {
    filter: saturate(1.3) contrast(1.05) drop-shadow(0 2px 8px rgba(14, 55, 66, 0.15));
}


.nav-links {
    display: flex;
    gap: 26px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    opacity: 0.88;
    transition: opacity .15s, color .15s;
    letter-spacing: -0.005em;
    white-space: nowrap;
}

.nav-links a:hover { opacity: 1; color: var(--accent); }

/* Active link — current page indicator */
.nav-links a.is-active { color: var(--accent); opacity: 1; }
.nav-links a.is-active:hover { color: var(--accent-hover); }

.nav-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.88;
}
.nav-lang:hover { opacity: 1; }

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    color: var(--text);
    font-size: 18px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    outline: none;
}

.nav-toggle:active { transform: scale(0.96); }

/* Animated bar → X when menu is open */
.nav-toggle .fa-bars { transition: opacity .2s, transform .2s; }
.nav-toggle.is-open .fa-bars::before { content: "\f00d"; }   /* fa-xmark */
.nav-toggle.is-open {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* ============================================================
   Mobile nav (≤ 1000px) — hamburger + slide-in menu.
   Raised from 820px so the longer German labels don't cramp or wrap.
   Placed AFTER the base .nav-links / .nav-toggle rules so the mobile
   `display: none` overrides the desktop `display: flex` at small sizes. */
@media (max-width: 1000px) {
    .nav { height: 104px; }
    .nav-brand img { height: 80px; }
    .nav-inner { padding: 0 20px; gap: 0; }

    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-lang { margin-left: 0; }

    /* Slide-in side panel from the right — compact */
    .nav-links.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 104px;
        right: 0;
        /* Do NOT use bottom:0 — when .nav has backdrop-filter (.is-scrolled),
           it becomes a new containing block for fixed children, making
           bottom:0 mean "nav bottom" (0 height). Use explicit height instead. */
        bottom: auto;
        height: calc(100vh - 104px);
        height: calc(100dvh - 104px); /* dynamic viewport on mobile */
        left: auto;
        width: min(82vw, 260px);
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(24px);
        -webkit-backdrop-filter: saturate(180%) blur(24px);
        padding: 12px 10px 20px;
        border-top: 1px solid var(--border-soft);
        border-left: 1px solid var(--border-soft);
        box-shadow: -16px 0 40px rgba(14, 55, 66, 0.16);
        overflow-y: auto;
        /* fill-mode:forwards keeps opacity:1 after animation ends */
        animation: nav-slide .28s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        opacity: 1;
        z-index: 95;
    }

    .nav-links.is-open li {
        padding: 0;
        border: 0;
        list-style: none;
    }

    /* Each menu item: icon + label + chevron, top-to-bottom single column */
    .nav-links.is-open a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 16px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        opacity: 1;
        width: 100%;
        border-radius: 10px;
        border: 1px solid transparent;
        white-space: nowrap;
        min-height: 50px;
        transition: background .2s ease, border-color .2s ease, color .2s ease;
    }

    .nav-links.is-open a:hover,
    .nav-links.is-open a:active {
        background: var(--bg-alt);
        border-color: var(--border);
        color: var(--accent);
    }

    /* Compact icon chip */
    .nav-links.is-open .nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: var(--bg-alt);
        color: var(--accent);
        font-size: 13px;
        flex-shrink: 0;
        transition: background .2s ease, color .2s ease;
    }

    .nav-links.is-open a:hover .nav-icon,
    .nav-links.is-open a:active .nav-icon {
        background: var(--accent);
        color: #ffffff;
    }

    /* Label takes available space */
    .nav-links.is-open a > span {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    /* Chevron at right */
    .nav-links.is-open a::after {
        content: "›";
        font-size: 20px;
        line-height: 1;
        color: var(--text-light);
        flex-shrink: 0;
        transition: transform .2s ease, color .2s ease;
    }
    .nav-links.is-open a:hover::after {
        color: var(--accent);
        transform: translateX(3px);
    }

    /* Language toggle — centered at bottom */
    .nav-links.is-open li:last-child {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-soft);
        display: flex;
        justify-content: center;
    }
    .nav-links.is-open .nav-lang {
        margin: 0;
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--bg-alt);
        border: 1px solid var(--border);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        font-size: 16px;
        opacity: 1;
        transition: background .2s ease, border-color .2s ease, transform .2s ease;
    }
    .nav-links.is-open .nav-lang::after { content: none; }
    .nav-links.is-open .nav-lang:hover,
    .nav-links.is-open .nav-lang:active {
        background: var(--accent);
        border-color: var(--accent);
        transform: scale(1.05);
    }
    /* Reset the flag span — let flag-icons library size it via em */
    .nav-links.is-open .nav-lang span {
        display: inline-block;
        width: 1.33em;               /* ≈ 21px at 16px font */
        height: 1em;                 /* ≈ 16px at 16px font */
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        line-height: 1;
    }
}

@keyframes nav-slide {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
    .nav { height: 92px; }
    .nav-brand img { height: 68px; }
    .nav-links.is-open { top: 92px; width: min(86vw, 260px); left: auto; height: calc(100vh - 92px); height: calc(100dvh - 92px); }
}

/* Backdrop behind the slide-in menu — taps to close */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 55, 66, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    cursor: pointer;
}

.nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

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

.hero {
    padding: 160px 22px 100px;
    text-align: center;
    background:
        radial-gradient(ellipse 1100px 600px at top, rgba(125, 210, 219, 0.30) 0%, transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #ecf7f9 100%);
    color: var(--text);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Soft cyan glow blob */
.hero::before {
    content: "";
    position: absolute;
    width: 700px; height: 700px;
    top: -180px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(42, 152, 168, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Subtle dot grid overlay (teal-tinted) */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(14, 55, 66, 0.06) 1px, transparent 0);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content { max-width: 980px; margin: 0 auto; position: relative; z-index: 2; }

/* Hero eyebrow — plain wordmark, no decorative line.
   Used by service-page heroes; the homepage hero uses .hero-logo instead. */
.hero-eyebrow {
    font-family: var(--font-stack);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 28px;
    text-transform: none;
    letter-spacing: -0.005em;
    display: inline-block;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-eyebrow::before { content: none; }

/* Hero logo — the brand mark sits prominently above the display headline */
.hero-logo {
    display: flex;
    justify-content: center;
    margin: 0 0 32px;
}

.hero-logo img {
    height: 120px;
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 28px rgba(42, 152, 168, 0.18));
}

@media (max-width: 700px) {
    .hero-logo img { height: 96px; }
    .hero-logo { margin: 0 0 24px; }
}

.hero h1 {
    color: var(--text);
    margin-bottom: 28px;
    font-size: clamp(44px, 7.8vw, 96px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero .subhead { color: var(--text-soft); margin: 0 auto 40px; max-width: 680px; }

/* Gradient text — subtle teal gradient */
.grad {
    background: linear-gradient(180deg, #0e3742 0%, #2a98a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.display.grad { filter: none; }

.cta-row {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    border: 0;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    text-decoration: none;
    white-space: nowrap;
}

/* Primary CTA — deep teal pill, cyan hover (brand-aligned) */
.btn--primary {
    background: var(--text);
    color: #fff;
    box-shadow: 0 6px 20px rgba(14, 55, 66, 0.22);
    transition: background .25s, box-shadow .3s, transform .15s;
}
.btn--primary:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(42, 152, 168, 0.32);
    transform: translateY(-1px);
}

/* Secondary CTA — white outlined pill */
.btn--ghost {
    background: #ffffff;
    color: var(--text);
    padding: 12px 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
    color: var(--text);
    text-decoration: none;
    border-color: var(--text);
    background: #ffffff;
    transform: translateY(-1px);
}

.hero .btn--ghost,
.page-hero .btn--ghost {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
}
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover {
    color: var(--text);
    background: #ffffff;
    border-color: var(--text);
}

.btn--dark {
    background: var(--text);
    color: #fff;
    box-shadow: 0 6px 20px rgba(14, 55, 66, 0.22);
}
.btn--dark:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.btn--lg { padding: 14px 28px; font-size: 18px; }

.btn .arrow { transition: transform .2s; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Section heading row
   ============================================================ */

.section-head {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 64px;
}

.section-head h2 { margin: 0 0 16px; }

.section-head .subhead { margin: 0 auto; }

/* ============================================================
   Tile grid (Apple product-style tiles)
   ============================================================ */

.tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

.tile {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 152, 168, 0.30);
}

.tile--wide { grid-column: 1 / -1; }

.tile--dark {
    background:
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.18), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.14), transparent 55%),
        var(--dark-bg);
    color: var(--dark-text);
    border-color: var(--dark-border);
}
.tile--dark:hover {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: var(--glow-violet);
}
.tile--dark .tile-title { color: var(--dark-text); }
.tile--dark .tile-eyebrow { color: var(--dark-text-mute); }
.tile--dark .tile-body { color: var(--dark-text-soft); }
.tile--dark .tile-cta { color: #7dd2db; }

.tile-body {
    font-size: 19px;
    line-height: 1.42;
    color: var(--text-soft);
    margin: 0 0 24px;
}

.tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 17px;
    font-weight: 400;
    margin-top: auto;
    justify-self: center;
}

.tile-cta:hover { text-decoration: underline; }

.tile-visual {
    margin-top: 32px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tile-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
    margin: 24px auto 0;
    box-shadow: 0 18px 50px rgba(59, 130, 246, 0.40);
    position: relative;
}

.tile-icon::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: var(--grad-primary);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.tile--dark .tile-icon { background: var(--grad-primary); }

/* ============================================================
   Services compact grid (small tiles)
   ============================================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: left;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    box-shadow: var(--shadow-sm);
    color: var(--text);
}
.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 152, 168, 0.30);
}

.svc-card h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.svc-card p {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.svc-card .svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--grad-primary);   /* brand cyan gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin: 0 0 24px;
    box-shadow: 0 8px 22px rgba(42, 152, 168, 0.28);
    position: relative;
}

/* Subtle cyan glow halo behind icon */
.svc-card .svc-icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    background: var(--grad-primary);
    filter: blur(16px);
    opacity: 0.35;
    z-index: -1;
}

/* Card top accent line (only visible on hover) */
.svc-card {
    position: relative;
}
.svc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 0 0 4px 4px;
    transition: width .3s ease;
}
.svc-card:hover::before { width: 60%; }
.svc-card .tag {
    border: 1px solid rgba(42, 152, 168, 0.18);
    background: rgba(125, 210, 219, 0.12);
    color: var(--accent-hover);
}

.svc-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.svc-card .tag {
    font-size: 12px;
    color: var(--text-soft);
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 4px 10px;
}

/* ============================================================
   About / Values
   ============================================================ */

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

.about-section .value h3 { color: var(--text); }
.about-section .value p { color: var(--text-soft); }

.value-icon {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(42, 152, 168, 0.25);
}
.value-icon::after { display: none; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 64px auto 0;
}

.value {
    text-align: center;
    padding: 24px;
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--grad-primary);
    box-shadow: 0 14px 32px rgba(59, 130, 246, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin: 0 auto 20px;
    position: relative;
}

.value-icon::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: var(--grad-primary);
    filter: blur(18px);
    opacity: 0.4;
    z-index: -1;
}

.value h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
}

.value p {
    color: var(--text-soft);
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   Stats
   ============================================================ */

.stats-section {
    background: var(--bg-alt);
    padding: 96px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px;
}

.stat {
    text-align: center;
    padding: 24px 12px;
}

.stat-num {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 8px;
}

.stat-label {
    color: var(--text-soft);
    font-size: 16px;
    font-weight: 400;
}

/* ============================================================
   Approach (sticky scroll pinned headline)
   ============================================================ */

.approach {
    background: var(--bg);
}

.approach .step h3 { color: var(--text); }
.approach .step p { color: var(--text-soft); }
.approach .step-num { color: var(--accent); font-weight: 600; }
.approach .step { border-top-color: var(--border); }

.approach-inner {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 60px;
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--section-y) 22px;
    align-items: start;
}

.approach-sticky {
    position: sticky;
    top: 96px;
}

.approach-sticky h2 { margin-bottom: 16px; }

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    border-top: 1px solid var(--border);
    padding: 32px 0 0;
}

.step-num {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 12px;
    letter-spacing: 0.04em;
}

.step h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
}

.step p {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
    max-width: 580px;
}

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

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

.contact-info h2 { color: var(--text); }
.contact-meta-label { color: var(--text-light); font-weight: 500; }
.contact-meta-value { color: var(--text); }
.contact-meta-icon {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(42, 152, 168, 0.22);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px;
}

.contact-info h2 { margin-bottom: 24px; }
.contact-info .subhead {
    text-align: left;
    margin: 0 0 36px;
    font-size: 19px;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.contact-meta-label {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 500;
    text-transform: none;
}

.contact-meta-value {
    font-size: 17px;
    color: var(--text);
    font-weight: 500;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-row a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, color .2s, border-color .2s, background .2s;
}

.social-row a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-card .field label { color: var(--text-soft); font-weight: 500; }
.form-card .field input,
.form-card .field select,
.form-card .field textarea {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
}
.form-card .field input::placeholder,
.form-card .field textarea::placeholder { color: var(--text-light); }
.form-card .field input:focus,
.form-card .field select:focus,
.form-card .field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
    background: #ffffff;
}
.form-card .consent { color: var(--text-soft); }
.form-card .consent a { color: var(--accent); }

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

.field label {
    display: block;
    font-size: 13px;
    color: var(--text-soft);
    margin: 0 0 6px;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    background: #fffdf8;
    transition: border-color .15s, box-shadow .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

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

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
    margin: 16px 0 24px;
}

.consent input { margin-top: 3px; }

.form-msg {
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 14px;
    display: none;
}
.form-msg--success { background: rgba(52, 199, 89, 0.12); color: #1f7a39; display: block; }
.form-msg--error { background: rgba(255, 59, 48, 0.12); color: #b3261e; display: block; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
    background: var(--text);          /* navy */
    padding: 64px 0 36px;
    border-top: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.66);
}

.footer .nav-brand { color: #ffffff; }
.footer .footer-col h5 {
    color: rgba(255, 255, 255, 0.50);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
}
.footer .footer-col a { color: rgba(255, 255, 255, 0.72); }
.footer .footer-col a:hover { color: #ffffff; }
.footer .footer-col p { color: rgba(255, 255, 255, 0.58); }
.footer .footer-bottom {
    color: rgba(255, 255, 255, 0.42);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.footer .social-row a {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: none;
}
.footer .social-row a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.30);
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px 32px;
}

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--text-soft);
    font-size: 14px;
}
.footer-col a:hover { color: var(--text); }

.footer-col p { color: var(--text-soft); }

.footer-bottom {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 22px 0;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================================
   Scroll Animations
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(0.32, 0.72, 0, 1), transform .8s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

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

@media (max-width: 900px) {
    :root { --section-y: 80px; }

    .tiles { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .approach-inner { grid-template-columns: 1fr; gap: 32px; }
    .approach-sticky { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .tile { padding: 40px 28px; min-height: 420px; }
    .form-card { padding: 24px; }
    .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .hero { padding: 120px 22px 48px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Respect users' motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   Service-page specifics (AI Services + Software Services)
   ============================================================ */

.page-hero {
    padding: 180px 22px 100px;
    text-align: center;
    background:
        radial-gradient(ellipse 900px 500px at top, rgba(125, 210, 219, 0.30) 0%, transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #ecf7f9 100%);
    color: var(--text);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    width: 680px; height: 680px;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(42, 152, 168, 0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.page-hero .wrap { position: relative; z-index: 2; max-width: 880px; }
.page-hero h1 { color: var(--text); }
.page-hero .subhead { color: var(--text-soft); }
.page-hero .trust-row { color: var(--text-soft); }
.page-hero .trust-row i { color: #16a34a; }

.problem-card,
.result-card,
.case-card,
.pillar-card,
.faq-item {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    color: var(--text);
}

.problem-card h3, .result-card h3, .case-card h3, .pillar-card h3 { color: var(--text); }
.problem-card p, .result-card p, .pillar-card > p { color: var(--text-soft); }
.case-card .case-sub, .case-card .case-body { color: var(--text-soft); }
.case-card .case-lead { color: var(--text); }
.pillar-list li { color: var(--text); }
.pillar-tags .tag { color: var(--text-soft); background: var(--bg-alt); border: 1px solid var(--border-soft); }
.case-metrics { border-top-color: var(--border); }
.case-metric span { color: var(--text-light); }
.problem-card .icon, .pillar-card .pillar-icon {
    background: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(42, 152, 168, 0.25);
}
.result-card .icon {
    background: var(--grad-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(42, 152, 168, 0.28);
}
.pillar-card .pillar-icon::after { display: none; }

.problem-grid,
.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.problem-card .icon,
.result-card .icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--grad-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.30);
}

.result-card .icon {
    background: var(--grad-primary);
    box-shadow: 0 10px 24px rgba(42, 152, 168, 0.30);
}

.problem-card,
.result-card,
.case-card,
.pillar-card,
.faq-item {
    border: 1px solid var(--border-soft);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.problem-card:hover,
.result-card:hover,
.case-card:hover,
.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(59, 130, 246, 0.25);
}

.problem-card h3, .result-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.problem-card p, .result-card p {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.result-num {
    font-size: clamp(40px, 4.5vw, 60px);
    font-weight: 700;
    letter-spacing: -0.04em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin: 0 0 8px;
}

.case-metric strong {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.case-card { padding: 44px 36px; }

.case-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--grad-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    border: 1px solid rgba(59, 130, 246, 0.20);
}

.case-card h3 {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.025em;
}

.case-card .case-sub {
    color: var(--text-soft);
    font-size: 14px;
    margin: 0 0 16px;
}

.case-card .case-lead {
    font-size: 19px;
    line-height: 1.4;
    color: var(--text);
    margin: 0 0 14px;
    font-weight: 500;
}

.case-card .case-body {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 24px;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.case-metric strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), #5e5ce6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.case-metric span {
    display: block;
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 2px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.pillar-card {
    padding: 48px 40px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.pillar-card .pillar-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 28px;
    margin: 0 0 24px;
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.35);
    position: relative;
}

.pillar-card .pillar-icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 21px;
    background: var(--grad-primary);
    filter: blur(22px);
    opacity: 0.45;
    z-index: -1;
}

.pillar-card h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
}

.pillar-card > p {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pillar-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.45;
}

.pillar-list li i {
    color: var(--accent);
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
}

.pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
}

.pillar-tags .tag {
    font-size: 12px;
    color: var(--text-soft);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    padding: 4px 10px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 22px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    padding: 22px 28px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    letter-spacing: -0.015em;
    transition: background .15s;
}
.faq-q:hover { background: rgba(10, 37, 64, 0.02); }
.faq-a { color: var(--text-soft); }
.faq-item { border: 1px solid var(--border); }

.faq-q .chev { transition: transform .25s; color: var(--text-soft); }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }

.faq-a {
    padding: 0 28px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.55;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .25s;
}

.faq-item.is-open .faq-a {
    padding: 0 28px 24px;
    max-height: 600px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;
    max-width: 880px;
    margin: 32px auto 0;
    font-size: 14px;
    color: var(--text-soft);
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-row i {
    color: #16a34a;
}

.tile-large-link {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    overflow: hidden;
    min-height: 480px;
    position: relative;
    color: var(--text);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* Editorial left-border accent on cards that need extra emphasis */
.tile-large-link.tile--accent {
    border-left: 4px solid var(--accent);
}

/* ============================================================
   Bento tile enhancements — stats row, pillar grid, dot pattern
   ============================================================ */

/* Subtle dot grid pattern over the dark AI tile */
.tile-dotgrid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 80% 60% at 70% 50%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 50%, black 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Stats row on the AI tile */
.tile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 24px 0 28px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    text-align: left;
}

.tile-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tile-stat strong {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #7dd2db;            /* light brand cyan pops on the dark teal */
    line-height: 1;
}

.tile-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.35;
}

/* 2×2 pillar mini-grid on the Software Services tile */
.tile-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 28px;
}

.pillar-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbfc 100%);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    text-align: left;
}

.tile-large-link:hover .pillar-mini {
    border-color: rgba(42, 152, 168, 0.30);
}

.pillar-mini-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--grad-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 6px 14px rgba(42, 152, 168, 0.25);
}

.pillar-mini-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* Bento callout — calculator card with icon + badge */
.bento-callout-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--grad-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 12px 28px rgba(42, 152, 168, 0.28);
    margin-right: 8px;
    position: relative;
}
.bento-callout-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: var(--grad-primary);
    filter: blur(18px);
    opacity: 0.35;
    z-index: -1;
}

.bento-callout-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.callout-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(125, 210, 219, 0.18);
    border: 1px solid rgba(42, 152, 168, 0.30);
    line-height: 1;
}

.callout-badge-num {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.callout-badge-unit {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent-hover);
    margin-top: 4px;
}

@media (max-width: 900px) {
    .tile-stats { gap: 12px; padding: 16px 0; margin: 18px 0 22px; }
    .tile-pillars { grid-template-columns: 1fr 1fr; }
    .bento-callout-icon { width: 52px; height: 52px; font-size: 22px; }
    .bento-callout-side { align-items: flex-start; }
}

@media (max-width: 540px) {
    .tile-stats { grid-template-columns: 1fr; gap: 14px; }
    .tile-stats .tile-stat { flex-direction: row; align-items: baseline; gap: 10px; }
    .tile-pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   Bento layout — mixed tile sizes, services section
   ============================================================ */

.bento {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero cell — large, spans 3 cols and full 2 rows */
.bento-cell--hero {
    grid-column: span 3;
    grid-row: span 2;
    min-height: 540px;
}

/* Tall cell — 2 cols, 2 rows tall */
.bento-cell--tall {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 540px;
}

/* Wide cell — full width, single row */
.bento-cell--wide {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 220px;
}

/* Calculator callout — horizontal split layout (text left, CTA right) */
.bento-callout {
    background: linear-gradient(120deg, var(--bg-card) 60%, rgba(30, 64, 175, 0.06) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    min-height: 0;
}

.bento-callout:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(30, 64, 175, 0.30);
    color: var(--text);
}

.bento-callout-text { flex: 1; }
.bento-callout .tile-title { font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 8px; }
.bento-callout .tile-body { margin-bottom: 0; }
.bento-callout .tile-cta {
    color: var(--accent);
    font-size: 17px;
    white-space: nowrap;
    margin-top: 0;
    align-self: center;
}

@media (max-width: 900px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-cell--hero,
    .bento-cell--tall,
    .bento-cell--wide {
        grid-column: 1;
        grid-row: auto;
        min-height: 440px;
    }
    .bento-callout {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
        padding: 28px;
    }
}

/* ============================================================
   Services grid — 4-column variant for the detailed 8-card section
   ============================================================ */

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

@media (max-width: 1100px) {
    .services-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
    .services-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .services-grid--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Technologies We Master — logo grid
   ============================================================ */

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

.tech-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
}

.tech-logo {
    aspect-ratio: 1;
    background:
        linear-gradient(180deg, #ffffff 0%, #f0fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Soft cyan glow that appears on hover */
.tech-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(125, 210, 219, 0.30) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.tech-logo:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.tech-logo:hover::before { opacity: 1; }

.tech-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: filter .25s, opacity .25s;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .tech-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Data Protection & Compliance badges
   ============================================================ */

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
}

.compliance-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.compliance-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(30, 64, 175, 0.25);
}

.compliance-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(42, 152, 168, 0.25);
}

.compliance-badge h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.compliance-badge p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 820px) {
    .compliance-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .compliance-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Location — map + transport cards
   ============================================================ */

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
    align-items: stretch;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    min-height: 520px;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    filter: grayscale(0.2) contrast(1.05);
}

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

.transport-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.transport-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 64, 175, 0.25);
    box-shadow: var(--shadow);
}

.transport-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--bg-alt);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.transport-card h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 6px;
}

.transport-card p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .location-grid { grid-template-columns: 1fr; }
    .location-map { min-height: 320px; }
    .location-map iframe { min-height: 320px; }
}
@media (max-width: 540px) {
    .transport-grid { grid-template-columns: 1fr; }
}

.tile-large-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.tile-large-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    color: var(--text);
    border-color: rgba(15, 118, 110, 0.35);
}
.tile-large-link:hover::before { opacity: 1; }
.tile-large-link > * { position: relative; z-index: 1; }

/* AI tile uses deep teal (brand-family) to anchor the page */
.tile-large-link.tile--dark {
    background: linear-gradient(180deg, #0e3742 0%, #144a5a 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}
.tile-large-link.tile--dark:hover {
    color: #ffffff;
    border-color: rgba(125, 210, 219, 0.40);
    box-shadow: 0 22px 50px rgba(14, 55, 66, 0.30);
}
.tile-large-link.tile--dark .tile-title { color: #ffffff; }
.tile-large-link.tile--dark .tile-body { color: rgba(255, 255, 255, 0.74); }
.tile-large-link.tile--dark .tile-cta { color: #7dd2db; }
.tile-large-link.tile--dark .tile-eyebrow { color: rgba(255, 255, 255, 0.55); }

/* ============================================================
   Journey timeline cards (about section)
   ============================================================ */

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.journey-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    color: var(--text);
}

.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 152, 168, 0.30);
}

.journey-card h3 { color: var(--text); }
.journey-card p { color: var(--text-soft); }

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

.journey-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 16px;
}

.journey-card h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.journey-card p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   Team cards (about section)
   ============================================================ */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    color: var(--text);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 152, 168, 0.30);
}

.team-card h3 { color: var(--text); }
.team-card p { color: var(--text-soft); }
.team-tags .tag {
    color: var(--text-soft);
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
}

.team-photo::after {
    box-shadow: inset 0 0 0 2px rgba(30, 64, 175, 0.20),
                0 10px 28px rgba(10, 37, 64, 0.10);
}

.team-photo {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.team-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.4),
                0 12px 32px rgba(59, 130, 246, 0.25);
    pointer-events: none;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-body { flex: 1; min-width: 0; }

.team-meta { margin-bottom: 14px; }

.team-card h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}

.team-role {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-card p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.team-tags .tag {
    font-size: 12px;
    color: var(--text-soft);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    padding: 4px 10px;
}

.team-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--grad-soft);
    border: 1px solid rgba(59, 130, 246, 0.18);
    transition: background .2s ease, transform .2s ease, color .2s ease;
}

.team-social:hover {
    background: var(--grad-primary);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .problem-grid, .result-grid { grid-template-columns: 1fr; }
    .case-grid, .pillar-grid { grid-template-columns: 1fr; }
    .journey-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .team-card { flex-direction: column; align-items: stretch; }
    .team-photo { width: 88px; height: 88px; }
}

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

/* ============================================================
   Trust row — infinite-scroll client logo marquee
   ============================================================ */

.logo-marquee {
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto;
    /* Fade edges so logos slide in/out gracefully */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 72px;
    width: max-content;
    animation: logo-scroll 35s linear infinite;
}

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

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    min-width: 130px;
}

.logo-item img {
    height: 50px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    /* On a light bg we just desaturate + dim slightly so logos sit in harmony,
       then full color on hover. */
    filter: grayscale(1);
    opacity: 0.55;
    transition: opacity .25s ease, filter .25s ease;
}

.logo-item:hover img {
    opacity: 1;
    filter: grayscale(0);
}

@keyframes logo-scroll {
    from { transform: translateX(0); }
    /* Track contains 2x the logos; translate -50% returns to start seamlessly. */
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; }
    .logo-marquee {
        -webkit-mask-image: none;
        mask-image: none;
        overflow-x: auto;
    }
}

/* ============================================================
   Problems section — creative 2×2 card grid with color-coded glows
   ============================================================ */

.problem-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
}

.problem-tile {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px 32px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    box-shadow: var(--shadow-sm);
}

/* Per-category colored glow sitting behind the content */
.problem-tile::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.problem-tile--alarm::before { background: radial-gradient(circle, rgba(239, 68, 68, 0.30) 0%, transparent 70%); }
.problem-tile--time::before  { background: radial-gradient(circle, rgba(245, 158, 11, 0.30) 0%, transparent 70%); }
.problem-tile--maze::before  { background: radial-gradient(circle, rgba(139, 92, 246, 0.30) 0%, transparent 70%); }
.problem-tile--race::before  { background: radial-gradient(circle, rgba(42, 152, 168, 0.40) 0%, transparent 70%); }

.problem-tile > * { position: relative; z-index: 1; }

.problem-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(42, 152, 168, 0.35);
    box-shadow: var(--shadow);
}

.problem-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

/* Big translucent number anchored to the head */
.problem-tile-num {
    font-family: var(--font-mono);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, rgba(14, 55, 66, 0.20) 0%, rgba(42, 152, 168, 0.50) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.problem-tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--text);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 22px rgba(14, 55, 66, 0.22);
}

/* Per-category icon backgrounds (matches the glow color above) */
.problem-tile--alarm .problem-tile-icon { background: linear-gradient(135deg, #dc2626 0%, #f87171 100%); box-shadow: 0 8px 22px rgba(220, 38, 38, 0.30); }
.problem-tile--time  .problem-tile-icon { background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%); box-shadow: 0 8px 22px rgba(217, 119, 6, 0.30); }
.problem-tile--maze  .problem-tile-icon { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); box-shadow: 0 8px 22px rgba(124, 58, 237, 0.30); }
.problem-tile--race  .problem-tile-icon { background: var(--grad-primary); box-shadow: 0 8px 22px rgba(42, 152, 168, 0.30); }

.problem-tile h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--text);
}

.problem-tile p {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 22px;
}

.problem-tile-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

.problem-tile-tag i { font-size: 11px; color: var(--accent); }

@media (max-width: 820px) {
    .problem-cards { grid-template-columns: 1fr; }
    .problem-tile-num { font-size: 36px; }
    .problem-tile h3 { font-size: 20px; }
}

/* ============================================================
   Approach — phase chip + step head
   ============================================================ */

.step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.phase-chip {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(30, 64, 175, 0.20);
    background: rgba(30, 64, 175, 0.06);
}

@media (max-width: 600px) {
    .step-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   KI-Sparrechner specifics
   ============================================================ */

/* Centered 3-column stats variant (for pages with only 3 metrics) */
.stats.stats--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    max-width: 880px;
}

@media (max-width: 700px) {
    .stats.stats--three {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 320px;
    }
}

/* ============================================================
   AI Mind Map — central hub with 7 nodes connected by flowing
   SVG lines. Top row 4 nodes, hub, bottom row 3 nodes.
   ============================================================ */

/* Radial orbital diagram: hub centred, nodes positioned in a ring by JS */
.ai-mindmap {
    position: relative;
    height: 880px;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
}
/* rows are no longer used — kept transparent in case markup includes them */
.ai-mindmap-row { display: contents; }

/* JS-measured neural-network connector layer (built by js/ai-mindmap.js).
   It draws curved bezier paths from the hub icon to every node centre and
   animates glowing data packets travelling outward along them. */
.ai-mindmap-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* Faint static spine — always shows the structure */
.ai-mindmap-net .mm-base {
    fill: none;
    stroke: rgba(42, 152, 168, 0.16);
    stroke-width: 1.5;
}

/* Brighter dashed line that constantly "flows" outward */
.ai-mindmap-net .mm-flow {
    fill: none;
    stroke: rgba(42, 152, 168, 0.45);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2 10;
    animation: mm-dashflow 0.9s linear infinite;
}
@keyframes mm-dashflow { to { stroke-dashoffset: -24; } }

/* Glowing data packets travelling along the paths (positioned by JS) */
.ai-mindmap-net .mm-packet {
    fill: #9fe6ee;
    filter: drop-shadow(0 0 5px rgba(42, 152, 168, 0.95));
}
.ai-mindmap-net .mm-packet-core { fill: #ffffff; }

/* Central hub — a living "AI Automation" brain, absolutely centred */
.ai-mindmap-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 16px 32px 16px 18px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 18px 44px rgba(42, 152, 168, 0.28),
        0 4px 12px rgba(14, 55, 66, 0.10);
}

.ai-mindmap-hub-glow {
    position: absolute;
    inset: -14px;
    border-radius: var(--radius-pill);
    background: radial-gradient(ellipse at center, rgba(42, 152, 168, 0.45) 0%, transparent 70%);
    filter: blur(26px);
    z-index: -1;
    animation: mm-hub-glow 3s ease-in-out infinite;
}
@keyframes mm-hub-glow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.95; transform: scale(1.10); }
}

/* Icon wrapper hosts the pulse rings + rotating conic ring + icon */
.ai-mindmap-hub-iconwrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-mindmap-hub-icon {
    position: relative;
    z-index: 3;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(42, 152, 168, 0.45);
    flex-shrink: 0;
}

/* Rotating conic-gradient ring sweeping behind the icon */
.ai-mindmap-hub-conic {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        transparent 0 38%,
        rgba(42, 152, 168, 0.85) 64%,
        #7dd2db 82%,
        transparent 100%);
    z-index: 1;
    animation: mm-rotate 3.6s linear infinite;
    -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%);
    mask: radial-gradient(circle, transparent 56%, #000 58%);
}
@keyframes mm-rotate { to { transform: rotate(360deg); } }

/* Concentric pulse rings emanating outward from the icon */
.ai-mindmap-hub-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(42, 152, 168, 0.55);
    z-index: 0;
    animation: mm-ring 3s ease-out infinite;
}
.ai-mindmap-hub-ring:nth-child(2) { animation-delay: 1.5s; }
@keyframes mm-ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(3.4); opacity: 0; }
}

.ai-mindmap-hub-label {
    font-family: var(--font-stack);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .ai-mindmap-net .mm-flow { animation: none; }
    .ai-mindmap-hub-conic,
    .ai-mindmap-hub-ring,
    .ai-mindmap-hub-glow { animation: none; }
}

/* Industry nodes — compact icon + label, positioned radially by JS.
   Each is centred on its ring coordinate via translate(-50%,-50%). */
.ai-mindmap-node {
    position: absolute;
    width: 178px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: mm-node-in 0.6s ease forwards;
}
@keyframes mm-node-in { to { opacity: 1; } }

.ai-mindmap-node-icon {
    position: relative;
    width: 74px; height: 74px;
    border-radius: 20px;
    background: var(--grad-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    box-shadow: 0 10px 22px rgba(42, 152, 168, 0.30);
    transition: transform .3s ease, box-shadow .3s ease;
}
.ai-mindmap-node-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: var(--grad-primary);
    filter: blur(14px);
    opacity: 0.32;
    z-index: -1;
}

.ai-mindmap-node h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
}

.ai-mindmap-node p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-soft);
    margin: 0;
}

/* Hover + data-packet "receive" → the icon badge flares */
.ai-mindmap-node:hover .ai-mindmap-node-icon {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 30px rgba(42, 152, 168, 0.42);
}
.ai-mindmap-node.mm-receive .ai-mindmap-node-icon {
    transform: scale(1.14);
    box-shadow:
        0 0 0 6px rgba(42, 152, 168, 0.16),
        0 14px 30px rgba(42, 152, 168, 0.48);
}

/* Responsive — drop the ring, stack into a centred grid below 820px */
@media (max-width: 820px) {
    .ai-mindmap {
        height: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 12px;
        padding: 0 16px;
        max-width: 620px;
    }
    .ai-mindmap-net { display: none; }
    .ai-mindmap-node {
        position: static;
        transform: none;
        width: auto;
        opacity: 1;
        animation: none;
    }
    .ai-mindmap-node:hover .ai-mindmap-node-icon { transform: scale(1.06); }
    .ai-mindmap-hub {
        position: static;
        transform: none;
        grid-column: 1 / -1;
        justify-self: center;
        order: -1;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .ai-mindmap { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
}

/* Business process automation — marketing callout below the ring */
.process-callout {
    position: relative;
    max-width: 1040px;
    margin: 44px auto 0;
    padding: 38px 44px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at top right, rgba(125, 210, 219, 0.30), transparent 60%),
        linear-gradient(135deg, #0e3742 0%, #134e4a 65%, #1c6b78 130%);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 24px 54px rgba(14, 55, 66, 0.30);
}

/* faint moving sheen for life */
.process-callout::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 210, 219, 0.30) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.process-callout-icon {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}
.process-callout-icon i { animation: process-spin 9s linear infinite; }
@keyframes process-spin { to { transform: rotate(360deg); } }

.process-callout-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.process-callout-text h3 {
    color: #ffffff;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 10px;
}
.process-callout-text p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.process-callout-btn {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: #ffffff;
    color: #0e3742;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.process-callout-btn:hover {
    background: #eaf8fa;
    color: #0e3742;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

@media (max-width: 820px) {
    .process-callout {
        flex-direction: column;
        text-align: center;
        padding: 32px 26px;
        gap: 20px;
        margin-top: 48px;
    }
    .process-callout-text { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .process-callout-icon i { animation: none; }
}

/* ============================================================
   "How it works" — 3 step flow with animated data dots
   ============================================================ */

.flow-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
}

.flow-step {
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px 26px;
    text-align: center;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 10px rgba(14, 55, 66, 0.06),
        0 14px 28px rgba(14, 55, 66, 0.05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    border-color: rgba(42, 152, 168, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 22px rgba(14, 55, 66, 0.10),
        0 28px 56px rgba(42, 152, 168, 0.16);
}

.flow-step-badge {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
    box-shadow: 0 10px 22px rgba(42, 152, 168, 0.30);
}

.flow-step-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 8px;
}

.flow-step h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.25;
}

.flow-step p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-soft);
    margin: 0;
}

/* Animated connector between steps */
.flow-connector {
    position: relative;
    flex: 0 0 80px;
    height: 60px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 14px;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(to right, rgba(42, 152, 168, 0.15), rgba(42, 152, 168, 0.55), rgba(42, 152, 168, 0.15));
    border-radius: 2px;
}

.flow-arrowhead {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(42, 152, 168, 0.40));
}

/* The traveling data dots */
.flow-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(42, 152, 168, 0.70);
    transform: translateY(-50%);
    animation: flow-travel 2.4s linear infinite;
}

.flow-dot--1 { animation-delay: 0s;    }
.flow-dot--2 { animation-delay: 0.8s;  }
.flow-dot--3 { animation-delay: 1.6s;  }

@keyframes flow-travel {
    0%   { left: 0%;   opacity: 0; transform: translate(0, -50%) scale(0.5); }
    15%  { opacity: 1; transform: translate(0, -50%) scale(1); }
    85%  { opacity: 1; transform: translate(0, -50%) scale(1); }
    100% { left: 100%; opacity: 0; transform: translate(0, -50%) scale(0.5); }
}

/* Phones — vertical flow, arrows rotate to point down */
@media (max-width: 800px) {
    .flow-steps {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .flow-step { max-width: 480px; width: 100%; }
    .flow-connector {
        flex: 0 0 56px;
        width: 60px;
        height: 56px;
    }
    .flow-line {
        top: 0; bottom: 14px;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, rgba(42, 152, 168, 0.15), rgba(42, 152, 168, 0.55), rgba(42, 152, 168, 0.15));
    }
    .flow-arrowhead {
        right: auto; left: 50%;
        bottom: -4px; top: auto;
        transform: translateX(-50%) rotate(90deg);
    }
    .flow-dot {
        left: 50%; top: 0;
        transform: translateX(-50%);
        animation: flow-travel-vertical 2.4s linear infinite;
    }
    @keyframes flow-travel-vertical {
        0%   { top: 0%;   opacity: 0; transform: translate(-50%, 0) scale(0.5); }
        15%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
        85%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
        100% { top: 100%; opacity: 0; transform: translate(-50%, 0) scale(0.5); }
    }
}

/* ============================================================
   Results header centering + bigger CTA button
   ============================================================ */

.calc-results-header {
    text-align: center;
    margin-bottom: 4px;
}

.calc-results-headline {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 8px;
}

.calc-results-cta-primary {
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(14, 55, 66, 0.25);
}
.calc-results-cta-primary:hover {
    box-shadow: 0 16px 40px rgba(42, 152, 168, 0.35);
}

.calc-results-cta { padding-top: 18px; }
.calc-results-cta .btn { width: auto; max-width: none; }

/* ============================================================
   AI ROI Calculator — modal flow (questions + loading + results)
   ============================================================ */

.calc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.calc-modal.is-open { opacity: 1; visibility: visible; }

.calc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 55, 66, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.calc-modal-dialog {
    position: relative;
    width: min(95vw, 720px);
    height: min(92vh, 760px);
    max-height: 92vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 30px 80px rgba(14, 55, 66, 0.30),
        0 12px 30px rgba(14, 55, 66, 0.15);
    transform: translateY(20px) scale(0.98);
    transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
}
.calc-modal.is-open .calc-modal-dialog { transform: translateY(0) scale(1); }

/* Head — progress bar + step counter + close */
.calc-modal-head {
    position: relative;
    padding: 20px 70px 16px 22px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 14px;
}
.calc-modal-progress {
    flex: 1;
    height: 6px;
    background: var(--bg-alt);
    border-radius: 999px;
    overflow: hidden;
}
.calc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}
.calc-modal-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--grad-primary);
    border-radius: 999px;
    transition: width .35s cubic-bezier(0.32, 0.72, 0, 1);
}
.calc-modal-step {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}
.calc-modal-close {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.calc-modal-close:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
.calc-modal-close:active { transform: scale(0.95); }

/* Body — scrollable content */
.calc-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 32px 24px;
}

/* Question chrome */
.calc-q-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}
.calc-q-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 12px;
}
.calc-q-hint {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0 0 24px;
}
.calc-q-optional {
    font-size: 12px;
    color: var(--text-light);
    margin: 10px 0 0;
}
.calc-q-optional i { color: var(--accent); margin-right: 4px; }

/* Options grid (single + multi select) */
.calc-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}
@media (max-width: 540px) {
    .calc-options { grid-template-columns: 1fr; }
}

.calc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(14, 55, 66, 0.03);
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
.calc-option:hover {
    border-color: rgba(42, 152, 168, 0.40);
    background: rgba(125, 210, 219, 0.06);
}
.calc-option.is-selected {
    border-color: var(--accent);
    background: rgba(125, 210, 219, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 6px 14px rgba(42, 152, 168, 0.15);
}
.calc-option:active { transform: scale(0.99); }

.calc-option-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--bg-alt);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.calc-option.is-selected .calc-option-icon {
    background: var(--accent);
    color: #ffffff;
}

.calc-option-label { flex: 1; }

.calc-option-tick {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 10px;
    flex-shrink: 0;
    transition: background .2s, border-color .2s, color .2s;
}
.calc-option.is-selected .calc-option-tick {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* Text input (textarea) */
.calc-textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: border-color .2s, box-shadow .2s;
}
.calc-textarea::placeholder { color: var(--text-light); }
.calc-textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 3px rgba(42, 152, 168, 0.15);
}

/* Footer with back / next */
.calc-modal-foot {
    padding: 16px 22px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg);
}
.calc-modal-back {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .2s, border-color .2s, background .2s;
}
.calc-modal-back:hover {
    color: var(--text);
    border-color: var(--border);
    background: var(--bg-card);
}
.calc-modal-next {
    margin-left: auto;
}

/* ============================================================
   Loading state
   ============================================================ */

.calc-loading {
    padding: 32px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.calc-loading-orb {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calc-loading-orb-ring,
.calc-loading-orb-ring--2 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    animation: calc-spin 1.6s linear infinite;
}
.calc-loading-orb-ring--2 {
    inset: 14px;
    border-top-color: var(--c-cyan-light);
    border-right-color: var(--c-cyan-light);
    animation-duration: 2.4s;
    animation-direction: reverse;
}
.calc-loading-orb-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 12px 30px rgba(42, 152, 168, 0.40);
    animation: calc-pulse 1.8s ease-in-out infinite;
}
@keyframes calc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes calc-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.calc-loading-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.calc-loading-stages {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.calc-loading-stage {
    font-size: 14px;
    color: var(--text-soft);
    opacity: 0;
    animation: calc-stage-in .5s forwards;
}
.calc-loading-stage i { color: #22c55e; margin-right: 8px; }
@keyframes calc-stage-in {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   Results state
   ============================================================ */

.calc-results { display: flex; flex-direction: column; gap: 24px; }

.calc-results-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}
@media (max-width: 600px) {
    .calc-results-metrics { grid-template-columns: 1fr; }
}
.calc-results-metric {
    padding: 18px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 10px rgba(14, 55, 66, 0.05);
}
.calc-results-metric-num {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
.calc-results-metric-label {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}
.calc-results-metric-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-soft);
    margin-top: 8px;
}
.calc-results-cta-lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-soft);
    text-align: center;
    max-width: 470px;
    margin: 0 auto 4px;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .calc-results-grid { grid-template-columns: 1fr; }
}
.calc-results-col {
    padding: 18px 18px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.calc-results-col h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.calc-results-col--before h3 { color: #b45309; }
.calc-results-col--before h3 i { color: #f59e0b; }
.calc-results-col--after h3  { color: #15803d; }
.calc-results-col--after h3 i { color: #22c55e; }
.calc-results-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.45;
}
.calc-results-col li { padding-left: 18px; position: relative; }
.calc-results-col li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}

.calc-results-quick {
    padding: 18px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(125, 210, 219, 0.12), rgba(42, 152, 168, 0.05));
    border: 1px solid rgba(42, 152, 168, 0.25);
}
.calc-results-quick h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-hover);
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.calc-results-quick h3 i { color: var(--accent); }
.calc-results-quick ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.45;
}
.calc-results-quick li {
    padding-left: 22px;
    position: relative;
}
.calc-results-quick li::before {
    content: "\f0eb"; /* lightbulb */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0; top: 0;
    color: var(--accent);
    font-size: 12px;
}

.calc-results-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
}
.calc-results-cta .btn { width: auto; max-width: 100%; white-space: normal; line-height: 1.35; text-align: center; }
.calc-results-restart {
    background: transparent;
    border: 0;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: color .2s, background .2s;
}
.calc-results-restart:hover {
    color: var(--accent);
    background: var(--bg-alt);
}

/* ============================================================
   Modal — phone tweaks
   ============================================================ */
@media (max-width: 600px) {
    .calc-modal-dialog {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: 0;
    }
    .calc-modal-body { padding: 24px 20px 16px; }
    .calc-modal-foot { padding: 14px 16px; }
    .calc-modal-head { padding: 16px 18px 14px; }
    .calc-q-title { font-size: 20px; }
}

/* ============================================================
   ROI Calculator CTA — primary conversion hook after the results
   ============================================================ */
.roi-cta {
    position: relative;
    max-width: 1120px;
    margin: 80px auto 0;
    padding: 60px 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 56px;
    background:
        radial-gradient(ellipse at 88% 8%, rgba(125, 210, 219, 0.32), transparent 56%),
        linear-gradient(135deg, #0e3742 0%, #134e4a 60%, #1c6b78 125%);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 32px 74px rgba(14, 55, 66, 0.34);
}

/* faint dotted texture fading in from the left */
.roi-cta-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 58%);
            mask-image: linear-gradient(90deg, #000 0%, transparent 58%);
    pointer-events: none;
}

/* soft cyan glow behind the badge */
.roi-cta-glow {
    position: absolute;
    right: -90px;
    top: 50%;
    width: 440px;
    height: 440px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(125, 210, 219, 0.30), transparent 65%);
    pointer-events: none;
}

.roi-cta-body-col {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.roi-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd2db;
}

.roi-cta-title {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #ffffff;
}

.roi-cta-text {
    margin: 0 0 30px;
    max-width: 580px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.80);
}

.roi-cta-btn {
    background: #ffffff;
    color: #0e3742;
    font-weight: 600;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}
.roi-cta-btn:hover {
    background: #ecffff;
    color: #0e3742;
    transform: translateY(-2px);
}
.roi-cta-btn .arrow { transition: transform .2s ease; }
.roi-cta-btn:hover .arrow { transform: translateX(4px); }

/* right side — animated orbit badge (echoes the AI-automation hub motif) */
.roi-cta-visual {
    position: relative;
    z-index: 1;
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
}
.roi-cta-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.roi-cta-ring--1 {
    inset: 0;
    border: 1px dashed rgba(125, 210, 219, 0.40);
    animation: roi-spin 22s linear infinite;
}
.roi-cta-ring--2 {
    inset: 28px;
    border: 1px solid rgba(125, 210, 219, 0.18);
    animation: roi-spin 30s linear infinite reverse;
}
.roi-cta-badge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    background: var(--grad-primary);
    box-shadow:
        0 20px 46px rgba(42, 152, 168, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.40);
}
.roi-cta-badge-num {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}
.roi-cta-badge-unit {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.92);
}

@keyframes roi-spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
    .roi-cta {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 26px;
        text-align: center;
        margin-top: 56px;
    }
    .roi-cta-body-col { max-width: none; }
    .roi-cta-eyebrow { justify-content: center; }
    .roi-cta-text { margin-left: auto; margin-right: auto; }
    .roi-cta-visual { order: -1; margin: 0 auto; width: 168px; height: 168px; }
    .roi-cta-badge { width: 118px; height: 118px; }
    .roi-cta-badge-num { font-size: 46px; }
    .roi-cta-glow { right: 50%; transform: translate(50%, -50%); }
    .roi-cta-dots { -webkit-mask-image: none; mask-image: none; opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .roi-cta-ring { animation: none; }
}

/* ============================================================
   Hero service pillars — minimal AI + Software entry cards
   (replaces the hero CTA buttons; the full bento was removed)
   ============================================================ */
.hero-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 46px auto 0;
}
.hero-svc {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 20px 22px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hero-svc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 152, 168, 0.38);
    color: var(--text);
}
.hero-svc-ico {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--grad-primary);
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(42, 152, 168, 0.30);
}
.hero-svc-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.hero-svc-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.hero-svc-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}
.hero-svc-arrow {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 24px;
    line-height: 1;
    color: var(--accent);
    transition: transform .25s ease;
}
.hero-svc:hover .hero-svc-arrow { transform: translateX(5px); }

.hero-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-soft);
}
.hero-contact:hover { color: var(--accent); }
.hero-contact .arrow { transition: transform .2s ease; }
.hero-contact:hover .arrow { transform: translateX(3px); }

@media (max-width: 640px) {
    .hero-services { grid-template-columns: 1fr; max-width: 420px; gap: 12px; }
    .hero-svc { padding: 16px 18px; }
}

/* ============================================================
   Hero service cards — CTA line + softly highlighted contact link
   ============================================================ */
.hero-svc-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}
.hero-svc:hover .hero-svc-cta { color: var(--accent-hover); }
.hero-svc-cta .arrow { transition: transform .25s ease; }
.hero-svc:hover .hero-svc-cta .arrow { transform: translateX(4px); }

/* Contact link — gently highlighted, but quieter than the two cards */
.hero-contact {
    background: rgba(42, 152, 168, 0.08);
    border: 1px solid rgba(42, 152, 168, 0.30);
    padding: 11px 26px;
    border-radius: var(--radius-pill);
    color: var(--accent);
    font-weight: 600;
}
.hero-contact:hover {
    background: rgba(42, 152, 168, 0.15);
    border-color: rgba(42, 152, 168, 0.55);
    color: var(--accent-hover);
}

/* ============================================================
   Pain strip — compact "cost of standing still" inside KI-Dienstleistungen
   ============================================================ */
.pain-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}
.pain-mini {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pain-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 152, 168, 0.30);
}
.pain-mini-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(42, 152, 168, 0.14), rgba(125, 210, 219, 0.14));
    color: var(--accent);
    font-size: 17px;
    margin-bottom: 14px;
}
.pain-mini h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--text);
}
.pain-mini p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-soft);
    margin: 0;
}
@media (max-width: 900px) { .pain-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pain-strip { grid-template-columns: 1fr; } }

/* ============================================================
   Technologies — two opposite-scrolling marquee rows
   ============================================================ */
.tech-marquee {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.tech-row {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: logo-scroll 88s linear infinite;
}
.tech-row--reverse {
    animation-direction: reverse;
    animation-duration: 82s;
}
.tech-marquee:hover .tech-row { animation-play-state: paused; }
.tech-row .tech-logo {
    flex: 0 0 auto;
    width: auto;
    min-width: 122px;
    height: auto;
    aspect-ratio: auto;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    margin: 4px 0;
}
.tech-row .tech-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.68;
    transition: transform .25s ease, filter .3s ease, opacity .3s ease;
}
.tech-row .tech-logo i {
    font-size: 33px;
    line-height: 38px;
    color: var(--text);
    filter: grayscale(1);
    opacity: 0.68;
    transition: transform .25s ease, filter .3s ease, opacity .3s ease;
}
.tech-row .tech-logo:hover i { transform: scale(1.12); filter: grayscale(0); opacity: 1; }
.tech-row .tech-logo span {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-soft);
    white-space: nowrap;
    transition: color .25s ease;
}
.tech-row .tech-logo:hover img { transform: scale(1.12); filter: grayscale(0); opacity: 1; }
.tech-row .tech-logo:hover span { color: var(--accent); }
@media (max-width: 640px) {
    .tech-row .tech-logo { min-width: 104px; padding: 16px 18px; }
    .tech-row .tech-logo img { width: 32px; height: 32px; }
    .tech-row .tech-logo span { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .tech-row { animation: none; flex-wrap: wrap; justify-content: center; }
    .tech-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   Vorgehen — animated left-rail process timeline (no time-frames)
   ============================================================ */
.timeline {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
    padding: 0 22px;
}
.timeline-spine {
    position: absolute;
    left: 49px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--accent) 6%, var(--accent) 94%, transparent);
    opacity: 0.32;
    overflow: visible;
}
/* a soft light travelling down the spine */
.timeline-spine::after {
    content: "";
    position: absolute;
    left: -1px;
    width: 4px;
    height: 64px;
    border-radius: 4px;
    background: linear-gradient(180deg, transparent, #7dd2db, transparent);
    animation: tl-flow 4.5s linear infinite;
}
@keyframes tl-flow { from { top: -64px; } to { top: 100%; } }

.timeline-item {
    position: relative;
    padding: 0 0 38px 86px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute;
    left: 22px;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(42, 152, 168, 0.42), 0 0 0 6px var(--bg);
    z-index: 2;
}
.timeline-card {
    position: relative;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.timeline-card::before {
    /* little pointer toward the spine */
    content: "";
    position: absolute;
    left: -7px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: var(--bg-card-solid);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
}
.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 152, 168, 0.30);
}
.timeline-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(42, 152, 168, 0.14), rgba(125, 210, 219, 0.14));
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 14px;
}
.timeline-phase {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 7px;
}
.timeline-card h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--text);
}
.timeline-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-soft);
    margin: 0;
}
@media (max-width: 540px) {
    .timeline-spine { left: 33px; }
    .timeline-item { padding-left: 64px; }
    .timeline-marker { left: 8px; width: 50px; height: 50px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .timeline-spine::after { animation: none; display: none; }
}

/* OpenAI mark is a light-grey PNG — render it crisp black (its real monochrome brand) */
.tech-logo[title="OpenAI"] img { filter: brightness(0) !important; }

/* ============================================================
   Testimonials marquee (under the client logos) + logo wordmark fallback
   ============================================================ */
.logo-word {
    display: none;
    font-family: var(--font-stack);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text-light);
    white-space: nowrap;
}

.tstm-marquee {
    overflow: hidden;
    max-width: 1320px;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.tstm-track {
    display: flex;
    width: max-content;
    padding: 8px 0;
    animation: logo-scroll 100s linear infinite;
    animation-direction: reverse;   /* content flows left -> right */
}
.tstm-marquee:hover .tstm-track { animation-play-state: paused; }

.tstm {
    flex: 0 0 auto;
    width: 384px;
    margin-right: 22px;            /* spacing via margin so the -50% loop is seamless */
    box-sizing: border-box;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    white-space: normal;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tstm:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(42, 152, 168, 0.28);
}
.tstm-stars { color: #f5a623; font-size: 14px; letter-spacing: 3px; line-height: 1; }
.tstm-quote {
    font-size: 15.5px;
    line-height: 1.62;
    color: var(--text);
    margin: 0;
    flex: 1;
}
.tstm-foot { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.tstm-avatar {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--grad-primary);
    box-shadow: 0 6px 16px rgba(42, 152, 168, 0.32);
}
.tstm-avatar::after {
    content: attr(data-initials);
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
}
.tstm-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter .35s ease;
}
.tstm:hover .tstm-avatar img,
.tstm:focus-within .tstm-avatar img { filter: grayscale(0); }
.tstm-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tstm-name { font-weight: 700; font-size: 15px; color: var(--text); }
.tstm-role { font-size: 12.5px; color: var(--text-soft); }

@media (max-width: 520px) {
    .tstm { width: 300px; padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .tstm-track { animation: none; flex-wrap: wrap; justify-content: center; }
    .tstm-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}


/* ===== Standort gallery + bio links ===== */
.standort-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 158px;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 0 22px;
}
.sg-item {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.sg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.sg-item:hover img { transform: scale(1.05); }
.sg-item--feature { grid-column: span 2; grid-row: span 2; }
.sg-item--wide { grid-column: span 2; }

.team-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.cal-cta { margin: 4px 0 22px; }

@media (max-width: 760px) {
    .transport-grid { grid-template-columns: 1fr 1fr; }
    .standort-gallery { grid-auto-rows: 124px; }
    .location-map, .location-map iframe { min-height: 380px; }
}
@media (max-width: 520px) {
    .standort-gallery { grid-template-columns: 1fr 1fr; }
    .sg-item--feature, .sg-item--wide { grid-column: span 2; grid-row: auto; }
    .transport-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Process flow + Data-protection — re-skinned to the site's
   own light, teal-brand, card-based design language.
   De-Bootstrapped, fully scoped. (was dark-zone)
   ============================================================ */
.modern-process-section { background: var(--bg); position: relative; }
.compliance-section { background: var(--bg-alt); position: relative; }
.dz-inner { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ---- process flow ---- */
.process-flow-wrapper { padding: 8px 0 0; overflow: hidden; }
.process-flow { display: flex; justify-content: center; align-items: stretch; flex-wrap: nowrap; width: 100%; }
.process-item { display: flex; align-items: stretch; position: relative; flex-shrink: 0; }
/* Each process-card sits at z-index 1 so the connector-arrow (z-index 10 on the
   PREVIOUS item's .step-connector) always appears on top of the next card's face */
.process-card { position: relative; z-index: 1; }
.process-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 22px 20px; width: 152px; height: auto; min-height: 176px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative; flex-shrink: 0; color: var(--text);
}
.process-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--c-cyan-light); }
.step-header { display:flex; align-items:center; justify-content:space-between; margin-bottom: 16px; }
.step-icon { width:44px; height:44px; border-radius:12px; background: var(--grad-primary); display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.05rem; box-shadow: var(--glow-cyan); transition: transform .25s ease; }
.process-card:hover .step-icon { transform: scale(1.08) rotate(4deg); }
.step-number { font-family: var(--font-mono); font-size:1.45rem; font-weight:700; letter-spacing:-.04em; background: var(--grad-primary); -webkit-background-clip:text; background-clip:text; color:transparent; }
.step-content h4 { color: var(--text); font-weight:600; font-size:15px; margin:0 0 6px; line-height:1.3; letter-spacing:-.01em; }
.step-content p { color: var(--text-soft); font-size:13.5px; line-height:1.5; margin:0; }
.step-connector { display:flex; align-items:center; padding:0 4px; position:relative; z-index:2; min-width: 48px; }
.connector-line { flex:1; height:2px; background: linear-gradient(90deg, var(--border), var(--c-cyan-light)); position:relative; overflow:hidden; border-radius:2px; }
.connector-line::after { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: dzFlow 2.5s linear infinite; }
@keyframes dzFlow { 0%{left:-100%} 100%{left:100%} }
/* Arrow circle — large, gradient-filled, clearly visible between cards */
.connector-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--grad-primary);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .75rem;
    box-shadow: 0 4px 14px rgba(42,152,168,0.35);
    z-index: 10;
    transition: transform .25s ease, box-shadow .25s ease;
}
.desktop-arrow { display:block; } .mobile-arrow { display:none; }
.process-item:hover .connector-arrow {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(42,152,168,0.50);
}

/* ---- compliance ---- */
.compliance-row { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.compliance-content { text-align: left; }
.compliance-content .eyebrow { margin: 0 0 16px; }
.compliance-content .headline { text-align: left; margin: 0 0 18px; }
.compliance-text { color: var(--text-soft); font-size: clamp(17px,1.4vw,20px); line-height:1.55; margin:0 0 32px; max-width:520px; }
.compliance-features { display: grid; gap: 14px; margin-bottom: 32px; }
.compliance-feature { display:flex; align-items:flex-start; gap:16px; padding:18px 20px; background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.compliance-feature:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--c-cyan-light); }
.feature-icon { width:52px; height:52px; border-radius:14px; background: var(--grad-primary); display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.3rem; flex-shrink:0; box-shadow: var(--glow-cyan); }
.feature-content h4 { color: var(--text); font-weight:700; margin:0 0 4px; font-size:16px; }
.feature-content p { color: var(--text-soft); margin:0; font-size:14px; line-height:1.5; }
.compliance-actions { display:flex; gap:1rem; flex-wrap:wrap; }

/* compliance visual (light) */
.compliance-visual { position:relative; height:440px; display:flex; align-items:center; justify-content:center; }
.security-badge { position:absolute; top:12%; left:2%; background: var(--bg-card-solid); border:1px solid var(--border); border-radius: var(--radius-md); padding:14px 18px; display:flex; align-items:center; gap:12px; box-shadow: var(--shadow); z-index:3; animation: dzFloat 6s ease-in-out infinite; }
.badge-icon { width:46px; height:46px; border-radius:12px; background: linear-gradient(135deg,#34c759,#7ddf8f); display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.2rem; }
.badge-content { display:flex; flex-direction:column; }
.badge-title { color: var(--text); font-weight:700; font-size:15px; }
.protection-shield { position:relative; width:200px; height:200px; display:flex; align-items:center; justify-content:center; z-index:1; }
.shield-glow { position:absolute; width:100%; height:100%; background: radial-gradient(circle, rgba(42,152,168,.20) 0%, transparent 70%); border-radius:50%; animation: dzPulse 4s ease-in-out infinite; }
.shield-icon { width:120px; height:120px; border-radius:50%; background: var(--grad-primary); display:flex; align-items:center; justify-content:center; color:#fff; font-size:3rem; position:relative; z-index:2; box-shadow: var(--shadow-glow); }
.shield-rings { position:absolute; inset:0; }
.ring { position:absolute; border:2px solid rgba(42,152,168,.28); border-radius:50%; animation: dzRipple 3s linear infinite; }
.ring-1 { inset:10%; animation-delay:0s; } .ring-2 { inset:5%; animation-delay:1s; } .ring-3 { inset:0; animation-delay:2s; }
@keyframes dzRipple { 0%{transform:scale(1); opacity:.8} 100%{transform:scale(1.25); opacity:0} }
@keyframes dzPulse { 0%,100%{opacity:.5; transform:scale(1)} 50%{opacity:.85; transform:scale(1.05)} }
@keyframes dzFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.compliance-stats { position:absolute; bottom:4%; right:0; display:flex; gap:12px; z-index:3; }
.compliance-stats .stat-item { text-align:center; background: var(--bg-card-solid); padding:14px 12px; border-radius: var(--radius-md); border:1px solid var(--border); min-width:92px; box-shadow: var(--shadow-sm); }
.compliance-stats .stat-number { font-family: var(--font-mono); font-size:1.55rem; font-weight:700; letter-spacing:-.03em; background: var(--grad-primary); -webkit-background-clip:text; background-clip:text; color:transparent; margin-bottom:4px; }
.compliance-stats .stat-label { color: var(--text-soft); font-size:12px; font-weight:500; }

/* trust badges */
.trust-badges { display:flex; justify-content:center; gap:16px; margin-top:64px; padding-top:48px; border-top:1px solid var(--border); flex-wrap:wrap; }
.trust-badge { display:flex; align-items:center; gap:12px; padding:16px 22px; background: var(--bg-card-solid); border:1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-weight:500; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; flex:1; min-width:190px; max-width:250px; justify-content:center; }
.trust-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-cyan-light); }
.trust-badge i { font-size:1.15rem; color: var(--accent); }

/* responsive */
@media (max-width: 1180px) {
    .process-card { width: 124px; padding: 14px 12px; }
    .connector-line { width: 36px; }
    .step-connector { padding: 0 12px; min-width: 36px; }
}
@media (max-width: 980px) {
    .compliance-row { grid-template-columns: 1fr; gap: 40px; }
    .compliance-content { text-align: center; }
    .compliance-content .headline { text-align: center; }
    .compliance-content .eyebrow { margin: 0 auto 16px; }
    .compliance-text { margin-left:auto; margin-right:auto; }
    .compliance-actions { justify-content:center; }
    .compliance-visual { height: 400px; }
    /* Process flow: wrap into 2-per-row grid on tablet/mobile */
    .process-flow { flex-wrap: wrap; justify-content: center; gap: 28px 20px; }
    .process-item { margin: 0; flex-direction: column; align-items: center; }
    .process-card { width: 200px; }
    /* Hide the horizontal connector line; show a vertical down-arrow instead */
    .step-connector { display: flex; flex-direction: column; align-items: center; padding: 8px 0 0; height: auto; position: static; }
    .connector-line { width: 2px; height: 20px; background: var(--border); border-radius: 2px; }
    .connector-line::after { background: linear-gradient(180deg, transparent, var(--accent), transparent); }
    .connector-arrow { position: static; transform: none; margin-top: 4px; width: 22px; height: 22px; z-index: auto; }
    .desktop-arrow { display: none; }
    .mobile-arrow { display: block; }
    @keyframes dzFlow { 0%{top:-100%} 100%{top:100%} }
}
@media (max-width: 560px) {
    .process-card { width: 100%; max-width: 320px; }
    .compliance-visual { position: static; height: auto; flex-direction: column; gap: 20px; padding-top: 8px; }
    .security-badge { position: static; }
    .compliance-stats { position: static; justify-content: center; flex-wrap: wrap; }
    .trust-badge { max-width: none; }
}

/* ============================================================
   How-it-works — ONE unified panel (intro + steps + CTA in a
   single card). Light, matching the rest of the site.
   ============================================================ */
.hiw-wrap { max-width: 1200px; margin: 64px auto 0; padding: 0 22px; }
.hiw-panel {
    position: relative;
    padding: 44px clamp(22px, 4vw, 56px);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow);
}

/* row 1 — intro */
.hiw-intro { display: flex; align-items: flex-start; gap: 22px; }
.hiw-intro-icon {
    flex-shrink: 0; width: 60px; height: 60px; border-radius: 16px;
    background: var(--grad-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 10px 22px rgba(42, 152, 168, 0.28);
}
.hiw-intro-text h3 { color: var(--text); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; }
.hiw-intro-text p { color: var(--text-soft); font-size: 15px; line-height: 1.6; margin: 0; max-width: 820px; }

/* divider + steps heading */
.hiw-steps-head { text-align: center; margin: 34px 0 26px; padding-top: 32px; border-top: 1px solid var(--border); }
.hiw-eyebrow { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hiw-steps-head h4 { color: var(--text); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.hiw-steps-head p { color: var(--text-soft); font-size: 14.5px; line-height: 1.5; margin: 0 auto; max-width: 560px; }

/* row 2 — steps (plain columns, NOT separate boxes) */
.hiw-steps { display: flex; align-items: flex-start; justify-content: center; flex-wrap: nowrap; }
.hiw-step { flex: 0 1 240px; text-align: center; position: relative; padding: 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.hiw-step-badge { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: var(--radius-md); background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 10px 22px rgba(42, 152, 168, 0.30); }
.hiw-step-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 6px; }
.hiw-step h5 { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.01em; line-height: 1.3; }
.hiw-connector { align-self: flex-start; flex: 0 0 50px; min-width: 28px; height: 2px; position: relative; margin: 29px 2px 0; }
.hiw-connector .hiw-line { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,152,168,.15), rgba(42,152,168,.5), rgba(42,152,168,.15)); border-radius: 2px; }
.hiw-connector i { position: absolute; right: -3px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 12px; }

/* row 3 — CTA */
.hiw-cta { text-align: center; margin-top: 38px; }
.hiw-cta-btn { background: var(--text); color: #fff; box-shadow: 0 10px 26px rgba(14,55,66,0.18); }
.hiw-cta-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(42,152,168,0.30); }

@media (max-width: 860px) {
    .hiw-panel { padding: 34px 22px; }
    .hiw-intro { flex-direction: column; align-items: center; text-align: center; }
    .hiw-intro-text p { max-width: none; }
    .hiw-steps { flex-direction: column; align-items: center; gap: 0; }
    .hiw-step { flex: 0 0 auto; max-width: 440px; width: 100%; padding: 4px 0; }
    .hiw-step-badge { margin: 0 auto 8px; }
    .hiw-step-num { margin-bottom: 4px; }
    .hiw-connector { flex: 0 0 auto; align-self: center; width: 2px; min-width: 0; height: 22px; margin: 6px 0; }
    .hiw-connector .hiw-line { background: linear-gradient(180deg, rgba(42,152,168,.15), rgba(42,152,168,.5), rgba(42,152,168,.15)); }
    .hiw-connector i { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%) rotate(90deg); font-size: 10px; }
}


/* ============================================================
   Join us — Career CTA banner
   ============================================================ */
.join-cta { padding: 64px 22px; background: var(--bg); }
.join-cta-inner {
    max-width: 1080px; margin: 0 auto;
    padding: 36px clamp(24px, 4vw, 56px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0e3742 0%, #134e4a 65%, #1c6b78 130%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 24px 54px rgba(14, 55, 66, 0.30);
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.join-cta-inner::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at top right, rgba(125, 210, 219, 0.28), transparent 60%);
}
.join-cta-icon {
    position: relative; z-index: 1;
    width: 64px; height: 64px; border-radius: 18px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.20);
    display: grid; place-items: center; font-size: 26px; color: #fff; flex-shrink: 0;
}
.join-cta-text { position: relative; z-index: 1; flex: 1; min-width: 260px; }
.join-cta-text h3 { color: #fff; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.25; }
.join-cta-text p { color: rgba(255,255,255,.80); font-size: 15px; line-height: 1.55; margin: 0; }
.join-cta-btn {
    position: relative; z-index: 1; flex-shrink: 0;
    background: #ffffff; color: #0e3742;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.join-cta-btn:hover { background: #ffffff; color: #0e3742; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26); }

@media (max-width: 760px) {
    .join-cta-inner { padding: 28px 22px; }
    .join-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Slide-to-send — bot-proof submit control (Option C).
   The handle is dragged from left to right; on completion,
   the form submits. Bots can't realistically simulate a multi-
   second pointer drag across the full track.
   ============================================================ */
.slide-to-send {
    margin: 20px 0 8px;
    user-select: none;
    -webkit-user-select: none;
}
.slide-track {
    position: relative;
    height: 60px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(14, 55, 66, 0.06);
    touch-action: none;
}
.slide-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--grad-primary);
    border-radius: 999px;
    transition: width .35s cubic-bezier(.4,.0,.2,1);
    pointer-events: none;
}
.slide-to-send.is-dragging .slide-fill { transition: none; }
.slide-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
    transition: opacity .25s ease, color .25s ease;
    z-index: 2;
}
.slide-to-send.is-dragging .slide-label { transition: none; }
.slide-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: grab;
    box-shadow: 0 4px 14px rgba(14, 55, 66, 0.18), 0 1px 2px rgba(14, 55, 66, 0.10);
    transition: transform .35s cubic-bezier(.4,.0,.2,1), box-shadow .2s ease;
    z-index: 3;
    touch-action: none;
}
.slide-handle:active { cursor: grabbing; }
.slide-to-send.is-dragging .slide-handle { transition: none; box-shadow: 0 6px 18px rgba(14, 55, 66, 0.24), 0 0 0 4px rgba(42, 152, 168, 0.12); }
.slide-handle i { transition: transform .25s ease; }

/* Success state — fully slid */
.slide-to-send.is-complete .slide-fill { width: 100% !important; }
.slide-to-send.is-complete .slide-label { color: #fff; opacity: 1; }
.slide-to-send.is-complete .slide-handle {
    background: #fff;
    color: #2ecc71;
}
.slide-to-send.is-complete .slide-handle i::before { content: "\f00c"; }
.slide-to-send.is-complete .slide-handle { box-shadow: 0 6px 18px rgba(46, 204, 113, 0.30); }

/* Sending state — locked while the request is in flight */
.slide-to-send.is-sending .slide-handle i { animation: slideSpin 0.9s linear infinite; }
.slide-to-send.is-sending .slide-handle i::before { content: "\f1ce"; } /* fa-spinner */
@keyframes slideSpin { to { transform: rotate(360deg); } }

/* Disabled state (e.g. form invalid) */
.slide-to-send.is-disabled .slide-track { opacity: 0.55; cursor: not-allowed; }
.slide-to-send.is-disabled .slide-handle { cursor: not-allowed; }
.slide-to-send.is-disabled .slide-label { color: var(--text-light); }

/* Keyboard focus accessibility */
.slide-handle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(42, 152, 168, 0.30), 0 4px 14px rgba(14, 55, 66, 0.18);
}

@media (max-width: 480px) {
    .slide-track { height: 56px; }
    .slide-handle { width: 48px; height: 48px; }
    .slide-label { font-size: 14px; }
}

/* ============================================================
   MOBILE-FIRST RESPONSIVE LAYER
   Best-practice additions for all screen sizes ≤ 768px.
   Organised small → large so rules cascade correctly.
   ============================================================ */

/* --- Global best-practice baseline ---
   Do NOT put overflow-x:hidden on html or body — in most browsers this
   propagates to the viewport and kills vertical scrolling.
   Horizontal overflow is contained at the section/component level instead
   (see .ai-mindmap, .logo-marquee, .tech-section etc. which already have
    overflow:hidden / overflow-x:hidden on those specific containers). */
body {
    -webkit-text-size-adjust: 100%; /* prevent iOS font-size auto-adjust */
}

/* Clip horizontal overflow only on marquee wrapper sections so the
   infinite-scroll tracks don't widen the page */
.logo-marquee,
.tstm-marquee,
.tech-marquee,
.tech-section .tech-marquee-wrap {
    overflow-x: hidden;
}

/* The ai-mindmap glow element bleeds outside its card — clip it */
.ai-mindmap { overflow: hidden; }

/* --- Images always fluid --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Minimum 44 × 44 px touch targets on small screens --- */
@media (max-width: 768px) {
    a,
    button,
    [role="button"],
    input[type="submit"],
    input[type="button"],
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================================
   Navigation — tighten up on small phones
   ============================================================ */
@media (max-width: 480px) {
    .nav { height: 72px; }
    .nav-inner { padding: 0 16px; }
    .nav-brand img { height: 52px; width: 52px; }
    .nav-brand span { font-size: 1.1rem; }
    .nav-links.is-open { top: 72px; left: auto; width: min(86vw, 260px); height: calc(100vh - 72px); height: calc(100dvh - 72px); }
}

/* ============================================================
   Hero section
   ============================================================ */
@media (max-width: 768px) {
    .hero {
        padding: 100px 18px 56px;
    }
    .hero h1 {
        font-size: clamp(32px, 9vw, 54px);
        letter-spacing: -0.03em;
    }
    .hero .subhead {
        font-size: 16px;
        margin-bottom: 28px;
    }
    .hero-eyebrow {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 48px;
    }
    .hero h1 {
        font-size: clamp(28px, 10vw, 44px);
    }
    .hero .subhead {
        font-size: 15px;
    }
    .cta-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .cta-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hero service cards */
@media (max-width: 480px) {
    .hero-services {
        width: 100%;
        max-width: none;
    }
    .hero-svc {
        padding: 14px 16px;
    }
    .hero-svc-title {
        font-size: 14px;
    }
}

/* Hero contact link */
@media (max-width: 480px) {
    .hero-contact {
        font-size: 15px;
        margin-top: 20px;
    }
}

/* ============================================================
   Section headings
   ============================================================ */
@media (max-width: 768px) {
    .section-head {
        margin-bottom: 40px;
        padding: 0 4px;
    }
    .headline {
        font-size: clamp(24px, 6vw, 36px);
    }
    .eyebrow {
        font-size: 12px;
    }
    .subhead {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .section-head {
        margin-bottom: 28px;
    }
    .headline {
        font-size: clamp(22px, 7vw, 30px);
        letter-spacing: -0.02em;
    }
}

/* ============================================================
   Tiles (AI services bento cards)
   ============================================================ */
@media (max-width: 768px) {
    .tiles {
        padding: 0 12px;
        gap: 12px;
    }
    .tile {
        padding: 32px 24px;
        min-height: 360px;
    }
    .tile-body {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tiles { padding: 0 10px; }
    .tile { padding: 28px 20px; min-height: auto; }
}

/* ============================================================
   Bento grid (services detail section)
   ============================================================ */
@media (max-width: 768px) {
    .bento {
        padding: 0 12px;
        gap: 12px;
    }
    .bento-cell--hero,
    .bento-cell--tall,
    .bento-cell--wide {
        min-height: 360px;
    }
    .bento-callout {
        padding: 24px 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .bento { padding: 0 10px; }
    .bento-cell--hero,
    .bento-cell--tall { min-height: auto; }
    .bento-callout { padding: 20px 16px; }
    .bento-callout-icon { display: none; }
}

/* ============================================================
   Services grid
   ============================================================ */
@media (max-width: 768px) {
    .services-grid {
        padding: 0 12px;
        gap: 12px;
    }
    .svc-card {
        padding: 28px 22px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .services-grid { padding: 0 10px; }
    .svc-card { padding: 24px 18px; }
    .svc-card h3 { font-size: 20px; }
}

/* ============================================================
   Stats row
   ============================================================ */
@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    .stat { padding: 16px 8px; }
    .stat-num { font-size: clamp(32px, 8vw, 48px); }
    .stat-label { font-size: 14px; }
    .stats-section { padding: 56px 0; }
}

/* ============================================================
   Values grid (About)
   ============================================================ */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 40px;
    }
    .value { padding: 18px; }
    .value h3 { font-size: 18px; }
    .value p { font-size: 14px; }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================================
   Approach (sticky scroll steps)
   ============================================================ */
@media (max-width: 768px) {
    .approach-inner {
        padding: 48px 16px;
        gap: 24px;
    }
    .step h3 { font-size: 22px; }
    .step p { font-size: 15px; }
}

@media (max-width: 480px) {
    .approach-inner { padding: 40px 14px; }
    .step { padding: 20px 0 0; }
    .step h3 { font-size: 20px; }
}

/* ============================================================
   Tech logos grid
   ============================================================ */
@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 14px;
    }
    .tech-logo { padding: 10px; }
}

@media (max-width: 360px) {
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Team cards
   ============================================================ */
@media (max-width: 768px) {
    .team-grid { padding: 0 14px; gap: 16px; }
    .team-card { padding: 24px; }
}

@media (max-width: 480px) {
    .team-card {
        padding: 20px 16px;
        gap: 16px;
    }
    .team-photo { width: 76px; height: 76px; }
    .team-card h3 { font-size: 18px; }
    .team-card p { font-size: 14px; }
}

/* ============================================================
   Logo marquee (client logos)
   ============================================================ */
@media (max-width: 480px) {
    .logo-marquee {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    }
    .logo-item { width: 100px; margin: 0 12px; }
    .logo-item img { max-height: 36px; }
}

/* ============================================================
   Testimonials / reviews
   ============================================================ */
@media (max-width: 768px) {
    .testimonials-grid,
    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

/* ============================================================
   Contact section
   ============================================================ */
@media (max-width: 768px) {
    .contact-section {
        padding: 56px 0;
    }
    .contact-grid {
        padding: 0 16px;
        gap: 28px;
    }
    .contact-info .subhead {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .cal-cta {
        width: 100%;
        justify-content: center;
    }
    .form-card { padding: 24px 18px; }
}

@media (max-width: 480px) {
    .contact-grid { padding: 0 14px; gap: 20px; }
    .contact-meta-value { font-size: 15px; }
    .form-card { padding: 20px 14px; border-radius: 16px; }
    .field input,
    .field select,
    .field textarea { font-size: 16px; } /* prevent iOS zoom-in */
    .field textarea { min-height: 100px; }
    .consent { font-size: 13px; }
}

/* ============================================================
   Footer
   ============================================================ */
@media (max-width: 768px) {
    .footer { padding: 48px 0 28px; }
    .footer-grid { padding: 0 16px 24px; gap: 20px; }
    .footer-bottom { padding: 20px 16px 0; }
}

@media (max-width: 480px) {
    .footer-grid { padding: 0 14px 20px; }
    .footer-col h5 { font-size: 10px; }
    .footer-col ul { gap: 8px; }
    .footer-col a { font-size: 13px; }
    .footer-col p { font-size: 13px; }
    .footer-bottom { font-size: 11px; }
}

/* ============================================================
   Buttons — full-width on very small screens where appropriate
   ============================================================ */
@media (max-width: 480px) {
    .btn--lg {
        padding: 14px 20px;
        font-size: 16px;
    }
    .join-cta-btn,
    .hiw-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Section padding — reduce vertical breathing room on mobile
   ============================================================ */
@media (max-width: 768px) {
    :root { --section-y: 56px; }
    .section-padding,
    [class*="section-"] { padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 480px) {
    :root { --section-y: 44px; }
    .section-padding,
    [class*="section-"] { padding-top: 44px; padding-bottom: 44px; }
}

/* ============================================================
   Pain strip (problem/pain points row)
   ============================================================ */
@media (max-width: 480px) {
    .pain-strip { gap: 10px; padding: 0 10px; }
}

/* ============================================================
   ROI / Calculator CTA section
   ============================================================ */
@media (max-width: 480px) {
    .roi-cta {
        padding: 40px 16px;
        text-align: center;
    }
    .roi-cta-title { font-size: clamp(22px, 7vw, 30px); }
    .roi-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Journey grid (how-it-works / process)
   ============================================================ */
@media (max-width: 480px) {
    .journey-grid { padding: 0 10px; gap: 14px; }
    .hiw-wrap { padding: 0 14px; }
    .hiw-panel { padding: 24px 16px; }
}

/* ============================================================
   Join CTA banner
   ============================================================ */
@media (max-width: 480px) {
    .join-cta { padding: 40px 14px; }
    .join-cta-inner { padding: 24px 18px; gap: 20px; }
    .join-cta-icon { width: 52px; height: 52px; font-size: 20px; }
    .join-cta-text h3 { font-size: 18px; }
    .join-cta-text p { font-size: 14px; }
}

/* ============================================================
   Compliance badges grid
   ============================================================ */
@media (max-width: 480px) {
    .compliance-grid { grid-template-columns: 1fr; padding: 0 14px; }
}

/* ============================================================
   FAQ accordion
   ============================================================ */
@media (max-width: 768px) {
    #faq { padding: 48px 0; }
    .faq-list { padding: 0 14px; gap: 10px; }
    .faq-item { border-radius: 14px; }
    .faq-q { font-size: 16px; padding: 18px 20px; line-height: 1.4; gap: 12px; }
    .faq-q .chev { flex-shrink: 0; font-size: 14px; }
    .faq-a { font-size: 15px; padding: 0 20px; line-height: 1.55; }
    .faq-item.is-open .faq-a { padding: 0 20px 18px; }
}

@media (max-width: 480px) {
    #faq { padding: 40px 0; }
    .faq-list { padding: 0 12px; gap: 8px; }
    .faq-item { border-radius: 12px; }
    .faq-q { font-size: 15px; padding: 16px 16px; gap: 10px; }
    .faq-q span { flex: 1; min-width: 0; }
    .faq-a { font-size: 14px; padding: 0 16px; }
    .faq-item.is-open .faq-a { padding: 0 16px 16px; }
}

/* ============================================================
   Utility: ensure no element bleeds past viewport
   ============================================================ */
@media (max-width: 768px) {
    .container,
    .container-fluid,
    [class*="-grid"],
    [class*="-wrap"],
    [class*="-inner"] {
        max-width: 100%;
        box-sizing: border-box;
    }
}
