/* =============================================================
   Aigocy-inspired theme for the public Website
   Inspired by https://wpriverthemes.com/HTML/aigocy/index-v2.html
   Implemented with vanilla CSS + inline SVG. No paid asset dependency.
   ============================================================= */

:root {
    --ai-bg: #f5f4f1;
    --ai-bg-deep: #ecebe8;
    --ai-fg: #161616;
    --ai-muted: #6b6b6b;
    --ai-accent: #ff4d2d;
    --ai-accent-2: #ff2e6f;
    --ai-line: #e6e4df;
    --ai-card: #ffffff;
    --ai-dark: #0e0e0e;
    --ai-dark-soft: #1a1a1a;

    --ai-radius: 22px;
    --ai-radius-sm: 14px;
    --ai-shadow: 0 14px 40px rgba(0, 0, 0, .07);

    --ai-h1: clamp(2.4rem, 3vw, 5.5rem);
    --ai-h2: clamp(1.7rem, 3.6vw, 2.8rem);
    --ai-h3: 1.35rem;
}

/* Inner-page (Bootstrap) content sits on the aigocy theme too — keep primary
   actions + links on the accent so non-home pages don't look off-theme. */
body.aigocy .btn-primary { background: var(--ai-accent); border-color: var(--ai-accent); }
body.aigocy .btn-primary:hover, body.aigocy .btn-primary:focus { background: #e0431f; border-color: #e0431f; }
body.aigocy .text-primary { color: var(--ai-accent) !important; }

/* Sticky footer: body is a column, <main> grows so the footer always sits at the
   bottom of the viewport on short pages regardless of screen size. */
body.aigocy { min-height: 100vh; display: flex; flex-direction: column; }
body.aigocy > main { flex: 1 0 auto; }

/* Metric-matched fallback for Inter (tuned against Arial). The fallback occupies the
   exact same space as Inter, so when the web font swaps in there is (near-)zero reflow
   — the main fix for the large CLS that the huge hero/brand text was causing. */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    ascent-override: 90.49%;
    descent-override: 22.56%;
    line-gap-override: 0%;
    size-adjust: 107.06%;
}
body.aigocy {
    background: var(--ai-bg);
    color: var(--ai-fg);
    font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.aigocy a { color: inherit; }
.aigocy h1, .aigocy h2, .aigocy h3, .aigocy h4 { letter-spacing: -0.025em; line-height: 1.05; }
.aigocy h1 { font-size: var(--ai-h1); font-weight: 700; }
.aigocy h2 { font-size: var(--ai-h2); font-weight: 700; }
.aigocy h3 { font-size: var(--ai-h3); font-weight: 600; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ai-fg);
    padding: 5px 14px;
    border: 1px solid var(--ai-line);
    border-radius: 999px;
    background: #fff;
}
.section-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ai-accent); }

.ai-btn-primary {
    background: var(--ai-fg);
    color: #fff !important;
    border: 1px solid var(--ai-fg);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 500;
    transition: transform .15s, background .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.ai-btn-primary:hover { background: var(--ai-accent); border-color: var(--ai-accent); transform: translateY(-1px); }

.ai-btn-outline {
    background: transparent;
    color: var(--ai-fg);
    border: 1px solid var(--ai-fg);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 500;
    transition: all .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ai-btn-outline:hover { background: var(--ai-fg); color: #fff; }

/* =========================== TOP NAV (pill) =========================== */
/* Hide the default Bootstrap navbar from _Layout.cshtml — we render our own pill nav. */
body.aigocy > header.site-header { display: none !important; }
/* Sticky nav — stays visible on scroll on every page */
body.aigocy > header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(245, 244, 241, 0.90);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.aigocy .ai-nav {
    margin: 14px auto 0;
    max-width: 1140px;
    background: #fff;
    border: 1px solid var(--ai-line);
    border-radius: 999px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.aigocy .ai-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ai-bg-deep);
    text-decoration: none;
    color: var(--ai-fg);
}
.aigocy .ai-nav-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ai-accent); }
.aigocy .ai-nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 auto; }
.aigocy .ai-nav-links a {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ai-fg);
    text-decoration: none;
    opacity: .8;
}
.aigocy .ai-nav-links a:hover, .aigocy .ai-nav-links a.active { background: var(--ai-bg-deep); opacity: 1; }
.aigocy .ai-nav-cta {
    background: var(--ai-fg);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 13.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.aigocy .ai-nav-cta:hover { background: var(--ai-accent); }

/* =========================== HERO =========================== */
.ai-hero {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
    background: var(--ai-bg);
}
/* Two big SVG ring-clusters on left + right, plus a radial glow underneath the headline. */
.ai-hero .rings {
    position: absolute;
    top: 50%;
    width: 720px;
    height: 720px;
    transform: translateY(-45%);
    opacity: .65;
    pointer-events: none;
    z-index: 0;
}
.ai-hero .rings.left  { left: -360px; }
.ai-hero .rings.right { right: -360px; }
.ai-hero .glow {
    position: absolute;
    left: 50%;
    bottom: -120px;
    transform: translateX(-50%);
    width: 600px;
    height: 240px;
    background: radial-gradient(ellipse at center, rgba(255, 77, 45, .35), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}
.ai-hero > .container { position: relative; z-index: 1; }
.ai-hero h1 .heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95em;
    height: 0.95em;
    border-radius: 50%;
    background: var(--ai-accent);
    color: #fff;
    vertical-align: middle;
    font-size: .5em;
    margin: 0 .15em;
}
.ai-hero p.lead { font-size: 18px; color: var(--ai-muted); max-width: 600px; margin-inline: auto; }
.ai-hero .scroll-cue { color: var(--ai-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .2em; }

@media (max-width: 991.98px) {
    .ai-hero .rings { width: 480px; height: 480px; opacity: .4; }
    .ai-hero .rings.left  { left: -300px; }
    .ai-hero .rings.right { right: -300px; }
}

/* =========================== ABOUT =========================== */
.ai-about {
    padding: 60px 0 60px;
    background: var(--ai-bg);
}
.ai-globe {
    background: var(--ai-dark);
    color: #fff;
    border-radius: var(--ai-radius);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.ai-globe::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 77, 45, .35), transparent 55%),
        radial-gradient(circle at 30% 70%, rgba(255, 200, 100, .15), transparent 50%);
}
.ai-globe i { font-size: 9rem; opacity: .35; position: relative; z-index: 1; }
.ai-stat-big { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
.ai-stat-mid { font-size: 1.5rem; font-weight: 600; }
.ai-about .mini-card {
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius-sm);
    padding: 18px;
    height: 100%;
}

