/* Hero — split layout: left copy + 3D curved product preview (responsive on all screens) */

.hero.hero-v2 {
    --hero-nav-h: 3.25rem;
    position: relative;
    padding: calc(var(--hero-nav-h) + clamp(2.25rem, 6vh, 4rem)) 0 clamp(2.5rem, 7vh, 4.5rem);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #faf9ff;
}

[data-theme="dark"] .hero.hero-v2 {
    background: #06040c;
}

/* High specificity to override main.css `.hero > .container { display:flex }` */
.hero.hero-v2 .hero-v2-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 992px) {
    .hero.hero-v2 .hero-v2-wrap {
        grid-template-columns: 1.02fr 0.98fr;
    }
}

/* ===== Background — modern mesh + grid + spotlight ===== */
.hero-v2-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-v2-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(107, 54, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(107, 54, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 72% 32%, #000 25%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 72% 32%, #000 25%, transparent 80%);
}

[data-theme="dark"] .hero-v2-bg::before {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.hero-v2-bg::after {
    content: '';
    position: absolute;
    right: 8%;
    top: 8%;
    width: min(640px, 60%);
    height: 460px;
    background: radial-gradient(ellipse at center, rgba(107, 54, 255, 0.14), transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero-v2-bg::after {
    background: radial-gradient(ellipse at center, rgba(107, 54, 255, 0.24), transparent 70%);
}

.hero-v2-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(38rem 26rem at 12% -12%, rgba(107, 54, 255, 0.15), transparent 60%),
        radial-gradient(34rem 24rem at 92% 8%, rgba(248, 96, 111, 0.13), transparent 60%),
        radial-gradient(32rem 24rem at 75% 116%, rgba(20, 184, 166, 0.12), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f7f5ff 55%, #f2effb 100%);
}

[data-theme="dark"] .hero-v2-bg-gradient {
    background:
        radial-gradient(38rem 26rem at 10% -8%, rgba(107, 54, 255, 0.28), transparent 58%),
        radial-gradient(32rem 24rem at 92% 8%, rgba(248, 96, 111, 0.16), transparent 55%),
        radial-gradient(30rem 22rem at 78% 118%, rgba(20, 184, 166, 0.14), transparent 58%),
        linear-gradient(165deg, #0a0614 0%, #0c0717 55%, #050308 100%);
}

.hero-v2-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.9;
    animation: hero-v2-orb 18s ease-in-out infinite;
}

.hero-v2-bg-orb--1 {
    width: min(440px, 52vw);
    height: min(440px, 52vw);
    top: -16%;
    right: -8%;
    background: rgba(107, 54, 255, 0.16);
}

.hero-v2-bg-orb--2 {
    width: min(340px, 42vw);
    height: min(340px, 42vw);
    bottom: -14%;
    left: -6%;
    background: rgba(248, 96, 111, 0.12);
    animation-direction: reverse;
}

@keyframes hero-v2-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-18px, 14px) scale(1.05); }
}

/* ===== Copy — left aligned ===== */
.hero-v2-copy {
    min-width: 0;
    max-width: 36rem;
    text-align: start;
}

.hero-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.85rem 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(107, 54, 255, 0.15);
    box-shadow: 0 2px 12px rgba(107, 54, 255, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-v2-eyebrow {
    background: rgba(255, 255, 255, 0.04);
}

.hero-v2-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: hero-v2-pulse 2s ease-in-out infinite;
}

@keyframes hero-v2-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-v2-eyebrow-made {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-v2-eyebrow-heart {
    margin-inline-start: 0.2rem;
    font-size: 0.65rem;
    color: #ef4444;
    animation: hero-v2-heartbeat 1.4s ease-in-out infinite;
}

@keyframes hero-v2-heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

.hero-v2-eyebrow strong {
    color: var(--accent-primary);
    font-weight: 800;
}

.hero-v2-headline {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 5.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text-primary);
}

[data-theme="dark"] .hero-v2-headline {
    color: #fff;
}

.hero-v2-headline em {
    font-style: normal;
    background: linear-gradient(115deg, #6b36ff 0%, #f8606f 35%, #14b8a6 60%, #6b36ff 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-v2-shimmer 6s linear infinite;
}

@keyframes hero-v2-shimmer {
    to { background-position: 220% center; }
}

.hero-v2-lead {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.hero-v2-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* ===== Visual — 3D curved dashboard preview ===== */
.hero-v2-visual {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 38rem;
    margin-inline: auto;
    perspective: 1400px;
    overflow: visible;
}

.hero-v2-visual-scene {
    position: absolute;
    inset: -12% -8% -10%;
    pointer-events: none;
    z-index: 0;
}

.hero-v2-visual-glow {
    position: absolute;
    inset: 10% 6% 14%;
    border-radius: 42% 58% 54% 46% / 46% 44% 56% 54%;
    background: radial-gradient(ellipse at 58% 38%, rgba(107, 54, 255, 0.28), transparent 68%);
    filter: blur(34px);
    animation: hero-v2-glow-pulse 8s ease-in-out infinite;
}

[data-theme="dark"] .hero-v2-visual-glow {
    background: radial-gradient(ellipse at 58% 38%, rgba(107, 54, 255, 0.42), transparent 68%);
}

.hero-v2-visual-ring {
    position: absolute;
    inset: 2% 0 8%;
    border-radius: 38px;
    background: conic-gradient(from 210deg, rgba(107, 54, 255, 0.28), rgba(248, 96, 111, 0.22), rgba(20, 184, 166, 0.22), rgba(107, 54, 255, 0.28));
    filter: blur(48px);
    opacity: 0.78;
    animation: hero-v2-spin 26s linear infinite;
}

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

@keyframes hero-v2-glow-pulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

.hero-v2-visual-frame {
    position: relative;
    z-index: 1;
    transform: perspective(1400px) rotateY(-10deg) rotateX(7deg);
    transform-style: preserve-3d;
    animation: hero-v2-visual-float 9s ease-in-out infinite;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow:
        0 42px 88px rgba(15, 23, 42, 0.18),
        0 18px 36px rgba(107, 54, 255, 0.12);
}

html[dir="rtl"] .hero-v2-visual-frame {
    transform: perspective(1400px) rotateY(10deg) rotateX(7deg);
    animation: hero-v2-visual-float-rtl 9s ease-in-out infinite;
}

[data-theme="dark"] .hero-v2-visual-frame {
    background: transparent;
    box-shadow:
        0 42px 88px rgba(0, 0, 0, 0.55),
        0 18px 36px rgba(107, 54, 255, 0.18);
}

.hero-v2-visual-frame::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -10%;
    height: 18%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(107, 54, 255, 0.28), transparent 72%);
    filter: blur(16px);
    transform: translateZ(-30px);
    pointer-events: none;
}

@keyframes hero-v2-visual-float {
    0%, 100% { transform: perspective(1400px) rotateY(-10deg) rotateX(7deg) translateY(0); }
    50% { transform: perspective(1400px) rotateY(-10deg) rotateX(7deg) translateY(-12px); }
}

@keyframes hero-v2-visual-float-rtl {
    0%, 100% { transform: perspective(1400px) rotateY(10deg) rotateX(7deg) translateY(0); }
    50% { transform: perspective(1400px) rotateY(10deg) rotateX(7deg) translateY(-12px); }
}

.hero-v2-visual-curve {
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -1px;
    height: 32%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(107, 54, 255, 0.08));
    border-radius: 0 0 50% 50% / 0 0 38% 38%;
}

