:root {
    --carbon: #0b0b0b;
    --carbon-2: #111111;
    --smoke: #383838;
    --gold: #d8a72e;
    --electric: #f5c400;
    --white: #f2f2f2;
    --muted: #b8b8b8;
    --line: rgba(216, 167, 46, 0.35);
    --panel: rgba(12, 12, 12, 0.78);
    --panel-solid: #121212;
    --font-impact: "Bebas Neue", Impact, sans-serif;
    --font-brush: "Permanent Marker", "Comic Sans MS", cursive;
    --font-body: "Inter", Arial, sans-serif;
    --shadow-gold: 0 0 34px rgba(245, 196, 0, 0.22);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--carbon);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(circle at 20% 12%, rgba(216, 167, 46, 0.2), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 30rem),
        linear-gradient(135deg, #050505 0%, #121212 48%, #050505 100%);
}

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

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

.page-shell {
    width: 100%;
    max-width: 1440px;
    padding-left: clamp(18px, 4vw, 64px);
    padding-right: clamp(18px, 4vw, 64px);
}

.page-noise,
.ember-layer {
    pointer-events: none;
    position: fixed;
    inset: 0;
}

.page-noise {
    z-index: 50;
    opacity: 0.18;
    mix-blend-mode: soft-light;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 5px 5px, 7px 7px;
}

.ember-layer {
    z-index: -1;
    background:
        radial-gradient(circle at 12% 88%, rgba(245, 196, 0, 0.22) 0 2px, transparent 4px),
        radial-gradient(circle at 76% 72%, rgba(216, 167, 46, 0.2) 0 2px, transparent 5px),
        radial-gradient(circle at 88% 36%, rgba(242, 242, 242, 0.12) 0 1px, transparent 4px);
    background-size: 260px 260px, 340px 340px, 220px 220px;
    animation: emberFloat 18s linear infinite;
}

@keyframes emberFloat {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-70px, -110px, 0); }
}

.npng-navbar {
    padding: 18px 0;
    background: linear-gradient(180deg, rgba(4, 4, 4, 0.9), rgba(4, 4, 4, 0.32), transparent);
    transition: background 220ms ease, padding 220ms ease, border-color 220ms ease;
    border-bottom: 1px solid transparent;
}

.npng-navbar .page-shell {
    display: flex;
    align-items: center;
    gap: 22px;
}

.npng-navbar .navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.npng-navbar.nav-scrolled {
    padding: 10px 0;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(216, 167, 46, 0.22);
}

.navbar-toggler {
    border-color: rgba(216, 167, 46, 0.45);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.16rem rgba(245, 196, 0, 0.25);
}

.navbar-toggler-icon {
    filter: invert(1);
}

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

.brand-mark {
    font-family: var(--font-impact);
    font-size: 2rem;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.brand-line {
    font-family: var(--font-brush);
    color: var(--gold);
    font-size: 1rem;
}

.nav-link {
    color: rgba(242, 242, 242, 0.78);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--electric);
}

.btn {
    border-radius: var(--radius);
    font-weight: 900;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
}

.btn-gold {
    color: #080808;
    border: 1px solid rgba(245, 196, 0, 0.82);
    background: linear-gradient(135deg, var(--electric), var(--gold));
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover,
.btn-gold:focus {
    color: #050505;
    border-color: var(--white);
    transform: translateY(-1px);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.58;
    pointer-events: none;
    filter: grayscale(0.35);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(242, 242, 242, 0.24);
    background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--electric);
    border-color: var(--line);
}

.section-pad {
    padding: clamp(76px, 10vw, 148px) 0;
}