/* =========================== LOGO CLOUD =========================== */
.ai-logo-cloud {
    padding: 32px 0;
    border-top: 1px solid var(--ai-line);
    border-bottom: 1px solid var(--ai-line);
    background: var(--ai-bg);
}
.ai-logo-cloud .logo-item {
    color: #9b9b9b;
    font-weight: 600;
    letter-spacing: -.02em;
    font-size: 20px;
    text-align: center;
    opacity: .8;
}

/* =========================== SERVICES =========================== */
.ai-services { padding: 80px 0; background: var(--ai-bg); }
.ai-services-card {
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius);
    overflow: hidden;
}
.ai-services-card .row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--ai-line);
    cursor: pointer;
    transition: background .15s;
}
.ai-services-card .row-item:last-child { border-bottom: 0; }
.ai-services-card .row-item:hover { background: var(--ai-bg); }
.ai-services-card .row-item .title { font-weight: 600; }
.ai-services-card .row-item .arrow { color: var(--ai-muted); }

/* =========================== PROCESS =========================== */
.ai-process { padding: 80px 0; background: var(--ai-bg); }

/* Section sits inside a full-width white rounded card (matches the All-Features shell). */
.ai-proc-shell {
    background: #fff;
    border: 1px solid var(--ai-line);
    border-radius: 32px;
    padding: 56px;
    box-shadow: 0 30px 80px rgba(0,0,0,.06);
    max-width: 1600px;
    margin: 0 auto;
    /* overflow intentionally NOT hidden — the viewport clips the track;
       hiding here would cut off card box-shadows at the rounded edges */
}
.ai-proc-layout { display: flex; gap: 44px; align-items: stretch; }

/* Left intro column: eyebrow + heading + carousel arrows pinned to the bottom. */
.ai-proc-intro { flex: 0 0 320px; display: flex; flex-direction: column; }
.ai-proc-intro h2 { margin-bottom: 0; }
.ai-proc-nav { display: flex; gap: 12px; margin-top: auto; padding-top: 32px; }
.ai-proc-arrow {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid var(--ai-line);
    background: #fff;
    color: var(--ai-fg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s, opacity .15s;
}
.ai-proc-arrow:hover:not(:disabled) { background: var(--ai-accent); color: #fff; border-color: var(--ai-accent); transform: translateY(-1px); }
.ai-proc-arrow:disabled { opacity: .35; cursor: default; }

/* Right slider. */
.ai-proc-viewport { flex: 1 1 0; min-width: 0; overflow: hidden; }
.ai-proc-track { display: flex; gap: 26px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.ai-proc-card {
    flex: 0 0 calc(50% - 13px);
    background: var(--ai-bg);
    border: 1px solid var(--ai-line);
    border-radius: 26px;
    padding: 34px;
    display: flex; flex-direction: column;
    box-shadow: 0 18px 36px rgba(0,0,0,.06);
    /* height is fully content-driven — the shell auto-sizes to whichever cards are tallest */
}
.ai-proc-ico {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(150deg, var(--ai-accent), var(--ai-accent-2));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 14px 30px rgba(255, 77, 45, .42);
    margin-bottom: 30px;
}
.ai-proc-card h3 { font-size: 1.7rem; font-weight: 700; color: var(--ai-fg); }
.ai-proc-card p { color: var(--ai-muted); margin-top: 14px; line-height: 1.65; }
.ai-proc-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ai-proc-pill {
    border: 1px solid var(--ai-line); border-radius: 999px;
    padding: 9px 18px; background: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ai-fg);
    white-space: nowrap;
}
.ai-proc-count { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #d6d3cd; }
.ai-proc-count b { color: var(--ai-fg); font-weight: 800; }

@media (max-width: 991.98px) {
    .ai-proc-shell { padding: 36px 24px; }
    .ai-proc-layout { flex-direction: column; gap: 28px; }
    .ai-proc-intro { flex: 0 0 auto; }
    .ai-proc-nav { margin-top: 8px; padding-top: 0; }
    .ai-proc-card { flex: 0 0 82%; }
}
@media (max-width: 575.98px) {
    .ai-proc-card { flex: 0 0 88%; padding: 26px; }
}

/* =========================== WHY =========================== */
.ai-why { padding: 80px 0; background: var(--ai-bg); }
.ai-why-card {
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius);
    padding: 24px;
    height: 100%;
}
.ai-why-card .check-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--ai-fg);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}

/* =========================== FEATURES with center logo =========================== */
.ai-features { padding: 80px 0; background: var(--ai-bg); position: relative; }

/* The whole section sits inside one full-width white rounded card. */
.ai-features .ai-feat-shell {
    background: #fff;
    border: 1px solid var(--ai-line);
    border-radius: 32px;
    padding: 64px 56px;
    box-shadow: 0 30px 80px rgba(0,0,0,.06);
    margin: 0 auto;
}