[data-theme="dark"] .hero-v2-visual-curve {
    background: linear-gradient(180deg, transparent, rgba(107, 54, 255, 0.16));
}

.hero-v2-visual-shot {
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 0;
}

.hero-v2-visual-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.hero-v2-visual-img--dark {
    display: none;
}

[data-theme="dark"] .hero-v2-visual-img--light {
    display: none;
}

[data-theme="dark"] .hero-v2-visual-img--dark {
    display: block;
}

.hero-v2-visual-shine {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
        118deg,
        rgba(255, 255, 255, 0.34) 0%,
        rgba(255, 255, 255, 0.08) 24%,
        transparent 48%,
        transparent 100%
    );
    mix-blend-mode: soft-light;
}

/* Floating tooltip badges */
.hero-v2-tooltips {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.hero-v2-tip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-size: clamp(0.62rem, 1.4vw, 0.72rem);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(107, 54, 255, 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    scale: 0.92;
    translate: 0 12px;
    animation:
        hero-v2-tip-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        hero-v2-tip-float 5.5s ease-in-out infinite;
}

[data-theme="dark"] .hero-v2-tip {
    background: rgba(18, 13, 30, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hero-v2-tip i {
    font-size: 0.72rem;
    color: var(--accent-primary);
}

.hero-v2-tip--omni {
    top: 6%;
    left: -4%;
    animation-delay: 0.15s, 0.85s;
}

.hero-v2-tip--sent {
    top: 14%;
    right: -6%;
    animation-delay: 0.35s, 1.05s;
}

.hero-v2-tip--ai {
    bottom: 18%;
    left: -2%;
    animation-delay: 0.55s, 1.25s;
}

.hero-v2-tip--eval {
    bottom: 8%;
    right: -4%;
    animation-delay: 0.75s, 1.45s;
}

html[dir="rtl"] .hero-v2-tip--omni {
    left: auto;
    right: -4%;
}

html[dir="rtl"] .hero-v2-tip--sent {
    right: auto;
    left: -6%;
}

html[dir="rtl"] .hero-v2-tip--ai {
    left: auto;
    right: -2%;
}

html[dir="rtl"] .hero-v2-tip--eval {
    right: auto;
    left: -4%;
}

.hero-v2-tip--sent i { color: #14b8a6; }
.hero-v2-tip--ai i { color: #f8606f; }
.hero-v2-tip--eval i { color: #f59e0b; }

.hero-v2-tip::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: hero-v2-tip-pulse 2.2s ease-in-out infinite;
}

.hero-v2-tip--omni::after { top: -3px; right: 10px; }
.hero-v2-tip--sent::after { top: -3px; left: 10px; }
.hero-v2-tip--ai::after { bottom: -3px; right: 12px; }
.hero-v2-tip--eval::after { bottom: -3px; left: 12px; }

html[dir="rtl"] .hero-v2-tip--omni::after { right: auto; left: 10px; }
html[dir="rtl"] .hero-v2-tip--sent::after { left: auto; right: 10px; }
html[dir="rtl"] .hero-v2-tip--ai::after { right: auto; left: 12px; }
html[dir="rtl"] .hero-v2-tip--eval::after { left: auto; right: 12px; }

@keyframes hero-v2-tip-in {
    to {
        opacity: 1;
        scale: 1;
        translate: 0 0;
    }
}

@keyframes hero-v2-tip-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes hero-v2-tip-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-v2-copy {
        max-width: 40rem;
    }

    .hero-v2-visual {
        max-width: 34rem;
    }
}

@media (max-width: 767px) {
    .hero-v2-cta-row {
        gap: 0.5rem;
    }

    .hero-v2-cta-row .hero-cta {
        flex: 1 1 auto;
        justify-content: center;
    }

    .hero-v2-visual-frame {
        transform: perspective(1200px) rotateY(-5deg) rotateX(4deg);
        animation: hero-v2-visual-float-tablet 9s ease-in-out infinite;
    }

    html[dir="rtl"] .hero-v2-visual-frame {
        transform: perspective(1200px) rotateY(5deg) rotateX(4deg);
        animation: hero-v2-visual-float-tablet-rtl 9s ease-in-out infinite;
    }

    .hero-v2-tip--omni { left: 0; }
    .hero-v2-tip--sent { right: 0; }
    .hero-v2-tip--ai { left: 2%; }
    .hero-v2-tip--eval { right: 2%; }

    html[dir="rtl"] .hero-v2-tip--omni { right: 0; left: auto; }
    html[dir="rtl"] .hero-v2-tip--sent { left: 0; right: auto; }
    html[dir="rtl"] .hero-v2-tip--ai { right: 2%; left: auto; }
    html[dir="rtl"] .hero-v2-tip--eval { left: 2%; right: auto; }
}

@keyframes hero-v2-visual-float-tablet {
    0%, 100% { transform: perspective(1200px) rotateY(-5deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-5deg) rotateX(4deg) translateY(-8px); }
}

@keyframes hero-v2-visual-float-tablet-rtl {
    0%, 100% { transform: perspective(1200px) rotateY(5deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(5deg) rotateX(4deg) translateY(-8px); }
}

@media (max-width: 480px) {
    .hero-v2-visual-frame {
        transform: none;
        animation: hero-v2-visual-float-mobile 9s ease-in-out infinite;
    }

    html[dir="rtl"] .hero-v2-visual-frame {
        transform: none;
        animation: hero-v2-visual-float-mobile 9s ease-in-out infinite;
    }

    .hero-v2-tip {
        font-size: 0.58rem;
        padding: 0.32rem 0.55rem;
    }

    .hero-v2-tip--sent,
    .hero-v2-tip--eval {
        display: none;
    }
}

@keyframes hero-v2-visual-float-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-v2-bg-orb,
    .hero-v2-eyebrow-dot,
    .hero-v2-eyebrow-heart,
    .hero-v2-headline em,
    .hero-v2-visual-ring,
    .hero-v2-visual-glow,
    .hero-v2-visual-frame,
    .hero-v2-tip,
    .hero-v2-tip::after {
        animation: none !important;
    }

    .hero-v2-tip {
        opacity: 1;
        scale: 1;
        translate: 0 0;
    }
}
