/* Custom AI Page Styles - Background Image */

/* Hero background image - full width, behind content */
.hero-background-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 0 !important; /* Behind content */
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 0; /* Start hidden for fade-in */
    animation: imageFadeIn 2s ease-in-out forwards;
    background: #000000 !important;
    /* Maintain quality - no blur */
    filter: none !important;
    -webkit-filter: none !important;
    /* No borders */
    border: none !important;
    outline: none !important;
    /* Maintain aspect ratio and quality */
    min-width: 100% !important;
    max-width: 100% !important;
}

/* Mobile: Adjust image to fit screen width without cropping sides */
@media (max-width: 768px) {
    .hero-background-image {
        object-fit: contain !important; /* Show full image, fit within viewport */
        object-position: center center !important; /* Center the image */
        width: 100% !important;
        height: 100vh !important;
        /* Ensure image scales to fit width without cropping */
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* Fade-in animation for image */
@keyframes imageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dark overlay on image for text readability (40-50% black) */
.hero-image-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Above image, below text */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.5) 100%
    ) !important;
    pointer-events: none !important;
    /* Smooth transition at bottom to blend with content below */
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.5) 85%,
        rgba(0, 0, 0, 0.7) 95%,
        rgba(0, 0, 0, 1) 100%
    ) !important;
}

/* Hero section - relative positioning for image */
.hero {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh;
    background: #000000 !important;
}

/* Hide old background elements */
.hero-background {
    display: none !important;
}

.hero-particles {
    display: none !important;
}

/* Hero content - above image and overlay */
.hero .container,
.hero-content,
.hero-text,
.hero-visual,
.hero-actions {
    position: relative !important;
    z-index: 2 !important; /* Above image and overlay */
}

/* Ensure all containers are transparent */
.hero .container {
    background: transparent !important;
}

/* Center the hero text horizontally, position higher vertically */
.hero-content {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    min-height: 100vh !important;
    padding-top: 11vh !important;
}

.hero-text {
    text-align: center !important;
    width: 100% !important;
    max-width: 920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Sub-headline under hero title (matches other product pages) */
.hero .hero-title {
    justify-content: center !important;
    margin-bottom: var(--spacing-6) !important;
}

.hero .hero-subtitle {
    font-size: clamp(1rem, 2.2vw, var(--font-size-xl));
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.02em;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.hero .hero-subtitle-line2 {
    display: inline-block;
    margin-top: 0.35em;
}

/* --------------------------------------------------------------------------
   The Problem — editorial section (no cards; accent rail + scroll reveal)
   -------------------------------------------------------------------------- */
.custom-ai-problem {
    position: relative;
    padding: clamp(3.5rem, 10vw, 5.5rem) 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
        #000000;
    overflow: hidden;
}

/* Soft drifting light blobs (ambient motion) */
.custom-ai-problem-float {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
}

.custom-ai-problem-float--a {
    width: min(42vw, 380px);
    height: min(42vw, 380px);
    top: 5%;
    right: -5%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 68%);
    animation: customAiFloatA 22s ease-in-out infinite;
}

.custom-ai-problem-float--b {
    width: min(35vw, 280px);
    height: min(35vw, 280px);
    bottom: 10%;
    left: -8%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: customAiFloatB 26s ease-in-out infinite;
}

@keyframes customAiFloatA {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.28;
    }
    33% {
        transform: translate(-4%, 6%) scale(1.08);
        opacity: 0.42;
    }
    66% {
        transform: translate(3%, -4%) scale(0.95);
        opacity: 0.35;
    }
}

@keyframes customAiFloatB {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.22;
    }
    50% {
        transform: translate(8%, -5%) scale(1.12);
        opacity: 0.38;
    }
}

.custom-ai-problem-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 120% 80% at 20% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    animation: customAiProblemGlow 14s ease-in-out infinite alternate;
}

@keyframes customAiProblemGlow {
    0% {
        opacity: 0.45;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0.85;
        transform: scale(1.05) translate(2%, -1%);
    }
}

.custom-ai-problem-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 2.75rem);
    align-items: stretch;
    max-width: 920px;
    margin: 0 auto;
}

