/* ==========================================================================
   WASHFIX marketing site stylesheet
   Design concept: a live dispatch console. Ink black steel panels, two
   accents with real meaning, amber for broadcasting, green for accepted.
   Type: Big Shoulders Display (headlines), IBM Plex Sans (body),
   IBM Plex Mono (console readouts, labels, data).
   ========================================================================== */

/* ---- Tokens ---- */
:root {
    --ink: #0a0c10;
    --ink-alt: #0d1015;
    --steel: #151920;
    --steel-2: #1b212b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --amber: #ffb020;
    --amber-dim: #8a5c14;
    --green: #3ddc84;
    --green-dim: #1f6b41;
    --fog: #8b93a1;
    --paper: #f3f4f7;
    --paper-dim: #c9cdd6;

    --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
    --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "Courier New", monospace;

    --container: 1180px;
    --radius: 14px;
    --radius-sm: 8px;
}

/* ---- Reset ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.has-fine-pointer {
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--amber);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.2);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.98;
}

h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    margin-bottom: 14px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.section-head p {
    color: var(--fog);
    font-size: 1.05rem;
    margin-top: 12px;
}

section {
    position: relative;
    padding: 110px 0;
}

@media (max-width: 640px) {
    section {
        padding: 72px 0;
    }
}

/* ---- Custom cursor (desktop only) ---- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

body.has-fine-pointer .cursor-dot,
body.has-fine-pointer .cursor-ring {
    display: block;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--amber);
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 176, 32, 0.5);
    transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cursor-ring.is-active {
    width: 52px;
    height: 52px;
    background: rgba(255, 176, 32, 0.08);
    border-color: var(--amber);
}

/* ---- Nav ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 22px 0;
    transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: rgba(10, 12, 16, 0.86);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    border-bottom-color: var(--line);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo span {
    color: var(--amber);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: var(--paper);
}

.nav-cta {
    display: inline-flex;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--paper);
}

.nav-mobile {
    display: none;
}

@media (max-width: 860px) {
    .nav-links,
    .nav .nav-cta {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-mobile {
        display: none;
        position: fixed;
        inset: 0;
        top: 66px;
        background: var(--ink);
        padding: 40px 24px;
        z-index: 490;
        flex-direction: column;
        gap: 26px;
        font-family: var(--font-mono);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 15px;
    }
    .nav-mobile.is-open {
        display: flex;
    }
    .nav-mobile .btn {
        margin-top: 10px;
        align-self: flex-start;
    }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 15px 26px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--amber);
    color: #241703;
    font-weight: 600;
}

.btn-primary:hover {
    background: #ffc352;
}

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--paper);
}

.btn-ghost:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

/* ---- Hero ---- */
.hero {
    padding: 168px 0 120px;
    position: relative;
    overflow: hidden;
}

#network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 4.6rem);
    margin: 18px 0 22px;
}

.hero h1 .accent {
    color: var(--amber);
}

.hero-sub {
    color: var(--paper-dim);
    font-size: 1.15rem;
    max-width: 480px;
    line-height: 1.6;
}

.hero-note {
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fog);
    letter-spacing: 0.04em;
}

/* ---- Dispatch console (signature element) ---- */
.console-wrap {
    perspective: 1400px;
}

.console {
    background: linear-gradient(180deg, var(--steel-2), var(--steel));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 176, 32, 0.04) inset;
    overflow: hidden;
    transform: rotateX(6deg) rotateY(-8deg);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fog);
}

.console-bar .dots {
    display: flex;
    gap: 6px;
}

.console-bar .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}

.console-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--amber);
}

.console-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.console-body {
    padding: 24px 20px 28px;
    min-height: 230px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.console-line {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(4px);
}

.console-line.is-shown {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.console-line .marker {
    color: var(--fog);
    flex-shrink: 0;
}

.console-line.type-open .marker { color: var(--amber); }
.console-line.type-accept .marker,
.console-line.type-accept .txt { color: var(--green); }
.console-line .txt { color: var(--paper-dim); }
.console-line.type-open .txt { color: var(--paper); }

.console-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--amber);
    animation: blink 1s steps(1) infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ---- Stat band ---- */
.stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ink-alt);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--amber);
    line-height: 1;
}

.stat-label {
    margin-top: 10px;
    color: var(--fog);
    font-size: 0.92rem;
    max-width: 220px;
}

.stats-source {
    margin-top: 38px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fog);
    letter-spacing: 0.04em;
}

/* ---- Marquee ---- */
.marquee {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fog);
    padding: 0 26px;
    border-right: 1px solid var(--line);
}

