.hero {
    position: relative;
    overflow: hidden;
    padding: 20px 0 70px !important;
    animation: fadeInUp 0.8s ease-out;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb--1 {
    width: min(480px, 42vw);
    height: min(480px, 42vw);
    background: radial-gradient(circle, rgba(108, 109, 236, 0.4) 0%, transparent 70%);
    top: -12%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb--2 {
    width: min(380px, 36vw);
    height: min(380px, 36vw);
    background: radial-gradient(circle, rgba(0, 209, 122, 0.3) 0%, transparent 70%);
    bottom: -8%;
    left: -6%;
    animation-delay: -4s;
}

.hero-orb--3 {
    width: min(260px, 26vw);
    height: min(260px, 26vw);
    background: radial-gradient(circle, rgba(143, 211, 255, 0.35) 0%, transparent 70%);
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroOrbFloatCenter 16s ease-in-out infinite -8s;
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, -3%) scale(1.04); }
    66% { transform: translate(-2%, 2%) scale(0.98); }
}

@keyframes heroOrbFloatCenter {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.06); }
}

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

.hero-flow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
}

.hero-flow-svg {
    position: absolute;
    width: 120%;
    height: 120%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.55;
    pointer-events: auto;
}

.hero-flow-path {
    stroke: rgba(108, 109, 236, 0.28);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-dasharray: 10 22;
    animation: heroFlowDash 5s linear infinite;
}

.hero-flow-path--2 { animation-delay: 1.2s; }
.hero-flow-path--3 { animation-delay: 0.4s; }
.hero-flow-path--4 { animation-delay: 2s; }
.hero-flow-path--5 { animation-delay: 0.8s; }

@keyframes heroFlowDash {
    to { stroke-dashoffset: -32; }
}

.hero-flow-dot {
    fill: rgba(108, 109, 236, 0.35);
    animation: heroFlowDot 3s ease-in-out infinite;
    cursor: pointer;
    pointer-events: all;
    transition: filter 0.22s ease;
}

.hero-flow-orb {
    fill: url(#hero-flow-orb-gradient-light);
    filter:
        blur(2px)
        drop-shadow(0 0 8px rgba(45, 55, 72, 0.6))
        drop-shadow(0 0 16px rgba(26, 32, 44, 0.5));
    opacity: 0.9;
}

[data-theme="dark"] .hero-flow-orb {
    fill: url(#hero-flow-orb-gradient-dark);
    filter:
        blur(2px)
        drop-shadow(0 0 12px rgba(255, 250, 190, 1))
        drop-shadow(0 0 28px rgba(255, 220, 120, 0.98));
    opacity: 0.95;
}

.hero-flow-dot:hover {
    filter:
        drop-shadow(0 0 6px rgba(255, 245, 160, 1))
        drop-shadow(0 0 14px rgba(255, 220, 70, 0.95))
        drop-shadow(0 0 28px rgba(255, 190, 0, 0.75));
}

.hero-flow-svg:hover .hero-flow-path {
    stroke: rgba(108, 109, 236, 0.5);
    stroke-width: 1.5;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.hero-flow-svg:hover .hero-flow-dot {
    filter:
        drop-shadow(0 0 4px rgba(255, 245, 160, 0.55))
        drop-shadow(0 0 10px rgba(255, 220, 70, 0.45));
}

@supports(selector(:has(*))) {
    .hero-flow:has(.hero-flow-dot:hover) .hero-flow-dot {
        filter:
            drop-shadow(0 0 4px rgba(255, 245, 160, 0.55))
            drop-shadow(0 0 10px rgba(255, 220, 70, 0.45));
    }

    .hero-flow:has(.hero-flow-dot:hover) .hero-flow-dot:hover {
        filter:
            drop-shadow(0 0 6px rgba(255, 245, 160, 1))
            drop-shadow(0 0 14px rgba(255, 220, 70, 0.95))
            drop-shadow(0 0 28px rgba(255, 190, 0, 0.75));
    }
}

[data-theme="dark"] .hero-flow-path {
    stroke: rgba(123, 156, 255, 0.35);
}

[data-theme="dark"] .hero-flow-dot {
    fill: rgba(123, 156, 255, 0.4);
}

[data-theme="dark"] .hero-flow-svg:hover .hero-flow-path {
    stroke: rgba(123, 156, 255, 0.5);
}

[data-theme="dark"] .hero-flow-svg {
    opacity: 0.5;
}

[data-theme="dark"] .hero-panel {
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero-panel::before {
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(123, 156, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 156, 255, 0.06) 1px, transparent 1px);
}

.hero-flow-dot:nth-child(odd) { animation-delay: 0.5s; }

@keyframes heroFlowDot {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-panel {
    width: min(1600px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 74px 24px 0;
    border-radius: 34px;
    position: relative;
    z-index: 1;
    background: var(--bg);
    border: 1px solid rgba(17, 18, 23, 0.06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.05);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(108, 109, 236, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 109, 236, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    text-align: center;
    pointer-events: none;
}

.hero-inner .hero-content,
.hero-inner .hero-mockup {
    pointer-events: auto;
}

.hero-content {
    max-width: 820px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-title {
    font-size: 52px;
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text);
}

.hero-text {
    font-size: 18px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 24px;
}

.hero-cta {
    display: inline-flex;
    animation: fadeInUp 0.8s ease-out 0.25s both;
}

.hero-mockup {
    width: min(1120px, 92vw);
    aspect-ratio: 2075 / 1385;
    height: auto;
    background: url("/images/hero-mockup.png") no-repeat center / contain;
    filter: drop-shadow(0 22px 60px rgba(0, 0, 0, 0.12));
    animation: fadeInUp 0.9s ease-out 0.35s both;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(17, 18, 23, 0.14);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.55) inset,
        0 22px 60px rgba(0, 0, 0, 0.12);
}

.hero-mockup::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(17, 18, 23, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .hero-mockup {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 22px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-mockup::before {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (max-width: 960px) {
    .hero {
        padding: 14px 0 60px;
    }
    .hero-panel {
        width: calc(100vw - 32px);
        padding: 44px 16px 0;
        border-radius: 26px;
    }
    .hero-title {
        font-size: 44px;
    }
    .hero-text {
        font-size: 17px;
    }
    .hero-mockup {
        width: min(980px, 96vw);
        aspect-ratio: 2075 / 1385;
    }
}

@media (max-width: 720px) {
    .hero-panel {
        width: calc(100vw - 24px);
        padding: 34px 12px 0;
        border-radius: 22px;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-text {
        margin-bottom: 20px;
    }
    .hero-mockup {
        width: 96vw;
        aspect-ratio: 2075 / 1385;
    }
    .hero-orb {
        filter: blur(70px);
        opacity: 0.18;
    }
    .hero-flow-svg {
        opacity: 0.35;
    }
}

