:root {
    --color-bg: #040811;
    --color-bg-deep: #07101d;
    --color-bg-soft: #0b1524;
    --color-panel: rgba(10, 18, 32, 0.78);
    --color-panel-strong: rgba(6, 12, 22, 0.92);
    --color-text: #f4f8ff;
    --color-muted: #9fb3c8;
    --color-accent: #59e7ff;
    --color-accent-deep: #13b5ff;
    --color-border: rgba(89, 231, 255, 0.16);
    --color-border-strong: rgba(89, 231, 255, 0.28);
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.42);
    --shadow-glow: 0 0 0 1px rgba(89, 231, 255, 0.08), 0 20px 70px rgba(19, 181, 255, 0.16);
    --transition-fast: 160ms ease;
    --transition-medium: 260ms ease;
    --container: 1240px;
    --wide-container: 1480px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 14% 14%, rgba(89, 231, 255, 0.08), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(19, 181, 255, 0.12), transparent 20%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 42%, var(--color-bg-soft) 100%);
    color: var(--color-text);
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

a,
.btn-link {
    color: var(--color-accent);
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
ul {
    margin-top: 0;
}

h1:focus {
    outline: none;
}

main {
    position: relative;
}

main::before,
main::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

main::before {
    top: 18%;
    left: -10rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(89, 231, 255, 0.1), transparent 68%);
    filter: blur(18px);
    animation: ambientDrift 18s ease-in-out infinite;
}

main::after {
    right: -12rem;
    bottom: 14%;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(19, 181, 255, 0.12), transparent 70%);
    filter: blur(24px);
    animation: ambientDrift 22s ease-in-out infinite reverse;
}

.section-shell {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.hero-bleed {
    position: relative;
    z-index: 1;
    margin: 0 calc(50% - 50vw);
    padding: 3.75rem 0 2.6rem;
    overflow: clip;
}

.hero-bleed::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 8, 17, 0.2), rgba(4, 8, 17, 0.72)),
        radial-gradient(circle at 72% 24%, rgba(89, 231, 255, 0.12), transparent 20%),
        radial-gradient(circle at 22% 30%, rgba(19, 181, 255, 0.1), transparent 28%);
    pointer-events: none;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.6rem 2rem;
    width: min(var(--wide-container), calc(100% - 3rem));
    margin: 0 auto;
}

.eyebrow,
.section-kicker,
.signal-label,
.step-index,
.lane-label {
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 720px;
}

.hero h1 {
    margin-bottom: 0;
    font-size: clamp(3rem, 6vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 9.8ch;
    text-wrap: balance;
}

.hero-lead,
.hero-sublead,
.section-heading p,
.workflow-step p,
.lane-copy p,
.review-copy p,
.activity-copy p,
.waitlist-copy p,
.waitlist-intro p,
.footer p {
    color: var(--color-muted);
    line-height: 1.72;
}

.hero-lead {
    max-width: 64ch;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    margin-bottom: 0.7rem;
}

.hero-sublead {
    max-width: 58ch;
    font-size: 0.98rem;
    margin-bottom: 1rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium), background-color var(--transition-medium), color var(--transition-medium);
}

.button-link.primary {
    color: #04111d;
    background: linear-gradient(135deg, var(--color-accent), #97f4ff);
    box-shadow: 0 14px 34px rgba(89, 231, 255, 0.22);
}

.button-link.secondary {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-border);
}

.button-link:hover,
.button-link:focus-visible {
    transform: translateY(-2px);
}

.hero-inline-points,
.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
    padding: 0;
    margin: 1.2rem 0 0;
    list-style: none;
}

.hero-inline-points span,
.hero-notes li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text);
}

.hero-inline-points span::before,
.hero-notes li::before {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
    box-shadow: 0 0 16px rgba(89, 231, 255, 0.4);
    flex: 0 0 auto;
}

.hero-stage {
    position: relative;
    min-height: 560px;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(2, 3, 8, 0.96), rgba(4, 8, 18, 0.88)),
        radial-gradient(circle at 50% 40%, rgba(89, 231, 255, 0.06), transparent 45%);
    border: 1px solid rgba(89, 231, 255, 0.1);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.hero-stage-label {
    position: absolute;
    top: 0;
    left: 2rem;
    z-index: 3;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(6, 12, 22, 0.88);
    border: 1px solid rgba(89, 231, 255, 0.16);
    color: var(--color-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-screen {
    position: absolute;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(89, 231, 255, 0.16);
    box-shadow: var(--shadow-soft);
}

.hero-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-screen-main {
    inset: 3.25rem 5.5rem 6rem 5.5rem;
    z-index: 1;
}

.hero-screen-context {
    right: 0;
    bottom: 2rem;
    width: 34%;
    aspect-ratio: 1.1;
    z-index: 2;
    transform: rotate(3deg);
}

.worker-path {
    position: absolute;
    border: 1px dashed rgba(89, 231, 255, 0.22);
    border-radius: 999px;
    opacity: 0.8;
}

.worker-path-one {
    top: 4.5rem;
    left: 2.5rem;
    width: 13rem;
    height: 13rem;
}

.worker-path-two {
    right: 2rem;
    bottom: 10rem;
    width: 11rem;
    height: 11rem;
}

.worker {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem 0.45rem 0.45rem;
    border-radius: 999px;
    background: rgba(5, 11, 20, 0.92);
    border: 1px solid rgba(89, 231, 255, 0.16);
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(89, 231, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.34);
}

.worker img {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(89, 231, 255, 0.26);
}

.worker-one {
    top: 5rem;
    left: 3rem;
    animation: workerOrbitOne 14s ease-in-out infinite;
}

.worker-two {
    top: 13rem;
    right: 2rem;
    animation: workerOrbitTwo 16s ease-in-out infinite;
}

.worker-three {
    left: 12rem;
    bottom: 1.5rem;
    animation: workerOrbitThree 12s ease-in-out infinite;
}

.hero-shell .hero-signals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    grid-column: 1 / -1;
}

.signal-block,
.quote-panel,
.lane-panel,
.review-strip,
.activity-band,
.waitlist-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.88), rgba(7, 14, 26, 0.74));
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    backdrop-filter: blur(16px);
}