/* Branching "hub" layout: 3 cards | center logo | 3 cards, joined by connector wires. */
.ai-features .ai-feat-hub {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1320px;
    margin: 0 auto;
}
.ai-features .hub-col {
    position: relative;
    z-index: 1;          /* sit above the connector wires */
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

/* Neumorphic raised tiles on the white shell (reference look). */
.ai-features .ai-feat-card {
    flex: 1 1 0;
    background: var(--ai-bg);
    border: 1px solid var(--ai-line);
    border-radius: 24px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 36px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ai-features .ai-feat-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.11); }
.ai-features .ai-feat-card .ico {
    width: 52px; height: 52px;
    border-radius: 15px;
    background: linear-gradient(150deg, #2b2b2e, #161618);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.ai-features .ai-feat-card strong { font-size: 1.18rem; color: var(--ai-fg); }
.ai-features .ai-feat-card span { color: var(--ai-muted); font-size: .95rem; line-height: 1.6; }

/* Center column holds only the glowing logo; wires are a separate overlay. */
.ai-features .hub-center {
    position: relative;
    z-index: 1;
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Connector wires — one absolute SVG behind the cards, drawn only inside the gutters
   (x 35–65) so the lines never overlap the cards or bleed past the card. */
.ai-features .hub-wires {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}
.ai-features .hub-wires path { fill: none; }
.ai-features .hub-wires .rail-track { stroke: var(--ai-line); stroke-width: 1.5; }
/* Accent pulses flow OUTWARD from the logo to the cards (non-scaling-stroke keeps the
   dashes crisp despite the overlay being stretched to the hub size). */
.ai-features .hub-wires .rail-flow {
    stroke: var(--ai-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2 22;
    opacity: .9;
    filter: drop-shadow(0 0 2px rgba(255, 77, 45, .55));
    animation: ai-rail-flow 1.6s linear infinite;
}
@keyframes ai-rail-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 24; } }  /* +(dash + gap) → reversed, seamless */

.ai-features .hub-logo {
    flex: 0 0 auto;
    position: relative;
    width: 132px; height: 132px;
    border-radius: 30px;
    background: linear-gradient(150deg, var(--ai-accent), var(--ai-accent-2));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
    box-shadow: 0 22px 50px rgba(255, 77, 45, .42);
    animation: ai-hub-float 4.5s ease-in-out infinite;
}
/* Soft pulsing glow behind the logo (matches the reference's radial halo). */
.ai-features .hub-logo::before {
    content: "";
    position: absolute; inset: -28px;
    border-radius: 44px;
    background: radial-gradient(circle, rgba(255, 77, 45, .55), transparent 68%);
    z-index: -1;
    animation: ai-hub-pulse 3.2s ease-in-out infinite;
}
.ai-features .hub-logo img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.ai-features .hub-logo-label {
    color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em;
}

@keyframes ai-hub-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ai-hub-pulse { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: .9; transform: scale(1.06); } }

/* --- Scroll reveal (aigocy fade-up): hidden until .is-in is toggled by the observer. --- */
.ai-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.ai-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .ai-reveal { opacity: 1; transform: none; transition: none; }
    .ai-features .hub-logo, .ai-features .hub-logo::before { animation: none; }
    .ai-features .hub-wires .rail-flow { display: none; }
}

/* Tablet / mobile: drop the branching wires, stack cards, center the logo. */
@media (max-width: 991.98px) {
    .ai-features .ai-feat-shell { padding: 44px 28px; }
    .ai-features .ai-feat-hub { flex-direction: column; max-width: 640px; }
    .ai-features .hub-wires { display: none; }
    .ai-features .hub-center { flex: 0 0 auto; padding: 8px 0; }
    .ai-features .ai-feat-card { flex: 0 0 auto; }
}
@media (max-width: 575.98px) {
    .ai-features .ai-feat-shell { padding: 32px 18px; }
    .ai-features .ai-feat-card { padding: 22px; }
}

/* =========================== TOOLS =========================== */
.ai-tools { padding: 80px 0; background: var(--ai-bg); }
.ai-tools .tool-bubble {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ai-line);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
    margin: 4px;
}

/* =========================== TEAM (dark, asymmetric) =========================== */
.ai-team { padding: 100px 0; background: var(--ai-dark); color: #fff; }
.ai-team .team-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
}
.ai-team .team-card {
    background: var(--ai-dark-soft);
    border: 1px solid #262626;
    border-radius: var(--ai-radius);
    padding: 24px;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 220px;
    transition: border-color .15s;
    position: relative;
    overflow: hidden;
}
.ai-team .team-card:hover { border-color: var(--ai-accent); }
.ai-team .team-card.big { grid-row: span 2; }
.ai-team .team-card .face {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, var(--ai-accent), transparent 60%), #2a2a2a;
}
.ai-team .team-card .face-init {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 3rem;
    opacity: .85;
}
.ai-team .team-card .meta {
    position: relative;
    z-index: 1;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 16px;
    border-radius: var(--ai-radius-sm);
    margin: -24px;
    margin-top: auto;
}
.ai-team .team-card .role { color: #bbb; font-size: 12px; }

@media (max-width: 767.98px) {
    .ai-team .team-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .ai-team .team-card.big { grid-row: auto; }
}

/* =========================== STATS (dark, continuing) =========================== */
.ai-stats { background: var(--ai-dark); color: #fff; padding: 0 0 100px; }
.ai-stats .big-number {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700; color: #fff;
    letter-spacing: -.05em; line-height: .9;
}
.ai-stats .stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid #262626;
}
.ai-stats .stat-row:last-child { border-bottom: 0; }

/* =========================== SCROLLING TAG BAND =========================== */
.ai-tagband { background: var(--ai-accent); overflow: hidden; }
.ai-tagband-track {
    display: flex;
    gap: 40px;
    width: max-content;
    padding: 16px 0;
    animation: ai-tagband-scroll 30s linear infinite;
}
.ai-tagband:hover .ai-tagband-track { animation-play-state: paused; }
.ai-tag { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; white-space: nowrap; }
.ai-tag i { font-size: .5rem; opacity: .7; }
@keyframes ai-tagband-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ai-tagband-track { animation: none; } }

