.hero-cinematic {
    isolation: isolate;
}

.hero-cinematic__visual {
    position: absolute;
    right: clamp(0.5rem, 5vw, 4rem);
    top: 50%;
    transform: translateY(-50%);
    width: min(40vw, 400px);
    height: min(40vw, 400px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.92;
}

.hero-title {
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.hero-title__line,
.hero-title__brand,
.hero-title__suffix {
    display: block;
    font-family: var(--font);
    font-weight: 200;
    text-transform: none;
}

.hero-title__brand,
.hero-title__suffix {
    font-size: clamp(3.5rem, 11vw, 9rem);
}

.hero-title__line {
    opacity: 0;
    transform: translateY(10px);
}

.hero-title__brand {
    color: #fff;
    opacity: 0;
    transform: translateY(24px);
}

.hero-title__suffix {
    color: rgba(255, 255, 255, 0.52);
    margin-top: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 0 0 40px rgba(255, 77, 109, 0.15);
    position: relative;
}

.hero-cinematic.is-entered .hero-title__line {
    animation: heroTextIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.08s;
}

.hero-cinematic.is-entered .hero-title__brand {
    animation: heroTitleIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

.hero-cinematic.is-entered .hero-title__suffix {
    animation: heroTitleIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.38s;
}

.hero-cinematic__badges,
.hero-cinematic__metrics {
    opacity: 0;
    transform: translateY(14px);
}

.hero-cinematic.is-entered .hero-cinematic__badges {
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.05s;
}

.hero-cinematic.is-entered .hero-cinematic__metrics {
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.05s;
}

.hero-cinematic.is-entered .hero-title__suffix::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.06em;
    width: 100%;
    max-width: 280px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(255, 77, 109, 0.15));
    transform: scaleX(0);
    transform-origin: left;
    animation: heroLineGrow 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.85s;
}

@keyframes heroTitleIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroLineGrow {
    to { transform: scaleX(1); }
}

.hero-cinematic__orb {
    position: absolute;
    inset: 12%;
    width: 76%;
    height: 76%;
    left: 12%;
    top: 12%;
    opacity: 0;
}

.hero-cinematic.is-entered .hero-cinematic__orb {
    animation: heroOrbIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

.hero-cinematic__visual.is-burst::before {
    content: '';
    position: absolute;
    inset: -15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.45) 0%, transparent 68%);
    animation: heroBurstPulse 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
    z-index: 2;
}

@keyframes heroBurstPulse {
    0% { opacity: 0; transform: scale(0.6); }
    35% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.35); }
}

.hero-cinematic__reticle {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.hero-cinematic__reticle-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    opacity: 0;
}

.hero-cinematic.is-entered .hero-cinematic__reticle-ring--1 {
    inset: 4%;
    border-color: rgba(255, 77, 109, 0.25);
    border-top-color: rgba(255, 77, 109, 0.65);
    box-shadow: 0 0 40px rgba(255, 77, 109, 0.12);
    animation: heroReticleIn 1.2s ease forwards 0.3s, heroReticleSpin 18s linear infinite 1.5s;
}

.hero-cinematic.is-entered .hero-cinematic__reticle-ring--2 {
    inset: 14%;
    border: 1px dashed rgba(255, 77, 109, 0.2);
    border-left-color: rgba(255, 143, 163, 0.5);
    animation: heroReticleIn 1.2s ease forwards 0.5s, heroReticleSpin 26s linear infinite reverse 1.5s;
}

.hero-cinematic.is-entered .hero-cinematic__reticle-ring--3 {
    inset: 24%;
    border: 1px solid rgba(255, 77, 109, 0.12);
    border-bottom-color: var(--primary);
    animation: heroReticleIn 1.2s ease forwards 0.7s, heroReticleSpin 10s linear infinite 1.5s;
}

.hero-cinematic__reticle::before,
.hero-cinematic__reticle::after {
    content: '';
    position: absolute;
    background: rgba(255, 77, 109, 0.35);
    box-shadow: 0 0 8px rgba(255, 77, 109, 0.4);
    opacity: 0;
}

