/* ========================================================================
   AxonRush · Recruitment site
   Self-contained dark-mode theme. No build step. No frameworks.
   ======================================================================== */

:root {
    /* Surfaces */
    --bg:           #0a0e14;
    --bg-2:         #0f141d;
    --surface:      #131a25;
    --surface-2:    #1a2230;
    --surface-3:    #232c3d;

    /* Lines */
    --border:       #232c3d;
    --border-2:     #2f3a50;
    --border-3:     #3d4a64;

    /* Text */
    --text:         #e6edf3;
    --text-2:       #b6c1cd;
    --text-muted:   #7d8694;
    --text-faint:   #5b6370;

    /* Brand accents */
    --accent:       #5ee3ff;
    --accent-2:     #4cc9f0;
    --accent-dim:   #2d8aa6;
    --accent-glow:  rgba(94, 227, 255, 0.18);
    --accent-soft:  rgba(94, 227, 255, 0.08);

    --warm:         #f5a623;
    --warm-soft:    rgba(245, 166, 35, 0.08);

    /* Type */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Hex clip-path (flat-top, content-friendly chamfer) */
    --hex-clip-card:   polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));

    /* Spacing */
    --gutter: 32px;

    /* Radius */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    /* Solid dark base + subtle cyan corner glows. The hex-bg.jpg artwork
       is layered above this via body::before at low opacity, rather than
       sitting in this `background` stack -- a darkening overlay there
       would only crush the artwork toward black rather than fade its
       bright cyan ridges proportionally. */
    background:
        radial-gradient(ellipse at 20% -10%, rgba(94, 227, 255, 0.10), transparent 55%),
        radial-gradient(ellipse at 80% 110%, rgba(94, 227, 255, 0.06), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

/* The hex artwork as a fixed full-viewport ambient layer. opacity (not
   a black wash) fades the cyan ridges proportionally so the artwork
   stays texture-like rather than feature-like. Sits below the wash and
   the dot grid. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url('assets/hex-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Subtle black wash above the artwork. Crushes the brightest cyan peaks
   so they don't punch through paragraph text, while leaving the body
   of the texture readable. Tunable knob -- raise alpha for less-visible
   artwork, lower for more. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(10, 14, 20, 0.15);
}

/* CSS-only ambient hex-cell dot pattern, sits ABOVE the artwork + wash
   to add a little crisp grain back. */
.hex-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(94, 227, 255, 0.05) 1.2px, transparent 1.5px),
        radial-gradient(circle at 50% 50%, rgba(94, 227, 255, 0.04) 1.2px, transparent 1.5px);
    background-size: 60px 104px, 60px 104px;
    background-position: 0 0, 30px 52px;
}

/* Anything above the overlay stack */
.hero, .section, .site-footer { position: relative; z-index: 3; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

p { margin: 0.6em 0 1em; color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; color: var(--text); }

code {
    font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    font-size: 0.92em;
    color: var(--accent);
    background: rgba(94, 227, 255, 0.08);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: var(--r-sm);
}

/* ----------------------------------------------------------------
   Container
---------------------------------------------------------------- */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow {
    max-width: 760px;
}

/* ----------------------------------------------------------------
   Typography helpers
---------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; }

.eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px 0;
}
.eyebrow--center { text-align: center; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 24px 0;
    color: var(--text);
}
.section-title--center { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }

.lead {
    font-size: 19px;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 760px;
}
.lead--small { font-size: 17px; }
.section--alt .lead { margin-left: auto; margin-right: auto; text-align: center; }

/* ----------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
    filter: saturate(1.05) contrast(1.02);
}
/* Gradient veil so text always reads. Tuned for the actual hero artwork:
   strong fade at the bottom (where the title sits) and a soft side
   vignette, but the upper-middle of the image is left mostly clean so
   the biome variety reads. */
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 14, 20, 0.15) 0%,
            rgba(10, 14, 20, 0.35) 35%,
            rgba(10, 14, 20, 0.85) 80%,
            var(--bg) 100%),
        linear-gradient(90deg,
            rgba(10, 14, 20, 0.6) 0%,
            transparent 25%,
            transparent 75%,
            rgba(10, 14, 20, 0.6) 100%);
}
/* Fallback if hero.jpg missing — atmospheric gradient + scanning lines */
.hero-banner--missing {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(94, 227, 255, 0.25), transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(245, 166, 35, 0.15), transparent 60%),
        linear-gradient(135deg, #0a0e14 0%, #1a2230 50%, #0a0e14 100%);
}
.hero-banner--missing img { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--border-3);
    border-radius: 100px;
    background: rgba(19, 26, 37, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 28px;
}
.kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: kicker-pulse 2.4s ease-in-out infinite;
}
@keyframes kicker-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.1);  }
}
.kicker-text {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 12vw, 140px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -3px;
    margin: 0 0 28px 0;
    color: var(--text);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #80f0ff 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
    max-width: 720px;
    margin: 0 0 12px 0;
}
.hero-tagline em { color: var(--accent); font-style: italic; }
.hero-subtagline {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 40px 0;
    letter-spacing: 0.5px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
    box-shadow: 0 8px 30px rgba(94, 227, 255, 0.25);
}
.cta-btn:hover {
    transform: translateY(-2px);
    background: #80f0ff;
    box-shadow: 0 12px 40px rgba(94, 227, 255, 0.4);
    color: var(--bg);
}
.cta-btn-arrow {
    font-size: 20px;
    transition: transform 200ms ease;
}
.cta-btn:hover .cta-btn-arrow { transform: translateX(4px); }

