/* BLOCKXS Web3 Jobs — Colorful single-page */
:root {
    --bg-deep: #0d0a14;
    --bg-card: rgba(30, 25, 50, 0.6);
    --bg-card-hover: rgba(50, 40, 75, 0.7);
    --border-glow: rgba(168, 85, 247, 0.5);
    --accent-purple: #a855f7;
    --accent-magenta: #d946ef;
    --accent-cyan: #22d3ee;
    --accent-orange: #f97316;
    --accent-green: #34d399;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #581c87 100%);
    --gradient-btn: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.25);
    --font: 'Outfit', -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background effects */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-magenta);
    bottom: 20%;
    left: -80px;
}

.glow-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-cyan);
    bottom: -50px;
    right: 20%;
    opacity: 0.25;
}

.particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(168, 85, 247, 0.4), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(217, 70, 239, 0.3), transparent);
    background-size: 200px 200px;
    animation: particles 20s linear infinite;
}

@keyframes particles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 1.25rem 0;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.95;
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.5));
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.35));
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-x {
    display: inline-block;
    color: var(--accent-cyan);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0.02em;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--border-glow);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--accent-purple);
}

.btn-search {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    color: white;
    padding: 0.7rem 1.4rem;
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.4);
}

.btn-search:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.btn-wide {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

/* Hero */
.hero {
    position: relative;
    z-index: 5;
    padding: 4rem 0 6rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-decoration {
    position: absolute;
    top: 1rem;
    right: 4%;
}

.hero-web3-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(34, 211, 238, 0.15) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 0 50px rgba(168, 85, 247, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hero-float 5s ease-in-out infinite;
}

.hero-web3-wrap:hover {
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 0 60px rgba(168, 85, 247, 0.4);
}

.hero-web3-svg {
    width: 100px;
    height: 100px;
    animation: hero-pulse 3s ease-in-out infinite;
}

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

@keyframes hero-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Search section */
.search-section {
    position: relative;
    z-index: 5;
    padding: 0 0 2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(15, 12, 28, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.6);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 0 28px rgba(168, 85, 247, 0.35);
    backdrop-filter: blur(12px);
}

.search-icon {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    color: var(--accent-cyan);
}

.search-icon svg {
    width: 20px;
    height: 20px;
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
}

.search-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.location-dropdown {
    position: relative;
}

.location-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 7rem;
}

.location-chevron {
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.2s;
}

.location-dropdown.is-open .location-chevron {
    transform: rotate(180deg);
}

.location-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: transparent;
    cursor: default;
}

.location-backdrop[hidden] {
    display: none !important;
}

body.location-dropdown-open .search-section {
    position: relative;
    z-index: 10000;
}

.location-list {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    min-width: 100%;
    background: #1a1628;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 0.35rem 0;
    z-index: 9999;
    opacity: 1;
    pointer-events: auto;
    isolation: isolate;
}

.location-option {
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
}

.location-option:hover,
.location-option:focus {
    background: rgba(124, 58, 237, 0.4);
    outline: none;
}

.location-icon {
    display: flex;
    align-items: center;
    color: #f87171;
}

.location-icon svg {
    width: 16px;
    height: 16px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.tag {
    padding: 0.5rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    background: rgba(30, 25, 50, 0.6);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.1);
}

.tag:hover {
    border-color: rgba(168, 85, 247, 0.7);
    color: var(--text-primary);
}

.tag-active {
    background: rgba(124, 58, 237, 0.4);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

/* Category tabs */
.categories-section {
    position: relative;
    z-index: 5;
    padding: 0 0 3rem;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.category-tab {
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    background: rgba(30, 25, 50, 0.6);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.1);
}

.category-tab:hover {
    color: var(--text-primary);
    border-color: rgba(168, 85, 247, 0.7);
}

.category-tab.active {
    background: rgba(124, 58, 237, 0.4);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

/* Career paths */
.paths-section {
    position: relative;
    z-index: 5;
    padding: 4rem 0;
}

.paths-section .section-title {
    margin-bottom: 1rem;
}

.paths-section .btn-secondary {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.5rem;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.path-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
    position: relative;
}

.path-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), var(--shadow-glow);
}

.path-engineering { border-left: 4px solid var(--accent-cyan); }
.path-product { border-left: 4px solid var(--accent-green); }
.path-design { border-left: 4px solid var(--accent-magenta); }

.path-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    color: var(--accent-cyan);
}

.path-icon svg {
    width: 100%;
    height: 100%;
}

.path-card h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.path-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.path-card li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.path-role-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.path-role-icon svg {
    width: 18px;
    height: 18px;
}

/* Jobs section */
.jobs-section {
    position: relative;
    z-index: 5;
    padding: 2rem 0 4rem;
}

.jobs-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.jobs-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 2rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--border-glow);
    color: var(--text-primary);
}

.filter-icon {
    display: inline-flex;
    align-items: center;
}

.filter-icon svg {
    width: 20px;
    height: 20px;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.25s;
    position: relative;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.job-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.job-card:hover::before {
    left: 100%;
}

.job-card-banner {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}

.job-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-card-body {
    padding: 1.25rem 1.5rem;
}

.job-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.job-company {
    font-weight: 600;
    color: var(--text-primary);
}

.job-type {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.job-title {
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-tags span {
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

.jobs-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Discover section */
.discover-section {
    position: relative;
    z-index: 5;
    padding: 3rem 0 4rem;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.discover-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s;
}

.discover-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.discover-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--accent-cyan);
}

.discover-icon svg {
    width: 32px;
    height: 32px;
}

/* About section */
.about-section {
    position: relative;
    z-index: 5;
    padding: 3rem 0 4rem;
}

.about-lead {
    max-width: 640px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-block {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.about-block h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: var(--accent-cyan);
}

.about-block p,
.about-block ul {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-block a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.about-block a:hover {
    text-decoration: underline;
}

.about-block ul {
    list-style: none;
    padding-left: 0;
}

.about-block ul li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.about-careful {
    border-left: 3px solid var(--accent-purple);
}

/* Disclaimer */
.disclaimer-section {
    position: relative;
    z-index: 5;
    padding: 2rem 0;
}

.disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Footer */
.footer {
    position: relative;
    z-index: 5;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-copy a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-copy a:hover {
    color: var(--accent-cyan);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Inner pages (Privacy, Terms, Contact, Disclosure) */
.main-inner {
    position: relative;
    z-index: 5;
    padding: 3rem 0 4rem;
    min-height: 50vh;
}

.page-content {
    max-width: 720px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.page-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.15rem;
    margin: 2rem 0 0.5rem;
    color: var(--text-primary);
}

.page-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.page-content a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero-decoration {
        display: none;
    }

    .search-bar {
        flex-wrap: wrap;
    }

    .search-location {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    .jobs-layout {
        grid-template-columns: 1fr;
    }

    .jobs-filters {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }
}
