/* Premium CSS */
:root {
    --bg-dark: #00002d;
    --bg-darker: #050508;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #00f0ff;
    --accent-purple: #7b2ff7;
    --glow-spread: rgba(123, 47, 247, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --heroes-blue: #4fc3f7;
    --heroes-glow: rgba(79, 195, 247, 0.3);
    --legends-gold: #f8c94e;
    --legends-purple: #9c27b0;
    --legends-glow: rgba(156, 39, 176, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1600px;
    /* Expanded for 24-inch screens */
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Background Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-icon {
    -webkit-text-fill-color: var(--accent-blue);
}

.nav-img-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.desktop-nav a:hover {
    color: var(--text-primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
}

.btn-primary.outline {
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-blue);
}

.btn-primary.outline:hover {
    background: rgba(123, 47, 247, 0.1);
    box-shadow: 0 0 15px rgba(123, 47, 247, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 25px var(--glow-spread);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   HERO — TWO-COLUMN LAYOUT
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* Left column */
.hero-content {
    max-width: 100%;
    text-align: left;
}

.pill-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-blue);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    animation: badgePulse 2.5s ease-in-out infinite;
    position: relative;
}

.pill-badge::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.15);
    animation: badgeRing 2.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(0, 240, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 18px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.15);
    }
}

@keyframes badgeRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.08);
        opacity: 0;
    }
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ============================================================
   HEROES & LEGENDS CARDS  (right column)
   ============================================================ */
.roles-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-self: center;
    /* vertically center in hero flex */
}

/* Row holds both cards side by side */
.roles-cards-row {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: stretch;
    overflow: visible;
}

/* --- Individual Card --- */
.role-card {
    flex: 1;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: visible;
    cursor: default;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

/* Hover glow borders */
.heroes-card:hover {
    border-color: rgba(79, 195, 247, 0.55);
    box-shadow: 0 0 28px rgba(79, 195, 247, 0.18), 0 0 8px rgba(79, 195, 247, 0.1) inset;
    transform: translateY(-3px);
}

.legends-card:hover {
    border-color: rgba(248, 201, 78, 0.55);
    box-shadow: 0 0 28px rgba(248, 201, 78, 0.18), 0 0 8px rgba(248, 201, 78, 0.1) inset;
    transform: translateY(-3px);
}

/* Subtle tint blobs */
.heroes-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(79, 195, 247, 0.06) 0%, transparent 65%);
    pointer-events: none;
    border-radius: 16px;
    z-index: 0;
}

.legends-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(248, 201, 78, 0.06) 0%, transparent 65%);
    pointer-events: none;
    border-radius: 16px;
    z-index: 0;
}

/* Ensure card children sit above the tint blob */
.role-card>* {
    position: relative;
    z-index: 1;
}

/* But popup sits high above everything */
.role-responsibilities {
    z-index: 200;
}

/* --- Card Top: identity + tagline --- */
.role-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0;
}

/* Identity row: title on left, badge on right */
.role-card-identity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
}

/* Role Titles */
.role-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.roles-card-wrapper.card-visible .role-title {
    opacity: 1;
    transform: translateY(0);
}

.heroes-title {
    color: var(--heroes-blue);
}

.legends-title {
    color: var(--legends-gold);
}

/* Badge icons */
.role-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heroes-card:hover .heroes-icon {
    transform: scale(1.12);
    box-shadow: 0 0 16px var(--heroes-glow);
}

.legends-card:hover .legends-icon {
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(248, 201, 78, 0.4);
}

.heroes-icon {
    background: rgba(79, 195, 247, 0.1);
    border: 1.5px solid rgba(79, 195, 247, 0.35);
    color: var(--heroes-blue);
}

.legends-icon {
    background: rgba(248, 201, 78, 0.1);
    border: 1.5px solid rgba(248, 201, 78, 0.35);
    color: var(--legends-gold);
}