/* =========================== TESTIMONIALS (light, 3-up) =========================== */
.ai-testimonials { padding: 80px 0; background: var(--ai-bg); }
.ai-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1140px;
    margin: 0 auto;
}
.ai-testi-card {
    background: #fff;
    border: 1px solid var(--ai-line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--ai-shadow);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.ai-testi-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.10); }
.ai-testi-stars { color: #f5a623; display: flex; gap: 3px; font-size: 1rem; }
.ai-testi-card > p { color: var(--ai-fg); font-size: 1rem; line-height: 1.65; margin: 16px 0 24px; flex: 1 1 auto; }
.ai-testi-by { display: flex; align-items: center; gap: 12px; }
.ai-testi-ava {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(150deg, var(--ai-accent), var(--ai-accent-2));
    color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ai-testi-by strong { display: block; color: var(--ai-fg); font-size: .98rem; }
.ai-testi-by span { color: var(--ai-muted); font-size: .85rem; }

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

/* =========================== PRICING =========================== */
.ai-pricing { padding: 80px 0; background: var(--ai-bg); }
.ai-pricing .pricing-toggle {
    display: inline-flex; background: #fff; border: 1px solid var(--ai-line);
    border-radius: 999px; padding: 4px;
}
.ai-pricing .pricing-toggle button {
    background: transparent; border: 0;
    padding: 6px 18px; border-radius: 999px;
    font-size: 14px; color: var(--ai-muted);
}
.ai-pricing .pricing-toggle button.active { background: var(--ai-fg); color: #fff; }
.ai-price-card {
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius);
    padding: 32px;
    height: 100%;
    display: flex; flex-direction: column;
}
.ai-price-card.featured { background: var(--ai-dark); color: #fff; border-color: var(--ai-dark); }
.ai-price-card .price { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; }
.ai-price-card ul { list-style: none; padding: 0; }
.ai-price-card ul li { padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.ai-price-card ul li::before { content: "✓"; color: var(--ai-accent); font-weight: 700; }

/* =========================== FAQ =========================== */
.ai-faq { padding: 80px 0; background: var(--ai-bg); }
.ai-faq .accordion-item,
.ai-accordion .accordion-item {
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius-sm) !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.ai-faq .accordion-button,
.ai-accordion .accordion-button {
    background: var(--ai-card);
    font-weight: 600; color: var(--ai-fg);
    padding: 20px 24px;
}
.ai-faq .accordion-button:not(.collapsed),
.ai-accordion .accordion-button:not(.collapsed) { background: var(--ai-card); color: var(--ai-accent); box-shadow: none; }
.ai-faq .accordion-button:focus,
.ai-accordion .accordion-button:focus { box-shadow: none; }
.ai-accordion .accordion-body { color: var(--ai-muted); line-height: 1.7; }

/* =========================== CONTACT =========================== */
.ai-contact {
    padding: 100px 0;
    background:
        radial-gradient(circle at 75% 50%, rgba(255, 77, 45, .35), transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(255, 130, 100, .25), transparent 60%),
        linear-gradient(135deg, #ffe3d8, #ffd0c0);
    position: relative;
    overflow: hidden;
}
.ai-contact::after {
    content: "";
    position: absolute;
    right: -150px; top: 50%;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, rgba(255, 77, 45, .6) 60%, transparent 75%);
    transform: translateY(-50%);
    filter: blur(1px);
    z-index: 0;
}
.ai-contact > .container { position: relative; z-index: 1; }
.ai-contact .form-card {
    background: #fff;
    border-radius: var(--ai-radius);
    padding: 32px;
    box-shadow: var(--ai-shadow);
}

/* =========================== FOOTER BRAND =========================== */
.ai-footer-brand { padding: 80px 0 40px; background: var(--ai-bg); text-align: center; overflow: hidden; }
.ai-footer-brand .brand-mark {
    font-size: clamp(4rem, 15vw, 15rem);
    font-weight: 800; letter-spacing: -.04em;
    background: linear-gradient(180deg, #e5e3df 0%, #c8c5bf 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: .85;
    pointer-events: none;   /* decorative — never intercept clicks from the CTA below */
}
/* "Let's Connect" CTA sits below the brand mark and above its stacking context. */
.ai-footer-brand .brand-cta { position: relative; z-index: 2; margin-top: 28px; }
.ai-footer-brand .brand-pill {
    display: inline-flex;
    align-items: center; gap: 8px;
    padding: 6px 14px;
    background: #fff; border: 1px solid var(--ai-line);
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    margin-top: -28px;
}

.divider { height: 1px; background: var(--ai-line); margin: 80px 0; }

/* =========================== NAV MEGA-MENUS =========================== */
/* Three catalog dropdowns inside the .ai-nav pill. The global ".ai-nav-links a"
   rule would otherwise style the mega items as nav links, so re-assert with
   higher specificity and theme the panel to the aigocy accent. */
.aigocy .ai-nav { position: relative; }
.aigocy .ai-nav-links a.ai-dd-toggle {
    display: inline-flex; align-items: center; gap: 2px;
}
.aigocy .ai-nav-links a.ai-dd-toggle .ri-arrow-down-s-line { font-size: 1.05em; opacity: .7; }

/* Center each mega panel under the whole pill nav (not the toggle) so a wide
   540px panel never spills off the viewport edge, whichever dropdown is opened.
   !important overrides Bootstrap/Popper inline positioning on click. */
.aigocy .mega-menu {
    width: 800px; max-width: calc(100vw - 32px);
    background: #fff; border: 1px solid var(--ai-line); border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.16); padding: 16px;
}
.aigocy .ai-dd .dropdown-menu.mega-menu {
    position: absolute !important;
    inset: auto !important;            /* clear Popper's inline inset first */
    top: calc(100% + .55rem) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}
/* Invisible hover-bridge across the .55rem gap between the toggle and the panel.
   Without it the cursor leaves .ai-dd while crossing the gap, :hover drops, and the
   panel closes before it can be reached. The bridge is part of the panel (a descendant
   of .ai-dd), so hovering it keeps .ai-dd:hover true. */
.aigocy .ai-dd .dropdown-menu.mega-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.7rem;
    height: 0.7rem;
}
.aigocy .mega-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .2rem; }

.aigocy .ai-nav-links .mega-item {
    display: flex; align-items: flex-start; gap: .6rem; min-width: 0;
    padding: .5rem .55rem; border-radius: 10px;
    background: transparent; color: #1e293b; opacity: 1; font-weight: 400;
}
.aigocy .ai-nav-links .mega-item:hover { background: var(--ai-bg-deep); opacity: 1; color: #1e293b; }
/* .mega-ico backgrounds come from the rotating ic-0..ic-7 palette in site.css. */
.aigocy .mega-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.aigocy .mega-name { font-weight: 600; font-size: .92rem; }
.aigocy .mega-sub {
    font-size: .78rem; color: #64748b; font-weight: 400; max-width: 100%;
    /* Two lines instead of a single truncated line — gives the subtitle room to breathe. */
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Open on hover (desktop); Bootstrap click still works on touch. */
@media (min-width: 992px) {
    .aigocy .ai-nav .ai-dd:hover > .dropdown-menu { display: block; }
}

/* =========================== MOBILE MENU =========================== */
.aigocy .ai-burger {
    display: none; margin-left: auto;
    width: 44px; height: 44px; flex: 0 0 44px;
    border: 0; border-radius: 12px;
    background: var(--ai-bg-deep); color: var(--ai-fg);
    font-size: 1.5rem; align-items: center; justify-content: center; cursor: pointer;
}
body.ai-noscroll { overflow: hidden; }

/* No horizontal scroll on mobile — the off-canvas drawer sits off-screen-right
   (translateX 100%) and its sub-panels slide in, which can otherwise create a
   horizontal scroll region on small screens. */
@media (max-width: 991.98px) {
    html, body { overflow-x: hidden; }
}
.aigocy .ai-mobile {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--ai-bg);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s ease;
    visibility: hidden;
    overflow: hidden;            /* clip the sliding sub-panels */
}
.aigocy .ai-mobile.open { transform: translateX(0); visibility: visible; }
.aigocy .ai-mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--ai-line); background: #fff;
}
.aigocy .ai-mobile-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.aigocy .ai-mobile-brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ai-accent); }
.aigocy .ai-mobile-x {
    border: 0; background: transparent; font-size: 1.9rem; line-height: 1;
    color: var(--ai-fg); cursor: pointer; padding: 0 4px;
}
/* Search bar */
.aigocy .ai-m-search {
    display: flex; align-items: center; gap: 8px;
    margin: 12px 16px 4px; padding: 11px 14px;
    background: var(--ai-bg-deep); border-radius: 999px;
}
.aigocy .ai-m-search > i { color: var(--ai-muted); font-size: 1.15rem; }
.aigocy .ai-m-search input {
    flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
    font-size: 1rem; color: var(--ai-fg);
}
.aigocy .ai-m-search input::-webkit-search-cancel-button { display: none; }
.aigocy .ai-m-search-clear { border: 0; background: transparent; color: var(--ai-muted); cursor: pointer; font-size: 1.15rem; padding: 0; line-height: 1; }