.custom-ai-problem-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 3px;
    height: 100%;
    min-height: 100%;
    position: relative;
}

.custom-ai-problem-rail-line {
    display: block;
    flex: 1 1 auto;
    width: 3px;
    min-height: 10rem;
    border-radius: 999px;
    position: relative;
    z-index: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.35) 45%,
        rgba(255, 255, 255, 0.08) 100%
    );
    background-size: 100% 200%;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
    animation: customAiRailShimmer 6s ease-in-out infinite, customAiRailFlow 8s ease-in-out infinite;
}

/* Orb position is driven by JS so it aligns with each list row (see custom-ai.js) */
.custom-ai-problem-rail-orb {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 2;
    width: 12px;
    height: 12px;
    margin-left: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(255, 255, 255, 0.2) 55%, transparent 70%);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.85), 0 0 36px rgba(255, 255, 255, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.custom-ai-problem-rail-orb--ready {
    opacity: 1;
}

.custom-ai-problem-rail-orb--reduced {
    opacity: 0.55;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

@keyframes customAiRailFlow {
    0%,
    100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
}

@keyframes customAiRailShimmer {
    0%,
    100% {
        opacity: 0.75;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.15);
    }
}

.custom-ai-problem-content {
    padding-right: var(--spacing-2);
}

.custom-ai-problem-title {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 var(--spacing-6);
    position: relative;
}

/* Subtle shine sweep on the heading once revealed */
.custom-ai-problem-title.is-visible::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35em;
    width: 100%;
    max-width: 12rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    background-size: 200% 100%;
    animation: customAiTitleUnderline 3.5s ease-in-out infinite;
}

@keyframes customAiTitleUnderline {
    0% {
        background-position: 100% 0;
        opacity: 0.4;
    }
    50% {
        opacity: 0.95;
    }
    100% {
        background-position: -100% 0;
        opacity: 0.4;
    }
}

.custom-ai-problem-lead {
    font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-xl));
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--spacing-8);
    max-width: 40rem;
}

.custom-ai-problem-list {
    list-style: none;
    margin: 0 0 var(--spacing-10);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}

.custom-ai-problem-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-4);
    font-size: var(--font-size-lg);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    padding: 0.35rem 0 0.35rem 0.5rem;
    margin-left: -0.5rem;
    border-radius: 4px;
    overflow: visible;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s ease, background 0.45s ease,
        opacity 0.55s ease, box-shadow 0.45s ease;
}

.custom-ai-problem-list li:hover {
    transform: translateX(6px);
    color: rgba(255, 255, 255, 0.98);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
}

/* While orb cycles: dim non-active rows so the highlighted line is easy to read */
.custom-ai-problem--orbit-running .custom-ai-problem-list li:not(.custom-ai-problem-item--active) {
    opacity: 0.38;
    transform: translateX(0);
}

.custom-ai-problem--orbit-running .custom-ai-problem-list li:not(.custom-ai-problem-item--active):hover {
    opacity: 0.65;
}

/* Entire row (dot + label) lights up together when the orb lands */
.custom-ai-problem-text {
    flex: 1;
    min-width: 0;
    transition: color 0.35s ease, text-shadow 0.35s ease, font-weight 0.35s ease;
}

.custom-ai-problem-item--active {
    opacity: 1 !important;
    color: rgba(255, 255, 255, 1) !important;
    transform: translateX(4px);
    padding: 0.65rem 0.85rem 0.65rem 0.65rem;
    margin-left: -0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.02) 100%
    );
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(255, 255, 255, 0.08);
    animation: customAiRowPop 0.58s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

.custom-ai-problem-item--active .custom-ai-problem-text {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.22), 0 0 2px rgba(255, 255, 255, 0.4);
}

@keyframes customAiRowPop {
    0% {
        transform: translateX(2px) scale(0.985);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateX(5px) scale(1.008);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 36px rgba(255, 255, 255, 0.12);
    }
    100% {
        transform: translateX(4px) scale(1);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(255, 255, 255, 0.08);
    }
}

