/* ── Hero ─────────────────────────────────────────────── */

.nq-hero {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 4rem;
    min-height: calc(100dvh - 4rem);
    display: flex;
    align-items: center;
}

.nq-hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.nq-hero__particle {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(15, 134, 248, 0.35), rgba(73, 222, 255, 0.18));
    animation: nq-particle-drift linear infinite;
    will-change: transform, opacity;
}

.nq-hero__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.45;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero__glow--left {
    width: 30rem;
    height: 30rem;
    top: -6rem;
    left: -12rem;
    background: radial-gradient(circle, rgba(73, 222, 255, 0.45), transparent 70%);
    animation: nq-glow-breathe 8s ease-in-out infinite;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero__glow--right {
    width: 34rem;
    height: 34rem;
    bottom: -8rem;
    right: -12rem;
    background: radial-gradient(circle, rgba(15, 134, 248, 0.32), transparent 70%);
    animation: nq-glow-breathe 10s ease-in-out infinite 2s;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero__glow--center {
    width: 22rem;
    height: 22rem;
    top: 50%;
    left: 50%;
    margin-top: -11rem;
    margin-left: -11rem;
    background: radial-gradient(circle, rgba(73, 222, 255, 0.18), transparent 70%);
    animation: nq-glow-breathe 12s ease-in-out infinite 4s;
}

.nq-hero__grid {
    display: grid;
    align-items: center;
    gap: 3.5rem;
}

.nq-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero .nq-eyebrow {
    align-self: auto;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero__heading {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--nq-text);
}

body.nq-homepage-2 .neuroquest-home-2 .nq-shimmer-wrap {
    background: linear-gradient(
        105deg,
        #063f7a 0%, #0f86f8 28%, #49deff 46%,
        rgba(255, 255, 255, 0.6) 50%,
        #49deff 54%, #0f86f8 72%, #063f7a 100%
    );
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: nq-text-shimmer 6s ease-in-out infinite 2.5s;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero__subtitle {
    max-width: 34rem;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.75;
    color: var(--nq-text-soft);
}

.nq-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem;
    padding-top: 0.25rem;
}

.nq-btn--glow {
    position: relative;
}

.nq-btn--glow::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(15, 134, 248, 0.35), rgba(73, 222, 255, 0.25));
    filter: blur(18px);
    opacity: 0;
    animation: nq-btn-pulse 3s ease-in-out infinite 3.5s;
    pointer-events: none;
    z-index: -1;
}

.nq-hero__proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.nq-hero__proof-avatars {
    display: flex;
}

.nq-hero__proof-avatar {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(15, 134, 248, 0.12);
}

.nq-hero__proof-avatar + .nq-hero__proof-avatar {
    margin-left: -0.5rem;
}

.nq-hero__proof-text {
    font-size: 0.85rem;
    color: var(--nq-text-soft);
}

.nq-hero__proof-text strong {
    color: var(--nq-text);
    font-weight: 700;
}

/* Hero phone */
.nq-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero__phone {
    position: relative;
    width: 240px;
    border-radius: 2.5rem;
    border: 1px solid rgba(15, 134, 248, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(228, 250, 255, 0.98));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 30px 80px -12px rgba(22, 134, 248, 0.22),
        0 0 60px -10px rgba(73, 222, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 0.65rem;
    z-index: 2;
    animation: nq-phone-float 6s ease-in-out infinite;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero__phone-notch {
    width: 30%;
    height: 0.28rem;
    margin: 0.2rem auto 0.55rem;
    border-radius: 999px;
    background: rgba(15, 134, 248, 0.18);
}

body.nq-homepage-2 .neuroquest-home-2 .nq-hero__phone-screen {
    aspect-ratio: 9 / 17;
    border-radius: 1.85rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(73, 222, 255, 0.16), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(15, 134, 248, 0.1), transparent 50%),
        linear-gradient(180deg, #fafeff 0%, #e6f8ff 100%);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

/* Mini app UI inside phone */
.nq-hero__app {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.nq-hero__app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nq-hero__app-greeting {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--nq-text);
}

.nq-hero__app-streak {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 160, 50, 0.12);
    color: #c66a00;
    font-weight: 600;
}

.nq-hero__app-streak i {
    font-size: 0.52rem;
    --fa-primary-color: #f97316;
    --fa-secondary-color: #fb923c;
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.45;
}

.nq-hero__app-ring {
    position: relative;
    width: 5rem;
    height: 5rem;
    margin: 0.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nq-hero__app-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nq-hero__ring-progress {
    transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.nq-hero__app-score {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.nq-hero__app-score strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--nq-text);
    letter-spacing: -0.02em;
}

.nq-hero__app-score small {
    font-size: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nq-text-soft);
    font-weight: 600;
}

.nq-hero__app-xp {
    padding: 0.45rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 134, 248, 0.06);
}

.nq-hero__app-xp-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.45rem;
    font-weight: 600;
    color: var(--nq-text);
    margin-bottom: 0.25rem;
}

