/* =========================================================
   AI Development hero — layered AI environment
   Built against competitor review notes:
     Apptunix   : depth through stacked layers, abstract AI (no photo)
     TechGropse : motion at the edges, calm centre, breathing room
     TCS        : show the AI journey visually
   ========================================================= */

.ai-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* no photographic background: this page is about AI, not an office */
    background: #06070B;
    padding: 124px 0 92px;
}

/* ---------- Layer stack ---------- */
.ai-hero__layers {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* 1. Base wash: deep space with a warm brand bloom at the edges */
.ai-hero__wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(900px 620px at 8% 18%, rgba(237, 50, 72, 0.16), transparent 62%),
        radial-gradient(860px 600px at 94% 78%, rgba(90, 120, 255, 0.14), transparent 62%),
        radial-gradient(1200px 760px at 50% 6%, rgba(255, 255, 255, 0.045), transparent 66%),
        linear-gradient(180deg, #08090F 0%, #06070B 58%, #0B0C10 100%);
}

/* 2. Orbit rings: slow, dotted, off-centre so they read as depth not decoration */
.ai-hero__orbits {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.ai-hero__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.10);
    transform: translate(-50%, -50%);
    transform-origin: center;
}
.ai-hero__orbit--1 {
    width: 1180px;
    height: 1180px;
    border-color: rgba(237, 50, 72, 0.14);
    animation: btsn-hero-spin 90s linear infinite;
}
.ai-hero__orbit--2 {
    width: 860px;
    height: 860px;
    border-color: rgba(255, 255, 255, 0.07);
    animation: btsn-hero-spin 64s linear infinite reverse;
}
.ai-hero__orbit--3 {
    width: 560px;
    height: 560px;
    border-color: rgba(120, 150, 255, 0.13);
    animation: btsn-hero-spin 44s linear infinite;
}

