/* ==========================================================================
   Creative Immersive Hero — Centered Glassmorphism Concept
   ========================================================================== */

.creative-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 160px 20px 80px;
    background: transparent;
    overflow: hidden;
}

/* ---------- Background Elements ---------- */
.creative-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.creative-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 10%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 10%, transparent 100%);
}

.creative-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orb-drift 20s infinite alternate ease-in-out;
}

.creative-orb--1 {
    width: 800px;
    height: 800px;
    background: #4f46e5;
    /* Indigo */
    top: -20%;
    left: 20%;
    opacity: 0.08;
    /* Very faint, just a subtle glow to match site's light theme */
    animation-delay: 0s;
}

@keyframes orb-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, -40px) scale(1.1);
    }
}

/* ---------- Centralized Content ---------- */
.creative-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: c-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes c-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pill / Badge */
.c-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4f46e5;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.c-pill__dot {
    width: 6px;
    height: 6px;
    background: #4f46e5;
    border-radius: 50%;
    animation: c-pulse 2s infinite;
}

@keyframes c-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

/* Headline */
.c-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin: 0 0 24px;
}

.c-title__gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Description */
.c-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 40px;
    max-width: 600px;
}

/* Buttons */
.c-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.c-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 100px;
    /* Fully rounded for modern look */
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.c-btn .material-symbols-outlined {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.c-btn--primary {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.c-btn--primary:hover {
    background: #4338ca;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.35);
}

.c-btn--primary:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.c-btn--secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.c-btn--secondary:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Social Proof */
.c-social {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.c-social__avatars {
    display: flex;
    align-items: center;
}

.c-social__avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -12px;
    background: #e2e8f0;
}

.c-social__avatars img:first-child {
    margin-left: 0;
}

.c-social__more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #ffffff;
    margin-left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    z-index: 1;
}

.c-social__text {
    text-align: left;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}

.c-social__stars {
    color: #eab308;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.c-social__stars span {
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-left: 4px;
}


/* ==========================================================================
   FLOATING UI NODES (Parallax Scene)
   ========================================================================== */

.creative-scene {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass through to main content */
    max-width: 1400px;
    margin: 0 auto;
}

.c-node {
    position: absolute;
    /* Will-change applied via JS to avoid blurry text bugs on initialization */
}

/* Glass Card Base */
.c-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: node-float 6s ease-in-out infinite alternate;
}

@keyframes node-float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-12px);
    }
}

/* Node Positioning */
.c-node--nav2 {
    bottom: 25%;
    left: 12%;
    animation-delay: -2s;
}

.c-node--nav3 {
    top: 25%;
    right: 10%;
    animation-delay: -4s;
}

.c-node--nav4 {
    bottom: 20%;
    right: 8%;
    animation-delay: -1s;
}

/* -- Node 2: Competitors -- */
.c-glass--compact {
    padding: 16px 20px;
    width: 200px;
}

.c-glass__vs {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.c-avatar {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.c-avatar--dark {
    background: #0f172a;
    color: #ffffff;
}

.c-badge {
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    margin: 0 -4px;
    z-index: 1;
}

.c-glass__title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

/* -- Node 3: Dark Mode -- */
.c-glass--dark {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
}

.c-glass--dark .material-symbols-outlined {
    color: #ffffff;
    font-size: 24px;
    padding: 10px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    border-radius: 12px;
}

.c-glass__meta strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.c-glass__meta span {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* -- Node 4: Rating -- */
.c-glass--rating {
    text-align: center;
    padding: 16px 20px;
}

.c-stars {
    color: #eab308;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.c-stars span {
    font-size: 16px;
}


/* ==========================================================================
   Entrance Animations
   ========================================================================== */
.c-pill,
.c-title,
.c-desc,
.c-actions,
.c-social {
    opacity: 0;
    animation: c-stagger-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.c-pill {
    animation-delay: 0.1s;
    transform: translateY(20px);
}

.c-title {
    animation-delay: 0.2s;
    transform: translateY(20px);
}

.c-desc {
    animation-delay: 0.3s;
    transform: translateY(20px);
}

.c-actions {
    animation-delay: 0.4s;
    transform: translateY(20px);
}

.c-social {
    animation-delay: 0.5s;
    transform: translateY(20px);
}

@keyframes c-stagger-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nodes pop in */
.c-node {
    opacity: 0;
    animation: c-node-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.c-node--nav1 {
    animation-delay: 0.6s;
}

.c-node--nav2 {
    animation-delay: 0.7s;
}

.c-node--nav3 {
    animation-delay: 0.8s;
}

.c-node--nav4 {
    animation-delay: 0.9s;
}

@keyframes c-node-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .creative-hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    .c-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .c-desc {
        font-size: 1.05rem;
    }

    /* Hide the floating nodes on smaller screens to prevent clutter */
    .creative-scene {
        display: none;
    }
}

@media (max-width: 599px) {
    .creative-hero {
        padding: 100px 20px 40px;
    }

    .c-pill {
        font-size: 0.65rem;
    }

    .c-actions {
        flex-direction: column;
        width: 100%;
    }

    .c-btn {
        width: 100%;
        justify-content: center;
    }

    .c-social {
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
    }

    .c-social__text {
        text-align: center;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .c-pill,
    .c-title,
    .c-desc,
    .c-actions,
    .c-social,
    .c-node,
    .creative-orb {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}