.nq-hero__app-xp-track {
    height: 0.25rem;
    border-radius: 999px;
    background: rgba(15, 134, 248, 0.08);
    overflow: hidden;
}

.nq-hero__app-xp-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f86f8, #49deff);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1.2s;
}

.nq-hero__app-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nq-hero__app-task {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.48rem;
    font-weight: 500;
    color: var(--nq-text);
    padding: 0.3rem 0.4rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 134, 248, 0.04);
    opacity: 0.55;
    transition: opacity 0.6s ease 2s;
}

.nq-hero__app-task--done {
    opacity: 1;
    transition-delay: 1.4s;
}

.nq-hero__app-task-check {
    width: 0.7rem;
    height: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 134, 248, 0.1);
    color: #0f86f8;
    font-size: 0.45rem;
    flex-shrink: 0;
}

.nq-hero__app-task-check i {
    font-size: 0.5rem;
    line-height: 1;
    --fa-primary-color: #0f86f8;
    --fa-secondary-color: #49deff;
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.3;
}

/* Floating badges */
.nq-hero__badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 134, 248, 0.1);
    box-shadow: 0 8px 30px rgba(15, 134, 248, 0.1);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--nq-text);
    white-space: nowrap;
    z-index: 3;
}

.nq-hero__badge i {
    color: #0f86f8;
    flex-shrink: 0;
    font-size: 0.8rem;
    line-height: 1;
    --fa-primary-color: #0f86f8;
    --fa-secondary-color: #49deff;
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.3;
}

.nq-hero__badge--top {
    top: 6%;
    right: -2%;
    animation: nq-badge-bob 5s ease-in-out infinite;
}

.nq-hero__badge--bottom {
    bottom: 14%;
    left: -4%;
    animation: nq-badge-bob 6s ease-in-out infinite 1.5s;
}

/* Phone glow */
body.nq-homepage-2 .neuroquest-home-2 .nq-hero__phone-glow {
    position: absolute;
    width: 75%;
    height: 65%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(
        ellipse,
        rgba(73, 222, 255, 0.3) 0%,
        rgba(15, 134, 248, 0.18) 40%,
        transparent 70%
    );
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
    animation: nq-glow-breathe 6s ease-in-out infinite;
}

/* Decorative floating shapes */
.nq-hero__deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: nq-deco-drift ease-in-out infinite;
    animation-fill-mode: both;
}

.nq-hero__deco--1 {
    top: 12%;
    right: 14%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.nq-hero__deco--2 {
    bottom: 22%;
    left: 6%;
    animation-duration: 11s;
    animation-delay: 2.5s;
}

.nq-hero__deco--3 {
    top: 55%;
    right: 28%;
    animation-duration: 8s;
    animation-delay: 4s;
}

/* ── Hero keyframes ──────────────────────────────────── */

@keyframes nq-phone-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(0.5deg); }
}

@keyframes nq-glow-breathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.08); }
}

@keyframes nq-text-shimmer {
    0%, 80%, 100% { background-position: 100% 0; }
    40% { background-position: -60% 0; }
}

@keyframes nq-btn-pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.7; }
}

@keyframes nq-badge-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes nq-deco-drift {
    0% { opacity: 0; transform: translateY(10px); }
    15% { opacity: 0.6; }
    50% { transform: translateY(-12px) rotate(8deg); }
    85% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(10px) rotate(-4deg); }
}

@keyframes nq-particle-drift {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

@keyframes nq-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