.marquee-track span.hot {
    color: var(--amber);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- How it works (pinned 3D sequence) ---- */
.how {
    overflow: hidden;
}

.how-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.how-copy {
    position: sticky;
    top: 140px;
}

.how-steps {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.how-steps li {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--fog);
    padding: 14px 0 14px 22px;
    border-left: 2px solid var(--line);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.how-steps li .num {
    color: inherit;
    margin-right: 10px;
}

.how-steps li.active {
    color: var(--paper);
    border-left-color: var(--amber);
}

.how-steps li.active .num {
    color: var(--amber);
}

.how-stage {
    position: relative;
    height: 440px;
    perspective: 1600px;
}

.how-card {
    background: linear-gradient(165deg, var(--steel-2), var(--steel));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.how-card .tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
}

.how-card h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.how-card p {
    color: var(--fog);
    font-size: 1rem;
    max-width: 420px;
}

/* Desktop: cards stack absolutely and get rotated through by GSAP.
   Non-first cards default to hidden so a failed GSAP/CDN load still
   looks intentional (one clean card) instead of overlapping text. */
@media (min-width: 900px) {
    .how-card {
        position: absolute;
        inset: 0;
        backface-visibility: hidden;
    }
    .how-card:not(:first-child) {
        opacity: 0;
    }
}

/* Mobile / tablet: cards stack normally in flow, no pin, no rotation */
@media (max-width: 899px) {
    .how-stage {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 18px;
        perspective: none;
    }
    .how-card {
        min-height: 200px;
    }
    .how-copy {
        position: static;
    }
}

/* ---- Split: operators / contractors ---- */
.split {
    background: var(--ink-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.split-panel {
    background: var(--steel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 34px;
}

.split-panel .eyebrow {
    margin-bottom: 16px;
}

.split-panel.for-techs .eyebrow {
    color: var(--green);
}

.split-panel.for-techs .eyebrow::before {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2);
}

.split-panel h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 22px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tilt-card {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out, border-color 0.2s ease, background 0.2s ease;
    margin-bottom: 10px;
}

.tilt-card:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.035);
}

.tilt-card .k {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--amber);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.for-techs .tilt-card .k {
    color: var(--green);
}

.tilt-card p {
    color: var(--paper-dim);
    font-size: 0.98rem;
}

/* ---- Network section ---- */
.network {
    text-align: center;
}

.network .section-head {
    max-width: 640px;
    margin: 0 auto 20px;
}

.network-map {
    height: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink-alt);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

/* ---- CTA / waitlist ---- */
.cta {
    text-align: center;
}

.cta .eyebrow {
    justify-content: center;
}

.cta h2 {
    margin-top: 16px;
}

.cta-sub {
    color: var(--fog);
    max-width: 520px;
    margin: 0 auto 40px;
}

.waitlist-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.waitlist-form input[type="email"] {
    flex: 1 1 260px;
    background: var(--steel);
    border: 1px solid var(--line-strong);
    color: var(--paper);
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
}

.waitlist-form input::placeholder {
    color: var(--fog);
}

.role-toggle {
    display: inline-flex;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.role-toggle input {
    display: none;
}

.role-toggle label {
    padding: 15px 18px;
    color: var(--fog);
    transition: background 0.2s ease, color 0.2s ease;
}

.role-toggle input:checked + label {
    background: var(--amber);
    color: #241703;
}

.waitlist-form button {
    flex: 1 1 100%;
}

.waitlist-msg {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--green);
    min-height: 18px;
}

.waitlist-msg.is-error {
    color: #ff6b6b;
}

.waitlist-count {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fog);
    letter-spacing: 0.04em;
}

/* ---- Footer ---- */
footer {
    padding: 50px 0 40px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
}

.footer-logo span {
    color: var(--amber);
}

.footer-tag {
    color: var(--fog);
    font-size: 0.9rem;
    margin-top: 6px;
}

.footer-meta {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fog);
    letter-spacing: 0.04em;
}

/* ---- Reveal on scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Gate / access screen
   ========================================================================== */
.gate-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.gate-canvas {
    position: absolute;
    inset: 0;
    opacity: 0.35;
}

.gate-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

.gate-console {
    background: linear-gradient(180deg, var(--steel-2), var(--steel));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.gate-header {
    padding: 26px 28px 20px;
    border-bottom: 1px solid var(--line);
}

.gate-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
}

.gate-logo span {
    color: var(--amber);
}

.gate-header .eyebrow {
    margin-top: 10px;
}

.gate-form {
    padding: 26px 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gate-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fog);
    margin-bottom: 8px;
}

.gate-field input {
    width: 100%;
    background: var(--ink-alt);
    border: 1px solid var(--line-strong);
    color: var(--paper);
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.98rem;
}

.gate-field input:focus {
    border-color: var(--amber);
}

.gate-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: #ff9d9d;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

.gate-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.gate-footnote {
    text-align: center;
    margin-top: 22px;
    color: var(--fog);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.03em;
    line-height: 1.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    .console {
        transform: none;
    }
    .how-inner {
        grid-template-columns: 1fr;
    }
    .split-grid {
        grid-template-columns: 1fr;
    }
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 36px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    .hero {
        padding: 140px 0 80px;
    }
    .btn-row {
        flex-direction: column;
    }
    .btn-row .btn {
        width: 100%;
        justify-content: center;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-meta {
        text-align: left;
    }
}