.custom-ai-problem-item--active .custom-ai-problem-marker {
    opacity: 1;
    animation: customAiMarkerPop 0.58s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

/* Expanding ring when the orb lands on this row (transparent center so the dot stays visible) */
.custom-ai-problem-item--active .custom-ai-problem-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    pointer-events: none;
    z-index: 1;
    animation: customAiMarkerRipple 0.75s ease-out forwards;
}

@keyframes customAiMarkerPop {
    0% {
        transform: scale(0.55);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    55% {
        transform: scale(1.65);
        box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: scale(1.22);
        box-shadow: 0 0 18px rgba(255, 255, 255, 0.65), 0 0 32px rgba(255, 255, 255, 0.15);
    }
}

@keyframes customAiMarkerRipple {
    0% {
        transform: scale(0.45);
        opacity: 0.95;
    }
    100% {
        transform: scale(1.85);
        opacity: 0;
    }
}

.custom-ai-problem--orbit-running .custom-ai-problem-list li:not(.custom-ai-problem-item--active) .custom-ai-problem-marker {
    animation: none;
    opacity: 0.45;
    transform: scale(0.92);
}

.custom-ai-problem-marker {
    position: relative;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 0.5em;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, rgba(255, 255, 255, 0.25));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    animation: customAiMarkerPulse 3.5s ease-in-out infinite;
}

.custom-ai-problem-list li:nth-child(2) .custom-ai-problem-marker {
    animation-delay: 0.4s;
}
.custom-ai-problem-list li:nth-child(3) .custom-ai-problem-marker {
    animation-delay: 0.8s;
}
.custom-ai-problem-list li:nth-child(4) .custom-ai-problem-marker {
    animation-delay: 1.2s;
}
.custom-ai-problem-list li:nth-child(5) .custom-ai-problem-marker {
    animation-delay: 1.6s;
}

@keyframes customAiMarkerPulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.custom-ai-problem-outro,
.custom-ai-problem-resolve {
    font-size: clamp(var(--font-size-base), 1.6vw, var(--font-size-lg));
    line-height: 1.7;
    margin: 0;
    max-width: 40rem;
}

.custom-ai-problem-outro {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: var(--spacing-5);
    font-style: italic;
    font-weight: 400;
}

.custom-ai-problem-resolve {
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 0.01em;
    padding-top: var(--spacing-4);
    max-width: 40rem;
    border-top: none;
}

/* Animated rule above closing line */
.custom-ai-problem-resolve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 28rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.45) 45%,
        rgba(255, 255, 255, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: customAiResolveRule 4s ease-in-out infinite;
}

@keyframes customAiResolveRule {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Scroll reveal */
.custom-ai-reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.custom-ai-reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Who this is for? — soft mesh drift + dual rings + title line draw + bar list
   (Distinct from Problem orb/rail, Privacy sheen/grid, WWB arrows, Typical sheen.)
   -------------------------------------------------------------------------- */
.custom-ai-audience {
    position: relative;
    margin-top: clamp(2rem, 6vw, 4rem);
    padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(3rem, 8vw, 5rem);
    background: #020202;
    overflow: hidden;
}

.custom-ai-audience-bg {
    position: absolute;
    inset: -2%;
    background:
        radial-gradient(ellipse 85% 65% at 18% 42%, rgba(255, 255, 255, 0.075) 0%, transparent 58%),
        radial-gradient(ellipse 75% 55% at 88% 58%, rgba(255, 255, 255, 0.045) 0%, transparent 52%),
        radial-gradient(ellipse 55% 45% at 50% 95%, rgba(255, 255, 255, 0.035) 0%, transparent 48%);
    animation: customAiAudienceMesh 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes customAiAudienceMesh {
    0% {
        opacity: 0.82;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(1.5%, -1.2%) scale(1.04);
    }
}

.custom-ai-audience-rings {
    position: absolute;
    right: max(-4rem, -8vw);
    top: 50%;
    transform: translateY(-50%);
    width: min(28rem, 70vw);
    height: min(28rem, 70vw);
    pointer-events: none;
}

.custom-ai-audience-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    transform-origin: 50% 50%;
    will-change: transform;
    animation: customAiAudienceRingSpin 48s linear infinite;
}

.custom-ai-audience-ring--inner {
    inset: 1.75rem;
    border-color: rgba(255, 255, 255, 0.055);
    animation-direction: reverse;
    animation-duration: 36s;
}

@keyframes customAiAudienceRingSpin {
    to {
        transform: rotate(360deg);
    }
}

.custom-ai-audience-inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.custom-ai-audience-header {
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.custom-ai-audience-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    margin: 0;
}

.custom-ai-audience-title-line-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.custom-ai-audience-title-line {
    height: 1px;
    width: min(14rem, 85%);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 45%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.35) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
    animation: customAiAudienceLineShimmer 5s ease-in-out infinite;
}