/* Tagline */
.role-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.55;
    margin: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.roles-card-wrapper.card-visible .role-tagline {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsibilities POPUP (projects over card on hover) --- */
.role-responsibilities {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108%;
    z-index: 200;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    pointer-events: none;
    opacity: 0;
    /* Setup for zoom out from card center */
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Heroes popup */
.heroes-card .role-responsibilities {
    border: 1.5px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(79, 195, 247, 0.15) inset;
}

/* Legends popup */
.legends-card .role-responsibilities {
    border: 1.5px solid rgba(248, 201, 78, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(248, 201, 78, 0.15) inset;
}

/* SHOW on hover */
.role-card:hover .role-responsibilities {
    opacity: 1;
    /* Zoom to fully cover the card */
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Subheading */
.resp-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.resp-diamond {
    font-size: 0.4rem;
}

.resp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.resp-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.resp-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.heroes-resp-icon {
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.2);
    color: var(--heroes-blue);
}

.legends-resp-icon {
    background: rgba(248, 201, 78, 0.08);
    border: 1px solid rgba(248, 201, 78, 0.22);
    color: var(--legends-gold);
}

.resp-list li div {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.resp-list li strong {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
}

.resp-list li span {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
}

/* --- Quote Bar --- */
.roles-quote {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-style: normal;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
}

.roles-card-wrapper.card-visible .roles-quote {
    opacity: 1;
    transform: translateY(0);
}

.roles-quote::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3.5s ease-in-out infinite;
}

.quote-icon {
    color: var(--legends-gold);
    font-size: 0.75rem;
    opacity: 0.65;
}

/* Section Heading */
.roles-section-heading {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, white, indigo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

.roles-card-wrapper.card-visible .roles-section-heading {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   GLASS CARDS (shared)
   ============================================================ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-card> :last-child {
    margin-top: auto;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.glass-card:hover::before {
    transform: translateX(100%);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 47, 247, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(123, 47, 247, 0.1);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title h2 span {
    color: var(--accent-purple);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: rgba(123, 47, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-blue);
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(123, 47, 247, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.feature-card {
    text-align: center;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Open Positions */
.positions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.position-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
}

.position-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.position-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.position-tags span {
    font-size: 0.82rem;
    color: var(--accent-blue);
    background: rgba(0, 240, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.position-info p {
    color: var(--text-secondary);
    max-width: 550px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    max-width: 300px;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: var(--text-primary);
}

.socials a:hover {
    background: var(--accent-purple);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    transition: 0.3s;
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    animation: fadeInUp 0.9s ease-out both;
}

.fade-in-delayed {
    animation: fadeInUp 0.9s ease-out 0.35s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Role icon animated glow ring */
.role-icon {
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.4) drop-shadow(0 0 8px currentColor);
    }
}

/* Quote bar shimmer */
.roles-quote {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-style: normal;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 1.4s, transform 0.5s ease 1.4s;
}

.roles-card-wrapper.card-visible .roles-quote {
    opacity: 1;
    transform: translateY(0);
}

.roles-quote::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    from {
        left: -100%;
    }

    to {
        left: 200%;
    }
}

/* ============================================================
   RESPONSIVE (Min-Width Mobile First)
   ============================================================ */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 2rem;
    }

    .mobile-toggle {
        display: none;
    }

    .hero-content {
        max-width: 520px;
        text-align: left;
        margin: 0;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .roles-cards-row {
        flex-direction: row;
    }

    .footer-container {
        grid-template-columns: 1.5fr 2fr;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .position-card {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1.1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .roles-section-heading {
        font-size: 2rem;
    }
}

@media (min-width: 1280px) {
    .hero-container {
        grid-template-columns: 1fr 1.15fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .roles-section-heading {
        font-size: 2.2rem;
    }
}


/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(15px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.mobile-nav a {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* ============================================================
   PORTED COMPONENTS (Mobile-First)
   ============================================================ */
/* Steps (How it works) */
.steps {
    display: flex;
    flex-direction: column;
    /* Mobile first stack */
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step p {
    color: var(--text-secondary);
}



/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(15px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.mobile-nav a {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* ============================================================
   PORTED COMPONENTS (Mobile-First)
   ============================================================ */
/* Steps (How it works) */
.steps {
    display: flex;
    flex-direction: column;
    /* Mobile first stack */
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step p {
    color: var(--text-secondary);
}

/* Service Buttons */
.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-top: 2rem;
}

/* Premium Floating Visitor Counter Pill */
.visitor-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 8px 24px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    user-select: none;
    animation: pill-float 6s ease-in-out infinite;
}

.visitor-counter:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(15, 25, 45, 0.85);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 20px 45px rgba(0, 210, 255, 0.15);
}

.visitor-counter.visitor-counter-inline {
    position: relative;
    bottom: auto;
    right: auto;
    animation: none;
    display: inline-flex;
    margin: 1rem auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.visitor-counter.visitor-counter-inline:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Status Indicator Dot */
.visitor-counter::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d2ff, 0 0 20px #00d2ff;
    animation: status-pulse 2s infinite;
}

.counter-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* Responsive Adjustments for Ported Components */
@media (min-width: 768px) {
    .steps {
        flex-direction: row;
    }

    .service-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
}

/* --- ROLLING NUMBER (ODOMETER) SYSTEM --- */
.counter-value {
    display: flex;
    height: 1.5em;
    overflow: hidden;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5em;
    /* Ensure line height matches container height */
}

.digit-container {
    height: 1.5em;
    width: 0.65em;
    display: flex;
    justify-content: center;
    position: relative;
}

.digit-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 1.5s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Apply gradient to the digits directly for background-clip: text to work reliably */
.digit-strip span,
.comma {
    display: block;
    height: 1.5em;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.comma {
    width: auto;
    padding: 0 1px;
}

/* Animations */
@keyframes pill-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px #00d2ff;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
        box-shadow: 0 0 15px #00d2ff;
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px #00d2ff;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .visitor-counter {
        bottom: 20px;
        right: 20px;
        padding: 6px 18px;
        gap: 10px;
    }

    .counter-label {
        font-size: 0.6rem;
    }

    .counter-value {
        font-size: 1.2rem;
        height: 1.5em;
    }
}

/* ============================================================
   HERO VISUAL (BUBBLE CARD)
   ============================================================ */
.bbc-card {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 100%;
    border-radius: 20px;
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bbc-ambient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(123, 47, 247, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bbc-pill-wrap {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    padding: 0 1rem;
}

.bbc-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 90%;
    font-weight: 500;
}

@media (max-width: 768px) {
    .bbc-card {
        min-height: 400px;
    }
    .bbc-pill {
        border-radius: 12px;
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
        width: 96%;
        max-width: 96%;
    }
    .bbc-pill-wrap {
        bottom: 5px;
        padding: 0;
    }
}

#bbcCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: default;
}

/* ============================================================
   PREMIUM JOIN CARD (join-team.html)
   ============================================================ */
.join-container {
    padding-top: 5rem;
}

.premium-join-card {
    position: relative;
    background: rgba(10, 15, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 4rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    max-width: 1000px;
}

.pjc-ambient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(123, 47, 247, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.pjc-content {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 3rem;
}

.pjc-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1rem auto 2rem;
}

.pjc-btn-glow {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pjc-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(123, 47, 247, 0.5);
}

.pjc-roles-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.pjc-role-col {
    display: flex;
    flex-direction: column;
}

.pjc-role-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pjc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.heroes-icon-glow {
    background: rgba(79, 195, 247, 0.1);
    color: var(--heroes-blue);
    border: 1px solid rgba(79, 195, 247, 0.3);
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.2);
}

.legends-icon-glow {
    background: rgba(248, 201, 78, 0.1);
    color: var(--legends-gold);
    border: 1px solid rgba(248, 201, 78, 0.3);
    box-shadow: 0 0 15px rgba(248, 201, 78, 0.2);
}

.pjc-role-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pjc-list {
    list-style: none;
    padding: 0;
}

.pjc-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.pjc-divider-vertical {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

@media (max-width: 768px) {
    .premium-join-card {
        padding: 2rem;
    }
    .pjc-roles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pjc-divider-vertical {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    }
}

/* ============================================================
   OPEN POSITIONS ECOSYSTEM (join-team.html)
   ============================================================ */
.positions-ecosystem {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.ecosystem-category-card {
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ecosystem-cat-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.cat-num {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(123, 47, 247, 0.3);
    flex-shrink: 0;
}

.cat-icon {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.ecosystem-cat-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ecosystem-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ecosystem-role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ecosystem-role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.role-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.role-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.ecosystem-role-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.role-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.role-points li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.role-points li::before {
    content: '→';
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

/* Modifiers */
.role-border-blue { border-top: 3px solid #00d2ff; }
.role-border-pink { border-top: 3px solid #ff007f; }
.role-border-purple { border-top: 3px solid #7b2ff7; }
.role-border-green { border-top: 3px solid #00e676; }
.role-border-orange { border-top: 3px solid #ff9100; }

.text-blue { color: #00d2ff; }
.text-pink { color: #ff007f; }
.text-purple { color: #7b2ff7; }
.text-green { color: #00e676; }
.text-orange { color: #ff9100; }

@media (max-width: 768px) {
    .ecosystem-category-card {
        padding: 1.5rem;
    }
    .ecosystem-cat-header {
        flex-wrap: wrap;
    }
}