@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&family=Space+Grotesk:wght@400;500;700;800&family=Space+Mono:wght@400;700&family=Syne:wght@700;800&display=swap");

:root {
    --bg: #0a0a0a;
    --bg-soft: #121212;
    --panel: #141414;
    --panel-soft: #181818;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f2ed;
    --muted: #a7a199;
    --muted-strong: #d5d0c7;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, #0c0c0c 0%, #090909 100%);
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

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

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

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, black 36%, transparent 86%);
    opacity: 0.34;
}

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-shell {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-text strong,
.brand-text span {
    display: block;
}

.brand-text strong {
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-text span {
    color: var(--muted);
    font-size: 0.82rem;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.34rem;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-nav a {
    position: relative;
    color: var(--muted-strong);
    font-size: 0.79rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.42rem 0.74rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.24rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(244, 242, 237, 0.94), rgba(255, 255, 255, 0.08));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.site-nav a:active {
    transform: translateY(1px);
}

.nav-cta {
    flex-shrink: 0;
}

.section {
    position: relative;
    padding: 5rem 0;
}

.ascii-hero {
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.ascii-hero-inner {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

#gz-ascii-logo {
    display: block;
    width: min(100%, 1120px);
    height: auto;
}

.ascii-sub {
    text-align: center;
}

body[data-page="home"]:not([data-theme="dark"]) .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
}

.home-nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.95rem;
}

.home-nav {
    justify-self: center;
}

.home-nav-meta {
    display: grid;
    gap: 0.2rem;
    text-align: right;
    padding-right: 0.25rem;
}

.home-nav-meta span {
    color: var(--muted-strong);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-nav-meta span:first-child {
    animation: meta-pulse 3.2s ease-in-out infinite;
}

.hero-slogan {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.94rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-strong);
}

.hero-slogan::before,
.hero-slogan::after {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}

/* Home vNext */
.home-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-nav-grid {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav actions";
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0;
}

.home-nav-grid .brand {
    grid-area: brand;
}

.home-actions {
    grid-area: actions;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.home-nav-grid .nav-cta {
    justify-self: auto;
}

.home-nav-grid .site-nav {
    grid-area: nav;
    justify-self: center;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-nav-grid .site-nav::-webkit-scrollbar {
    display: none;
}

.home-nav {
    grid-area: nav;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-nav::-webkit-scrollbar {
    display: none;
}

.home-value {
    padding-top: 1.7rem;
    padding-bottom: 2.6rem;
}

.value-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: start;
}

.value-copy {
    min-width: 0;
}

.value-copy h1 {
    margin-top: 1rem;
    max-width: 7.4ch;
    font-size: clamp(2rem, 5.1vw, 4.45rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.value-copy h1 span {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.value-eyebrow {
    display: inline-block;
    max-width: 30ch;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.value-copy p {
    margin-top: 1.15rem;
    max-width: 60ch;
    color: var(--muted-strong);
    font-size: 1.06rem;
}

.benefit-lines {
    border-left: 1px solid var(--line-strong);
    padding-left: 1rem;
}

.benefit-item {
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--line);
    opacity: 0.34;
    filter: saturate(0.7);
    transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.benefit-item:first-child {
    border-top: 0;
}

.benefit-index,
.step-no,
.proof-metric span {
    display: inline-block;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.benefit-item h2 {
    margin-top: 0.65rem;
    font-size: clamp(1.45rem, 2.3vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.benefit-item p {
    margin-top: 0.6rem;
    color: var(--muted-strong);
    font-size: 0.98rem;
}

.benefit-item.is-live {
    transform: translateX(8px);
    opacity: 1;
    filter: saturate(1);
}

.benefit-item.is-live .benefit-index,
.benefit-item.is-live h2,
.benefit-item.is-live p {
    color: var(--text);
}

.home-process {
    padding-top: 1rem;
}

.process-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.8rem;
    align-items: start;
}

.process-intro h2,
.home-final h2 {
    margin-top: 0.8rem;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.process-line {
    list-style: none;
    display: grid;
    gap: 1rem;
    padding-left: 0;
}

.flow-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
}

.flow-step:first-child {
    border-top: 0;
    padding-top: 0;
}

.flow-step h3 {
    margin-top: 0.15rem;
    font-size: 1.24rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.flow-step p {
    margin-top: 0.45rem;
    color: var(--muted-strong);
    font-size: 0.96rem;
}

.step-no {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    line-height: 1;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.flow-step.is-live .step-no {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.home-proof {
    padding-top: 1.2rem;
    padding-bottom: 4rem;
}

.proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    padding: 1.1rem 0;
}

.proof-metric strong {
    display: block;
    margin-top: 0.48rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.proof-metric strong[data-brush] {
    position: relative;
    display: inline-block;
    padding: 0.06em 0.2em 0.08em 0.04em;
    isolation: isolate;
}

.proof-metric strong[data-brush]::before {
    content: "";
    position: absolute;
    left: -0.12em;
    right: -0.16em;
    bottom: 0.04em;
    height: 0.5em;
    border-radius: 999px;
    background:
        radial-gradient(60% 100% at 10% 50%, rgba(248, 158, 66, 0.44), rgba(248, 158, 66, 0.08) 72%),
        linear-gradient(95deg, rgba(248, 158, 66, 0.78), rgba(248, 158, 66, 0.5));
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    z-index: -1;
}

.proof-metric strong[data-brush].is-painted::before {
    animation: brushSweep 620ms cubic-bezier(0.25, 0.88, 0.32, 1) forwards;
}

@keyframes brushSweep {
    0% {
        transform: scaleX(0.05);
        opacity: 0;
    }
    45% {
        transform: scaleX(1.02);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 0.92;
    }
}

.home-final {
    padding-top: 2rem;
}

.hero-page {
    padding-top: 2.4rem;
    padding-bottom: 3.4rem;
}

.home-sell {
    padding-top: 1.2rem;
    padding-bottom: 2.2rem;
}

.sell-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
    gap: 1.6rem;
    align-items: end;
}

.sell-copy h1 {
    margin-top: 1rem;
    max-width: 10.3ch;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.sell-copy p {
    margin-top: 1.2rem;
    max-width: 62ch;
    color: var(--muted-strong);
    font-size: 1.08rem;
}

.sell-audit {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border-radius: var(--radius-xl);
    padding: 1rem 1.2rem;
    overflow: hidden;
}

.audit-screen {
    position: relative;
    min-height: 150px;
    margin-bottom: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    background-size: 20px 20px, 20px 20px, auto;
}

.scan-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 242, 237, 0.72);
}

.scan-grid {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.scan-beam {
    position: absolute;
    left: -30%;
    top: 0;
    bottom: 0;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-18deg);
    animation: beam-pass 4.8s linear infinite;
}

.scan-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
    animation: dot-float 4.2s ease-in-out infinite;
}

.scan-dot-1 {
    top: 56%;
    left: 22%;
}

.scan-dot-2 {
    top: 36%;
    left: 58%;
    animation-delay: 0.7s;
}

.scan-dot-3 {
    top: 72%;
    left: 76%;
    animation-delay: 1.1s;
}

.audit-row {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    transition: opacity 180ms ease, transform 180ms ease;
}

.audit-row:first-child {
    border-top: 0;
}

.audit-row span,
.friction-index,
.system-tag,
.proof-label {
    display: inline-block;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.audit-row strong {
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.audit-row.is-live {
    opacity: 1;
    transform: translateX(4px);
}

.sell-audit .audit-row:not(.is-live) {
    opacity: 0.56;
}

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

.friction-card {
    min-height: 250px;
    padding: 1.3rem;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius-xl);
}

.friction-card h2,
.system-intro h2,
.proof-cta h2 {
    margin-top: 0.85rem;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.friction-card p,
.system-node p,
.proof-stat p,
.proof-cta p {
    margin-top: 0.8rem;
    color: var(--muted-strong);
    font-size: 0.98rem;
}

.system-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: start;
}

.system-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    position: relative;
}

.system-map::before {
    content: "";
    position: absolute;
    left: 16.66%;
    right: 16.66%;
    top: 33%;
    height: 1px;
    background: var(--line-strong);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 900ms ease;
}

.system-map.is-live::before {
    transform: scaleX(1);
}

.system-node {
    min-height: 190px;
    padding: 1.25rem;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius-xl);
    position: relative;
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.system-node.is-live {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
}

.system-node-main {
    grid-column: span 3;
    min-height: 140px;
}

.system-node-service {
    min-height: 150px;
}

.system-node h3 {
    margin-top: 0.75rem;
    font-size: 1.45rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.text-link {
    display: inline-flex;
    margin-top: 0.4rem;
    color: var(--text);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--line-strong);
    transition: opacity 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
    opacity: 0.72;
}

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

.system-caption {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.proof-stat,
.proof-cta {
    border-top: 1px solid var(--line-strong);
    padding-top: 1rem;
}

.proof-stat strong {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.hero-home-grid,
.intro-grid,
.feature-row,
.detail-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-home-grid,
.intro-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--muted-strong);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-intro h1,
.section-heading h2 {
    margin-top: 1rem;
    font-size: clamp(2.5rem, 6vw, 5.75rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero-copy h1 {
    max-width: 10.8ch;
}

.page-intro h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.section-heading h2 {
    max-width: 13ch;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-copy p,
.page-intro p,
.section-heading p,
.feature-row p,
.service-link-copy p,
.detail-card p {
    margin-top: 1.15rem;
    color: rgba(5, 5, 5, 0.62);
    font-size: 1.04rem;
    max-width: 58ch;
}

body[data-theme="dark"] .hero-copy p,
body[data-theme="dark"] .page-intro p,
body[data-theme="dark"] .section-heading p,
body[data-theme="dark"] .feature-row p,
body[data-theme="dark"] .service-link-copy p,
body[data-theme="dark"] .detail-card p {
    color: rgba(241, 244, 251, 0.72);
}

.rotating-word {
    display: inline-block;
    position: relative;
    min-width: 5.8ch;
    color: var(--text);
    white-space: nowrap;
}

.rotating-word::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: 0.12em;
    background: rgba(255, 255, 255, 0.14);
    z-index: -1;
}

.rotating-word.is-changing {
    animation: word-flip 240ms ease;
}

.hero-notes {
    margin-top: 1.6rem;
    display: grid;
    gap: 0.65rem;
}

.hero-notes span {
    display: block;
    color: var(--muted-strong);
    font-size: 0.96rem;
}

.hero-notes span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 1px;
    margin-right: 0.7rem;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.42);
}

.action-row,
.mini-stats,
.service-link-grid,
.service-stack,
.pill-row {
    display: grid;
    gap: 1rem;
}

.action-row {
    margin-top: 1.9rem;
    display: flex;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button-primary {
    background: var(--text);
    color: #0a0a0a;
    font-weight: 700;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #ffffff;
}

.button-secondary {
    background: transparent;
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.04);
}

.mini-stats {
    margin-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-box,
.hero-image-card,
.floating-panel,
.service-link-card,
.intro-card,
.feature-row,
.detail-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.stat-box {
    padding: 1.15rem;
}

.stat-box strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.05;
}

.stat-box span {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.hero-image-card {
    position: absolute;
    inset: 0 3rem 5.8rem 0;
    overflow: hidden;
}

.hero-image-card img,
.intro-card img,
.feature-row img,
.image-card img,
.service-link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.hero-image-card:hover img,
.intro-card:hover img,
.feature-row:hover img,
.image-card:hover img,
.service-link-card:hover img {
    transform: scale(1.03);
}

.card-badge,
.floating-panel span {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
}

.floating-panel {
    position: absolute;
    right: 0;
    width: 44%;
    padding: 1.1rem;
}

.floating-panel strong {
    display: block;
    margin-top: 0.7rem;
    font-size: 1.05rem;
    line-height: 1.25;
}

.floating-panel:first-of-type {
    top: 2rem;
}

.floating-panel.alt {
    bottom: 0;
    right: 1.8rem;
}

.compact-section {
    padding-top: 2rem;
    padding-bottom: 4.2rem;
}

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

.service-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-link-card {
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease;
}

.service-link-card:hover,
.service-link-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.service-link-card img {
    height: 250px;
}

.service-link-copy {
    padding: 1.3rem;
}

.service-link-copy span,
.detail-card h2,
.feature-row span {
    color: var(--muted);
}

.service-link-copy span,
.feature-row span {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.service-link-copy h3,
.feature-row h2,
.detail-card h2 {
    margin-top: 0.8rem;
    font-size: 1.45rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.intro-card {
    overflow: hidden;
    min-height: 360px;
}

.feature-row {
    grid-template-columns: minmax(280px, 420px) 1fr;
    align-items: stretch;
    overflow: hidden;
}

.feature-row.reverse {
    grid-template-columns: 1fr minmax(280px, 420px);
}

.feature-row.reverse img {
    order: 2;
}

.feature-row > div {
    padding: 1.55rem;
    align-self: center;
}

.feature-row img {
    min-height: 280px;
}

.detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card {
    padding: 1.35rem;
}

.detail-card.image-card {
    padding: 0;
    overflow: hidden;
    min-height: 300px;
}

.detail-card.image-card img {
    height: 100%;
}

.pill-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
}

.pill-row span {
    padding: 0.52rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 5, 5, 0.14);
    background: rgba(5, 5, 5, 0.04);
    color: rgba(5, 5, 5, 0.66);
    font-size: 0.82rem;
}

body[data-theme="dark"] .pill-row span {
    border-color: var(--z-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--z-muted);
}

.tilt-card {
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 320ms ease,
                box-shadow 320ms ease;
}

.tilt-card:hover,
.tilt-card:focus-visible {
    transform: translateY(-8px) scale(1.016);
    border-color: rgba(5, 5, 5, 0.22);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.13);
}

body[data-theme="dark"] .tilt-card:hover,
body[data-theme="dark"] .tilt-card:focus-visible {
    border-color: var(--z-line);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
}

.reveal {
    opacity: 0;
    transform: translateY(54px) scale(0.96);
    transition:
        opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.intro-card.reveal {
    transform: translateX(44px) scale(0.96);
}

.intro-card.reveal.is-visible {
    transform: translateX(0) scale(1);
}

.service-stack .feature-row.reveal {
    transform: translateX(-52px) scale(0.97);
    clip-path: inset(0 6% 0 0 round 8px);
}

.service-stack .feature-row.reverse.reveal {
    transform: translateX(52px) scale(0.97);
    clip-path: inset(0 0 0 6% round 8px);
}

.service-stack .feature-row.reveal.is-visible {
    transform: translateX(0) scale(1);
    clip-path: inset(0 0% 0 0% round 8px);
    transition:
        opacity 820ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
        clip-path 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-link-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.service-link-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.mini-stats .reveal:nth-child(2) { transition-delay: 90ms; }
.mini-stats .reveal:nth-child(3) { transition-delay: 180ms; }
.detail-grid .reveal:nth-child(2) { transition-delay: 140ms; }
.detail-grid .reveal:nth-child(3) { transition-delay: 280ms; }
.service-stack .feature-row:nth-child(2).reveal { transition-delay: 60ms; }
.service-stack .feature-row:nth-child(3).reveal { transition-delay: 120ms; }

#gz-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.82);
    z-index: 120;
    pointer-events: none;
}

@keyframes word-flip {
    0% { opacity: 0.25; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes meta-pulse {
    0%, 100% { opacity: 0.62; }
    50% { opacity: 1; }
}

@keyframes beam-pass {
    0% { transform: translateX(0) skewX(-18deg); }
    100% { transform: translateX(420%) skewX(-18deg); }
}

@keyframes dot-float {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.42; }
    50% { transform: translate3d(0, -10px, 0); opacity: 1; }
}

main {
    animation: page-fade-in 300ms ease both;
}

@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .sell-grid,
    .frictions-grid,
    .system-grid,
    .proof-grid,
    .hero-home-grid,
    .intro-grid,
    .detail-grid,
    .service-link-grid,
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-intro h1,
    .section-heading h2 {
        max-width: none;
    }

    .sell-copy h1 {
        max-width: none;
    }

    .hero-visual-home {
        min-height: 500px;
    }

    .system-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-map::before {
        display: none;
    }

    .system-node-main {
        grid-column: span 2;
    }

    .system-caption {
        grid-column: auto;
    }

    .value-grid,
    .process-grid,
    .proof-row {
        grid-template-columns: 1fr;
    }

    .home-nav-grid {
        grid-template-columns: auto auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
    }
}

@media (max-width: 980px) {
    .nav-shell {
        min-height: auto;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.58rem 0 0.72rem;
        gap: 0.62rem;
    }

    .nav-shell .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav-shell .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-shell .site-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-shell .nav-cta {
        margin-left: auto;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 860px) {
    .site-nav,
    .home-nav {
        display: inline-flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar,
    .home-nav::-webkit-scrollbar {
        display: none;
    }

    .frictions-grid,
    .proof-grid,
    .mini-stats {
        grid-template-columns: 1fr;
    }

    .system-map {
        grid-template-columns: 1fr;
    }

    .system-node-main {
        grid-column: auto;
    }

    .system-caption {
        font-size: 0.84rem;
    }

    .value-eyebrow {
        max-width: 100%;
    }

    .nav-shell .nav-cta {
        display: none;
    }

    .site-nav {
        border-radius: 14px;
        padding: 0.28rem;
    }

    .site-nav a {
        font-size: 0.74rem;
        letter-spacing: 0.1em;
        padding: 0.4rem 0.62rem;
        white-space: nowrap;
    }

    .feature-row > div,
    .detail-card,
    .service-link-copy {
        padding: 1.15rem;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(var(--max-width), calc(100% - 1.25rem));
    }

    .nav-shell {
        min-height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 0.82rem;
    }

    .brand-text strong {
        font-size: 0.9rem;
        letter-spacing: 0.06em;
    }

    .brand-text span,
    .nav-cta {
        display: none;
    }

    .site-nav a {
        font-size: 0.72rem;
        padding: 0.38rem 0.56rem;
    }

    .home-nav-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "nav";
    }

    .home-actions {
        display: none;
    }

    .ascii-hero {
        padding-top: 1.6rem;
    }

    .home-sell,
    .hero-page {
        padding-top: 2rem;
    }

    .sell-copy h1,
    .hero-copy h1,
    .page-intro h1,
    .section-heading h2 {
        font-size: clamp(2.1rem, 12vw, 3.7rem);
    }

    .sell-audit,
    .friction-card,
    .system-node {
        padding: 1rem;
    }

    .hero-slogan {
        letter-spacing: 0.14em;
        font-size: 0.82rem;
    }

    .hero-slogan::before,
    .hero-slogan::after {
        width: 18px;
    }

    .home-nav,
    .home-nav-grid .site-nav {
        gap: 0.25rem;
    }

    .value-copy h1 {
        max-width: none;
        font-size: clamp(1.9rem, 11.2vw, 3.25rem);
        line-height: 0.95;
    }

    .proof-stat,
    .proof-cta {
        border-top: 1px solid var(--line-strong);
    }

    .system-node h3 {
        font-size: 1.25rem;
    }

    .action-row {
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-visual-home {
        min-height: 420px;
    }

    .hero-image-card {
        inset: 0 1.2rem 5.4rem 0;
    }

    .feature-row img,
    .intro-card,
    .detail-card.image-card {
        min-height: 220px;
    }
}

/* ZGEN Kinetic Overhaul v2 */
:root {
    --z-bg: #060709;
    --z-panel: #0f1115;
    --z-panel-soft: #121720;
    --z-text: #eef3ff;
    --z-muted: #9cabcb;
    --z-line: rgba(158, 176, 213, 0.24);
    --z-lime: #ccff00;
    --z-cyan: #40f5e0;
    --z-hot: #ff5a3d;
    --scroll-depth: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: #050505;
    font-family: "Inter", "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    background: #ffffff;
    touch-action: pan-y;
}

body[data-page="home"] main,
body[data-page="home"] .site-header {
    position: relative;
    z-index: 1;
}

.theme-toggle {
    min-height: 40px;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 5, 5, 0.2);
    background: rgba(255, 255, 255, 0.94);
    color: #050505;
    font-family: "Avenir Next", "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: #ffffff;
    border-color: rgba(5, 5, 5, 0.34);
    box-shadow: 0 6px 18px rgba(5, 5, 5, 0.12);
    transform: translateY(-1px);
}

body[data-theme="dark"] {
    background: #07090d;
    color: #f1f4fb;
}

body[data-theme="dark"] .site-header {
    background: rgba(7, 9, 13, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .site-nav {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .site-nav a,
body[data-theme="dark"] .brand-text strong,
body[data-theme="dark"] .page-intro h1,
body[data-theme="dark"] .z-service-info h2,
body[data-theme="dark"] .mockup-text h2,
body[data-theme="dark"] .z-hype-card h3,
body[data-theme="dark"] .zlab-title {
    color: #ffffff;
}

body[data-theme="dark"] .page-intro p,
body[data-theme="dark"] .z-service-info p,
body[data-theme="dark"] .mockup-text p,
body[data-theme="dark"] .z-hype-card p,
body[data-theme="dark"] .detail-card p,
body[data-theme="dark"] .feature-row p,
body[data-theme="dark"] .brand-text span,
body[data-theme="dark"] .zlab-lead {
    color: rgba(241, 244, 251, 0.72);
}

body[data-theme="dark"] .z-hype,
body[data-theme="dark"] .z-services,
body[data-theme="dark"] .mockup-outer {
    background: #07090d;
}

body[data-theme="dark"] .feature-tag {
    color: #f1f4fb;
    border-color: rgba(241, 244, 251, 0.36);
    background: rgba(241, 244, 251, 0.08);
}

body[data-theme="dark"] .button-primary {
    background: #f1f4fb;
    border-color: #f1f4fb;
    color: #050505;
}

body[data-theme="dark"] .button-secondary {
    color: #f1f4fb;
    border-color: rgba(241, 244, 251, 0.35);
}

body[data-theme="dark"] .theme-toggle {
    background: transparent;
    color: #f1f4fb;
    border-color: rgba(241, 244, 251, 0.35);
    box-shadow: none;
}

body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible {
    background: rgba(241, 244, 251, 0.1);
    border-color: rgba(241, 244, 251, 0.55);
    box-shadow: none;
}

body[data-page="home"][data-theme="dark"] .site-nav {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page="home"][data-theme="dark"] .site-nav a {
    border: 0;
    color: #f1f4fb;
}

body[data-page="home"][data-theme="dark"] .site-nav a::after {
    background: #f1f4fb;
}

body[data-page="home"][data-theme="dark"] .brand-mark {
    border-color: rgba(241, 244, 251, 0.32);
    background: rgba(241, 244, 251, 0.12);
    color: #f1f4fb;
}

.cinematic-section {
    --c-progress: 0;
}

.cinematic-section > .container,
.cinematic-section .intro-grid,
.cinematic-section .detail-grid,
.cinematic-section .feature-row,
.cinematic-section .z-service-row,
.cinematic-section .z-hype-grid {
    will-change: transform, opacity;
}

.cinematic-section > .container {
    transform: translate3d(0, calc((1 - var(--c-progress)) * 38px), 0) scale(calc(0.972 + var(--c-progress) * 0.028));
    opacity: calc(0.42 + var(--c-progress) * 0.58);
}

.cinematic-section .feature-row,
.cinematic-section .detail-card,
.cinematic-section .intro-card,
.cinematic-section .service-link-card,
.cinematic-section .z-service-row,
.cinematic-section .z-hype-card {
    transform: translate3d(0, calc((1 - var(--c-progress)) * 36px), 0) scale(calc(0.975 + var(--c-progress) * 0.025));
    opacity: calc(0.3 + var(--c-progress) * 0.7);
    transition: transform 200ms linear, opacity 200ms linear, scale 200ms linear;
}

.section {
    --kinetic-shift: 0px;
    --kinetic-tilt: 0deg;
}

body::before {
    display: none;
}

body[data-theme="dark"]::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(112deg, rgba(213, 255, 63, 0.06) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(-112deg, rgba(64, 245, 224, 0.05) 0 1px, transparent 1px 38px);
    transform: translateY(calc(var(--scroll-depth) * -42px));
    opacity: 0.45;
}

.site-bg {
    display: none;
}

body[data-theme="dark"] .site-bg {
    display: block;
    opacity: 0.18;
    background-size: 44px 44px;
    transform: translateY(calc(var(--scroll-depth) * -26px));
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.is-scrolled .site-header {
    background: rgba(255, 255, 255, 0.99);
    border-bottom-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07);
}

body[data-theme="dark"] .site-header {
    background: rgba(7, 9, 12, 0.92) !important;
    backdrop-filter: blur(13px);
    border-bottom-color: rgba(158, 176, 213, 0.35) !important;
    box-shadow: none;
}

body[data-theme="dark"].is-scrolled .site-header {
    background: rgba(5, 7, 10, 0.97) !important;
    border-bottom-color: rgba(213, 255, 63, 0.28) !important;
}

.brand-mark {
    border-color: rgba(5, 5, 5, 0.18);
    background: rgba(5, 5, 5, 0.06);
    color: #050505;
    font-weight: 800;
}

body[data-theme="dark"] .brand-mark {
    border-color: rgba(213, 255, 63, 0.42);
    background: linear-gradient(160deg, rgba(213, 255, 63, 0.28), rgba(64, 245, 224, 0.1) 65%, rgba(255, 90, 61, 0.14));
    color: #0a0a0a;
}

.brand-text strong,
.site-nav a,
.eyebrow,
.benefit-index,
.step-no,
.proof-metric span,
.system-tag,
.proof-label,
.audit-row span,
.friction-index,
.zlab-status,
.feature-tag,
.ticker-content {
    font-family: "Space Mono", "Space Grotesk", monospace;
}

.brand-text span,
.service-link-copy span,
.feature-row span,
.detail-card h2 {
    color: rgba(5, 5, 5, 0.5);
}

body[data-theme="dark"] .brand-text span,
body[data-theme="dark"] .service-link-copy span,
body[data-theme="dark"] .feature-row span,
body[data-theme="dark"] .detail-card h2 {
    color: var(--z-muted);
}

.site-nav {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: 1rem;
}

body[data-theme="dark"] .site-nav {
    border: 1px solid rgba(158, 176, 213, 0.36);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(213, 255, 63, 0.08), rgba(64, 245, 224, 0.05) 55%, rgba(255, 90, 61, 0.05)),
        rgba(12, 14, 19, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 0.34rem;
    gap: 0.34rem;
}

.site-nav a {
    color: #0a0a0a;
    letter-spacing: 0.16em;
    border: 0;
    padding: 0.22rem 0.05rem;
    font-size: 0.7rem;
    border-radius: 0;
}

body[data-theme="dark"] .site-nav a {
    color: #d8e1f3;
    letter-spacing: 0.13em;
    border: 1px solid transparent;
    padding: 0.42rem 0.74rem;
    font-size: 0.79rem;
    border-radius: 8px;
}

.site-nav a::after {
    background: #050505;
}

body[data-theme="dark"] .site-nav a::after {
    background: linear-gradient(90deg, transparent, var(--z-lime), var(--z-cyan), transparent);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: #050505;
    border-color: transparent;
    background: transparent;
}

body[data-theme="dark"] .site-nav a:hover,
body[data-theme="dark"] .site-nav a:focus-visible,
body[data-theme="dark"] .site-nav a.is-active {
    color: #ffffff;
    border-color: rgba(213, 255, 63, 0.28);
    background: rgba(213, 255, 63, 0.1);
}

.button {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.button-primary {
    background: #050505;
    border-color: #050505;
    color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-2px);
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.button-secondary {
    border-color: rgba(5, 5, 5, 0.3);
    background: transparent;
    color: #050505;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(5, 5, 5, 0.06);
    border-color: rgba(5, 5, 5, 0.5);
}

body[data-theme="dark"] .button-primary {
    background: #f1f4fb;
    border-color: #f1f4fb;
    color: #050505;
}

body[data-theme="dark"] .button-primary:hover,
body[data-theme="dark"] .button-primary:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
}

body[data-theme="dark"] .button-secondary {
    border-color: rgba(241, 244, 251, 0.38);
    color: #f1f4fb;
}

body[data-theme="dark"] .button-secondary:hover,
body[data-theme="dark"] .button-secondary:focus-visible {
    background: rgba(241, 244, 251, 0.08);
    border-color: rgba(241, 244, 251, 0.6);
}



.stat-box,
.hero-image-card,
.floating-panel,
.service-link-card,
.intro-card,
.feature-row,
.detail-card,
.sell-audit,
.friction-card,
.system-node {
    border-color: rgba(5, 5, 5, 0.1);
    background: #ffffff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
}

body[data-theme="dark"] .stat-box,
body[data-theme="dark"] .hero-image-card,
body[data-theme="dark"] .floating-panel,
body[data-theme="dark"] .service-link-card,
body[data-theme="dark"] .intro-card,
body[data-theme="dark"] .feature-row,
body[data-theme="dark"] .detail-card,
body[data-theme="dark"] .sell-audit,
body[data-theme="dark"] .friction-card,
body[data-theme="dark"] .system-node {
    border-color: rgba(158, 176, 213, 0.28);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 58%),
        linear-gradient(180deg, rgba(11, 13, 18, 0.96), rgba(8, 10, 14, 0.95));
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
}

.feature-row,
.detail-card,
.intro-card,
.service-link-card {
    border-radius: 20px;
}

.eyebrow,
.benefit-index,
.step-no,
.proof-metric span,
.system-tag,
.proof-label,
.audit-row span,
.friction-index {
    color: rgba(5, 5, 5, 0.44);
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .benefit-index,
body[data-theme="dark"] .step-no,
body[data-theme="dark"] .proof-metric span,
body[data-theme="dark"] .system-tag,
body[data-theme="dark"] .proof-label,
body[data-theme="dark"] .audit-row span,
body[data-theme="dark"] .friction-index {
    color: rgba(213, 255, 63, 0.86);
}

.benefit-item {
    opacity: 0.22;
    filter: saturate(0.6);
}

.benefit-item.is-live {
    opacity: 1;
    transform: translateX(10px) scale(1.01);
    filter: none;
}

.benefit-item.is-live h2 {
    color: #ffffff;
}

.value-copy h1,
.hero-copy h1,
.page-intro h1,
.section-heading h2,
.sell-copy h1,
.zlab-title,
.mockup-text h2,
.screen-content h2 {
    font-family: "Syne", "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.055em;
}

.zlab-hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding-top: 0.55rem;
    padding-bottom: 1rem;
}

.zlab-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(5, 5, 5, 0.66);
}

.zlab-status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccff00;
    box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.22);
}

.zlab-title {
    margin-top: 0.85rem;
    font-size: clamp(3rem, 10vw, 10rem);
    line-height: 0.85;
}

.zlab-title span {
    color: #ccff00;
}

body[data-page="home"] .zlab-title {
    --hero-progress: 0;
    --hero-shift: 0px;
    --hero-scale: 1;
    --hero-skew: 0deg;
    --hero-blur: 0px;
    --hero-tilt-x: 0deg;
    --hero-tilt-y: 0deg;
    transform: perspective(1200px) translate3d(0, var(--hero-shift), 0) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) skewY(var(--hero-skew)) scale(var(--hero-scale));
    transform-style: preserve-3d;
    text-shadow:
        0 16px 38px rgba(0, 0, 0, calc(0.1 + var(--hero-progress) * 0.28)),
        0 0 calc(42px * var(--hero-progress)) rgba(204, 255, 0, calc(0.12 + var(--hero-progress) * 0.22));
    filter: blur(var(--hero-blur));
    transition: transform 120ms linear, text-shadow 120ms linear, filter 120ms linear;
}

body[data-page="home"] .zlab-title span {
    display: inline-block;
    transform: translate3d(calc((1 - var(--hero-progress)) * 14px), 0, 0);
    transition: transform 120ms linear;
}

body[data-page="home"] .zlab-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(5, 5, 5, 0.07) 0 1px, transparent 1px 4px),
        radial-gradient(100% 55% at 50% 0%, rgba(5, 5, 5, 0.14), transparent 75%);
    opacity: calc(0.08 + var(--scroll-depth) * 0.28);
    mix-blend-mode: multiply;
}

body[data-page="home"][data-theme="dark"] .zlab-hero::before {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
        radial-gradient(100% 55% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 75%);
    mix-blend-mode: screen;
}

.zlab-ascii-wrap {
    margin-top: 0;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: center;
    --logo-progress: 0;
    transform: translate3d(0, calc((1 - var(--logo-progress)) * -18px), 0) scale(calc(0.95 + var(--logo-progress) * 0.05));
    opacity: calc(0.35 + var(--logo-progress) * 0.65);
    transition: transform 180ms linear, opacity 180ms linear;
}

body[data-page="home"] #gz-ascii-logo {
    width: min(100%, 1120px);
    max-width: 100%;
    height: auto;
    opacity: 0.78;
    filter: contrast(1.22);
    pointer-events: none;
}

body[data-page="home"][data-theme="dark"] #gz-ascii-logo {
    opacity: 0.92;
    filter: contrast(1.35);
}

body[data-page="home"][data-theme="dark"] .zlab-title span {
    color: #ffffff;
}

body[data-page="home"] .cinematic-section {
    --c-progress: 0;
}

body[data-page="home"] .cinematic-section > .container,
body[data-page="home"] .cinematic-section .ticker-container,
body[data-page="home"] .cinematic-section .z-hype-grid,
body[data-page="home"] .cinematic-section .z-service-row,
body[data-page="home"] .cinematic-section .z-cta-footer .container {
    will-change: transform, opacity;
}

body[data-page="home"] .cinematic-section > .container {
    transform: translate3d(0, calc((1 - var(--c-progress)) * 16px), 0) scale(calc(0.985 + var(--c-progress) * 0.015));
    opacity: calc(0.72 + var(--c-progress) * 0.28);
}

body[data-page="home"] .z-img-box img {
    transform: scale(calc(1.05 - var(--c-progress) * 0.05));
}

body[data-page="home"] .z-hype-card {
    transform: translateY(calc((1 - var(--c-progress)) * 14px));
    opacity: calc(0.58 + var(--c-progress) * 0.42);
}

body[data-page="home"] .z-hype-card:nth-child(2) {
    transition-delay: 80ms;
}

body[data-page="home"] .z-hype-card:nth-child(3) {
    transition-delay: 160ms;
}

.zlab-lead {
    margin-top: 1.4rem;
    max-width: 44ch;
    color: rgba(5, 5, 5, 0.62);
    font-size: 1rem;
}

.zlab-ticker-section {
    padding-top: 0.8rem;
    padding-bottom: 1.8rem;
}

.ticker-container {
    position: relative;
    overflow: hidden;
    background: #050505;
    padding: 1.45rem 0;
    transform: rotate(-3deg) translateY(-30px);
    width: 120%;
    margin-left: -10%;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    color: #f4f7ff;
    font-size: clamp(1rem, 3.2vw, 1.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: zlab-ticker-move 20s linear infinite;
}

.ticker-content.is-js-driven {
    animation: none;
    will-change: transform;
}

.ticker-content span {
    margin-right: 3.2rem;
}

.ticker-content em {
    color: var(--z-lime);
    font-style: normal;
}

@keyframes zlab-ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mockup-outer {
    min-height: 102vh;
    padding-top: 0;
    padding-bottom: 0;
    background: #f9f9f9;
}

.mockup-sticky {
    position: sticky;
    top: 0;
    min-height: 72vh;
    display: grid;
    grid-template-columns: minmax(260px, 400px) minmax(300px, 520px);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    overflow: hidden;
}

.phone-frame {
    width: 380px;
    max-width: 100%;
    height: min(800px, 78vh);
    background: #000;
    border-radius: 50px;
    border: 10px solid #1a1a1a;
    position: relative;
    transform: scale(1.6);
    transform-origin: center 12%;
    box-shadow: 0 52px 105px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    will-change: transform;
}

.dynamic-island {
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 32px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0e1015, #252e3a);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.screen-content h2 {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    color: var(--z-lime);
}

.mockup-text {
    position: relative;
    max-width: 470px;
    opacity: 0;
    transform: translate3d(22px, 24px, 0);
    transition: opacity 200ms linear, transform 200ms linear;
    z-index: 2;
}

.mockup-text h2 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 0.9;
    margin-bottom: 0.9rem;
}

.mockup-text p {
    color: rgba(5, 5, 5, 0.66);
    font-size: 1.06rem;
    line-height: 1.6;
}

.z-services {
    padding-top: 2.1rem;
    padding-bottom: 5.5rem;
    background: #ffffff;
}

.z-hype {
    padding-top: 1rem;
    padding-bottom: 2.3rem;
    background: #ffffff;
}

.z-hype-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.z-hype-card {
    border: 1px solid rgba(5, 5, 5, 0.12);
    background: linear-gradient(140deg, rgba(204, 255, 0, 0.2), rgba(255, 255, 255, 0.7) 58%);
    padding: 1rem;
    border-radius: 12px;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.z-hype-card span {
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: rgba(5, 5, 5, 0.66);
}

.z-hype-card h3 {
    margin-top: 0.55rem;
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: 1.36rem;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.z-hype-card p {
    margin-top: 0.58rem;
    color: rgba(5, 5, 5, 0.65);
    line-height: 1.45;
}

.z-service-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 7rem;
    --row-progress: 0;
}

.z-service-row.z-reverse {
    grid-template-columns: 1.2fr 1fr;
}

.z-service-info h2 {
    margin-top: 1rem;
    margin-bottom: 1.2rem;
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: clamp(2.2rem, 5.8vw, 4.3rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.z-service-info p {
    max-width: 52ch;
    color: rgba(5, 5, 5, 0.66);
    font-size: 1.08rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border: 1px solid #ccff00;
    color: #050505;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0.55rem 0.55rem 0;
    background: rgba(204, 255, 0, 0.2);
}

.z-img-box {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #efefef;
    min-height: 420px;
}

.z-img-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.45) 56%, rgba(5, 5, 5, 0));
    transform-origin: left center;
    transform: scaleX(calc(1 - var(--row-progress)));
    transition: transform 180ms linear;
    pointer-events: none;
}

.z-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.z-service-row .z-service-info {
    transform: translate3d(calc((1 - var(--row-progress)) * 30px), 0, 0);
    opacity: calc(0.45 + var(--row-progress) * 0.55);
    transition: transform 180ms linear, opacity 180ms linear;
}

.z-service-row.z-reverse .z-service-info {
    transform: translate3d(calc((1 - var(--row-progress)) * -30px), 0, 0);
}

.z-img-box:hover img,
.z-img-box:focus-within img {
    filter: grayscale(0);
    transform: scale(1.03);
}

.z-cta-footer {
    background: #050505;
    color: #ffffff;
    text-align: center;
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
}

.z-cta-footer h2 {
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 9vw, 7rem);
    line-height: 0.86;
    letter-spacing: -0.04em;
}

.z-cta-footer p {
    margin-top: 1.15rem;
    font-family: "Space Mono", monospace;
    opacity: 0.44;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
}

body[data-page="home"] .reveal {
    transform: translateY(34px) scale(0.985);
}

body[data-page="home"] .reveal.is-visible {
    transform: translateY(0) scale(1);
}

.rotating-word {
    color: var(--z-lime);
}

.rotating-word::after {
    background: linear-gradient(90deg, rgba(213, 255, 63, 0.18), rgba(64, 245, 224, 0.4));
}

.reveal {
    opacity: 0;
    transform: translateY(42px) scale(0.965) skewY(0.6deg);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1) skewY(0);
}

main .section > .container {
    transform: translateX(var(--kinetic-shift)) rotate(var(--kinetic-tilt));
    transform-origin: center;
    transition: transform 180ms linear;
}

main {
    animation: zgen-page-enter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-route-ready.is-route-leaving main {
    animation: zgen-page-leave 320ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

body.is-route-ready.is-route-leaving .site-header {
    animation: zgen-header-leave 320ms ease forwards;
}

@keyframes zgen-page-enter {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.982);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes zgen-page-leave {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-18px) scale(0.985);
    }
}

@keyframes zgen-header-leave {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

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

    .mockup-sticky {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .mockup-text {
        position: static;
        margin-top: 1rem;
        max-width: 620px;
        text-align: center;
    }

    .mockup-outer {
        min-height: auto;
        padding-bottom: 0.3rem;
    }

    .phone-frame {
        width: min(360px, 82vw);
        height: min(700px, 68vh);
        transform: scale(1) !important;
    }

    .z-hype-grid {
        grid-template-columns: 1fr;
    }

    .z-service-row,
    .z-service-row.z-reverse {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin-bottom: 3.2rem;
    }

    .nav-shell {
        min-height: auto;
        flex-wrap: wrap;
        gap: 0.65rem;
        padding: 0.58rem 0 0.72rem;
    }

    .nav-shell .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-shell .site-nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 860px) {
    html,
    body,
    main,
    .site-header,
    .site-nav,
    .nav-shell,
    .container,
    .feature-row,
    .intro-grid,
    .detail-grid,
    .value-grid,
    .proof-row {
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        border-radius: 11px;
    }

    body[data-page="home"] .site-nav {
        width: auto;
        gap: 0.78rem;
        justify-content: flex-start;
    }

    .site-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.71rem;
        padding: 0.4rem 0.56rem;
    }

    .nav-shell .nav-cta {
        display: none;
    }

    .hero-slogan {
        letter-spacing: 0.12em;
    }

    .zlab-title {
        font-size: clamp(2.4rem, 13vw, 5.3rem);
    }

    .ticker-container {
        width: 126%;
        margin-left: -13%;
        transform: rotate(-2deg);
    }

    .mockup-outer {
        min-height: auto;
        padding-bottom: 0;
    }

    .mockup-text {
        opacity: 1 !important;
        transform: none !important;
    }

    body[data-page="home"] .zlab-title {
        font-size: clamp(2.7rem, 12.6vw, 6rem);
    }
}

@media (max-width: 680px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    .container {
        width: calc(100% - 1rem);
    }

    .section {
        padding: 3.2rem 0;
    }

    .zlab-hero {
        min-height: auto;
        padding-top: 1rem;
    }

    .zlab-lead {
        font-size: 0.98rem;
    }

    body[data-page="home"] .site-nav {
        display: flex;
        overflow-x: auto;
    }

    .ticker-content {
        font-size: 1rem;
    }

    .ticker-content span {
        margin-right: 2.1rem;
    }

    .mockup-outer {
        min-height: auto;
        padding-top: 0.25rem;
        padding-bottom: 0;
    }

    .mockup-sticky {
        position: relative;
        min-height: auto;
    }

    .phone-frame {
        width: min(320px, 88vw);
        height: min(520px, 68vh);
        transform: scale(1) !important;
        border-width: 8px;
        border-radius: 38px;
    }

    .z-services {
        padding-top: 2rem;
        padding-bottom: 3.1rem;
    }

    body[data-page="home"] #gz-ascii-logo {
        width: min(100%, 520px);
        opacity: 0.56;
    }

    .z-img-box {
        min-height: 260px;
    }

    .feature-row > div,
    .detail-card,
    .service-link-copy,
    .friction-card,
    .system-node,
    .sell-audit {
        padding: 0.95rem;
    }

    .feature-row,
    .detail-card,
    .intro-card,
    .service-link-card,
    .sell-audit,
    .friction-card,
    .system-node {
        border-radius: 16px;
    }

    .feature-row img,
    .intro-card,
    .detail-card.image-card {
        min-height: 210px;
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