.custom-ai-audience-title-line-wrap.is-visible .custom-ai-audience-title-line {
    transform: scaleX(1);
}

@keyframes customAiAudienceLineShimmer {
    0%,
    100% {
        background-position: 0% 0;
    }
    50% {
        background-position: 100% 0;
    }
}

.custom-ai-audience-lead {
    margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
    max-width: 32rem;
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
}

.custom-ai-audience-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 2vw, 0.85rem);
}

.custom-ai-audience-item {
    --audience-node-size: clamp(2.5rem, 6vw, 2.85rem);
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2.5vw, 1.15rem);
    padding: clamp(0.85rem, 2.2vw, 1.1rem) clamp(1rem, 2.5vw, 1.25rem);
    font-size: clamp(0.98rem, 1.25vw, 1.0625rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
}

/* Soft card + border draw on reveal */
.custom-ai-audience-item-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.055) 0%,
        rgba(255, 255, 255, 0.02) 42%,
        rgba(255, 255, 255, 0.015) 100%
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    opacity: 0;
    transform: scale(0.97);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
    pointer-events: none;
}

.custom-ai-audience-item.is-visible .custom-ai-audience-item-bg {
    opacity: 1;
    transform: scale(1);
}

/* Slow breathing glow — staggered per row */
.custom-ai-audience-item-bg::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(
        ellipse 55% 45% at 30% 50%,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 65%
    );
    animation: customAiAudienceRowGlow 5.5s ease-in-out infinite;
    opacity: 0.85;
}

.custom-ai-audience-item:nth-child(1) .custom-ai-audience-item-bg::after {
    animation-delay: 0s;
}

.custom-ai-audience-item:nth-child(2) .custom-ai-audience-item-bg::after {
    animation-delay: 1.1s;
}

.custom-ai-audience-item:nth-child(3) .custom-ai-audience-item-bg::after {
    animation-delay: 2.2s;
}

.custom-ai-audience-item:nth-child(4) .custom-ai-audience-item-bg::after {
    animation-delay: 3.3s;
}

@keyframes customAiAudienceRowGlow {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(4%, -3%) scale(1.08);
        opacity: 0.95;
    }
}

/* Hover: light sweep across the row */
.custom-ai-audience-item-shimmer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.09) 50%,
        transparent 62%,
        transparent 100%
    );
    background-size: 220% 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.custom-ai-audience-item:hover .custom-ai-audience-item-shimmer {
    opacity: 1;
    animation: customAiAudienceRowShimmer 1.35s ease-in-out;
}

@keyframes customAiAudienceRowShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Orbital markers — dual rings + pulsing core */
.custom-ai-audience-node {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: var(--audience-node-size);
    height: var(--audience-node-size);
    transform: scale(0.92);
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.custom-ai-audience-item.is-visible .custom-ai-audience-node {
    transform: scale(1);
}

.custom-ai-audience-node-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.42);
    border-right-color: rgba(255, 255, 255, 0.12);
    animation: customAiAudienceNodeSpin 7s linear infinite;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

.custom-ai-audience-node-orbit--inner {
    inset: 6px;
    border-style: dashed;
    border-top-color: rgba(255, 255, 255, 0.28);
    border-right-color: rgba(255, 255, 255, 0.08);
    animation-direction: reverse;
    animation-duration: 11s;
}

.custom-ai-audience-item.is-visible .custom-ai-audience-node-orbit {
    opacity: 1;
}