.signal-block,
.quote-panel {
    min-height: 122px;
    padding: 1rem;
}

.signal-block p,
.quote-panel p {
    margin-bottom: 0;
    color: var(--color-muted);
    line-height: 1.56;
}

.section {
    padding: 2.3rem 0;
}

.section-heading {
    margin-bottom: 1.75rem;
}

.section-heading.narrow {
    max-width: 800px;
}

.section-heading h2,
.waitlist-copy h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.workflow-visual {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(89, 231, 255, 0.1);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.15rem;
}

.workflow-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-step {
    padding: 1rem 1rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10, 18, 33, 0.78), rgba(7, 13, 24, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.workflow-step h3,
.lane-copy h3,
.review-copy h3,
.activity-copy h3,
.waitlist-message h3,
.contact-side h3 {
    margin-bottom: 0.6rem;
    font-size: 1.22rem;
}

.lane-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lane-panel {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.lane-panel-large {
    grid-template-rows: auto 1fr;
}

.lane-shot {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lane-shot img {
    width: 100%;
    height: auto;
}

.lane-shot-portrait img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.review-strip,
.activity-band {
    display: grid;
    gap: 1.2rem;
    padding: 1.2rem;
    margin-top: 1.2rem;
}

.review-strip {
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
    align-items: center;
}

.review-shot,
.activity-shot {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-band {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr);
    align-items: center;
}

.waitlist-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.9fr);
}

.waitlist-copy {
    max-width: 700px;
}

.waitlist-panel {
    padding: 1.15rem;
}

.waitlist-shell {
    display: grid;
    gap: 1rem;
}

.waitlist-intro p {
    margin: 0.55rem 0 0;
}

.waitlist-form {
    display: grid;
    gap: 0.9rem;
}

.field-split {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-row {
    display: grid;
    gap: 0.45rem;
}

.honeypot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-row label {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.field-row label span {
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 9, 19, 0.72);
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.form-input::placeholder {
    color: rgba(159, 179, 200, 0.75);
}

.form-input:focus {
    border-color: rgba(89, 231, 255, 0.4);
    box-shadow: 0 0 0 1px rgba(89, 231, 255, 0.18), 0 0 24px rgba(89, 231, 255, 0.08);
    transform: translateY(-1px);
}

.form-area {
    min-height: 7.2rem;
    resize: vertical;
}

.waitlist-submit {
    width: 100%;
}

.waitlist-message {
    margin: 0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.waitlist-message.success {
    background: rgba(89, 231, 255, 0.08);
    border: 1px solid rgba(89, 231, 255, 0.18);
}

.waitlist-message.error {
    background: rgba(180, 30, 40, 0.12);
    border: 1px solid rgba(255, 92, 92, 0.22);
    color: #ffd6d6;
}

.footer {
    padding: 2rem 0 2.8rem;
}

.footer-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#blazor-error-ui {
    color-scheme: dark;
    background: rgba(20, 28, 44, 0.96);
    color: var(--color-text);
    border-top: 1px solid rgba(89, 231, 255, 0.18);
    bottom: 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .reload {
    color: var(--color-accent);
    margin-left: 0.75rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.loading-progress,
.loading-progress-text {
    display: none;
}

.js [data-reveal] {
    opacity: 0;
    transition:
        opacity 380ms ease,
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 380ms ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.js [data-reveal="up"] {
    transform: translate3d(0, 18px, 0);
    filter: blur(4px);
}

.js [data-reveal="left"] {
    transform: translate3d(-24px, 0, 0);
    filter: blur(4px);
}

.js [data-reveal="right"] {
    transform: translate3d(24px, 0, 0);
    filter: blur(4px);
}

.js [data-reveal="scale"] {
    transform: translate3d(0, 16px, 0) scale(0.97);
    filter: blur(4px);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

@keyframes ambientDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(1.3rem, -1rem, 0) scale(1.06);
    }
}

@keyframes workerOrbitOne {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(2.8rem, 1.6rem, 0);
    }
}

@keyframes workerOrbitTwo {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-2.4rem, 1.8rem, 0);
    }
}

@keyframes workerOrbitThree {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(2rem, -1.5rem, 0);
    }
}

@media (min-width: 920px) {
    .hero-shell {
        grid-template-columns: minmax(0, 0.95fr) minmax(540px, 1.05fr);
    }
}

@media (max-width: 1199.98px) {
    .hero-shell .hero-signals,
    .workflow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 919.98px) {
    .hero-bleed {
        padding-top: 3.2rem;
    }

    .hero-shell,
    .lane-grid,
    .review-strip,
    .activity-band,
    .waitlist-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 460px;
    }

    .hero-screen-main {
        inset: 3.25rem 2rem 5.5rem 2rem;
    }

    .hero-screen-context {
        width: 40%;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 2rem 0;
    }

    .hero-bleed {
        padding-top: 2.8rem;
    }

    .hero-shell {
        width: min(var(--wide-container), calc(100% - 1.5rem));
    }

    .hero h1 {
        font-size: clamp(2.45rem, 14vw, 4rem);
        max-width: 10ch;
    }

    .hero-inline-points,
    .hero-notes {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-screen-main {
        inset: 3rem 1rem 5rem 1rem;
    }

    .hero-screen-context {
        width: 48%;
        right: 0.4rem;
        bottom: 1.2rem;
    }

    .hero-stage {
        min-height: 360px;
    }

    .hero-shell .hero-signals,
    .workflow-steps,
    .field-split {
        grid-template-columns: 1fr;
    }

    .cta-row {
        flex-direction: column;
    }

    .button-link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
    }
}


