/* ---------- Hero section ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--blue-deep);
}

.hero-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.blob-scene {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    z-index: 1;
    will-change: transform;
}

.blob-scene.is-active {
    transform: translateX(0);
    z-index: 2;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.blob.b1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.55), transparent 70%);
    top: -180px;
    left: -80px;
    animation: blobMove1 16s ease-in-out infinite;
}

.blob.b2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.4), transparent 70%);
    bottom: -160px;
    right: -60px;
    animation: blobMove2 19s ease-in-out infinite;
}

.blob.b3 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(75, 147, 238, 0.35), transparent 70%);
    top: 30%;
    right: 18%;
    animation: blobMove1 13s ease-in-out infinite reverse;
}

.blob.b4 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(75, 147, 238, 0.3), transparent 70%);
    bottom: -220px;
    left: 30%;
    animation: blobMove2 22s ease-in-out infinite reverse;
}

@keyframes blobMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.12); }
}

@keyframes blobMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -30px) scale(1.08); }
}

.scene-glow {
      background: var(--orange);
    animation: meshMoveReverse 12s ease-in-out infinite alternate;
    background-size: 150% 150%;
}


@keyframes meshMoveReverse {
  0% {
    background-position: 100% 0%, 0% 0%, 50% 100%;
  }
  100% {
    background-position: 85% 10%, 10% 20%, 60% 80%;
  }
}


.hero-ripples {
    position: absolute;
    left: 50%;
    top: 42%;
    z-index: 3;
    pointer-events: none;
}

.hero-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 2px solid rgba(75, 147, 238, 0.35);
    background: rgba(26, 115, 232, 0.08);
    opacity: 0.24;
    transform: translate(-50%, -50%) scale(1);
    animation: heroRippleGrow 3s ease-out infinite;
}

@keyframes heroRippleGrow {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}

.hero-dots {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.hero-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cfe0ff;
    box-shadow: 0 0 6px 2px rgba(122, 178, 238, 0.6);
    opacity: 0;
    animation-name: heroDotBlink;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes heroDotBlink {
    0%, 100% { opacity: 0; transform: scale(0.6); }
    50% { opacity: 1; transform: scale(1); }
}

.hero-slide-content {
    display: none;
    flex-direction: column;
}

.hero-slide-content.is-active {
    display: flex;
}

@keyframes heroSlideText {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-slide-content.is-active > * {
    opacity: 0;
    animation: heroSlideText 0.6s cubic-bezier(0.22, 0.9, 0.32, 1) forwards;
}

.hero-slide-content.is-active > .hero-badge { animation-delay: 0.05s; }
.hero-slide-content.is-active > h1 { animation-delay: 0.14s; }
.hero-slide-content.is-active > .hero-sub { animation-delay: 0.24s; }
.hero-copy > .hero-actions { opacity: 0; animation: heroFadeUp 0.7s ease 0.44s forwards; }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero-inner-single {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.hero-inner-single .hero-copy {
    max-width: 62rem;
}

.hero-inner-single .hero-badge {
    align-self: center;
}

.hero-inner-single .hero-sub {
    margin-left: auto;
    margin-right: auto;
}

.hero-inner-single .hero-actions {
    justify-content: center;
}

.hero-copy {
    min-width: 0;
    max-width: 36rem;
}

.hero-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    color: #C9D8FF;
    margin-bottom: 1.4rem;
    max-width: 100%;
}

.hero-badge .dot {
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 0.45em;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(26, 115, 232, 0.5);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 0.9rem;
}

.hero h1 .grad-word {
    color: var(--blue);
}

.hero h1 .typed-text::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.85em;
    margin-left: 3px;
    background: currentColor;
    vertical-align: -0.1em;
    animation: heroCursorBlink 0.9s step-end infinite;
}

@keyframes heroCursorBlink {
    50% { opacity: 0; }
}

.hero-sub {
    color: #B9C7EE;
    font-size: 1.18rem;
    margin: 1.3rem 0 2.1rem;
    max-width: 68ch;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero-inner {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob-scene { transition: none !important; }
    .blob { animation: none; }
    .scene-glow { animation: none; }
    .hero-ripple { animation: none; opacity: 0; }
    .hero-dot { animation: none; opacity: 0; }
    .hero-slide-content.is-active > *, .hero-copy > .hero-actions { opacity: 1; animation: none; }
    .hero h1 .typed-text::after { animation: none; }
}
