/**
 * Hero Section — edg-strategy-microsite-3 Hero.jsx
 */

.hero-section {
    --hero-brand: #0760ff;
    --hero-brand-600: #0654e0;
    --hero-brand-700: #0a44b8;
    --hero-zone-ai: #4763d8;
    --hero-zone-trust: #0fb89e;
    --hero-zone-base: #07bcd4;
    --hero-ink: #0d0f17;
    --hero-bg: #f7f8fc;
    --hero-surface: #ffffff;
    --hero-surface-2: #fafbff;
    --hero-line: rgba(15, 23, 51, 0.06);
    --hero-slate: #5a6478;
    --hero-slate-700: #1e253a;
    --hero-cloud: #c8d2e5;
    --hero-navy: #0d1424;
    --hero-shadow: rgba(13, 20, 36, 0.16);
    --hero-ease: cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;
    overflow: hidden;
    padding: 128px 0 80px;
    background: linear-gradient(115deg, #ece9ff 0%, #e6f1fb 38%, #e3f6ee 72%, #fdeee4 100%);
    background-size: 200% 200%;
    animation: hero-drift 26s ease-in-out infinite;
}

@media (min-width: 640px) {
    .hero-section {
        padding-top:150px;
    }
}

html.theme-dark .hero-section {
    --hero-brand: #4b95e4;
    --hero-brand-600: #6ba9eb;
    --hero-brand-700: #2e7ad6;
    --hero-zone-ai: #8093ea;
    --hero-zone-trust: #44ccb4;
    --hero-zone-base: #3fd0e0;
    --hero-ink: #eef2fb;
    --hero-bg: #0c1126;
    --hero-surface: #141a32;
    --hero-surface-2: #1a2240;
    --hero-line: rgba(255, 255, 255, 0.07);
    --hero-slate: #a2adc6;
    --hero-slate-700: #cdd5e6;
    --hero-cloud: #c3cce0;
    --hero-shadow: rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(115deg, #181a3a 0%, #121a32 38%, #0f2530 72%, #1d1733 100%);
}

.hero-section p {
    padding-bottom: 0 !important;
}

@keyframes hero-drift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Atmospheric background */
.hero-atmosphere {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(900px 520px at 80% -5%, color-mix(in srgb, var(--hero-zone-ai) 12%, transparent), transparent 65%),
        radial-gradient(620px 380px at 0% 30%, color-mix(in srgb, var(--hero-zone-trust) 10%, transparent), transparent 65%);
}

html.theme-dark .hero-atmosphere {
    background:
        radial-gradient(900px 520px at 80% -5%, color-mix(in srgb, var(--hero-zone-ai) 18%, transparent), transparent 65%),
        radial-gradient(620px 380px at 0% 30%, color-mix(in srgb, var(--hero-zone-trust) 14%, transparent), transparent 65%);
}

/* Floating shapes */
.hero-shapes {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    filter: blur(0.5px);
    animation: hero-float-y var(--dur, 9s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
    transform: translate(
        calc(var(--par-x, 0px) * var(--depth, 1)),
        calc(var(--par-y, 0px) * var(--depth, 1))
    ) rotate(var(--spin, 0deg));
}

.hero-shape--1 {
    left: 3%;
    top: 18%;
    width: 5rem;
    height: 5rem;
    border-radius: 1.4rem;
    opacity: 0.16;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hero-zone-ai) 90%, transparent), color-mix(in srgb, var(--hero-zone-ai) 30%, transparent));
    border: 1px solid color-mix(in srgb, var(--hero-zone-ai) 40%, transparent);
}

.hero-shape--2 {
    right: 6%;
    top: 12%;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    opacity: 0.18;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hero-zone-trust) 90%, transparent), color-mix(in srgb, var(--hero-zone-trust) 30%, transparent));
    border: 1px solid color-mix(in srgb, var(--hero-zone-trust) 40%, transparent);
}

.hero-shape--3 {
    right: 20%;
    top: 8%;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    opacity: 0.1;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hero-zone-base) 90%, transparent), color-mix(in srgb, var(--hero-zone-base) 30%, transparent));
    border: 1px solid color-mix(in srgb, var(--hero-zone-base) 40%, transparent);
}

.hero-shape--4 {
    left: 14%;
    bottom: 30%;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    opacity: 0.13;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hero-zone-trust) 90%, transparent), color-mix(in srgb, var(--hero-zone-trust) 30%, transparent));
    border: 1px solid color-mix(in srgb, var(--hero-zone-trust) 40%, transparent);
}

