/* =========================================
   NEONHEX Website v2
   Static studio site with neon hex-grid scenes
   ========================================= */

:root {
    --bg: #020206;
    --bg-soft: #070714;
    --bg-card: rgba(13, 14, 33, 0.72);
    --purple: #5E5FC7;
    --magenta: #DD3DF8;
    --cyan: #39EFFE;
    --white: #f8fbff;
    --white-dim: rgba(248, 251, 255, 0.72);
    --white-muted: rgba(248, 251, 255, 0.52);
    --white-faint: rgba(248, 251, 255, 0.14);
    --border: rgba(248, 251, 255, 0.12);
    --shadow-purple: rgba(94, 95, 199, 0.45);
    --shadow-magenta: rgba(221, 61, 248, 0.36);
    --shadow-cyan: rgba(57, 239, 254, 0.34);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --header-height: 72px;
    --layout-width: 1080px;
}

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

html {
    background: var(--bg);
    color: var(--white);
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

/* =========================================
   Shared Header
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem max(clamp(1rem, 4vw, 4rem), calc((100vw - var(--layout-width)) / 2));
    background: linear-gradient(to bottom, rgba(2, 2, 6, 0.88), rgba(2, 2, 6, 0));
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(57, 239, 254, 0.42), rgba(221, 61, 248, 0.32), rgba(57, 239, 254, 0.42));
    opacity: 0.7;
}

.site-header.scrolled,
.site-header.nav-open {
    background: rgba(2, 2, 6, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
}

.brand-mark {
    position: relative;
    width: 40px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    color: var(--cyan);
    filter: drop-shadow(0 0 14px var(--shadow-cyan));
}

.brand-mark svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.brand-mark polygon {
    stroke: currentColor;
    stroke-width: 2.2;
}

.brand-mark span {
    position: relative;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--white);
}

.brand-word {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.site-nav a {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--white);
    text-shadow: 0 0 16px var(--shadow-cyan);
}

.discord-nav {
    color: var(--cyan) !important;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* =========================================
   Hex Scenes
   ========================================= */

.hex-scene {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--bg);
}

.hex-scene canvas {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
}

.page-wrap.hex-scene {
    overflow: visible;
}

.page-wrap.hex-scene canvas {
    position: fixed;
    z-index: -4;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
}

.hero-vignette,
.page-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.hero-vignette {
    background:
        radial-gradient(circle at 50% 42%, rgba(221, 61, 248, 0.12), transparent 35%),
        radial-gradient(circle at 50% 78%, rgba(57, 239, 254, 0.12), transparent 34%),
        linear-gradient(to bottom, rgba(2, 2, 6, 0.34), rgba(2, 2, 6, 0.08) 44%, rgba(2, 2, 6, 0.86));
}

.page-vignette {
    position: fixed;
    background:
        radial-gradient(circle at 50% 15%, rgba(0, 0, 0, 0.72), transparent 34%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(2, 2, 6, 0.96));
}

/* =========================================
   Homepage
   ========================================= */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-height) + 1rem) clamp(1.25rem, 5vw, 5rem) 3rem;
}

.hero-content {
    width: min(720px, 100%);
    display: grid;
    justify-items: center;
    gap: clamp(1.1rem, 2.8vw, 1.85rem);
    text-align: center;
}

.hero-logo {
    position: relative;
    width: clamp(86px, 15vw, 130px);
    height: clamp(100px, 17vw, 150px);
    display: grid;
    place-items: center;
    margin-bottom: 0.2rem;
    color: var(--cyan);
    filter: drop-shadow(0 0 24px var(--shadow-cyan)) drop-shadow(0 0 34px var(--shadow-magenta));
}

.hero-logo svg {
    position: absolute;
    inset: 0;
}

.hero-logo polygon {
    stroke: currentColor;
    stroke-width: 1.8;
}

.hero-logo span {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.05em;
    color: var(--white);
}

.eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cyan);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(5.4rem, 16vw, 11.5rem);
    line-height: 0.82;
    letter-spacing: 0.045em;
    text-shadow:
        0 0 26px rgba(57, 239, 254, 0.18),
        0 0 52px rgba(221, 61, 248, 0.14);
}

.hero-subtitle {
    width: min(720px, 100%);
    color: var(--white-dim);
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    line-height: 1.55;
    letter-spacing: 0.03em;
}

.community-card {
    display: grid;
    justify-items: center;
    gap: clamp(0.9rem, 2vw, 1.25rem);
    margin-top: clamp(0.6rem, 2.5vw, 1.25rem);
}