/* Multi-level panel area: main + sliding sub-panels + search-results overlay. */
.aigocy .ai-mobile-body { position: relative; flex: 1; overflow: hidden; padding: 0; }
.aigocy .ai-m-panel {
    position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto;
    padding: 6px 14px 18px; background: var(--ai-bg);
}
.aigocy .ai-m-panel-main { z-index: 0; }
.aigocy .ai-m-panel-sub { z-index: 1; transform: translateX(100%); transition: transform .26s ease; }
.aigocy .ai-m-panel-sub.active { transform: translateX(0); }
.aigocy .ai-m-results { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; padding: 6px 14px 18px; background: var(--ai-bg); z-index: 3; }

/* Parent row (opens a sub-panel) and Back row (returns to main). */
.aigocy .ai-m-parent {
    width: 100%; text-align: left; border: 0; cursor: pointer; background: transparent;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 12px; font-size: 1.05rem; font-weight: 600; color: var(--ai-fg);
    border-bottom: 1px solid var(--ai-line);
}
.aigocy .ai-m-parent > i { opacity: .5; font-size: 1.25rem; }
.aigocy .ai-m-back {
    width: 100%; text-align: left; border: 0; cursor: pointer; background: transparent;
    display: flex; align-items: center; gap: 2px;
    padding: 10px 4px 12px; margin-bottom: 6px; font-size: 1rem; font-weight: 700;
    color: var(--ai-accent); border-bottom: 1px solid var(--ai-line);
}
.aigocy .ai-m-back > i { font-size: 1.35rem; }

