:root {
    color-scheme: dark;
    --bg: #090a0c;
    --bg-2: #101316;
    --panel: #12171c;
    --line: rgba(230, 235, 240, 0.12);
    --line-strong: rgba(230, 235, 240, 0.24);
    --text: #f2f4f5;
    --muted: #a3adb6;
    --soft: #c8ced4;
    --accent: #bda16a;
    --accent-cool: #8ebdb9;
    --radius: 8px;
    --max: 1180px;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    letter-spacing: 0;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

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

.site-header {
    position: fixed;
    z-index: 40;
    inset: 0 0 auto;
    height: 72px;
    padding: 0 clamp(18px, 5vw, 72px);
    background: rgba(9, 10, 12, 0.72);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: background 180ms ease, border-color 180ms ease, height 180ms ease;
}

.site-header.is-scrolled {
    height: 64px;
    background: rgba(9, 10, 12, 0.94);
    border-color: var(--line);
}

.header-inner {
    width: min(100%, var(--max));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 42px;
    height: 42px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    line-height: 1;
}

.brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(242, 244, 245, 0.72);
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.main-nav a.nav-connect {
    color: #090a0c;
    background: var(--text);
}

.main-nav a.nav-connect:hover,
.main-nav a.nav-connect.is-active {
    color: #090a0c;
    background: #ffffff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 82svh;
    display: flex;
    align-items: end;
    padding: 118px clamp(18px, 5vw, 72px) 54px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    background: #07080a;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(220px, 0.58fr) minmax(220px, 0.58fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 82px clamp(18px, 5vw, 72px) 30px;
    opacity: 1;
    transform: scale(1.015);
}

.hero-photo {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(230, 235, 240, 0.16);
    border-radius: var(--radius);
    background: #111;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.08) brightness(0.9);
    transform: scale(1.025);
}

.hero-photo-main {
    grid-row: 1 / span 2;
}

.hero-photo-main img {
    object-position: center;
}

.hero-photo-shop img {
    object-position: center;
}

.hero-photo-shadow img,
.hero-photo-heist img {
    object-position: center;
}

.hero-photo-food {
    grid-column: 2 / span 2;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 8, 10, 0.92), rgba(7, 8, 10, 0.68) 34%, rgba(7, 8, 10, 0.16) 72%),
        linear-gradient(180deg, rgba(7, 8, 10, 0.08), rgba(7, 8, 10, 0.34) 58%, rgba(7, 8, 10, 0.9)),
        radial-gradient(circle at 74% 24%, rgba(189, 161, 106, 0.18), transparent 34%);
}

.hero-inner,
.section-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

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

h1 {
    max-width: 680px;
    margin-bottom: 22px;
    font-size: clamp(44px, 5.8vw, 76px);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.06;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.14;
}

.hero-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.story-content > p,
.flow-card p {
    color: var(--muted);
}

.hero-copy > p:not(.eyebrow) {
    max-width: 760px;
    margin-bottom: 30px;
    font-size: clamp(17px, 2vw, 21px);
    color: rgba(242, 244, 245, 0.78);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button.primary {
    background: var(--text);
    color: #090a0c;
}

.button.secondary {
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

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

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 760px;
    margin-top: 24px;
}

.hero-proof span {
    padding: 7px 10px;
    border: 1px solid rgba(230, 235, 240, 0.18);
    border-radius: 8px;
    color: rgba(242, 244, 245, 0.82);
    background: rgba(9, 10, 12, 0.4);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.market-flow,
.story-section,
.summary-section,
.join-section {
    padding: clamp(72px, 10vw, 124px) clamp(18px, 5vw, 72px);
}

main section[id] {
    scroll-margin-top: 82px;
}

.market-flow {
    background: var(--bg);
    padding-top: clamp(50px, 7vw, 84px);
}

.section-heading {
    max-width: 700px;
    margin-bottom: clamp(28px, 4vw, 46px);
}

.section-heading p:not(.eyebrow) {
    max-width: 620px;
    font-size: 16px;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.flow-card {
    min-height: 210px;
    padding: 22px;
    background: #0f1216;
}

.flow-card span {
    display: block;
    margin-bottom: 32px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.story-section {
    background: #0d1013;
    border-top: 1px solid var(--line);
}

.story-section:nth-of-type(even) {
    background: #090a0c;
}

.story-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: clamp(28px, 6vw, 74px);
    align-items: center;
}

.story-section.is-reversed .story-row {
    grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.15fr);
}

.story-section.is-reversed .story-media {
    order: 2;
}

.story-media {
    position: relative;
    min-height: 500px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #111;
    box-shadow: var(--shadow);
}

.story-media img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.06) brightness(0.86);
}