.community-card p {
    color: var(--white);
    font-size: clamp(0.86rem, 1.8vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(57, 239, 254, 0.22);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.85rem 1.35rem;
    border: 1px solid rgba(57, 239, 254, 0.48);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(57, 239, 254, 0.95), rgba(221, 61, 248, 0.92));
    color: var(--bg);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 0 24px var(--shadow-cyan), 0 0 34px var(--shadow-magenta);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px var(--shadow-cyan), 0 0 48px var(--shadow-magenta);
}

.discord-image-link {
    position: relative;
    display: inline-flex;
    width: clamp(58px, 10vw, 78px);
    height: clamp(58px, 10vw, 78px);
    filter: drop-shadow(0 0 18px rgba(57, 239, 254, 0.35));
    transition: transform 0.22s ease, filter 0.22s ease;
}

.discord-icon {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.discord-image-link:hover {
    transform: scale(1.14);
    filter:
        drop-shadow(0 0 20px rgba(57, 239, 254, 0.55))
        drop-shadow(0 0 34px rgba(221, 61, 248, 0.32));
}

.discord-image-link:active {
    transform: scale(1.2);
}

.discord-image-link:hover .discord-icon {
    filter: brightness(1.08) saturate(1.08);
}

.about-section {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 20% 20%, rgba(94, 95, 199, 0.14), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(221, 61, 248, 0.11), transparent 32%),
        var(--bg);
}

.section-shell {
    width: min(920px, 100%);
    margin: 0 auto;
}

.section-shell h2 {
    margin-top: 0.7rem;
    font-family: var(--font-display);
    font-size: clamp(2.55rem, 6.4vw, 5.2rem);
    line-height: 0.93;
    letter-spacing: 0.035em;
}

.about-copy {
    width: 100%;
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
    color: var(--white-dim);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}

/* =========================================
   Subpages
   ========================================= */

.page-wrap {
    min-height: auto;
    padding: calc(var(--header-height) + 1.5rem) clamp(1.2rem, 5vw, 5rem) clamp(1.25rem, 3vw, 2rem);
}

.page-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    min-height: auto;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border: 1px solid rgba(94, 95, 199, 0.36);
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(57, 239, 254, 0.08), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(221, 61, 248, 0.1), transparent 38%),
        rgba(2, 2, 6, 0.84);
    box-shadow:
        inset 0 0 0 1px rgba(248, 251, 255, 0.035),
        0 20px 90px rgba(0, 0, 0, 0.58),
        0 0 54px rgba(94, 95, 199, 0.12);
    backdrop-filter: blur(18px);
}

.page-content::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, rgba(57, 239, 254, 0.82), rgba(221, 61, 248, 0.84));
    opacity: 0.72;
}

.page-content.legal-page {
    background:
        radial-gradient(circle at 0% 0%, rgba(57, 239, 254, 0.045), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(221, 61, 248, 0.055), transparent 36%),
        rgba(2, 2, 6, 0.92);
    backdrop-filter: none;
}

.editorial-page {
    width: min(880px, 100%);
    display: grid;
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.page-lede {
    max-width: 740px;
    color: var(--white-dim);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem) !important;
}

.careers-page {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.careers-page h1 {
    margin-bottom: clamp(0.85rem, 2vw, 1.15rem);
}

.editorial-panel {
    display: grid;
    gap: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(94, 95, 199, 0.28);
}

.editorial-panel:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.editorial-panel h2 {
    margin: 0;
}

.plain-list {
    display: grid;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.plain-list li {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 1rem 0;
    border-top: 1px solid rgba(248, 251, 255, 0.09);
}

.plain-list strong {
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.plain-list span {
    color: var(--white-dim);
    line-height: 1.65;
}

.contact-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(57, 239, 254, 0.28);
}

.contact-strip p {
    margin: 0;
}

.contact-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(57, 239, 254, 0.4);
    border-radius: 999px;
    background: rgba(57, 239, 254, 0.08);
    text-decoration: none;
    box-shadow: 0 0 20px rgba(57, 239, 254, 0.08);
}

.contact-strip a:hover,
.contact-strip a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(57, 239, 254, 0.72);
    background: rgba(57, 239, 254, 0.14);
}

.page-content h1 {
    margin: 0.6rem 0 1.4rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 0.9;
    letter-spacing: 0.05em;
}

.page-content h2 {
    margin: 2.4rem 0 0.75rem;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    line-height: 1.2;
}

.page-content h3 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.05rem;
    color: var(--cyan);
}

.page-content p,
.page-content li {
    color: var(--white-dim);
    font-size: 1rem;
    line-height: 1.75;
}

.page-content ul,
.page-content ol {
    display: grid;
    gap: 0.6rem;
    margin: 0.9rem 0 0;
    padding-left: 1.25rem;
}