.aigocy .ai-m-link {
    display: block; padding: 15px 12px; font-size: 1.05rem; font-weight: 600;
    color: var(--ai-fg); text-decoration: none; border-bottom: 1px solid var(--ai-line);
}
.aigocy .ai-m-group { border-bottom: 1px solid var(--ai-line); }
.aigocy .ai-m-group > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 12px; font-size: 1.05rem; font-weight: 600; color: var(--ai-fg);
}
.aigocy .ai-m-group > summary::-webkit-details-marker { display: none; }
.aigocy .ai-m-chev { transition: transform .2s ease; opacity: .55; }
.aigocy .ai-m-group[open] > summary .ai-m-chev { transform: rotate(180deg); }
.aigocy .ai-m-items { padding: 2px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.aigocy .ai-m-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ai-fg);
}
.aigocy .ai-m-item:active, .aigocy .ai-m-item:hover { background: var(--ai-bg-deep); }
.aigocy .ai-m-itemtext { display: flex; flex-direction: column; min-width: 0; }
.aigocy .ai-m-itemname { font-weight: 600; font-size: .95rem; }
.aigocy .ai-m-itemsub { font-size: .8rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aigocy .ai-mobile-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ai-line); background: #fff; }
.aigocy .ai-mobile-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--ai-fg); color: #fff; text-decoration: none;
    padding: 16px; border-radius: 14px; font-weight: 600; font-size: 1.05rem;
}
.aigocy .ai-mobile-cta:hover { background: var(--ai-accent); }

@media (max-width: 991.98px) {
    .aigocy .ai-nav-links,
    .aigocy .ai-nav > .ai-nav-cta { display: none; }
    .aigocy .ai-burger { display: inline-flex; }
}
@media (min-width: 992px) {
    .aigocy .ai-mobile { display: none; }
}
@media (max-width: 575.98px) {
    .aigocy .mega-grid { grid-template-columns: 1fr; }
}

/* =========================== SCROLL TO TOP =========================== */
/* Circular black button with an accent progress ring that fills as the page
   scrolls (aigocy theme). Stacked above the chat launcher on the right; lower
   z-index than the chat widget (1080) so an open chat panel sits over it. */
.progress-wrap {
    position: fixed;
    right: 24px;
    bottom: 164px;          /* stacked above the language switcher (92) + chat launcher (24) */
    height: 46px;
    width: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1070;
    background: var(--ai-dark);
    color: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
}
.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.progress-wrap:hover { background: var(--ai-accent); }
.progress-wrap i {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    line-height: 1;
}
.progress-wrap svg.progress-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.progress-wrap svg.progress-circle path {
    fill: none;
    stroke: var(--ai-accent);
    stroke-width: 5;
    box-sizing: border-box;
    transition: stroke-dashoffset 10ms linear;
}
@media (max-width: 575.98px) {
    .progress-wrap { right: 18px; bottom: 156px; height: 42px; width: 42px; }
}

/* =========================== INNER-PAGE BANNER =========================== */
/* Aigocy hero look reused as a compact page header — cream→accent gradient with
   soft glow + floating colour blobs. Shown on inner pages (catalog detail, about,
   contact); the home page keeps its own full .ai-hero. */
/* On banner pages the nav floats OVER the banner (transparent overlay) so the
   gradient bleeds up behind the menu, matching the source theme. Scoped to
   .has-banner so the home page keeps its normal in-flow nav. */