/* 3. Technical grid, faded out of the middle so the headline stays clean */
.ai-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image:
        radial-gradient(760px 420px at 34% 46%, transparent 0%, #000 74%),
        linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
    -webkit-mask-image:
        radial-gradient(760px 420px at 34% 46%, transparent 0%, #000 74%),
        linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    opacity: 0.6;
}

/* 3b. AI video layer — a real <video> when supplied, otherwise a generated one.
   Both sit below the particle network and above the grid. */
.ai-hero__video,
.ai-hero__videocanvas {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: block;
}
/* the canvas already fades its own motion toward the centre, this just
   guarantees the headline never has bright pixels behind it */
.ai-hero__videocanvas {
    mask-image: radial-gradient(520px 300px at 34% 44%, transparent 0%, #000 62%);
    -webkit-mask-image: radial-gradient(520px 300px at 34% 44%, transparent 0%, #000 62%);
}
.ai-hero--center .ai-hero__videocanvas {
    mask-image: radial-gradient(560px 320px at 50% 38%, transparent 0%, #000 64%);
    -webkit-mask-image: radial-gradient(560px 320px at 50% 38%, transparent 0%, #000 64%);
}
.ai-hero__video {
    object-fit: cover;
    opacity: 0.5;
    /* keep the footage cool and low-contrast so the headline always wins */
    filter: saturate(0.75) contrast(1.05) brightness(0.62);
    mask-image: radial-gradient(760px 430px at 34% 46%, transparent 0%, #000 72%);
    -webkit-mask-image: radial-gradient(760px 430px at 34% 46%, transparent 0%, #000 72%);
}
.ai-hero--center .ai-hero__video {
    mask-image: radial-gradient(840px 470px at 50% 42%, transparent 0%, #000 74%);
    -webkit-mask-image: radial-gradient(840px 470px at 50% 42%, transparent 0%, #000 74%);
}
.ai-hero__videocanvas {
    opacity: 1;
}

/* 4. Live particle network (JS). Density already falls off at the centre. */
.ai-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 6;
    width: 100%;
    height: 100%;
    display: block;
}

/* 5. Vignette: sits BELOW the moving layers so it darkens the static
   background without hiding the video; the video carries its own mask. */
.ai-hero__vignette {
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        radial-gradient(680px 380px at 34% 44%, rgba(6, 7, 11, 0.92) 0%, rgba(6, 7, 11, 0.55) 46%, transparent 76%),
        linear-gradient(180deg, transparent 62%, rgba(11, 12, 16, 0.92) 100%);
}

/* ---------- Content: more breathing room than before ---------- */
/* above every background layer (wash 1 ... particles 6) */
.ai-hero > .container {
    position: relative;
    z-index: 10;
}
.ai-hero__content {
    max-width: 760px;
}

/* ---------- Centered variant (TechGropse rhythm) ---------- */
.ai-hero--center {
    padding: 132px 0 84px;
    text-align: center;
}
.ai-hero--center .ai-hero__content {
    max-width: 940px;
    margin: 0 auto;
}
.ai-hero--center .ai-hero__desc {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.ai-hero--center .ai-hero__actions {
    justify-content: center;
}
/* with centered text the quiet zone moves to the middle of the hero */
.ai-hero--center .ai-hero__grid {
    mask-image:
        radial-gradient(820px 460px at 50% 42%, transparent 0%, #000 76%),
        linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
    -webkit-mask-image:
        radial-gradient(820px 460px at 50% 42%, transparent 0%, #000 76%),
        linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
}
.ai-hero--center .ai-hero__vignette {
    background:
        radial-gradient(760px 420px at 50% 40%, rgba(6, 7, 11, 0.93) 0%, rgba(6, 7, 11, 0.58) 48%, transparent 78%),
        linear-gradient(180deg, transparent 64%, rgba(11, 12, 16, 0.94) 100%);
}
.ai-hero--center .ai-journey {
    justify-content: center;
}
.ai-hero__eyebrow {
    margin-bottom: 22px;
}
.ai-hero__title {
    font-size: 64px;
    line-height: 74px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin: 0 0 28px;
}
.ai-hero__title-accent {
    background: linear-gradient(94deg, #FFFFFF 0%, #FFD7DD 34%, var(--color-accent) 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-accent);
}
.ai-hero__desc {
    font-size: 19px;
    line-height: 31px;
    color: var(--color-text-secondary);
    max-width: 620px;
    margin: 0 0 56px;
}
.ai-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Legacy sections/hero.css sets #heroDesc1 { margin-bottom: 3px } and
   .hero__actions { margin-top: 24px }. Those ID/class rules out-rank the
   block above, so restate the spacing with matching specificity here. */
.ai-hero .ai-hero__desc,
.ai-hero p#heroDesc1 {
    margin-bottom: 56px;
}
.ai-hero .ai-hero__actions,
.ai-hero div#heroActions {
    margin-top: 0;
}

/* ---------- AI journey strip ---------- */
.ai-journey {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    margin-top: 86px;
    padding: 20px 26px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-x: auto;
    scrollbar-width: none;
}
.ai-journey::-webkit-scrollbar {
    display: none;
}
.ai-journey__step {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.55;
    animation: btsn-journey-lit 9s ease-in-out infinite;
    animation-delay: calc((var(--i) - 1) * 1.5s);
}
.ai-journey__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 10px;
    background: rgba(237, 50, 72, 0.12);
    color: var(--color-accent);
}
.ai-journey__icon svg {
    width: 100%;
    height: 100%;
}
.ai-journey__link {
    flex: 1 1 auto;
    min-width: 26px;
    height: 1px;
    margin: 0 14px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(237, 50, 72, 0.45), rgba(255, 255, 255, 0.05));
    background-size: 200% 100%;
    animation: btsn-journey-flow 4.5s linear infinite;
}

@keyframes btsn-hero-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes btsn-journey-lit {
    0%, 100% { opacity: 0.5; }
    12%      { opacity: 1; }
    28%      { opacity: 0.5; }
}
@keyframes btsn-journey-flow {
    to { background-position: -200% 0; }
}

/* ---------- Trust proof inside the hero ---------- */
.ai-hero__trust {
    margin-top: 58px;
    text-align: center;
}
.ai-hero__trust-label {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    margin: 0 0 26px;
}
.ai-hero__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px 48px;
}
.ai-hero__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}
.ai-hero__logo img {
    max-height: 30px;
    width: auto;
    filter: grayscale(100%) brightness(1.9);
    opacity: 0.7;
    transition: opacity 0.25s ease, filter 0.25s ease;
}
.ai-hero__logo img:hover {
    opacity: 1;
    filter: grayscale(100%) brightness(2.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
    .ai-hero__title { font-size: 56px; line-height: 66px; }
    .ai-hero--center { padding: 116px 0 76px; }
    .ai-hero--center .ai-hero__content { max-width: 860px; }
}
@media (max-width: 1199px) {
    .ai-hero { padding: 104px 0 80px; }
    .ai-hero__title { font-size: 48px; line-height: 58px; }
    .ai-hero__desc { font-size: 18px; line-height: 29px; }
    .ai-hero .ai-hero__desc, .ai-hero p#heroDesc1 { margin-bottom: 48px; }
    .ai-journey { margin-top: 64px; }
    .ai-hero--center { padding: 100px 0 68px; }
    .ai-hero__trust { margin-top: 48px; }
    .ai-hero__logos { gap: 18px 34px; }
}
@media (max-width: 767px) {
    .ai-hero { padding: 80px 0 64px; }
    .ai-hero__title { font-size: 36px; line-height: 45px; }
    .ai-hero__desc { font-size: 16px; line-height: 26px; }
    .ai-hero .ai-hero__desc, .ai-hero p#heroDesc1 { margin-bottom: 38px; }
    .ai-hero__orbit--1 { width: 820px; height: 820px; }
    .ai-hero__orbit--2 { width: 620px; height: 620px; }
    .ai-hero__orbit--3 { width: 400px; height: 400px; }
    .ai-hero__vignette {
        background:
            radial-gradient(520px 320px at 40% 40%, rgba(6, 7, 11, 0.94) 0%, rgba(6, 7, 11, 0.6) 48%, transparent 78%),
            linear-gradient(180deg, transparent 58%, rgba(11, 12, 16, 0.94) 100%);
    }
    .ai-journey {
        margin-top: 44px;
        padding: 16px 18px;
        gap: 18px;
    }
    .ai-journey__link { display: none; }
    .ai-journey__step { font-size: 13px; }
    .ai-hero__actions .animated-btn { width: 100%; justify-content: center; }
    .ai-hero--center { padding: 76px 0 56px; }
    .ai-hero__trust { margin-top: 36px; }
    .ai-hero__trust-label { font-size: 13px; margin-bottom: 18px; }
    .ai-hero__logos { gap: 16px 26px; }
    .ai-hero__logo, .ai-hero__logo img { height: 22px; max-height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-hero__video { display: none; }
    .ai-hero__orbit,
    .ai-journey__step,
    .ai-journey__link {
        animation: none !important;
    }
    .ai-journey__step { opacity: 0.9; }
}