.custom-ai-audience-node-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0.45));
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.55),
        0 0 22px rgba(255, 255, 255, 0.18);
    opacity: 0;
    transform: scale(0.2);
    transition:
        opacity 0.45s ease 0.15s,
        transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 0.1s;
    animation: customAiAudienceNodePulse 2.8s ease-in-out infinite;
    animation-play-state: paused;
}

.custom-ai-audience-item.is-visible .custom-ai-audience-node-core {
    opacity: 1;
    transform: scale(1);
    animation-play-state: running;
}

@keyframes customAiAudienceNodeSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes customAiAudienceNodePulse {
    0%,
    100% {
        box-shadow:
            0 0 8px rgba(255, 255, 255, 0.45),
            0 0 18px rgba(255, 255, 255, 0.12);
        opacity: 0.92;
    }
    50% {
        box-shadow:
            0 0 14px rgba(255, 255, 255, 0.7),
            0 0 28px rgba(255, 255, 255, 0.22);
        opacity: 1;
    }
}

/* Text: wipe / unmask when row is visible */
.custom-ai-audience-text {
    position: relative;
    z-index: 2;
    display: block;
    flex: 1;
    min-width: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.custom-ai-audience-item.is-visible .custom-ai-audience-text {
    clip-path: inset(0 0 0 0);
}

.custom-ai-audience-item:hover .custom-ai-audience-text {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
    transition:
        color 0.3s ease,
        text-shadow 0.35s ease;
}

@media (max-width: 640px) {
    .custom-ai-audience-rings {
        opacity: 0.45;
        right: -25%;
    }
}

/* --------------------------------------------------------------------------
   Privacy & Control — diagonal sheen + grid; centered band + 2 cols + numbered rows
   -------------------------------------------------------------------------- */
.custom-ai-privacy {
    position: relative;
    margin-top: clamp(2rem, 6vw, 4rem);
    padding: clamp(4rem, 12vw, 7.5rem) 0 clamp(3.5rem, 9vw, 5.5rem);
    background: #030303;
    overflow: hidden;
}

/* Diagonal light band — different from Problem’s radial blobs */
.custom-ai-privacy-sheen {
    position: absolute;
    inset: -20% -10%;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 35%,
        transparent 55%,
        rgba(255, 255, 255, 0.02) 80%,
        transparent 100%
    );
    animation: customAiPrivacySheen 22s ease-in-out infinite alternate;
}

@keyframes customAiPrivacySheen {
    0% {
        opacity: 0.6;
        transform: translate(-3%, 0) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(4%, 2%) rotate(0.5deg);
    }
}

/* Subtle grid texture — Problem section has none */
.custom-ai-privacy-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 70%);
}

.custom-ai-privacy-inner {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
}

.custom-ai-privacy-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
    padding: 0 var(--spacing-4);
}

.custom-ai-privacy-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin: 0 0 var(--spacing-4);
}

.custom-ai-privacy-title {
    font-size: clamp(var(--font-size-3xl), 4.2vw, var(--font-size-5xl));
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 auto var(--spacing-4);
    max-width: 18ch;
}

/* Center rule under title — not a vertical rail */
.custom-ai-privacy-title-rule {
    width: min(120px, 28vw);
    height: 2px;
    margin: 0 auto var(--spacing-6);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65) 50%, transparent);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.custom-ai-privacy-lead {
    font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-xl));
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto;
    max-width: 32rem;
}

.custom-ai-privacy-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 8vw, 5.5rem);
    align-items: start;
    padding: 0 var(--spacing-2);
}

.custom-ai-privacy-column {
    padding: var(--spacing-6) var(--spacing-5);
    border-radius: 0;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
}

.custom-ai-privacy-column::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 3rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

/* Column section titles — shared font; "Why work with us?" uppercase, lead sentence stays mixed case */
.custom-ai-privacy-column-label {
    font-size: clamp(0.92rem, 1.65vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin: 0 0 var(--spacing-5);
    line-height: 1.35;
}

.custom-ai-privacy-column--engage {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.custom-ai-privacy-column--engage::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent);
}