.hero-shape--5 {
    right: 4%;
    bottom: 34%;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    opacity: 0.16;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hero-zone-ai) 90%, transparent), color-mix(in srgb, var(--hero-zone-ai) 30%, transparent));
    border: 1px solid color-mix(in srgb, var(--hero-zone-ai) 40%, transparent);
}

@keyframes hero-float-y {
    0%, 100% {
        transform: translate(calc(var(--par-x, 0px) * var(--depth, 1)), calc(var(--par-y, 0px) * var(--depth, 1))) rotate(var(--spin, 0deg));
    }
    50% {
        transform: translate(calc(var(--par-x, 0px) * var(--depth, 1)), calc(-18px + var(--par-y, 0px) * var(--depth, 1))) rotate(var(--spin, 0deg));
    }
}

/* Shell */
.hero-shell,
.hero-container {
    max-width: 1425px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Reveal */
.hero-reveal {
    opacity: 0;
    will-change: opacity, transform;
}

.hero-reveal.is-visible {
    animation: hero-reveal-up 0.55s var(--hero-ease) var(--reveal-delay, 0ms) forwards;
}

.hero-pipeline[data-reveal="scale"].is-visible,
.hero-right[data-reveal="scale"].is-visible {
    animation-name: hero-reveal-scale;
}

@keyframes hero-reveal-up {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hero-reveal-scale {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.hero-reveal.reveal-done {
    animation: none;
    opacity: 1;
}

/* Eyebrow badge (optional) */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.72rem 0.34rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: normal;
    text-transform: uppercase;
    color: var(--hero-brand);
    background: color-mix(in srgb, currentColor 10%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
    margin-bottom: 0;
}

.hero-eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Section micro-label */
.hero-t-eyebrow {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--hero-slate);
}

/* Title */
.hero-title {
    margin: 0;
    max-width: 16ch;
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--hero-ink);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.6rem;
    }
}

.hero-rotating-word {
    display: inline-block;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
    line-height: 1.18;
    background: linear-gradient(110deg, var(--hero-brand) 0%, var(--hero-brand-700) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-rotating-word--animate {
    animation: hero-word-rotate 0.4s var(--hero-ease);
}

@keyframes hero-word-rotate {
    0% { opacity: 0; transform: translateY(0.6em); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-title-gradient {
    color: transparent;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    display: inline;
}

.hero-title-gradient--blue-cyan {
    background: linear-gradient(110deg, var(--hero-brand), var(--hero-brand-700));
}

/* Lead row */
.hero-lead-grid {
    display: grid;
    align-items: end;
    gap: 2rem;
    margin-top: 1.75rem;
}

@media (min-width: 1024px) {
    .hero-lead-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 2rem;
    }
}

.hero-description {
    margin: 0;
    max-width: 40rem;
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--hero-slate);
    font-weight: 400;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-description strong {
    font-weight: 600;
    color: var(--hero-ink);
}

.hero-side-statement {
    display: none;
    margin: 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--hero-line);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.625;
    color: var(--hero-slate);
}

.hero-side-statement strong,
.hero-side-statement .hero-ink {
    color: var(--hero-ink);
    font-weight: inherit;
}

@media (min-width: 1024px) {
    .hero-side-statement {
        display: block;
    }
}

/* Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.25s var(--hero-ease), color 0.2s, background 0.2s, box-shadow 0.25s;
    border: none;
    cursor: pointer;
}

.hero-btn--primary {
    padding: 0.6rem 1.35rem;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--hero-brand);
    border: 1px solid transparent;
    box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--hero-brand) 80%, transparent);
}

.hero-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    background: var(--hero-brand-600);
    box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--hero-brand) 85%, transparent);
}

.hero-btn--primary i,
.hero-btn--primary svg {
    width: 1rem;
    height: 1rem;
}

.hero-btn--secondary {
    padding: 0.5rem 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--hero-slate-700);
    background: transparent;
}

.hero-btn--secondary:hover {
    color: var(--hero-brand);
}

.hero-btn-arrow {
    margin-left: 2px;
}

/* Card hover */
.hero-card-hover {
    transition: transform 0.3s var(--hero-ease), box-shadow 0.3s var(--hero-ease), border-color 0.3s var(--hero-ease);
}

.hero-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px -22px var(--hero-shadow);
    border-color: color-mix(in srgb, var(--hero-ink) 12%, var(--hero-line)) !important;
}

/* Knowledge pipeline */
.hero-pipeline {
    margin-top: 4rem;
}

.hero-pipeline__heading {
    margin: 0 0 1rem;
}

.hero-pipeline-grid {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .hero-pipeline-grid {
        grid-template-columns: 1.05fr auto 1fr;
    }
}

.hero-pillars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Pillar node */
.hero-pillar-node {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--hero-line);
    background: var(--hero-surface);
}