.page-content a {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

.page-content a:hover,
.page-content a:focus-visible,
.about-copy a:hover,
.about-copy a:focus-visible {
    color: var(--white);
    text-shadow: 0 0 16px rgba(57, 239, 254, 0.5);
}

.about-copy a {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.career-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 1.4rem);
}

.career-card {
    position: relative;
    display: grid;
    gap: 0.75rem;
    min-height: 240px;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    overflow: hidden;
    border: 1px solid rgba(57, 239, 254, 0.34);
    border-radius: 24px;
    background:
        radial-gradient(circle at 16% 0%, rgba(57, 239, 254, 0.18), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(221, 61, 248, 0.13), transparent 38%),
        rgba(255, 255, 255, 0.035);
    color: var(--white);
    text-decoration: none !important;
    box-shadow:
        inset 0 0 0 1px rgba(248, 251, 255, 0.035),
        0 18px 50px rgba(0, 0, 0, 0.24),
        0 0 28px rgba(57, 239, 254, 0.06);
}

.career-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    opacity: 0.76;
}

.career-card:hover,
.career-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(221, 61, 248, 0.56);
    box-shadow:
        inset 0 0 0 1px rgba(248, 251, 255, 0.055),
        0 22px 64px rgba(221, 61, 248, 0.14),
        0 16px 44px rgba(0, 0, 0, 0.42);
}

.career-card span {
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.career-card strong {
    color: var(--white);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.1;
}

.career-card p {
    margin: 0;
    color: var(--white-dim);
    font-size: 0.98rem;
}

.careers-cta {
    display: grid;
    gap: 1rem;
    padding: clamp(1.4rem, 3vw, 1.8rem);
    border: 1px solid rgba(221, 61, 248, 0.42);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(57, 239, 254, 0.12), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(221, 61, 248, 0.22), transparent 42%),
        linear-gradient(135deg, rgba(57, 239, 254, 0.035), rgba(221, 61, 248, 0.075)),
        rgba(255, 255, 255, 0.035);
    box-shadow:
        inset 0 0 0 1px rgba(248, 251, 255, 0.04),
        0 18px 58px rgba(221, 61, 248, 0.11);
}

.careers-cta h2 {
    margin: 0 0 0.5rem;
}

.careers-cta p {
    margin: 0;
}

.careers-cta .contact-strip {
    justify-content: center;
    padding-top: 1.2rem;
}

.page-note {
    margin: 1.8rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(221, 61, 248, 0.34);
    border-radius: 18px;
    background: rgba(221, 61, 248, 0.08);
    color: var(--white-dim);
}

.role-card,
.faq-card {
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.role-card h3,
.faq-card h3 {
    margin-top: 0;
}

.legal-meta {
    color: var(--white-muted);
    font-size: 0.9rem;
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 2rem;
    width: min(var(--layout-width), calc(100% - 2.5rem));
    margin: 0 auto clamp(1.25rem, 3vw, 2rem);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 5rem);
    border-top: 1px solid var(--border);
    border-radius: 28px 28px 0 0;
    background: rgba(1, 1, 4, 0.96);
    box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.42);
}

.footer-brand,
.footer-links,
.footer-contact {
    display: grid;
    justify-items: center;
    text-align: center;
}

.footer-brand p,
.footer-contact p,
.footer-contact span {
    margin-top: 0.75rem;
    color: var(--white-muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    gap: 0.65rem;
}

.footer-links a,
.footer-contact a {
    color: var(--white-dim);
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-color: rgba(57, 239, 254, 0.28);
    text-underline-offset: 0.22em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--cyan);
    text-decoration-color: currentColor;
}

.footer-contact {
    gap: 0.4rem;
    align-content: start;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        min-height: 64px;
        padding: 0.8rem 1rem;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% - 0.2rem);
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0.9rem;
        padding: 1rem;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(2, 2, 6, 0.94);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46);
        backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-header.nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .community-card {
        width: min(360px, 100%);
        flex-direction: column;
        border-radius: 28px;
        padding: 1rem;
    }

    .community-card p {
        padding-left: 0;
        text-align: center;
    }

    .primary-button {
        width: 100%;
    }

    .site-footer {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 2rem));
    }
}

@media (max-width: 560px) {
    :root {
        --header-height: 64px;
    }

    .brand-word {
        font-size: 1.3rem;
    }

    .brand-mark {
        width: 34px;
        height: 40px;
    }

    .hero-title {
        font-size: clamp(4rem, 20vw, 6.2rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .section-shell h2 {
        font-size: clamp(3rem, 14vw, 4.6rem);
    }

    .page-content {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .page-content h1 {
        font-size: clamp(3.4rem, 18vw, 5.3rem);
    }

    .plain-list li,
    .contact-strip {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .career-cards {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