.custom-ai-privacy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.custom-ai-privacy-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--spacing-4);
    align-items: baseline;
    padding: var(--spacing-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--font-size-base);
    line-height: 1.5;
    font-weight: 500;
}

.custom-ai-privacy-row:first-of-type {
    padding-top: 0;
}

.custom-ai-privacy-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    padding: 0.2rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    line-height: 1;
    transform: translateY(0.05em);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.custom-ai-privacy-row.custom-ai-reveal-item.is-visible .custom-ai-privacy-num {
    transform: translateY(0.05em) scale(1.06);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.custom-ai-privacy-row--soft {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.custom-ai-privacy-num--soft {
    color: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.custom-ai-privacy-row--soft.custom-ai-reveal-item.is-visible .custom-ai-privacy-num--soft {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.custom-ai-privacy-copy {
    min-width: 0;
}

.custom-ai-privacy-column-lead {
    font-size: clamp(0.92rem, 1.65vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.52);
    margin: 0 0 var(--spacing-5);
}

.custom-ai-privacy-column-outro {
    margin-top: var(--spacing-6);
    padding-top: var(--spacing-4);
    font-size: var(--font-size-sm);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    font-style: italic;
    font-weight: 400;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   What We Build — Foundations only (Typical engagements = separate section)
   -------------------------------------------------------------------------- */
.custom-ai-wwb {
    position: relative;
    padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
    background: #000000;
    overflow: hidden;
}

.custom-ai-wwb-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
}

.custom-ai-wwb-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.custom-ai-wwb-intro {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
    padding-bottom: var(--spacing-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-ai-wwb-title {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 auto var(--spacing-4);
}

.custom-ai-wwb-tagline {
    font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-xl));
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto;
    max-width: 36rem;
    line-height: 1.55;
}

/* Segment 1: Foundations — vertical accent rail + arrow list */
.custom-ai-wwb-seg--foundation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 1.75rem);
    align-items: stretch;
    margin-bottom: 0;
}

.custom-ai-wwb-seg-marker {
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.08) 100%);
    min-height: 8rem;
    align-self: stretch;
}

.custom-ai-wwb-seg-body {
    padding-top: 0.15rem;
}

.custom-ai-wwb-seg-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 var(--spacing-5);
}

.custom-ai-wwb-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-ai-wwb-list--arrows li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    padding: var(--spacing-3) 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    line-height: 1.55;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-ai-wwb-list--arrows li:last-child {
    border-bottom: none;
}

.custom-ai-wwb-arrow {
    flex-shrink: 0;
    width: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    font-family: system-ui, sans-serif;
}

/* Decorative separator between segments */
.custom-ai-wwb-separator {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    margin: clamp(2.5rem, 6vw, 4rem) 0;
    max-width: 100%;
}

.custom-ai-wwb-separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.custom-ai-wwb-separator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

/* Segment 2: Typical engagements — inset panel, different list language */
.custom-ai-wwb-seg--engage {
    margin-top: 0;
}

.custom-ai-wwb-engage-panel {
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(0.5rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 0;
    background: transparent;
    border: none;
    border-left: 3px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.custom-ai-wwb-seg-title--engage {
    margin-bottom: var(--spacing-3);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.18em;
}

.custom-ai-wwb-engage-lead {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 var(--spacing-5);
    font-weight: 400;
}

.custom-ai-wwb-list--pills li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-4);
    padding: var(--spacing-3) 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-base);
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-ai-wwb-list--pills li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.custom-ai-wwb-pill-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.55em;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.custom-ai-wwb-footer {
    margin-top: clamp(2.5rem, 6vw, 3.5rem);
    padding-top: var(--spacing-6);
    text-align: center;
    font-size: clamp(var(--font-size-base), 1.6vw, var(--font-size-lg));
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typical engagements — own section (distinct band + centered stack) */
.custom-ai-typical {
    position: relative;
    padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
    background: linear-gradient(180deg, #050505 0%, #000000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.custom-ai-typical-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
    animation: customAiTypicalSheen 20s ease-in-out infinite alternate;
}

@keyframes customAiTypicalSheen {
    0% {
        opacity: 0.65;
    }
    100% {
        opacity: 1;
    }
}

.custom-ai-typical-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--spacing-2);
}