/* ----------------------------------------------------------------
   Section base
---------------------------------------------------------------- */
.section {
    padding: 96px 0;
}
.section--alt {
    background: rgba(15, 20, 29, 0.65);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section--callout {
    padding: 56px 0;
}

/* ----------------------------------------------------------------
   Notice / callout
---------------------------------------------------------------- */
.notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-left: 4px solid var(--warm);
    border-radius: var(--r-md);
    padding: 28px 32px;
}
.notice-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--warm-soft);
    color: var(--warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.notice-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}
.notice-body p { margin: 0; color: var(--text-2); font-size: 16px; }

/* ----------------------------------------------------------------
   Pitch grid
---------------------------------------------------------------- */
.pitch-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}
.pitch-figure {
    margin: 0;
    position: sticky;
    top: 40px;
}
.pitch-figure figcaption {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

/* Map frame: clipped hex corners, image inside */
.map-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    overflow: hidden;
    clip-path: var(--hex-clip-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(94, 227, 255, 0.08) inset;
}
.map-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.map-frame .map-placeholder { display: none; }
.map-frame--missing img { display: none; }
.map-frame--missing .map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(60deg,
            transparent 0,
            transparent 30px,
            rgba(94, 227, 255, 0.04) 30px,
            rgba(94, 227, 255, 0.04) 31px),
        radial-gradient(circle at center, var(--surface-3) 0%, var(--surface) 80%);
    color: var(--text-muted);
}
.placeholder-hex {
    width: 60px;
    height: 60px;
    color: var(--accent-dim);
    opacity: 0.6;
}
.map-placeholder span {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-2);
    letter-spacing: 1px;
}
.map-placeholder code {
    font-size: 11px;
    background: var(--surface);
    color: var(--text-muted);
    border-color: var(--border);
}

/* ----------------------------------------------------------------
   Team cards (where we are)
---------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}
.team-card::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, var(--accent-soft) 50%);
    pointer-events: none;
}
.team-card-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.team-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text);
}
.team-role {
    font-size: 13px;
    color: var(--accent);
    margin: 0 0 14px 0;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
}
.team-status {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Stack info */
.stack-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    margin: 32px 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: rgba(15, 20, 29, 0.5);
    overflow: hidden;
}
.stack-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 24px;
    border-right: 1px solid var(--border);
}
.stack-row:last-child { border-right: none; }
.stack-row dt {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0;
}
.stack-row dd {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text);
    margin: 0;
    font-weight: 500;
}

/* ----------------------------------------------------------------
   Roles section + cards
---------------------------------------------------------------- */
.section--roles {
    padding-top: 110px;
    padding-bottom: 110px;
}
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}
.role-card {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    padding: 36px 32px 32px;
    position: relative;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    clip-path: var(--hex-clip-card);
    display: flex;
    flex-direction: column;
}
.role-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(94, 227, 255, 0.04), transparent 50%);
    pointer-events: none;
}
.role-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-dim);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px var(--accent-soft);
}
.role-hex {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
}
.role-hex svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0.85;
}
.role-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}
.role-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 16px 0;
    color: var(--text);
}
.role-summary {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 20px 0;
}
.role-aside {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 20px 0;
    padding: 14px 16px;
    border-left: 2px solid var(--border-3);
    background: rgba(15, 20, 29, 0.5);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-style: italic;
}
.role-subhead {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 18px 0 10px 0;
}
.role-list {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 0;
}
.role-list li {
    color: var(--text-2);
    font-size: 14px;
    padding: 6px 0 6px 22px;
    position: relative;
    line-height: 1.5;
}
.role-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0.7;
}
.role-prose {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0;
}

/* ----------------------------------------------------------------
   CTA section
---------------------------------------------------------------- */
.section--cta {
    padding: 120px 0;
    background:
        radial-gradient(ellipse at center, rgba(94, 227, 255, 0.08), transparent 60%),
        var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.cta-container {
    text-align: center;
    position: relative;
}
.cta-hex-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 460px;
    height: 460px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.08;
    z-index: 0;
}
.cta-hex-deco svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
}
.cta-container > *:not(.cta-hex-deco) { position: relative; z-index: 1; }
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    margin: 0 0 24px 0;
    color: var(--text);
}
.cta-text {
    font-size: 22px;
    color: var(--text-2);
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
}
.cta-name {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-soft);
    padding: 4px 14px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(94, 227, 255, 0.3);
}

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.site-footer p {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 960px) {
    .pitch-grid { grid-template-columns: 1fr; gap: 48px; }
    .pitch-figure { position: static; max-width: 480px; margin: 0 auto; }
    .roles-grid { grid-template-columns: 1fr; gap: 20px; }
    .team-grid { grid-template-columns: 1fr; }
    .stack-row { border-right: none; border-bottom: 1px solid var(--border); }
    .stack-row:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
    :root { --gutter: 20px; }
    .section { padding: 64px 0; }
    .section--roles { padding: 80px 0; }
    .section--cta { padding: 80px 0; }
    .hero { min-height: 80vh; }
    .hero-title { letter-spacing: -1.5px; }
    .notice { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
    .role-card { padding: 28px 24px 24px; }
    .role-card { clip-path: none; border-radius: var(--r-md); }
    .map-frame { clip-path: none; border-radius: var(--r-md); }
}

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