/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    font-size: 16px;
    overflow-x: hidden;
}
body {
    background: #0a0a0f;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === Page shell === */
.page {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

/* === Urgency Banner === */
.urgency-bar {
    background: linear-gradient(90deg, rgba(29,161,242,0.12), rgba(29,161,242,0.04));
    text-align: center;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1DA1F2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.urgency-dot {
    width: 6px; height: 6px;
    background: #1DA1F2;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(29,161,242,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 8px 3px rgba(29,161,242,0.2); }
}
.urgency-countdown {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(29,161,242,0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    margin-left: 0.25rem;
}

/* === Nav === */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem clamp(1rem, 3vw, 2rem);
    background: rgba(10,10,15,0.95);
    border-bottom: 1px solid rgba(29,161,242,0.08);
}
.nav-left { display: flex; align-items: center; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo img { width: 24px; height: 24px; }
.nav-logo span { font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 1.2rem; }
.nav-links a {
    font-size: 0.9rem; color: #555; font-weight: 500;
    transition: color 0.2s; padding: 0.2rem 0;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.live-badge {
    display: flex; align-items: center; gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 100px;
    background: rgba(34,197,94,0.06);
    border: 1px solid rgba(34,197,94,0.12);
}
.live-dot {
    width: 5px; height: 5px;
    background: #22c55e; border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
}
.live-count {
    font-size: 0.8rem; color: #22c55e;
    font-weight: 600; font-family: 'JetBrains Mono', monospace;
}
@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 8px 3px rgba(34,197,94,0.2); }
}
.btn-nav {
    padding: 0.45rem 1.1rem; border-radius: 6px;
    font-size: 0.875rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit; border: none;
}
.btn-nav.ghost {
    background: transparent;
    border: 1px solid rgba(29,161,242,0.2);
    color: #1DA1F2;
}
.btn-nav.ghost:hover { background: rgba(29,161,242,0.08); border-color: #1DA1F2; }
.btn-nav.primary { background: #1DA1F2; color: #fff; }
.btn-nav.primary:hover { background: #4DB5F5; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.2rem; }
.hamburger span {
    display: block; width: 18px; height: 2px;
    background: #888; margin: 3px 0; border-radius: 1px;
    transition: all 0.3s;
}
.mobile-menu {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,15,0.97); z-index: 200;
    flex-direction: column; align-items: center;
    justify-content: center; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; color: #ccc; font-weight: 600; transition: color 0.2s; }
.mobile-menu a:hover { color: #1DA1F2; }
.mobile-close {
    position: absolute; top: 1rem; right: 1.5rem;
    background: none; border: none;
    color: #888; font-size: 1.8rem; cursor: pointer;
}

/* === Main content area === */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 3vw, 2rem);
    min-height: 0;
    min-width: 0;
}

/* === Footer === */
.site-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem clamp(1rem, 3vw, 2rem);
    border-top: 1px solid rgba(29,161,242,0.06);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: #444; transition: color 0.2s; }
.footer-links a:hover { color: #1DA1F2; }
.footer-copy { color: #2a2a35; }
.footer-right { display: flex; align-items: center; gap: 0.75rem; }
.btn-footer {
    padding: 0.35rem 0.85rem; border-radius: 5px;
    font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit; border: none; text-decoration: none;
}
.btn-footer.dev {
    background: transparent; color: #1DA1F2;
    border: 1px solid rgba(29,161,242,0.15);
    font-family: 'JetBrains Mono', monospace;
}
.btn-footer.dev:hover { background: rgba(29,161,242,0.06); }
.btn-footer.cta { background: #1DA1F2; color: #fff; }
.btn-footer.cta:hover { background: #4DB5F5; }

/* === Shared components === */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.6rem; border-radius: 8px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit; border: none; text-decoration: none;
}
.btn.primary { background: #1DA1F2; color: #fff; }
.btn.primary:hover { background: #4DB5F5; transform: translateY(-1px); }
.btn.secondary { background: transparent; color: #1DA1F2; border: 1px solid rgba(29,161,242,0.25); }
.btn.secondary:hover { background: rgba(29,161,242,0.08); border-color: #1DA1F2; }
.section-tag {
    font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: #1DA1F2; margin-bottom: 0.6rem;
}

/* === Claim Banner === */
.claim-banner {
    background: rgba(29,161,242,0.04);
    border: 1px solid rgba(29,161,242,0.3);
    border-radius: 8px; padding: 0.65rem 1rem;
    margin: 0.5rem auto; max-width: 420px; text-align: left;
    animation: claim-pulse 2s ease-in-out infinite;
}
@keyframes claim-pulse {
    0%, 100% { border-color: rgba(29,161,242,0.3); box-shadow: 0 0 0 0 rgba(29,161,242,0); }
    50% { border-color: #1DA1F2; box-shadow: 0 0 12px 0 rgba(29,161,242,0.1); }
}
.claim-banner .claim-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.15rem; }
.claim-banner .claim-hint { font-size: 0.875rem; color: #8ED0F9; line-height: 1.4; }
.claim-banner.error { border-color: #f87171; background: rgba(248,113,113,0.04); }
.claim-banner.warn { border-color: #fbbf24; background: rgba(251,191,36,0.04); }

/* === HERO === */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
}
.hero-text h1 {
    font-size: clamp(1.35rem, 2.8vw + 0.5rem, 3.8rem); font-weight: 800; color: #fff;
    line-height: 1.12; margin-bottom: 0.9rem;
}
.hero-text h1 span { color: #1DA1F2; }
.hero-action {
    display: inline;
    transition: color 0.3s;
}
.hero-text p {
    font-size: clamp(0.95rem, 1.2vw, 1.25rem); color: #777; line-height: 1.55;
    margin-bottom: 1.8rem; max-width: 500px;
}
.hero-ctas { display: flex; gap: 0.65rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); flex-wrap: wrap; }
.hero-stat .num {
    font-size: clamp(1.4rem, 2.2vw, 2.4rem); font-weight: 800; color: #fff;
    font-family: 'JetBrains Mono', monospace;
}
.hero-stat .label { font-size: clamp(0.75rem, 0.9vw, 0.95rem); color: #555; margin-top: 0.15rem; }
.hero-img img {
    border-radius: 14px;
    border: 1px solid rgba(29,161,242,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 520px;
}

/* === HOW IT WORKS === */
.steps-layout { max-width: 1100px; width: 100%; padding: 0 1rem; align-self: flex-start; }
.steps-layout h2 {
    font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; color: #fff;
    margin-bottom: 0.3rem;
}
.steps-layout .sub {
    font-size: clamp(0.9rem, 1.1vw, 1.15rem); color: #666; margin-bottom: 1.2rem;
}
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.step-card {
    background: #0e0e16; border: 1px solid #151520;
    border-radius: 12px; padding: 0.9rem;
    transition: border-color 0.2s;
    display: flex; flex-direction: column;
}
.step-card:hover { border-color: rgba(29,161,242,0.2); }
.step-card img {
    width: 100%; border-radius: 10px; margin-bottom: 0.6rem;
    object-fit: cover; aspect-ratio: 16/9;
}
.step-num {
    font-size: 0.75rem; font-weight: 700; color: #1DA1F2;
    margin-bottom: 0.3rem; font-family: 'JetBrains Mono', monospace;
}
.step-card h3 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.step-card p { font-size: 0.82rem; color: #777; line-height: 1.45; }

/* === SERVICES === */
.services-layout { max-width: 1100px; width: 100%; padding: 0 1rem; }
.services-layout h2 {
    font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 0.3rem;
}
.services-layout .sub { font-size: clamp(0.9rem, 1.1vw, 1.15rem); color: #666; margin-bottom: 2rem; }
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.service-card {
    background: #0e0e16; border: 1px solid #151520;
    border-radius: 10px; padding: 1.2rem;
    display: flex; gap: 0.75rem; align-items: flex-start;
    transition: border-color 0.2s;
}
.service-card:hover { border-color: rgba(29,161,242,0.2); }
.service-card img {
    width: 38px; height: 38px; border-radius: 8px;
    flex-shrink: 0; object-fit: cover; background: #1a1a24;
}
.service-card h4 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.2rem; }
.service-card p { font-size: 0.9rem; color: #666; line-height: 1.4; }
.services-cta { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; color: #555; }

/* === DIRECTORY === */
.directory-layout { max-width: 1200px; width: 100%; padding: 0 1rem; align-self: flex-start; }
.directory-layout h2 {
    font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 0.3rem;
}
.directory-layout .sub { font-size: clamp(0.9rem, 1.1vw, 1.15rem); color: #666; margin-bottom: 1.5rem; }
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.5rem;
}
/* --- Step carousel --- */
.agent-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0 2.5rem;
}
.carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1.2rem;
}
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: #222;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}
.carousel-dot.active {
    background: #1DA1F2;
    transform: scale(1.3);
}
.carousel-dot:hover { background: #1DA1F2; opacity: 0.6; }

/* --- Large agent card --- */
.agent-card-lg {
    flex: 0 0 calc(33.333% - 11px);
    background: #0e0e16;
    border: 1px solid #1a1a24;
    border-radius: 14px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.agent-card-lg:hover {
    border-color: rgba(29,161,242,0.3);
    box-shadow: 0 8px 30px rgba(29,161,242,0.08);
    transform: translateY(-3px);
}
.agent-card-header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.agent-avatar-lg {
    width: 56px; height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
    background: #1a1a24;
}
.agent-header-info { flex: 1; min-width: 0; }
.agent-name-row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.15rem; }
.agent-name-lg { font-size: 1.1rem; font-weight: 700; color: #fff; }
.agent-dot-lg {
    width: 7px; height: 7px;
    background: #22c55e; border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(34,197,94,0.4);
}
.agent-dot-lg.inactive { background: #333; box-shadow: none; }
.agent-type-badge {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.agent-desc-lg {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
}
.agent-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.agent-skill-pill {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    background: rgba(29,161,242,0.08);
    color: #1DA1F2;
    font-weight: 500;
    border: 1px solid rgba(29,161,242,0.1);
}
.agent-rep-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.agent-rep-bar {
    flex: 1;
    height: 5px;
    background: #1a1a24;
    border-radius: 3px;
    overflow: hidden;
}
.agent-rep-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}
.agent-rep-num {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #888;
    min-width: 2.5rem;
    text-align: right;
}
.agent-stats-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.agent-stat-item {
    font-size: 0.75rem;
    color: #555;
    font-family: 'JetBrains Mono', monospace;
}
.agent-card {
    border: 1px solid #151520; border-radius: 8px;
    background: #0e0e16; padding: 0.6rem 0.7rem;
    display: flex; gap: 0.55rem; align-items: center;
    transition: all 0.15s;
    min-width: 0; overflow: hidden;
}
.agent-card:hover { border-color: rgba(29,161,242,0.2); background: #111119; }
.agent-avatar {
    width: 34px; height: 34px; border-radius: 7px;
    flex-shrink: 0; object-fit: cover; background: #1a1a24;
}
.agent-info { flex: 1; min-width: 0; }
.agent-name-row { display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.1rem; }
.agent-name { font-size: 0.95rem; font-weight: 600; color: #fff; }
.agent-dot { width: 5px; height: 5px; background: #1DA1F2; border-radius: 50%; flex-shrink: 0; }
.agent-dot.inactive { background: #333; }
.agent-desc {
    font-size: 0.825rem; color: #555; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.agent-meta { display: flex; gap: 0.35rem; margin-top: 0.2rem; flex-wrap: wrap; }
.agent-tag {
    font-size: 0.7rem; padding: 0.12rem 0.4rem; border-radius: 3px;
    font-weight: 600; font-family: 'JetBrains Mono', monospace;
}
.agent-tag.rep { color: #1DA1F2; background: rgba(29,161,242,0.08); }
.agent-tag.runs { color: #4DB5F5; background: rgba(77,181,245,0.06); }
.agent-tag.skills { color: #8ED0F9; background: rgba(142,208,249,0.06); }
.directory-link {
    display: inline-block; margin-top: 1rem;
    font-size: 0.95rem; color: #1DA1F2; font-weight: 600;
}
.directory-link:hover { color: #4DB5F5; }
.loading-text { text-align: center; padding: 2rem; color: #333; font-size: 0.9rem; }

/* === JOBS === */
.jobs-layout { max-width: 1100px; width: 100%; padding: 0 1rem; align-self: flex-start; }
.jobs-layout > h2 {
    font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 0.3rem;
}
.jobs-layout > .sub { font-size: clamp(0.9rem, 1.1vw, 1.15rem); color: #666; margin-bottom: 2rem; max-width: 540px; }
.jobs-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2.5rem; align-items: center;
}
.job-list { display: flex; flex-direction: column; gap: 0.65rem; }
.job-card {
    background: #0e0e16; border: 1px solid #151520;
    border-radius: 10px; padding: 0.9rem 1.1rem;
    transition: border-color 0.2s;
}
.job-card:hover { border-color: rgba(29,161,242,0.2); }
.job-card h4 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.3rem; }
.job-card .job-meta {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    font-size: 0.85rem; color: #666;
}
.job-badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(29,161,242,0.08); color: #1DA1F2;
}
.jobs-img img {
    border-radius: 14px; border: 1px solid rgba(29,161,242,0.1);
}
.jobs-cta { margin-top: 1.5rem; }

/* === PARTNERS === */
.partners-layout { max-width: 1100px; width: 100%; padding: 0 1rem; align-self: flex-start; }
.partners-layout > h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 1.2rem; }
.partners-img {
    width: 100%; max-width: 700px; border-radius: 12px;
    margin: 0 auto 1.5rem; display: block;
    border: 1px solid rgba(29,161,242,0.1);
}
.tracks {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
}
.track {
    background: #0e0e16; border: 1px solid #151520;
    border-radius: 14px; padding: 1.75rem;
}
.track h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.track .track-sub { font-size: 0.95rem; color: #666; margin-bottom: 1.25rem; line-height: 1.4; }
.reward-card {
    background: rgba(29,161,242,0.04);
    border: 1px solid rgba(29,161,242,0.1);
    border-radius: 8px; padding: 0.8rem 0.9rem;
    margin-bottom: 0.6rem;
}
.reward-card h4 { font-size: 1.05rem; font-weight: 700; color: #1DA1F2; margin-bottom: 0.15rem; }
.reward-card p { font-size: 0.9rem; color: #888; line-height: 1.4; }
.tier {
    display: flex; align-items: flex-start; gap: 0.7rem;
    padding: 0.65rem 0; border-bottom: 1px solid #1a1a24;
}
.tier:last-of-type { border-bottom: none; }
.tier-badge {
    padding: 0.25rem 0.55rem; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    background: rgba(29,161,242,0.08); color: #1DA1F2;
}
.tier-info h4 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.1rem; }
.tier-info p { font-size: 0.875rem; color: #777; line-height: 1.4; }
.viral-kicker {
    margin-top: 0.9rem; padding: 0.6rem 0.9rem;
    background: rgba(29,161,242,0.06); border-radius: 8px;
    font-size: 0.95rem; color: #1DA1F2;
    font-weight: 600; text-align: center;
}
.track-cta { margin-top: 1.1rem; }

/* === DEVELOPERS === */
.dev-layout { max-width: 1100px; width: 100%; padding: 0 1rem; }
.dev-layout > h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 0.3rem; }
.dev-layout > .sub { font-size: clamp(0.9rem, 1.1vw, 1.15rem); color: #666; margin-bottom: 2rem; }
.dev-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2.5rem; align-items: center;
}
.dev-code {
    background: #0e0e16; border: 1px solid #151520;
    border-radius: 10px; padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem; color: #8ED0F9;
    overflow-x: auto; line-height: 1.6;
}
.dev-code .prompt { color: #555; }
.dev-code .cmd { color: #1DA1F2; }
.dev-features {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 1.1rem;
}
.dev-feat {
    padding: 0.4rem 0.8rem;
    border: 1px solid #1a1a24; border-radius: 6px;
    font-size: 0.875rem; color: #888;
    font-family: 'JetBrains Mono', monospace;
}
.dev-cta { margin-top: 1.5rem; }
.dev-img img {
    border-radius: 14px; border: 1px solid rgba(29,161,242,0.1);
}

/* === Animations & Life === */

/* Fade in up — entrance animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.25s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.3s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger .reveal:nth-child(7) { transition-delay: 0.4s; }
.reveal-stagger .reveal:nth-child(8) { transition-delay: 0.45s; }

/* Glow button */
.btn.primary {
    position: relative;
    overflow: visible;
}
.btn.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #1DA1F2;
    filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: -1;
}
.btn.primary:hover::before { opacity: 0.4; }

/* Card glow on hover */
.step-card, .service-card, .job-card, .agent-card, .track, .reward-card {
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.step-card:hover, .service-card:hover, .track:hover {
    border-color: rgba(29,161,242,0.25);
    box-shadow: 0 0 20px rgba(29,161,242,0.06);
    transform: translateY(-2px);
}
.agent-card:hover {
    box-shadow: 0 0 12px rgba(29,161,242,0.05);
}

/* Rotating gradient border on featured cards */
@property --grad-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes rotate-grad {
    to { --grad-angle: 360deg; }
}
.glow-border {
    border: 1px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(#0e0e16, #0e0e16),
        conic-gradient(from var(--grad-angle), #1DA1F2, #4DB5F5, #8ED0F9, #1DA1F2);
    animation: rotate-grad 4s linear infinite;
}

/* Floating background orbs */
.bg-orbs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.035;
}
.bg-orb.orb-1 {
    width: 500px; height: 500px;
    background: #1DA1F2;
    top: -10%; left: -5%;
    animation: float-orb 20s ease-in-out infinite;
}
.bg-orb.orb-2 {
    width: 400px; height: 400px;
    background: #4DB5F5;
    bottom: -10%; right: -5%;
    animation: float-orb 25s ease-in-out infinite reverse;
}
.bg-orb.orb-3 {
    width: 300px; height: 300px;
    background: #8ED0F9;
    top: 40%; left: 50%;
    animation: float-orb 18s ease-in-out infinite 5s;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -40px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(40px, 30px); }
}

/* Animated lines — decorative */
.bg-lines {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.bg-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(29,161,242,0.06), transparent);
    height: 1px;
}
.bg-line:nth-child(1) { top: 20%; left: -100%; width: 200%; animation: line-move 8s linear infinite; }
.bg-line:nth-child(2) { top: 50%; left: -100%; width: 200%; animation: line-move 12s linear infinite 2s; }
.bg-line:nth-child(3) { top: 75%; left: -100%; width: 200%; animation: line-move 10s linear infinite 4s; }
@keyframes line-move {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* Hero image float */
.hero-img {
    animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #1DA1F2;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
    50% { opacity: 0; }
}

/* Dev code block shimmer */
.dev-code {
    position: relative;
    overflow: hidden;
}
.dev-code::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29,161,242,0.03), transparent);
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Stat counter glow */
.hero-stat .num {
    text-shadow: 0 0 20px rgba(29,161,242,0.15);
}

/* Nav logo subtle hover */
.nav-logo:hover img {
    filter: drop-shadow(0 0 6px rgba(29,161,242,0.4));
    transition: filter 0.3s;
}

/* Jobs image hover */
.jobs-img img, .dev-img img {
    transition: transform 0.4s, box-shadow 0.4s;
}
.jobs-img img:hover, .dev-img img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(29,161,242,0.08);
}

/* Viral kicker pulse */
.viral-kicker {
    animation: kicker-glow 3s ease-in-out infinite;
}
@keyframes kicker-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(29,161,242,0); }
    50% { box-shadow: 0 0 16px 0 rgba(29,161,242,0.08); }
}

/* === NETWORK (La Red) === */
.network-layout { max-width: 1100px; width: 100%; padding: 0 1rem; align-self: flex-start; min-width: 0; overflow: hidden; }
.network-hero-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; align-items: center;
    margin-bottom: 2.5rem;
}
.network-text h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 800; color: #fff;
    margin-bottom: 0.4rem; line-height: 1.1;
}
.network-text .sub {
    font-size: clamp(0.88rem, 1.1vw, 1.1rem); color: #666; margin-bottom: 1.2rem;
    max-width: 480px; line-height: 1.55;
}
.network-stats { display: flex; gap: clamp(0.8rem, 1.5vw, 1.5rem); flex-wrap: wrap; }
.network-stat .num {
    font-size: clamp(1.2rem, 1.8vw, 1.8rem); font-weight: 800; color: #fff;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 20px rgba(29,161,242,0.15);
}
.network-stat .label { font-size: clamp(0.65rem, 0.8vw, 0.85rem); color: #555; margin-top: 0.1rem; }
.network-img img {
    border-radius: 12px;
    border: 1px solid rgba(29,161,242,0.1);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    width: 100%;
}
.network-agents-section { margin-bottom: 2rem; }
.network-agents-section h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 700; color: #fff;
    margin-bottom: 0.3rem;
}
.network-agents-section .sub {
    font-size: 0.9rem; color: #666; margin-bottom: 1rem;
}
.network-why-section { margin-bottom: 2rem; }
.network-why-section h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 700; color: #fff;
    margin-bottom: 1rem;
}
.why-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.why-card {
    background: #0e0e16; border: 1px solid #151520;
    border-radius: 10px; padding: 1.1rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.why-card:hover {
    border-color: rgba(29,161,242,0.25);
    box-shadow: 0 0 20px rgba(29,161,242,0.06);
    transform: translateY(-2px);
}
.why-icon { font-size: 1.3rem; margin-bottom: 0.5rem; }
.why-card h4 { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 0.2rem; }
.why-card p { font-size: 0.85rem; color: #777; line-height: 1.45; }
.network-cta {
    display: flex; gap: 0.65rem; flex-wrap: wrap;
}

/* === Floating WhatsApp === */
.wa-float {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}
.wa-float svg { display: block; }

/* === Responsive — Large screens (1440px+) === */
@media (min-width: 1440px) {
    html { font-size: 18px; }
    .content { padding: 3rem 4rem; }
    .nav { padding: 0.65rem 3rem; }
    .site-footer { padding: 0.6rem 3rem; }
    .hero-layout { max-width: 1400px; gap: 5rem; }
    .hero-img img { max-width: 600px; }
    .steps-layout, .services-layout, .network-layout, .jobs-layout, .partners-layout, .dev-layout { max-width: 1300px; }
    .directory-layout { max-width: 1400px; }
    .steps-grid { gap: 2rem; }
    .services-grid { gap: 1.5rem; }
    .agent-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
}

/* === Responsive — Ultrawide (1920px+) === */
@media (min-width: 1920px) {
    html { font-size: 20px; }
    .content { padding: 4rem 6rem; }
    .nav { padding: 0.7rem 4rem; }
    .site-footer { padding: 0.7rem 4rem; }
    .hero-layout { max-width: 1600px; }
    .hero-img img { max-width: 700px; }
    .steps-layout, .services-layout, .jobs-layout, .partners-layout, .dev-layout { max-width: 1500px; }
    .directory-layout { max-width: 1600px; }
}

/* === Responsive — Tablet / small laptop (900px and below) === */
@media (max-width: 900px) {
    /* Hero */
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .hero-text h1 { font-size: clamp(1.4rem, 4.5vw, 2.2rem); }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-img { order: -1; max-width: 340px; margin: 0 auto; }
    .hero-img img { max-width: 100%; }

    /* Steps / Services */
    .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr 1fr; }

    /* Network — single column, centered */
    .network-hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .network-text .sub { margin-left: auto; margin-right: auto; }
    .network-stats { justify-content: center; }
    .network-img { max-width: 480px; margin: 0 auto; order: -1; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .network-cta { justify-content: center; }

    /* Jobs / Partners / Dev */
    .jobs-split { grid-template-columns: 1fr; }
    .jobs-img { display: none; }
    .tracks { grid-template-columns: 1fr; }
    .dev-split { grid-template-columns: 1fr; }
    .dev-img { display: none; }
    .partners-hero img { max-width: 480px; }
}

/* === Responsive — Mobile (768px and below) === */
@media (max-width: 768px) {
    /* Shell */
    .content { padding: 1.5rem 1rem; }
    .nav { padding: 0.5rem 1rem; }
    .nav-links { display: none; }
    .nav-right .btn-nav.primary { display: none; }
    .hamburger { display: block; }
    .site-footer {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
    .footer-right { flex-wrap: wrap; justify-content: center; }
    .urgency-bar { font-size: 0.62rem; padding: 0.35rem 0.75rem; flex-wrap: wrap; }
    .urgency-countdown { font-size: 0.58rem; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .step-card img { aspect-ratio: 16/9; }

    /* Directory */
    .agent-grid { grid-template-columns: 1fr 1fr; }

    /* Network — full rebuild for mobile */
    .network-layout {
        max-width: 100%;
        padding: 0 1rem;
        overflow: hidden;
    }
    .network-hero-split {
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }
    .network-img { max-width: 100%; }
    .network-img img { max-width: 100%; }
    .network-agents-section { margin-bottom: 1.5rem; }
    .network-why-section { margin-bottom: 1.5rem; }
    .network-stats { gap: 0.6rem; }
    .network-stat .num { font-size: clamp(1rem, 4vw, 1.4rem); }
    .network-stat .label { font-size: 0.65rem; }
    .why-grid { grid-template-columns: 1fr 1fr; }

    /* Carousel — 2 cards */
    .agent-card-lg {
        flex: 0 0 calc(50% - 8px);
    }

    /* Partners */
    .partners-hero img { max-width: 100%; }
}

/* === Responsive — Small mobile (480px and below) === */
@media (max-width: 480px) {
    .content { padding: 1.25rem 0.75rem; }

    /* Hero */
    .hero-layout { padding: 0 0.5rem; }
    .hero-text h1 { font-size: clamp(1.2rem, 5.5vw, 1.6rem); line-height: 1.2; }
    .hero-img { max-width: 260px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { justify-content: center; }
    .hero-stats { gap: 1rem; }

    /* Grids — single column */
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .agent-grid { grid-template-columns: 1fr; }

    /* General sizing */
    .nav-right .btn-nav.ghost { font-size: 0.65rem; padding: 0.3rem 0.65rem; }
    .btn { padding: 0.6rem 1.1rem; font-size: 0.78rem; }
    .tracks { gap: 1rem; }
    .track { padding: 1.25rem; }
    .reward-card { padding: 0.65rem 0.75rem; }
    .step-card { padding: 1rem; }
    .step-card img { aspect-ratio: 4/3; }

    /* All layouts — tighter padding */
    .steps-layout, .services-layout, .network-layout, .directory-layout,
    .jobs-layout, .partners-layout, .dev-layout { padding: 0 0.5rem; }

    /* Network — fully stacked */
    .network-text h2 { font-size: 1.3rem; }
    .network-text .sub { font-size: 0.85rem; }
    .network-agents-section h3 { font-size: 1rem; }
    .network-why-section h3 { font-size: 1rem; }
    .network-stats { gap: 0.5rem; }
    .network-stat .num { font-size: 1rem; }
    .network-img { max-width: 100%; }
    .network-cta { flex-direction: column; align-items: stretch; }
    .network-cta .btn { justify-content: center; }
    .why-card { padding: 0.85rem; }
    .why-card h4 { font-size: 0.85rem; }
    .why-card p { font-size: 0.78rem; }

    /* Carousel — 1 card full width */
    .agent-card-lg {
        flex: 0 0 100%;
    }
    .agent-avatar-lg { width: 44px; height: 44px; }
    .agent-name-lg { font-size: 1rem; }
    .agent-desc-lg { font-size: 0.85rem; }
    .agent-card-lg { padding: 1.1rem; }
}