.custom-ai-typical-header {
    text-align: center;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.custom-ai-typical-title {
    font-size: clamp(var(--font-size-2xl), 3.5vw, var(--font-size-4xl));
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 var(--spacing-4);
}

.custom-ai-typical-lead {
    font-size: clamp(var(--font-size-base), 1.8vw, var(--font-size-lg));
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.custom-ai-typical-list {
    margin-top: var(--spacing-2);
}

@media (max-width: 640px) {
    .custom-ai-wwb-seg--foundation {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }

    .custom-ai-wwb-seg-marker {
        width: 100%;
        height: 3px;
        min-height: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.08) 100%);
    }
}

@media (max-width: 768px) {
    .custom-ai-privacy-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }

    .custom-ai-privacy-column--engage {
        padding-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 640px) {
    .custom-ai-problem-wrap {
        grid-template-columns: 1fr;
        gap: var(--spacing-5);
    }

    .custom-ai-problem-rail {
        flex-direction: row;
        min-height: 0;
        padding-top: 0;
        justify-content: flex-start;
    }

    .custom-ai-problem-rail-line {
        width: 100%;
        height: 3px;
        min-height: 0;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.08) 100%
        );
        background-size: 200% 100%;
        animation: customAiRailShimmer 6s ease-in-out infinite, customAiRailFlowX 8s ease-in-out infinite;
    }

    /* Orb X/Y set by JS on mobile (horizontal rail) */
    .custom-ai-problem-rail-orb {
        margin-left: 0;
        margin-top: 0;
    }

    @keyframes customAiRailFlowX {
        0%,
        100% {
            background-position: 0% 0%;
        }
        50% {
            background-position: 100% 0%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-ai-problem-glow,
    .custom-ai-problem-float,
    .custom-ai-problem-rail-line,
    .custom-ai-problem-marker,
    .custom-ai-privacy-sheen {
        animation: none !important;
        opacity: 0.75;
    }

    .custom-ai-typical-sheen {
        animation: none !important;
        opacity: 0.85;
    }

    .custom-ai-wwb-separator-dot {
        box-shadow: none !important;
    }

    .custom-ai-problem--orbit-running .custom-ai-problem-list li:not(.custom-ai-problem-item--active) {
        opacity: 1 !important;
    }

    .custom-ai-problem-item--active {
        transform: none !important;
        animation: none !important;
        background: rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }

    .custom-ai-problem-item--active .custom-ai-problem-text {
        text-shadow: none !important;
        font-weight: 600 !important;
    }

    .custom-ai-problem-item--active .custom-ai-problem-marker {
        animation: none !important;
        transform: scale(1.12) !important;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.45) !important;
    }

    .custom-ai-problem-item--active .custom-ai-problem-marker::after {
        display: none !important;
    }

    .custom-ai-problem-title.is-visible::after {
        animation: none !important;
        opacity: 0.6;
    }

    .custom-ai-problem-resolve::before {
        animation: none !important;
    }

    .custom-ai-audience-bg {
        animation: none !important;
        opacity: 0.92;
    }

    .custom-ai-audience-ring {
        animation: none !important;
    }

    .custom-ai-audience-title-line {
        animation: none !important;
    }

    .custom-ai-audience-title-line-wrap .custom-ai-audience-title-line {
        transform: scaleX(1) !important;
        transition: none !important;
    }

    .custom-ai-audience-item-bg {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .custom-ai-audience-item-bg::after {
        animation: none !important;
    }

    .custom-ai-audience-item:hover .custom-ai-audience-item-shimmer {
        animation: none !important;
    }

    .custom-ai-audience-node-orbit {
        animation: none !important;
        opacity: 1 !important;
    }

    .custom-ai-audience-node {
        transform: none !important;
        transition: none !important;
    }

    .custom-ai-audience-node-core {
        animation: none !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    .custom-ai-audience-text {
        clip-path: none !important;
        transition: none !important;
    }

    .custom-ai-reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