/* SpecterHarness landing-page updates */

code {
    color: var(--color-accent);
    background: rgba(89, 231, 255, 0.08);
    border: 1px solid rgba(89, 231, 255, 0.14);
    border-radius: 0.45rem;
    padding: 0.08rem 0.34rem;
}

.hero h1 {
    max-width: 11.5ch;
}

.cta-row-hero {
    margin-top: 1.25rem;
}

.waitlist-mega {
    min-height: 3.85rem;
    padding-inline: 1.75rem;
    font-size: 1.02rem;
    box-shadow:
        0 0 0 1px rgba(89, 231, 255, 0.12),
        0 18px 46px rgba(89, 231, 255, 0.3),
        0 0 60px rgba(19, 181, 255, 0.16);
}

.hero-stage-brand {
    display: grid;
    place-items: center;
    min-height: 520px;
}

.hero-stage-brand::before {
    inset: 0.4rem;
    border-radius: 34px;
    background:
        radial-gradient(circle at 58% 36%, rgba(89, 231, 255, 0.16), transparent 33%),
        radial-gradient(circle at 20% 70%, rgba(19, 181, 255, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(2, 3, 8, 0.95), rgba(4, 8, 18, 0.86));
}

.hero-brand-picture {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    padding: 1.25rem;
}

.hero-brand-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 22px;
    filter:
        drop-shadow(0 0 26px rgba(89, 231, 255, 0.28))
        drop-shadow(0 28px 58px rgba(0, 0, 0, 0.48));
}

.hero-stage-brand .worker-one {
    top: 2.1rem;
    left: 2.4rem;
}

.hero-stage-brand .worker-two {
    top: 4.7rem;
    right: 1.5rem;
}

.hero-stage-brand .worker-three {
    left: 16%;
    bottom: 1.1rem;
}

.privacy-section,
.enterprise-section,
.mainnet-section {
    position: relative;
}

.privacy-grid,
.enterprise-grid {
    display: grid;
    gap: 1.3rem;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.joke-panel,
.privacy-card,
.enterprise-panel,
.stack-card,
.mainnet-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.88), rgba(7, 14, 26, 0.74));
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    backdrop-filter: blur(16px);
}

.joke-panel,
.enterprise-panel,
.mainnet-panel {
    padding: 1.35rem;
}

.joke-panel::before,
.enterprise-panel::before,
.mainnet-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(89, 231, 255, 0.14), transparent 24%),
        radial-gradient(circle at 80% 8%, rgba(19, 181, 255, 0.16), transparent 36%);
    opacity: 0.8;
}

.joke-panel > *,
.enterprise-panel > *,
.mainnet-panel > * {
    position: relative;
    z-index: 1;
}

.joke-panel h3 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.joke-punchline {
    color: var(--color-text) !important;
    font-weight: 700;
}

.privacy-cards {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-card,
.stack-card {
    padding: 1.1rem;
}

.privacy-card h3,
.stack-card h3 {
    margin-bottom: 0.55rem;
}

.privacy-card p,
.stack-card p,
.enterprise-panel p,
.mainnet-panel p {
    color: var(--color-muted);
    line-height: 1.72;
}

.enterprise-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.68fr);
}

.enterprise-panel h2,
.mainnet-panel h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.enterprise-stack {
    display: grid;
    gap: 1rem;
}

.mainnet-panel {
    display: grid;
    gap: 1.4rem;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.mainnet-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: min(340px, 100%);
}

.footer-shell a,
.hero-notes a {
    color: var(--color-accent);
    text-decoration-color: rgba(89, 231, 255, 0.38);
    text-underline-offset: 0.18em;
}