.story-content {
    max-width: 520px;
}

.story-content h2 {
    font-size: clamp(28px, 3.1vw, 44px);
    line-height: 1.08;
}

.story-content > p {
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.tag-list span {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.035);
    font-size: 13px;
    font-weight: 760;
}

.summary-section {
    background: #0d1013;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.summary-table {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
}

.summary-table div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    min-height: 78px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.summary-table div:last-child {
    border-bottom: 0;
}

.summary-table strong {
    color: var(--text);
}

.summary-table span {
    color: var(--muted);
}

.join-section {
    position: relative;
    overflow: hidden;
    padding-top: clamp(48px, 6vw, 74px);
    padding-bottom: clamp(46px, 6vw, 70px);
    background: #07080a;
    border-top: 1px solid var(--line);
}

.join-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 10, 0.94), rgba(7, 8, 10, 0.7) 48%, rgba(7, 8, 10, 0.88)),
        url("../assets/hero-rp-city.png") center / cover;
    filter: saturate(0.82) contrast(1.08);
    opacity: 0.58;
}

.join-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(390px, 0.76fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
}

.join-copy {
    max-width: 560px;
}

.join-copy h2 {
    max-width: 500px;
    font-size: clamp(30px, 3.6vw, 48px);
}

.join-copy p:not(.eyebrow) {
    max-width: 500px;
    color: var(--soft);
    font-size: 16px;
}

.join-details {
    display: grid;
    gap: 6px;
}

.connect-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 54px;
    padding: 10px 0;
    border-top: 1px solid rgba(230, 235, 240, 0.18);
}

.connect-row:last-of-type {
    border-bottom: 1px solid rgba(230, 235, 240, 0.18);
}

.connect-row span,
.footer-links span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.connect-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: clamp(15px, 1.5vw, 18px);
}

.copy-button,
.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.copy-button:hover,
.inline-link:hover {
    border-color: rgba(242, 244, 245, 0.42);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.copy-button.is-copied {
    color: #090a0c;
    background: var(--accent-cool);
    border-color: var(--accent-cool);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.social-links a {
    min-width: 108px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    text-align: center;
    font-weight: 820;
    background: rgba(255, 255, 255, 0.035);
}

.site-footer {
    padding: 0 clamp(18px, 5vw, 72px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #07080a;
}

.footer-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: 22px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

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

.footer-brand strong {
    color: var(--text);
    margin-bottom: 4px;
}

.footer-brand span {
    max-width: 460px;
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.footer-links a {
    display: block;
    margin-top: 4px;
    color: var(--accent-cool);
    font-size: 13px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 560ms ease, transform 560ms ease;
}

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

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

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

@media (max-width: 1020px) {
    .story-row,
    .story-section.is-reversed .story-row,
    .join-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .story-section.is-reversed .story-media {
        order: 0;
    }

    .hero {
        min-height: 88svh;
        padding-top: 118px;
    }

    .hero-media {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 0.68fr);
        padding: 76px clamp(16px, 4vw, 34px) 24px;
    }

    .hero-photo-main {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    .hero-photo-food {
        grid-column: 1;
    }

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

    .story-media,
    .story-media img {
        min-height: 390px;
    }

    .join-details {
        max-width: 720px;
    }

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

@media (max-width: 760px) {
    .site-header {
        height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 74px;
        left: clamp(14px, 5vw, 72px);
        right: clamp(14px, 5vw, 72px);
        display: grid;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(9, 10, 12, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-14px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

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

    .main-nav a {
        padding: 13px 12px;
    }

    .hero {
        min-height: 90svh;
        padding: 106px 18px 44px;
    }

    .hero-media {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        gap: 0;
        padding: 66px 10px 16px;
        opacity: 0.78;
        transform: none;
    }

    .hero-photo-main {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-photo-shop,
    .hero-photo-shadow,
    .hero-photo-heist,
    .hero-photo-food {
        display: none;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(7, 8, 10, 0.92), rgba(7, 8, 10, 0.68)),
            linear-gradient(180deg, rgba(7, 8, 10, 0.08), rgba(7, 8, 10, 0.94));
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .flow-grid,
    .summary-table div,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .flow-card {
        min-height: auto;
    }

    .story-media,
    .story-media img {
        min-height: 320px;
    }

    .connect-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 0;
    }

    .connect-row .copy-button,
    .connect-row .inline-link {
        justify-self: start;
    }

    .footer-inner {
        padding: 28px 0;
    }

    .footer-brand {
        align-items: flex-start;
    }
}

@media (max-width: 430px) {
    .brand small {
        display: none;
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 31px;
    }

    .hero-proof span {
        font-size: 11px;
    }
}
