.spark-hero {
    --spark-night: #010819;
    --spark-navy: #05296a;
    --spark-electric: #0a47b8;
    --spark-sky: #4fb4ff;
    --spark-ice: #9fe2ff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: 72px 0 112px;
    margin-top: -54px;
    border-radius: 0 0 56px 56px;
    background:
        radial-gradient(900px 520px at 82% 8%, rgba(79, 180, 255, .30), transparent 62%),
        radial-gradient(760px 520px at 4% 100%, rgba(10, 71, 184, .50), transparent 64%),
        linear-gradient(180deg, #010819 0%, #04153b 62%, #05296a 100%);
}

.spark-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.spark-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    z-index: 0;
    pointer-events: none;
    animation: spark-float 14s ease-in-out infinite alternate;
}

.spark-hero__glow--one {
    width: 420px;
    height: 420px;
    inset-inline-end: -80px;
    top: 40px;
    background: rgba(79, 180, 255, .35);
}

.spark-hero__glow--two {
    width: 360px;
    height: 360px;
    inset-inline-start: -120px;
    bottom: -120px;
    background: rgba(10, 71, 184, .55);
    animation-delay: -6s;
}

.spark-hero__row {
    min-height: 560px;
    padding-top: 96px;
}

/* Badge */
.spark-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(159, 226, 255, .35);
    background: rgba(159, 226, 255, .08);
    color: #d9f3ff;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.spark-hero__badge:hover {
    background: rgba(159, 226, 255, .16);
    border-color: rgba(159, 226, 255, .6);
    color: #fff;
}

.spark-hero__badge .icons {
    stroke: currentColor;
}

.spark-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--spark-sky);
    box-shadow: 0 0 0 0 rgba(79, 180, 255, .7);
    animation: spark-pulse 2s ease-out infinite;
}

/* Title */
.spark-hero__title {
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}

.spark-hero__title-highlight {
    width: fit-content;
    background: linear-gradient(92deg, #4fb4ff 0%, #9fe2ff 55%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.spark-hero__description {
    max-width: 560px;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(226, 238, 255, .78);
}

/* Search */
.spark-hero__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 600px;
    margin-top: 34px;
    padding: 8px 8px 8px 20px;
    border-radius: 18px;
    border: 1px solid rgba(159, 226, 255, .28);
    background: rgba(255, 255, 255, .07);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.spark-hero__search:focus-within {
    border-color: var(--spark-sky);
    box-shadow: 0 0 0 4px rgba(79, 180, 255, .18);
}

.spark-hero__search-icon {
    flex: none;
    stroke: var(--spark-ice);
}

.spark-hero__search-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
}

.spark-hero__search-input::placeholder {
    color: rgba(226, 238, 255, .55);
}

.spark-hero__search-btn {
    flex: none;
    height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #0a47b8, #2f8cff);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}

.spark-hero__search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(10, 71, 184, .55);
}

.spark-hero__suggest {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 10px);
    z-index: 20;
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 16px;
    border: 1px solid rgba(159, 226, 255, .25);
    background: rgba(2, 14, 42, .96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.spark-hero__suggest[hidden] {
    display: none;
}

.spark-hero__suggest a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}

.spark-hero__suggest a small {
    color: rgba(226, 238, 255, .55);
}

.spark-hero__suggest a:hover,
.spark-hero__suggest a.is-active {
    background: rgba(79, 180, 255, .16);
}

.spark-hero__suggest mark {
    background: transparent;
    color: var(--spark-sky);
    font-weight: 600;
}

/* Popular chips */
.spark-hero__popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(226, 238, 255, .6);
}

.spark-hero__chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(159, 226, 255, .22);
    color: #d9f3ff;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.spark-hero__chip:hover {
    background: rgba(79, 180, 255, .18);
    border-color: var(--spark-sky);
    color: #fff;
    transform: translateY(-1px);
}

/* Buttons */
.spark-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.spark-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.spark-hero__btn .icons {
    stroke: currentColor;
}

.spark-hero__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #0a47b8, #2f8cff);
    box-shadow: 0 12px 30px rgba(10, 71, 184, .45);
}

.spark-hero__btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(47, 140, 255, .55);
}

.spark-hero__btn--ghost {
    color: #fff;
    border: 1px solid rgba(159, 226, 255, .35);
    background: rgba(255, 255, 255, .05);
}

.spark-hero__btn--ghost:hover {
    color: #fff;
    background: rgba(159, 226, 255, .14);
}

/* Visual */
.spark-hero__visual {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    margin: 40px auto 0;
    transform-style: preserve-3d;
    transition: transform .25s ease-out;
}

.spark-hero__ring {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    border: 1px solid rgba(159, 226, 255, .22);
}

.spark-hero__ring--1 {
    width: 100%;
    height: 100%;
    border-style: dashed;
    animation: spark-spin 60s linear infinite;
}

.spark-hero__ring--2 {
    width: 76%;
    height: 76%;
    border-color: rgba(79, 180, 255, .35);
    animation: spark-spin 42s linear infinite reverse;
}

.spark-hero__ring--3 {
    width: 54%;
    height: 54%;
    background: radial-gradient(circle, rgba(79, 180, 255, .30), transparent 68%);
    border-color: rgba(159, 226, 255, .4);
}

.spark-hero__emblem {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 46%;
    height: 46%;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(79, 180, 255, .65));
    animation: spark-float 7s ease-in-out infinite alternate;
}

.spark-hero__card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(159, 226, 255, .3);
    background: rgba(5, 25, 70, .62);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    animation: spark-float 6s ease-in-out infinite alternate;
}

.spark-hero__card .icons {
    stroke: var(--spark-sky);
}

.spark-hero__card-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.spark-hero__card-label {
    font-size: 13px;
    line-height: 1.3;
    color: rgba(226, 238, 255, .8);
    max-width: 120px;
}

.spark-hero__card--1 {
    top: 6%;
    inset-inline-start: -4%;
}

.spark-hero__card--2 {
    bottom: 14%;
    inset-inline-end: -4%;
    animation-delay: -2s;
}

.spark-hero__card--3 {
    bottom: -2%;
    inset-inline-start: 6%;
    animation-delay: -4s;
}

@keyframes spark-spin {
    to { transform: rotate(360deg); }
}

@keyframes spark-float {
    from { transform: translateY(-8px); }
    to { transform: translateY(10px); }
}

@keyframes spark-pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 180, 255, .7); }
    70% { box-shadow: 0 0 0 10px rgba(79, 180, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 180, 255, 0); }
}

@media (max-width: 991.98px) {
    .spark-hero {
        padding: 48px 0 80px;
        border-radius: 0 0 36px 36px;
    }

    .spark-hero__row {
        min-height: 0;
        padding-top: 56px;
    }

    .spark-hero__visual {
        max-width: 340px;
        margin-top: 56px;
    }

    .spark-hero__card--1 { inset-inline-start: 0; }
    .spark-hero__card--2 { inset-inline-end: 0; }
}

@media (max-width: 575.98px) {
    .spark-hero__search {
        padding-inline-start: 14px;
    }

    .spark-hero__search-btn {
        padding: 0 16px;
    }

    .spark-hero__search-icon {
        display: none;
    }

    .spark-hero__btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spark-hero *,
    .spark-hero *::before {
        animation: none !important;
        transition: none !important;
    }
}