/* Faster, more agentic ghost movement */
.worker-one {
    animation-duration: 6s;
}

.worker-two {
    animation-duration: 7s;
}

.worker-three {
    animation-duration: 5s;
}

.worker {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.worker:hover {
    border-color: rgba(89, 231, 255, 0.34);
    box-shadow:
        0 0 0 1px rgba(89, 231, 255, 0.08),
        0 18px 46px rgba(0, 0, 0, 0.38),
        0 0 28px rgba(89, 231, 255, 0.18);
}

@media (max-width: 1199.98px) {
    .privacy-cards {
        grid-template-columns: 1fr;
    }

    .mainnet-panel {
        grid-template-columns: 1fr;
    }

    .mainnet-actions {
        width: 100%;
    }
}

@media (max-width: 919.98px) {
    .privacy-grid,
    .enterprise-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage-brand {
        min-height: auto;
    }

    .hero-brand-picture {
        padding: 0.7rem;
    }

    .hero-stage-brand .worker-one {
        top: 1rem;
        left: 1rem;
    }

    .hero-stage-brand .worker-two {
        top: 3.3rem;
        right: 0.8rem;
    }

    .hero-stage-brand .worker-three {
        left: 1.2rem;
        bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .waitlist-mega {
        min-height: 3.55rem;
    }

    .hero-stage-brand .worker span {
        display: none;
    }

    .hero-stage-brand .worker {
        padding: 0.35rem;
    }

    .joke-panel,
    .enterprise-panel,
    .mainnet-panel {
        padding: 1rem;
    }
}


/* Worker ghost upgrade: use the harness-mounted ghost asset */
.worker {
    gap: 0.65rem;
    padding: 0.4rem 0.72rem 0.4rem 0.4rem;
}

.worker img {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    filter:
        drop-shadow(0 0 10px rgba(89, 231, 255, 0.45))
        drop-shadow(0 0 18px rgba(19, 181, 255, 0.22));
}

.worker span {
    white-space: nowrap;
}

.worker-note {
    margin-top: 1rem;
    max-width: 56ch;
    color: var(--color-muted);
    line-height: 1.68;
}

.hero-stage-brand .worker {
    background:
        linear-gradient(180deg, rgba(6, 12, 22, 0.9), rgba(4, 9, 18, 0.85));
    border-color: rgba(89, 231, 255, 0.24);
}

.hero-stage-brand .worker-one {
    top: 1.25rem;
    left: 1.15rem;
}

.hero-stage-brand .worker-two {
    top: 3.6rem;
    right: 0.8rem;
}

.hero-stage-brand .worker-three {
    left: 10%;
    bottom: 0.4rem;
}

/* Make the little ghosts work faster. Agentic style. */
@keyframes workerOrbitOne {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }
    35% { transform: translate3d(2.6rem, 0.6rem, 0) rotate(2deg) scale(1.03); }
    70% { transform: translate3d(1.1rem, 1.5rem, 0) rotate(-1deg) scale(0.98); }
}

@keyframes workerOrbitTwo {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(2deg) scale(1); }
    30% { transform: translate3d(-2rem, 1rem, 0) rotate(-3deg) scale(1.02); }
    75% { transform: translate3d(-0.8rem, 2rem, 0) rotate(1deg) scale(0.99); }
}

@keyframes workerOrbitThree {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(1); }
    40% { transform: translate3d(2.2rem, -1.2rem, 0) rotate(3deg) scale(1.04); }
    75% { transform: translate3d(0.6rem, -2rem, 0) rotate(-2deg) scale(0.99); }
}


/* Patch 2: founder story and improved LLM lane layout */

.founder-section {
    position: relative;
}

.founder-grid {
    display: grid;
    gap: 1.3rem;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
}

.founder-copy,
.community-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.88), rgba(7, 14, 26, 0.74));
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    backdrop-filter: blur(16px);
    padding: 1.35rem;
}

.founder-copy::before,
.community-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(89, 231, 255, 0.11), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(19, 181, 255, 0.14), transparent 34%);
}

.founder-copy > *,
.community-panel > * {
    position: relative;
    z-index: 1;
}

.founder-copy h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.founder-copy p,
.community-panel p {
    color: var(--color-muted);
    line-height: 1.72;
}

.community-panel h3 {
    margin: 0.65rem 0 0.8rem;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.community-panel .button-link {
    margin-top: 0.4rem;
}

.lane-panel-small {
    align-content: start;
}

.lane-compact-shot {
    display: grid;
    place-items: center;
    padding: 0.75rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(89, 231, 255, 0.08), transparent 45%),
        rgba(3, 9, 19, 0.44);
    border: 1px solid rgba(89, 231, 255, 0.09);
}