.section-code,
.mono-chip {
    margin: 0 0 14px;
    color: var(--electric);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.section-title {
    margin: 0;
    font-family: var(--font-impact);
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.86;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}

.section-title span,
.hero-copy h1 span {
    color: var(--gold);
    font-family: var(--font-brush);
    text-transform: none;
}

.section-lead {
    color: rgba(242, 242, 242, 0.78);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
    margin: 0;
}

.hero-section {
    position: relative;
    min-height: 94vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 128px 0 90px;
    isolation: isolate;
}

.hero-image,
.hero-stadium {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero-image {
    background:
        linear-gradient(90deg, rgba(6, 6, 6, 0.94) 0%, rgba(6, 6, 6, 0.78) 38%, rgba(6, 6, 6, 0.12) 68%, rgba(6, 6, 6, 0.72) 100%),
        url("../img/brandbook-01.jpeg") center right / cover no-repeat;
    transform: scale(1.02);
}

.hero-stadium {
    z-index: -2;
    background:
        linear-gradient(120deg, transparent 0 45%, rgba(216, 167, 46, 0.16) 45% 46%, transparent 46% 100%),
        radial-gradient(circle at 50% 100%, rgba(245, 196, 0, 0.22), transparent 32rem);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .row {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.62fr);
    align-items: center;
    gap: clamp(28px, 4vw, 58px);
}

.hero-section .row > [class*="col-"] {
    width: auto;
    min-width: 0;
    max-width: none;
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--font-impact);
    font-size: clamp(5.6rem, 11vw, 10.8rem);
    line-height: 0.82;
    text-transform: uppercase;
    color: var(--white);
    max-width: 780px;
}

.hero-lead {
    max-width: 620px;
    color: rgba(242, 242, 242, 0.84);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.5;
    margin: 26px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.contract-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 720px;
    margin-top: 34px;
    border: 1px solid rgba(216, 167, 46, 0.22);
    background: rgba(216, 167, 46, 0.14);
}

.contract-strip > div {
    padding: 14px 16px;
    background: rgba(5, 5, 5, 0.72);
}

.contract-strip span,
.address-box span,
.price-stamp span,
.price-stamp small,
.quote-row span,
.total-display span,
.chant-box span {
    color: rgba(242, 242, 242, 0.58);
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contract-strip strong,
.contract-strip button {
    color: var(--white);
    font-weight: 900;
}

.copy-inline {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--white);
    font: inherit;
    overflow-wrap: anywhere;
    text-align: left;
}

.copy-inline:hover,
.copy-inline:focus {
    color: var(--electric);
}

.buy-card,
.terminal-buy-panel,
.manifesto-panel,
.how-card,
.chant-box {
    border: 1px solid rgba(216, 167, 46, 0.28);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 34%),
        rgba(10, 10, 10, 0.76);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.hero-buy-card {
    max-width: 460px;
    margin-left: auto;
    transform: translateY(18px);
}

.buy-card {
    padding: 26px;
    border-radius: var(--radius);
}

.buy-card-top,
.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.card-number {
    color: var(--electric);
    font-family: var(--font-impact);
    font-size: 3.2rem;
    line-height: 0.8;
}

.buy-card h2,
.panel-header h3,
.manifesto-panel h3,
.how-card h3 {
    font-family: var(--font-impact);
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
    font-size: 2.1rem;
}

.buy-card p,
.manifesto-panel p,
.how-card p {
    color: rgba(242, 242, 242, 0.7);
    line-height: 1.55;
    margin: 8px 0 0;
}

.price-stamp {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2px 12px;
    border-top: 1px solid rgba(216, 167, 46, 0.22);
    border-bottom: 1px solid rgba(216, 167, 46, 0.22);
    padding: 18px 0;
    margin-bottom: 18px;
}

.price-stamp strong {
    grid-row: 1 / span 2;
    color: var(--electric);
    font-size: 2rem;
    font-family: var(--font-impact);
}

.form-label {
    color: rgba(242, 242, 242, 0.78);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.amount-control {
    display: flex;
    align-items: center;
    border: 1px solid rgba(242, 242, 242, 0.16);
    background: rgba(0, 0, 0, 0.38);
    border-radius: var(--radius);
    overflow: hidden;
}

.amount-control .form-control {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 56px;
    border: 0;
    background: transparent;
    color: var(--white);
    font-weight: 900;
    font-size: 1.2rem;
}

.amount-control .form-control:focus {
    box-shadow: none;
}

.amount-control span {
    flex: 0 0 auto;
    color: var(--gold);
    font-weight: 900;
    padding-left: 12px;
    padding-right: 16px;
}

.quote-row,
.total-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 16px 0;
}

.quote-row strong,
.total-display strong {
    color: var(--white);
    font-size: 1.15rem;
}

.sale-warning {
    min-height: 24px;
    margin-top: 12px;
    color: #ffd972;
    font-size: 0.9rem;
}

.next-signal {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.next-signal span {
    width: 42px;
    height: 6px;
    background: var(--gold);
    transform: skewX(-28deg);
    opacity: 0.72;
}

.movement-section {
    position: relative;
    background:
        linear-gradient(180deg, rgba(11, 11, 11, 0.2), rgba(11, 11, 11, 0.95)),
        url("../img/brandbook-02.jpeg") center / cover fixed;
}

.movement-section::before,
.buy-section::before,
.community-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.78);
    pointer-events: none;
}