.hero-pillar-node__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--pillar-tint) 14%, white);
    color: var(--pillar-tint);
}

html.theme-dark .hero-pillar-node__icon {
    background: color-mix(in srgb, var(--pillar-tint) 14%, var(--hero-surface));
}

.hero-pillar-node__icon i,
.hero-pillar-node__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-pillar-node__text {
    min-width: 0;
    flex: 1;
}

.hero-pillar-node__name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--hero-ink);
}

.hero-pillar-node__sub {
    margin: 0.125rem 0 0;
    font-size: 15px;
    line-height: 1.375;
    color: var(--hero-slate);
}

.hero-pillar-node__goal {
    display: none;
    flex-shrink: 0;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: color-mix(in srgb, var(--pillar-tint) 12%, white);
    border: 1px solid color-mix(in srgb, var(--pillar-tint) 30%, white);
    color: color-mix(in srgb, var(--pillar-tint) 70%, var(--hero-ink));
}

html.theme-dark .hero-pillar-node__goal {
    background: color-mix(in srgb, var(--pillar-tint) 12%, var(--hero-surface));
    border-color: color-mix(in srgb, var(--pillar-tint) 30%, var(--hero-surface));
}

@media (min-width: 640px) {
    .hero-pillar-node__goal {
        display: inline-flex;
    }
}

/* Converge connector */
.hero-converge {
    display: none;
    position: relative;
    align-self: stretch;
    width: 5rem;
}

@media (min-width: 1024px) {
    .hero-converge {
        display: block;
    }
}

.hero-converge svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-converge-path-bg {
    fill: none;
    stroke: var(--hero-line);
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.hero-converge-path-flow {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 5 9;
    vector-effect: non-scaling-stroke;
    animation: hero-flow-dash 1.1s linear infinite;
}

@keyframes hero-flow-dash {
    to { stroke-dashoffset: -28; }
}

/* Outcome card */
.hero-outcome {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--hero-line);
    color: #fff;
    background: linear-gradient(135deg, var(--hero-brand) 0%, var(--hero-brand-700) 100%);
}

.hero-outcome__glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--hero-zone-ai) 55%, transparent), transparent 55%);
}

.hero-outcome__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-outcome__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
}

.hero-outcome__icon.hero-node-pulse {
    animation: hero-node-pulse 2.6s var(--hero-ease) infinite;
}

@keyframes hero-node-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.hero-outcome__icon i,
.hero-outcome__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.hero-outcome__badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.15);
}

.hero-outcome__body {
    position: relative;
}

.hero-outcome__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.hero-outcome__sub {
    margin: 0.5rem 0 0;
    font-size: 15px;
    line-height: 1.375;
    color: #fff;
}

/* Image override */
.hero-convergence--image .hero-convergence__media {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--hero-line);
}

.hero-convergence__img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-convergence__caption {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--hero-slate);
}

/* KPI strip */
.hero-kpi-wrap {
    margin-top: 3.5rem;
}

.hero-kpi-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-kpi-header .hero-t-eyebrow {
    flex-shrink: 0;
}

.hero-kpi-header__line {
    flex: 1;
    height: 1px;
    background: var(--hero-line);
}

.hero-kpi-grid {
    display: grid;
    gap: 2rem 0.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .hero-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-kpi-tile {
    padding: 0.5rem 0;
}

@media (min-width: 640px) {
    .hero-kpi-tile {
        padding: 0.5rem 1.75rem;
    }

    .hero-kpi-tile + .hero-kpi-tile {
        border-left: 1px solid var(--hero-line);
    }
}

.hero-kpi-kicker {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    color: color-mix(in srgb, var(--hero-slate) 100%, transparent);
}

.hero-section .hero-kpi-value {
    margin: 0.75rem 0 0;
    padding: 0;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--hero-ink) 0%, var(--hero-brand) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-kpi-value__inner {
    display: inline;
}

.hero-kpi-value__prefix,
.hero-kpi-value__suffix,
.hero-kpi-value__num {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
}

.hero-section .hero-kpi-label {
    margin: 0.625rem 0 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.375;
    color: var(--hero-slate);
}

/* Legacy: pills, right panel image */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    border: 1px solid var(--hero-line);
    background: var(--hero-surface);
    color: var(--hero-slate);
}

.hero-right-panel {
    width: 100%;
    margin: 2rem 0 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--hero-line);
}

.hero-right-panel__ratio {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
    height: 0;
}

.hero-right-panel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .hero-shape,
    .hero-rotating-word,
    .hero-converge-path-flow,
    .hero-node-pulse,
    .hero-reveal {
        animation: none !important;
    }

    .hero-reveal {
        opacity: 1;
    }
}