.lane-compact-frame {
    width: min(100%, 520px);
    max-height: 310px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.lane-compact-frame img {
    width: 100%;
    height: 100%;
    max-height: 310px;
    object-fit: contain;
    background: rgba(2, 6, 14, 0.82);
}

@media (min-width: 920px) {
    .lane-grid {
        align-items: stretch;
    }

    .lane-panel-small {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .lane-panel-large {
        grid-template-rows: auto minmax(0, 1fr);
    }
}

@media (max-width: 919.98px) {
    .founder-grid {
        grid-template-columns: 1fr;
    }

    .lane-compact-frame {
        max-height: none;
    }

    .lane-compact-frame img {
        max-height: none;
    }
}


/* Patch 3: high-energy agent ghosts with lightning trails */

.hero-stage-brand::after {
    content: "";
    position: absolute;
    inset: 8% 4%;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(95deg, transparent 0%, rgba(89, 231, 255, 0.0) 22%, rgba(89, 231, 255, 0.22) 24%, transparent 27%),
        linear-gradient(108deg, transparent 0%, rgba(19, 181, 255, 0.0) 48%, rgba(19, 181, 255, 0.18) 51%, transparent 55%),
        linear-gradient(75deg, transparent 0%, rgba(89, 231, 255, 0.0) 70%, rgba(89, 231, 255, 0.15) 72%, transparent 76%);
    filter: blur(0.5px);
    opacity: 0.7;
    animation: stageLightningSweep 2.2s linear infinite;
}

.worker {
    isolation: isolate;
    overflow: visible;
    will-change: transform, filter;
}

.worker::before,
.worker::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    opacity: 0.86;
}

.worker::before {
    left: -5.8rem;
    top: 50%;
    width: 6.3rem;
    height: 2px;
    background:
        linear-gradient(90deg, transparent, rgba(89, 231, 255, 0.04), rgba(89, 231, 255, 0.82), rgba(255, 255, 255, 0.92));
    box-shadow:
        0 0 10px rgba(89, 231, 255, 0.72),
        0 0 22px rgba(19, 181, 255, 0.44);
    transform: translateY(-50%) skewX(-18deg);
    animation: trailPulse 580ms ease-in-out infinite;
}

.worker::after {
    left: -4.4rem;
    top: 42%;
    width: 4.7rem;
    height: 1px;
    background:
        linear-gradient(90deg, transparent, rgba(19, 181, 255, 0.64), rgba(255, 255, 255, 0.78));
    box-shadow:
        0 0 8px rgba(89, 231, 255, 0.58),
        0 0 18px rgba(19, 181, 255, 0.34);
    transform: rotate(-14deg);
    animation: trailPulse 420ms ease-in-out infinite reverse;
}

.worker-bolt {
    position: absolute;
    right: -0.36rem;
    top: -0.42rem;
    width: 1.1rem;
    height: 1.35rem;
    opacity: 0.92;
    background: linear-gradient(180deg, #f6fdff, var(--color-accent), var(--color-accent-deep));
    clip-path: polygon(48% 0, 100% 0, 64% 43%, 100% 43%, 30% 100%, 45% 55%, 8% 55%);
    filter:
        drop-shadow(0 0 7px rgba(89, 231, 255, 0.9))
        drop-shadow(0 0 18px rgba(19, 181, 255, 0.58));
    animation: boltFlicker 720ms steps(2, end) infinite;
}

.hero-stage-brand .worker-one {
    animation: workerDashOne 3.2s cubic-bezier(0.42, 0, 0.14, 1) infinite;
}

.hero-stage-brand .worker-two {
    animation: workerDashTwo 3.7s cubic-bezier(0.42, 0, 0.14, 1) infinite;
}

.hero-stage-brand .worker-three {
    animation: workerDashThree 2.9s cubic-bezier(0.42, 0, 0.14, 1) infinite;
}

.hero-stage-brand .worker-one img {
    animation: ghostLeanOne 620ms ease-in-out infinite;
}

.hero-stage-brand .worker-two img {
    animation: ghostLeanTwo 700ms ease-in-out infinite;
}

.hero-stage-brand .worker-three img {
    animation: ghostLeanThree 560ms ease-in-out infinite;
}

.worker-path {
    border-style: solid;
    border-color: rgba(89, 231, 255, 0.18);
    box-shadow:
        inset 0 0 16px rgba(89, 231, 255, 0.08),
        0 0 20px rgba(19, 181, 255, 0.1);
    animation: pathCharge 1.4s ease-in-out infinite;
}

@keyframes stageLightningSweep {
    0% {
        transform: translate3d(-8%, 0, 0);
        opacity: 0.18;
    }
    28% {
        opacity: 0.78;
    }
    55% {
        opacity: 0.26;
    }
    100% {
        transform: translate3d(8%, 0, 0);
        opacity: 0.18;
    }
}

@keyframes trailPulse {
    0%, 100% {
        opacity: 0.32;
        transform: translateY(-50%) translateX(0) skewX(-18deg) scaleX(0.68);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(-0.65rem) skewX(-18deg) scaleX(1.15);
    }
}

@keyframes boltFlicker {
    0%, 100% {
        opacity: 0.24;
        transform: translate3d(0, 0, 0) rotate(-7deg) scale(0.82);
    }
    50% {
        opacity: 1;
        transform: translate3d(0.08rem, -0.05rem, 0) rotate(8deg) scale(1.08);
    }
}

@keyframes pathCharge {
    0%, 100% {
        opacity: 0.28;
        filter: drop-shadow(0 0 0 rgba(89, 231, 255, 0));
    }
    45% {
        opacity: 0.9;
        filter: drop-shadow(0 0 12px rgba(89, 231, 255, 0.34));
    }
}

@keyframes ghostLeanOne {
    0%, 100% {
        transform: rotate(-8deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.08);
    }
}

@keyframes ghostLeanTwo {
    0%, 100% {
        transform: rotate(7deg) scale(1);
    }
    50% {
        transform: rotate(-11deg) scale(1.07);
    }
}

@keyframes ghostLeanThree {
    0%, 100% {
        transform: rotate(-6deg) scale(1);
    }
    50% {
        transform: rotate(12deg) scale(1.09);
    }
}

@keyframes workerDashOne {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-4deg);
        filter: drop-shadow(0 0 10px rgba(89, 231, 255, 0.18));
    }
    22% {
        transform: translate3d(7.2rem, 2.1rem, 0) rotate(8deg);
        filter: drop-shadow(0 0 22px rgba(89, 231, 255, 0.45));
    }
    48% {
        transform: translate3d(3.4rem, 7.2rem, 0) rotate(-9deg);
    }
    72% {
        transform: translate3d(10.5rem, 4.2rem, 0) rotate(7deg);
        filter: drop-shadow(0 0 30px rgba(19, 181, 255, 0.45));
    }
}