.movement-section > *,
.buy-section > *,
.community-section > * {
    position: relative;
    z-index: 1;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.manifesto-panel {
    min-height: 240px;
    padding: 26px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.manifesto-panel::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(216, 167, 46, 0.16);
    transform: rotate(18deg);
}

.manifesto-panel i {
    color: var(--electric);
    font-size: 2rem;
    margin-bottom: 18px;
}

.panel-large {
    grid-column: span 2;
}

.brush-line {
    color: var(--gold) !important;
    font-family: var(--font-brush);
    font-size: 2.3rem;
    line-height: 1.1 !important;
}

.phoenix-section {
    background:
        linear-gradient(90deg, rgba(11, 11, 11, 0.96), rgba(11, 11, 11, 0.62)),
        radial-gradient(circle at 78% 32%, rgba(216, 167, 46, 0.18), transparent 34rem);
}

.phoenix-frame {
    border: 1px solid rgba(216, 167, 46, 0.38);
    border-radius: var(--radius);
    overflow: hidden;
    transform: rotate(-1.2deg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
}

.phoenix-frame img {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
}

.trait-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.trait-list div {
    min-height: 110px;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 1px solid rgba(216, 167, 46, 0.24);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    text-align: center;
}

.trait-list i {
    color: var(--electric);
    font-size: 1.8rem;
}

.trait-list span {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.buy-section {
    position: relative;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.94)),
        url("../img/brandbook-04.jpeg") center / cover;
}

.address-stack {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.address-box {
    padding: 16px;
    border-left: 4px solid var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.address-box button {
    max-width: 100%;
    font-size: 0.92rem;
    color: var(--white);
}

.terminal-buy-panel {
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 34px);
}

.panel-header {
    align-items: center;
    border-bottom: 1px solid rgba(216, 167, 46, 0.25);
    padding-bottom: 18px;
}

.panel-header > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-status {
    border: 1px solid rgba(242, 242, 242, 0.14);
    background: rgba(0, 0, 0, 0.34);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: rgba(242, 242, 242, 0.72);
    margin-bottom: 20px;
}

.total-display {
    min-height: 56px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid rgba(242, 242, 242, 0.16);
    background: rgba(0, 0, 0, 0.38);
    border-radius: var(--radius);
    padding: 8px 16px;
    margin: 0;
}

.total-display strong {
    color: var(--electric);
}

.buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 10px;
    border: 1px solid rgba(242, 242, 242, 0.12);
    color: rgba(242, 242, 242, 0.62);
    border-radius: var(--radius);
    font-size: 0.84rem;
}

.step-item i {
    color: rgba(242, 242, 242, 0.38);
}

.step-item.active,
.step-item.done {
    border-color: rgba(245, 196, 0, 0.58);
    color: var(--white);
    background: rgba(245, 196, 0, 0.08);
}

.step-item.done i {
    color: var(--electric);
}

.how-section {
    background: #080808;
}

.how-card {
    height: 100%;
    min-height: 260px;
    padding: 28px;
    border-radius: var(--radius);
}

.how-card span {
    color: var(--gold);
    font-family: var(--font-impact);
    font-size: 4rem;
    line-height: 1;
}

.community-section {
    position: relative;
    background:
        linear-gradient(180deg, rgba(8, 8, 8, 0.82), rgba(8, 8, 8, 0.95)),
        url("../img/brandbook-07.jpeg") center / cover fixed;
}

.chant-box {
    padding: 24px;
    margin-top: 28px;
    border-radius: var(--radius);
}

.chant-box strong {
    display: block;
    color: var(--gold);
    font-family: var(--font-brush);
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-top: 6px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 16px;
}

.gallery-grid img,
.brandbook-tiles img {
    border: 1px solid rgba(216, 167, 46, 0.28);
    border-radius: var(--radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.05);
}

.gallery-grid img:first-child {
    grid-row: span 2;
    min-height: 560px;
}

.brandbook-section {
    background:
        linear-gradient(180deg, rgba(11, 11, 11, 0.96), rgba(6, 6, 6, 1)),
        radial-gradient(circle at 20% 20%, rgba(216, 167, 46, 0.14), transparent 24rem);
}

.brandbook-wall {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 38px;
    align-items: start;
}

.brandbook-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.brandbook-tiles img {
    aspect-ratio: 4 / 5;
}

.site-footer {
    padding: 42px 0;
    background: #050505;
    border-top: 1px solid rgba(216, 167, 46, 0.22);
}

.footer-logo {
    font-family: var(--font-impact);
    font-size: 4rem;
    line-height: 0.9;
}

.site-footer p {
    color: rgba(242, 242, 242, 0.66);
    margin: 0;
}

.footer-note {
    font-size: 0.92rem;
    line-height: 1.55;
}

.npng-toast {
    background: rgba(8, 8, 8, 0.94);
    color: var(--white);
    border: 1px solid rgba(245, 196, 0, 0.32);
    backdrop-filter: blur(12px);
}

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

.reveal-ready .section-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

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

@media (max-width: 1199px) {
    .hero-buy-card {
        margin-left: 0;
        transform: none;
    }

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

    .brandbook-wall {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .npng-navbar {
        background: rgba(8, 8, 8, 0.94);
        border-bottom: 1px solid rgba(216, 167, 46, 0.22);
    }

    .navbar-collapse {
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .npng-navbar .navbar-collapse {
        display: none;
        flex-basis: 100%;
    }

    .npng-navbar .navbar-collapse.show {
        display: flex;
    }

    .navbar-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hero-section {
        padding-top: 112px;
        min-height: auto;
    }

    .hero-section .row {
        grid-template-columns: 1fr;
    }

    .hero-image {
        background:
            linear-gradient(180deg, rgba(6, 6, 6, 0.9) 0%, rgba(6, 6, 6, 0.72) 42%, rgba(6, 6, 6, 0.94) 100%),
            url("../img/brandbook-01.jpeg") center top / cover no-repeat;
    }

    .contract-strip,
    .trait-list,
    .gallery-grid,
    .brandbook-tiles {
        grid-template-columns: 1fr;
    }

    .gallery-grid img:first-child {
        grid-row: auto;
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .brand-lockup {
        gap: 8px;
    }

    .brand-line {
        display: none;
    }

    .hero-copy h1 {
        font-size: 5.4rem;
    }

    .section-title {
        font-size: 4.2rem;
    }

    .manifesto-grid,
    .step-list {
        grid-template-columns: 1fr;
    }

    .panel-large {
        grid-column: auto;
    }

    .contract-strip {
        gap: 0;
    }

    .hero-actions,
    .buy-actions {
        flex-direction: column;
    }

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

    .buy-card-top,
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section .row,
    .hero-section .row > [class*="col-"],
    .hero-buy-card,
    .buy-card {
        min-width: 0;
        width: 100%;
        max-width: calc(100vw - 40px);
    }

    .hero-actions,
    .contract-strip,
    .amount-control,
    .quote-row,
    .price-stamp {
        min-width: 0;
        max-width: 100%;
    }

    .buy-card p,
    .quote-row,
    .total-display,
    .sale-warning {
        overflow-wrap: anywhere;
    }

    .quote-row {
        flex-wrap: wrap;
    }

    .buy-card h2,
    .panel-header h3,
    .manifesto-panel h3,
    .how-card h3 {
        font-size: 1.85rem;
        line-height: 1;
    }

    .price-stamp {
        grid-template-columns: 1fr;
    }

    .price-stamp strong {
        grid-row: auto;
    }
}

@media (max-width: 430px) {
    .hero-copy h1 {
        font-size: 5.1rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .buy-card,
    .terminal-buy-panel,
    .manifesto-panel,
    .how-card,
    .chant-box {
        padding: 20px;
    }
}