.hero-cinematic.is-entered .hero-cinematic__reticle::before,
.hero-cinematic.is-entered .hero-cinematic__reticle::after {
    animation: heroReticleIn 0.8s ease forwards 0.9s;
}

.hero-cinematic__reticle::before {
    left: 8%;
    right: 8%;
    height: 1px;
    top: 50%;
}

.hero-cinematic__reticle::after {
    top: 8%;
    bottom: 8%;
    width: 1px;
    left: 50%;
}

.hero-cinematic__index {
    opacity: 0;
    transform: translateY(12px);
}

.hero-cinematic.is-entered .hero-cinematic__index {
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.15s;
}

.hero-cinematic__lead {
    opacity: 0;
    transform: translateY(16px);
}

.hero-cinematic.is-entered .hero-cinematic__lead {
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.75s;
}

.hero-cinematic__actions {
    opacity: 0;
    transform: translateY(12px);
}

.hero-cinematic.is-entered .hero-cinematic__actions {
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.95s;
}

@keyframes heroOrbIn {
    from { opacity: 0; transform: scale(0.85); filter: blur(8px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes heroReticleIn {
    to { opacity: 1; }
}

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

@keyframes heroTextIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .hero-cinematic__visual {
        width: min(55vw, 260px);
        height: min(55vw, 260px);
        right: 50%;
        transform: translate(50%, -72%);
        top: 22%;
        opacity: 0.35;
    }
}

.ai-guide {
    position: fixed;
    z-index: 11500;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    max-width: min(420px, 92vw);
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-guide.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-guide__orb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.ai-guide__orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 120, 150, 0.25), rgba(0, 0, 0, 0.9) 70%);
    box-shadow:
        0 0 30px rgba(255, 77, 109, 0.35),
        0 0 60px rgba(255, 77, 109, 0.15),
        inset 0 0 20px rgba(255, 77, 109, 0.1);
    animation: aiGuideOrbPulse 3s ease-in-out infinite;
}

.ai-guide__orb canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.ai-guide__orb-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 77, 109, 0.3);
    animation: aiGuideOrbRing 4s linear infinite;
    pointer-events: none;
}

.ai-guide__card {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.1rem;
    background: rgba(6, 6, 8, 0.92);
    border: 1px solid rgba(255, 77, 109, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(255, 77, 109, 0.08);
    position: relative;
    overflow: hidden;
}

.ai-guide__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.7;
}

.ai-guide__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px var(--primary-glow);
}

.ai-guide__label-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    animation: aiGuideDotBlink 1.2s ease-in-out infinite;
}

.ai-guide__title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.45rem;
    letter-spacing: -0.01em;
}

.ai-guide__text {
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 0 0.85rem;
}

.ai-guide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-guide__btn {
    font-family: inherit;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.ai-guide__btn--primary {
    border: 1px solid rgba(255, 77, 109, 0.45);
    background: rgba(255, 77, 109, 0.12);
    color: var(--primary);
}

.ai-guide__btn--primary:hover {
    background: rgba(255, 77, 109, 0.22);
    box-shadow: 0 0 16px rgba(255, 77, 109, 0.2);
    color: #fff;
}

.ai-guide__btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
}

.ai-guide__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.ai-guide__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-size: 0.7rem;
    display: grid;
    place-items: center;
    transition: color 0.2s;
}

.ai-guide__close:hover {
    color: var(--primary);
}

@keyframes aiGuideOrbPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 77, 109, 0.3), 0 0 60px rgba(255, 77, 109, 0.12); }
    50% { box-shadow: 0 0 40px rgba(255, 77, 109, 0.5), 0 0 80px rgba(255, 77, 109, 0.2); }
}

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

@keyframes aiGuideDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (max-width: 480px) {
    .ai-guide {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ai-guide__actions {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cinematic__orb,
    .hero-cinematic__reticle-ring,
    .hero-cinematic__index,
    .hero-cinematic__lead,
    .hero-cinematic__actions,
    .hero-title__brand,
    .hero-title__suffix,
    .hero-title__suffix::after,
    .ai-guide__orb,
    .ai-guide__orb-glow,
    .ai-guide__label-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