@keyframes workerDashTwo {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(5deg);
        filter: drop-shadow(0 0 10px rgba(89, 231, 255, 0.18));
    }
    24% {
        transform: translate3d(-8.5rem, 2.8rem, 0) rotate(-10deg);
        filter: drop-shadow(0 0 26px rgba(89, 231, 255, 0.48));
    }
    52% {
        transform: translate3d(-4.2rem, 8.4rem, 0) rotate(12deg);
    }
    78% {
        transform: translate3d(-12rem, 4.9rem, 0) rotate(-7deg);
        filter: drop-shadow(0 0 32px rgba(19, 181, 255, 0.48));
    }
}

@keyframes workerDashThree {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-3deg);
        filter: drop-shadow(0 0 10px rgba(89, 231, 255, 0.18));
    }
    25% {
        transform: translate3d(9.4rem, -3.2rem, 0) rotate(11deg);
        filter: drop-shadow(0 0 26px rgba(89, 231, 255, 0.48));
    }
    50% {
        transform: translate3d(17rem, -1.1rem, 0) rotate(-8deg);
    }
    76% {
        transform: translate3d(6.8rem, -7.6rem, 0) rotate(10deg);
        filter: drop-shadow(0 0 32px rgba(19, 181, 255, 0.5));
    }
}

@media (max-width: 919.98px) {
    .hero-stage-brand .worker-one {
        animation-name: workerDashOneMobile;
    }

    .hero-stage-brand .worker-two {
        animation-name: workerDashTwoMobile;
    }

    .hero-stage-brand .worker-three {
        animation-name: workerDashThreeMobile;
    }

    .worker::before {
        left: -3.7rem;
        width: 4rem;
    }

    .worker::after {
        left: -3rem;
        width: 3.2rem;
    }
}

@keyframes workerDashOneMobile {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
    35% { transform: translate3d(3.8rem, 1.4rem, 0) rotate(8deg); }
    70% { transform: translate3d(1.6rem, 4.8rem, 0) rotate(-7deg); }
}

@keyframes workerDashTwoMobile {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(5deg); }
    35% { transform: translate3d(-4.2rem, 1.6rem, 0) rotate(-9deg); }
    70% { transform: translate3d(-1.8rem, 5.1rem, 0) rotate(8deg); }
}

@keyframes workerDashThreeMobile {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
    35% { transform: translate3d(4.6rem, -2.1rem, 0) rotate(10deg); }
    70% { transform: translate3d(7rem, -0.4rem, 0) rotate(-7deg); }
}


/* Patch 4: calmer high-energy ghosts.
   Keep the lightning style, but slow the agents down so they support the hero instead of stealing the show. */
.hero-stage-brand .worker-one {
    animation-duration: 6.8s;
}

.hero-stage-brand .worker-two {
    animation-duration: 7.4s;
}

.hero-stage-brand .worker-three {
    animation-duration: 6.2s;
}

.hero-stage-brand::after {
    animation-duration: 4.8s;
    opacity: 0.42;
}

.worker::before {
    animation-duration: 1.15s;
    opacity: 0.58;
}

.worker::after {
    animation-duration: 0.95s;
    opacity: 0.52;
}

.worker-bolt {
    animation-duration: 1.35s;
    opacity: 0.76;
}

.worker-path {
    animation-duration: 2.8s;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-stage-brand .worker-one:hover,
    .hero-stage-brand .worker-two:hover,
    .hero-stage-brand .worker-three:hover {
        animation-duration: 3.8s;
    }
}


/* Patch 5: fix mismatched Small/Large LLM lane image layout.
   The wide file-selection screenshot and tall proposal-review screenshot now stack vertically
   instead of fighting each other in side-by-side cards. */

.lane-flow {
    display: grid;
    gap: 1.25rem;
}