body.aigocy.has-banner > header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.ai-banner {
    position: relative;
    overflow: hidden;
    /* Extra top padding clears the floating nav (which now overlaps the banner). */
    padding: 116px 0 60px;
    background:
        radial-gradient(58% 120% at 86% 8%, rgba(255, 46, 111, .20), transparent 60%),
        radial-gradient(70% 150% at 72% 70%, rgba(255, 122, 59, .30), transparent 58%),
        linear-gradient(180deg, #ffffff 0%, var(--ai-bg) 100%);
}
.ai-banner > .container { position: relative; z-index: 2; }
.ai-banner .section-eyebrow { background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ai-banner-title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.05;
    margin: 16px 0 0;
}
.ai-banner-sub { color: var(--ai-muted); font-size: 1.06rem; max-width: 640px; margin: 16px auto 0; }
.ai-banner-glow {
    position: absolute;
    left: 50%; bottom: -110px;
    transform: translateX(-50%);
    width: 620px; height: 230px;
    background: radial-gradient(ellipse at center, rgba(255, 77, 45, .30), transparent 62%);
    filter: blur(26px);
    z-index: 1;
}
.ai-banner-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
    animation: ai-banner-float 7s ease-in-out infinite;
}
.ai-banner-blob.blob-1 { width: 120px; height: 120px; right: 7%;  top: 16%;    background: linear-gradient(135deg, #ff7a3b, #ff2e6f); }
.ai-banner-blob.blob-2 { width: 68px;  height: 68px;  right: 19%; bottom: 18%;  background: linear-gradient(135deg, #ff4d2d, #ffb199); animation-delay: -2.5s; }
.ai-banner-blob.blob-3 { width: 44px;  height: 44px;  right: 4%;  bottom: 30%;  background: #fff; animation-delay: -4.5s; }
@keyframes ai-banner-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@media (max-width: 767.98px) {
    .ai-banner { padding: 96px 0 40px; }
    .ai-banner-blob.blob-1 { width: 80px; height: 80px; }
    .ai-banner-blob.blob-2, .ai-banner-blob.blob-3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-banner-blob { animation: none; }
}

/* ── Banner breadcrumb ── */
.ai-banner-crumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}
.ai-bc-item {
    display: inline-flex;
    align-items: center;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(22, 22, 22, .5);
    text-decoration: none;
    padding: .26rem .82rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .65);
    transition: color .2s, background .2s, border-color .2s;
    animation: ai-bc-in .55s cubic-bezier(.22, 1, .36, 1) both;
}
a.ai-bc-item:hover,
a.ai-bc-item:focus {
    color: var(--ai-fg);
    background: rgba(255, 255, 255, .68);
    border-color: rgba(255, 255, 255, .9);
    text-decoration: none;
}
.ai-bc-current {
    color: var(--ai-accent) !important;
    background: rgba(255, 77, 45, .09) !important;
    border-color: rgba(255, 77, 45, .22) !important;
    font-weight: 600;
    cursor: default;
}
.ai-bc-sep {
    display: flex;
    align-items: center;
    color: var(--ai-accent);
    font-size: .95rem;
    opacity: .6;
    flex-shrink: 0;
    animation: ai-bc-in .55s cubic-bezier(.22, 1, .36, 1) both;
}
.ai-banner-crumb > :nth-child(1) { animation-delay: .12s; }
.ai-banner-crumb > :nth-child(2) { animation-delay: .18s; }
.ai-banner-crumb > :nth-child(3) { animation-delay: .24s; }
.ai-banner-crumb > :nth-child(4) { animation-delay: .30s; }
.ai-banner-crumb > :nth-child(5) { animation-delay: .36s; }
@keyframes ai-bc-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}
@media (max-width: 767.98px) {
    .ai-banner-crumb { margin-top: 1.2rem; }
    .ai-bc-item { font-size: .74rem; padding: .22rem .65rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-bc-item, .ai-bc-sep { animation: none; }
}

/* =========================== LIQUID-GLASS FOOTER =========================== */
/* Frosted, glossy dark-glass panel with a rounded top, sheen highlight and accent
   glow. Sits at the bottom of every page (see sticky-footer flex above). */
.ai-footer {
    position: relative;
    margin-top: 72px;
    color: #f3f3f5;
    background: linear-gradient(135deg, rgba(22, 22, 26, .90), rgba(38, 31, 48, .86));
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, .16);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -12px 44px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .22);
    overflow: hidden;
}
/* Glossy sheen + accent glow overlay (the "liquid" highlight). */
.ai-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 12% -25%, rgba(255, 255, 255, .18), transparent 52%),
        radial-gradient(90% 130% at 100% 0%, rgba(255, 77, 45, .22), transparent 55%);
    pointer-events: none;
}
/* Thin bright line riding the top edge — the glass rim. */
.ai-footer::after {
    content: "";
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    pointer-events: none;
}
.ai-footer > .container { position: relative; z-index: 1; }
.ai-footer h5, .ai-footer h6 { color: #fff; }
.ai-footer p, .ai-footer .text-muted, .ai-footer li { color: rgba(255, 255, 255, .64) !important; }
.ai-footer a, .ai-footer .link-light { color: rgba(255, 255, 255, .68) !important; text-decoration: none; }
.ai-footer a:hover, .ai-footer .link-light:hover { color: #fff !important; }
.ai-footer hr { border-color: rgba(255, 255, 255, .14) !important; opacity: 1; }
.ai-footer .form-control {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}
.ai-footer .form-control::placeholder { color: rgba(255, 255, 255, .5); }
.ai-footer .form-control:focus {
    background: rgba(255, 255, 255, .14);
    border-color: var(--ai-accent);
    box-shadow: none;
    color: #fff;
}
/* Footer social bubbles. */
.ai-footer .ai-foot-social a {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .78) !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.ai-footer .ai-foot-social a:hover {
    background: var(--ai-accent);
    border-color: var(--ai-accent);
    color: #fff !important;
    transform: translateY(-2px);
}
/* Clean text footer link columns (no icons / arrows). */
.ai-footer .ai-foot-list a { color: rgba(255, 255, 255, .64) !important; transition: color .15s ease; }
.ai-footer .ai-foot-list a:hover { color: #fff !important; }

/* Google Translate widget — suppress the injected top banner + theme the language select.
   The switcher lives in the top nav (.ai-nav-translate) on the light pill. */
.goog-te-banner-frame, iframe.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate, iframe.skiptranslate { display: none !important; visibility: hidden !important; }
.goog-te-gadget-icon, .goog-te-gadget span, .goog-logo-link { display: none !important; }
.goog-te-gadget { color: transparent !important; font-size: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
/* Cancel the top offset Google adds to <body> for its (now hidden) banner. */
html, body { top: 0 !important; position: static !important; }
/* The Google engine itself is hidden — the floating .ai-lang switcher drives it. */
.ai-gt-hidden { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0; overflow: hidden; }

/* =========================== FLOATING LANGUAGE SWITCHER =========================== */
/* Sits above the chat launcher (bottom-right). Frosted-glass pill stack opens upward. */
.ai-lang {
    position: fixed;
    right: 24px;
    bottom: 92px;            /* directly above the chat launcher (bottom:24, ~56px tall) */
    z-index: 1075;           /* below the chat widget (1080) */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.ai-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}
.ai-lang-label {
    font-size: 13px; font-weight: 600; color: var(--ai-fg);
    background: #fff; border: 1px solid var(--ai-line);
    padding: 7px 13px; border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
.ai-lang-ico {
    width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--ai-line);
    color: var(--ai-accent); font-size: 1.35rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
    transition: transform .15s ease;
}
.ai-lang-btn:hover .ai-lang-ico { transform: translateY(-2px); }
/* Label (current language) only shows on hover/open — resting state is just the icon. */
.ai-lang-label { display: none; }
.ai-lang:hover .ai-lang-label, .ai-lang.open .ai-lang-label { display: inline-block; }
.ai-lang-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    min-width: 190px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    /* Hidden at rest; revealed on hover (desktop) or .open (touch click). */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}
.ai-lang:hover .ai-lang-panel, .ai-lang.open .ai-lang-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}
/* Invisible bridge across the gap between the launcher and the panel — without it the
   cursor leaves .ai-lang while crossing the gap, :hover drops, and the pills become
   unclickable. The bridge is part of the panel (a descendant of .ai-lang) so hovering it
   keeps the panel open while the cursor travels up to a pill. */
.ai-lang-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;
    height: 16px;
}
.ai-lang-pill {
    border: none; cursor: pointer;
    padding: 12px 18px; border-radius: 14px;
    font-weight: 600; font-size: .95rem;
    color: #1f2937;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: background .15s ease, transform .15s ease;
}
.ai-lang-pill:hover { background: rgba(255, 255, 255, .78); transform: translateY(-1px); }
.ai-lang-pill.active {
    background: linear-gradient(180deg, #3fbf5f, #2fa84f);
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 168, 79, .45);
}
@media (max-width: 575.98px) {
    .ai-lang { right: 18px; bottom: 86px; }
    .ai-lang-ico { width: 42px; height: 42px; }
}

/* Gentle "vibrate" nudge on the translate button (home page, every 10s). */
@keyframes ai-lang-vibrate {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    10% { transform: translate(-2px, 1px) rotate(-7deg); }
    20% { transform: translate(2px, -1px) rotate(7deg); }
    30% { transform: translate(-2px, 1px) rotate(-6deg); }
    40% { transform: translate(2px, -1px) rotate(6deg); }
    55% { transform: translate(-1px, 1px) rotate(-3deg); }
    70% { transform: translate(1px, -1px) rotate(3deg); }
    85% { transform: translate(-1px, 0) rotate(-1deg); }
}
.ai-lang-ico.ai-vibrate { animation: ai-lang-vibrate .7s ease-in-out; box-shadow: 0 0 0 6px rgba(255, 77, 45, .14), 0 10px 26px rgba(0, 0, 0, .16); }

/* One-time "read in your language" nudge toast, anchored above the switcher. */
.ai-lang-toast {
    position: fixed; right: 24px; bottom: 152px; z-index: 1076;
    max-width: 300px; display: none; align-items: flex-start; gap: 12px;
    background: #fff; border: 1px solid var(--ai-line); border-radius: 16px;
    padding: 14px 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    cursor: pointer;
}
.ai-lang-toast.show { display: flex; animation: ai-toast-in .35s ease; }
.ai-lang-toast::after { content: ""; position: absolute; right: 26px; bottom: -8px; width: 16px; height: 16px; background: #fff; border-right: 1px solid var(--ai-line); border-bottom: 1px solid var(--ai-line); transform: rotate(45deg); }
.ai-lang-toast-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #ffe7e2; color: var(--ai-accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.ai-lang-toast-body { display: flex; flex-direction: column; line-height: 1.3; }
.ai-lang-toast-body strong { color: var(--ai-fg); font-size: .95rem; }
.ai-lang-toast-body span { color: var(--ai-muted); font-size: .82rem; }
.ai-lang-toast-x { flex-shrink: 0; background: none; border: none; color: var(--ai-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.ai-lang-toast-x:hover { color: var(--ai-fg); }
@keyframes ai-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 575.98px) {
    .ai-lang-toast { right: 18px; bottom: 138px; max-width: calc(100vw - 36px); }
}

/* =========================== GET-STARTED MODAL =========================== */
.ai-modal {
    border: none;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    overflow: hidden;
}
.ai-modal .modal-header { padding: 22px 24px 4px; }
.ai-modal .modal-body { padding: 14px 24px 26px; }
.ai-modal .form-control:focus { border-color: var(--ai-accent); box-shadow: 0 0 0 .2rem rgba(255, 77, 45, .15); }

/* =========================== PORTFOLIO =========================== */
.ai-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.ai-portfolio-card {
    display: flex;
    flex-direction: column;
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius-sm);
    padding: 24px;
    text-decoration: none;
    color: var(--ai-fg);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ai-portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--ai-shadow); border-color: transparent; }
.ai-portfolio-card .mega-ico { width: 48px; height: 48px; border-radius: 12px; font-size: 1.3rem; margin-bottom: 14px; }
.ai-portfolio-card h3 { font-size: 1.15rem; margin: 0 0 6px; }
.ai-portfolio-card p { color: var(--ai-muted); font-size: .9rem; margin: 0 0 16px; flex: 1; }
.ai-portfolio-link { color: var(--ai-accent); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }

/* =========================== OUR CLIENTS =========================== */
/* Logo cards on a theme background — grayscale, fading to full colour on hover.
   Few logos → centered static row; many → an auto-scrolling marquee. */
/* Deeper theme tone so the white logo cards stand out / the section reads as a band. */
.ai-clients { padding: 56px 0 64px; background: var(--ai-bg-deep); overflow: hidden; }
.ai-clients-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;   /* centered when there are only a few logos */
    gap: 22px;
}
.ai-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ai-marquee-track {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    animation: ai-marquee-scroll 36s linear infinite;
}
.ai-marquee:hover .ai-marquee-track { animation-play-state: paused; }

/* Logo chip — theme card background, bigger logo inside. */
.ai-client-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Fixed box reserves space so the chip never resizes when its logo loads (no CLS). */
    width: 200px;
    height: 100px;
    padding: 20px 30px;
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius-sm);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.ai-client-logo:hover { box-shadow: var(--ai-shadow); transform: translateY(-3px); border-color: transparent; }
.ai-client-logo img {
    max-height: 60px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .65;
    transition: filter .25s ease, opacity .25s ease;
}
.ai-client-logo:hover img { filter: none; opacity: 1; }
@keyframes ai-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ai-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 575.98px) {
    .ai-client-logo { width: 150px; height: 84px; padding: 14px 18px; }
    .ai-client-logo img { max-height: 46px; max-width: 110px; }
}