.lane-flow-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.88), rgba(7, 14, 26, 0.74));
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    backdrop-filter: blur(16px);
    padding: 1.15rem;
}

.lane-flow-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(89, 231, 255, 0.11), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(19, 181, 255, 0.12), transparent 32%);
    opacity: 0.72;
}

.lane-flow-copy,
.lane-flow-shot {
    position: relative;
    z-index: 1;
}

.lane-flow-copy {
    max-width: 760px;
}

.lane-flow-copy h3 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.lane-flow-copy p {
    color: var(--color-muted);
    line-height: 1.72;
}

.lane-flow-shot {
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 6, 14, 0.82);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.lane-flow-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.lane-flow-card-wide .lane-flow-shot {
    max-width: 940px;
}

.lane-flow-card-wide .lane-flow-shot img {
    object-fit: contain;
}

.lane-flow-card-portrait {
    display: grid;
    gap: 1rem 1.4rem;
    align-items: center;
}

.lane-flow-shot-portrait {
    justify-self: center;
    width: min(100%, 560px);
    max-height: 720px;
}

.lane-flow-shot-portrait img {
    width: auto;
    max-width: 100%;
    max-height: 720px;
    margin: 0 auto;
    object-fit: contain;
}

@media (min-width: 1040px) {
    .lane-flow-card-portrait {
        grid-template-columns: minmax(280px, 0.78fr) minmax(300px, 0.72fr);
    }

    .lane-flow-card-wide {
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .lane-flow-card {
        padding: 1rem;
    }

    .lane-flow-shot-portrait {
        max-height: none;
    }

    .lane-flow-shot-portrait img {
        max-height: none;
    }
}


/* Patch 6: final handoff story layout.
   The Small LLM, Large LLM, and Review stages are now ordered vertically.
   This avoids forcing a wide screenshot and tall screenshot into matching side-by-side cards. */

.lane-grid,
.lane-flow,
.review-strip {
    display: none;
}

.handoff-story {
    display: grid;
    gap: 1.35rem;
}

.handoff-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(10, 18, 32, 0.9), rgba(7, 14, 26, 0.76));
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    backdrop-filter: blur(16px);
    padding: 1.2rem;
}

.handoff-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(89, 231, 255, 0.12), transparent 28%),
        radial-gradient(circle at 92% 0%, rgba(19, 181, 255, 0.14), transparent 36%);
    opacity: 0.76;
}

.handoff-card-copy,
.handoff-shot {
    position: relative;
    z-index: 1;
}

.handoff-card-copy {
    max-width: 820px;
}

.handoff-card-copy h3 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.35rem, 2.3vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.handoff-card-copy p {
    color: var(--color-muted);
    line-height: 1.72;
}

.handoff-shot {
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 50% 0%, rgba(89, 231, 255, 0.06), transparent 42%),
        rgba(2, 6, 14, 0.86);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.36);
}

.handoff-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* Wide screenshot gets a wide panel. No fake tall empty frame. */
.handoff-card-wide .handoff-shot {
    width: min(100%, 980px);
}

.handoff-shot-wide img {
    object-fit: contain;
}

/* Tall screenshot gets a portrait-friendly panel. */
.handoff-card-portrait {
    display: grid;
    gap: 1.2rem 1.5rem;
    align-items: center;
}

.handoff-shot-portrait {
    justify-self: center;
    width: min(100%, 540px);
    max-height: 760px;
}

.handoff-shot-portrait img {
    width: auto;
    max-width: 100%;
    max-height: 760px;
    margin: 0 auto;
    object-fit: contain;
}

/* Review before apply gets its own large card. */
.handoff-card-review {
    display: grid;
    gap: 1.2rem;
}

.handoff-card-review .handoff-card-copy {
    max-width: 900px;
}

.handoff-shot-review {
    width: min(100%, 1120px);
}

.handoff-shot-review img {
    object-fit: contain;
}

@media (min-width: 1060px) {
    .handoff-card-portrait {
        grid-template-columns: minmax(320px, 0.82fr) minmax(320px, 0.72fr);
    }

    .handoff-card-review {
        grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1fr);
        align-items: center;
    }

    .handoff-card-review .handoff-shot {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .handoff-card {
        padding: 1rem;
    }

    .handoff-shot-portrait,
    .handoff-shot-portrait img {
        max-height: none;
    }
}


/* Patch 7: nav repair, final vertical handoff layout, and image fullscreen lightbox */

/* Navigation fallback/repair.
   This intentionally styles common Blazor nav structures so the page does not collapse into raw links. */
.top-row,
.navbar,
.nav-shell,
.site-header,
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 8, 17, 0.88);
    border-bottom: 1px solid rgba(89, 231, 255, 0.12);
    backdrop-filter: blur(16px);
}

.top-row,
.navbar,
.nav-shell,
.site-header nav,
header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
    padding: 0.75rem max(1rem, calc((100vw - var(--container)) / 2));
}

.navbar-brand,
.brand-link,
.site-title,
header a:first-child {
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.navbar-brand:hover,
.brand-link:hover,
.site-title:hover,
header a:first-child:hover {
    color: var(--color-accent);
}

.nav-scrollable,
.nav-links,
.nav-menu,
header nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.nav-scrollable a,
.nav-links a,
.nav-menu a,
.nav-link,
header nav a:not(:first-child) {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    color: var(--color-muted);
    text-decoration: none;
    font-weight: 650;
    border: 1px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-scrollable a:hover,
.nav-links a:hover,
.nav-menu a:hover,
.nav-link:hover,
header nav a:not(:first-child):hover {
    color: var(--color-text);
    background: rgba(89, 231, 255, 0.07);
    border-color: rgba(89, 231, 255, 0.16);
}

.navbar-toggler,
button.navbar-toggler,
.menu-button,
header button {
    margin-left: auto;
    border-radius: 999px;
    border: 1px solid rgba(89, 231, 255, 0.18);
    background: rgba(5, 12, 24, 0.78);
    color: var(--color-text);
    padding: 0.45rem 0.75rem;
}

/* Kill old broken handoff layouts no matter which stale classes survived. */
.handoff-section .lane-grid,
.handoff-section .lane-flow,
.handoff-section .review-strip {
    display: none !important;
}

/* New single-column handoff story. */
.handoff-stack {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.45rem;
}

.handoff-stage {
    position: relative;
    overflow: hidden;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(10, 18, 32, 0.92), rgba(7, 14, 26, 0.78));
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    backdrop-filter: blur(16px);
    padding: 1.2rem;
}

.handoff-stage::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(89, 231, 255, 0.12), transparent 26%),
        radial-gradient(circle at 92% 0%, rgba(19, 181, 255, 0.14), transparent 34%);
    opacity: 0.78;
}

.handoff-stage-copy,
.handoff-stage-image {
    position: relative;
    z-index: 1;
}

.handoff-stage-copy {
    max-width: 880px;
}

.handoff-stage-copy h3 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.35rem, 2.2vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.handoff-stage-copy p {
    color: var(--color-muted);
    line-height: 1.72;
}

/* Use button reset so screenshots are clickable without ugly default button styles. */
.image-zoom-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: zoom-in;
}

.handoff-stage-image,
.activity-shot.image-zoom-trigger {
    overflow: hidden;
    margin-top: 0.25rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 50% 0%, rgba(89, 231, 255, 0.06), transparent 42%),
        rgba(2, 6, 14, 0.86);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.36);
}

.handoff-stage-image img,
.activity-shot.image-zoom-trigger img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 220ms ease, filter 220ms ease;
}

.image-zoom-trigger:hover img,
.image-zoom-trigger:focus-visible img {
    transform: scale(1.012);
    filter: brightness(1.08);
}

.handoff-stage-image-wide {
    width: min(100%, 1120px);
}

.handoff-stage-image-wide img {
    object-fit: contain;
}

.handoff-stage-large {
    align-items: start;
}

.handoff-stage-image-portrait {
    justify-self: center;
    width: min(100%, 620px);
    max-height: 820px;
}

.handoff-stage-image-portrait img {
    width: auto;
    max-width: 100%;
    max-height: 820px;
    margin: 0 auto;
    object-fit: contain;
}

.handoff-stage-review {
    align-items: center;
}

.handoff-stage-image-review {
    width: min(100%, 1160px);
}

.handoff-stage-image-review img {
    object-fit: contain;
}

.image-zoom-hint {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 2;
    padding: 0.42rem 0.62rem;
    border-radius: 999px;
    color: var(--color-text);
    background: rgba(3, 8, 17, 0.78);
    border: 1px solid rgba(89, 231, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(0.25rem);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.image-zoom-trigger:hover .image-zoom-hint,
.image-zoom-trigger:focus-visible .image-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1080px) {
    .handoff-stage-large {
        grid-template-columns: minmax(320px, 0.7fr) minmax(360px, 0.55fr) !important;
    }

    .handoff-stage-large .handoff-stage-image {
        margin-top: 0;
    }

    .handoff-stage-review {
        grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr) !important;
    }

    .handoff-stage-review .handoff-stage-image {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .top-row,
    .navbar,
    .nav-shell,
    .site-header nav,
    header nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .nav-scrollable,
    .nav-links,
    .nav-menu,
    header nav ul {
        width: 100%;
    }

    .navbar-toggler,
    button.navbar-toggler,
    .menu-button,
    header button {
        margin-left: 0;
    }

    .handoff-stage {
        padding: 1rem;
    }

    .handoff-stage-image-portrait,
    .handoff-stage-image-portrait img {
        max-height: none;
    }
}

/* Fullscreen image viewer */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
}

.image-lightbox[hidden] {
    display: none !important;
}

.image-lightbox img {
    max-width: min(100%, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(89, 231, 255, 0.16);
    box-shadow:
        0 0 0 1px rgba(89, 231, 255, 0.08),
        0 30px 100px rgba(0, 0, 0, 0.72),
        0 0 70px rgba(19, 181, 255, 0.18);
}

.image-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(89, 231, 255, 0.18);
    color: var(--color-text);
    background: rgba(5, 12, 24, 0.86);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
    border-color: rgba(89, 231, 255, 0.42);
    box-shadow: 0 0 24px rgba(89, 231, 255, 0.16);
}
