:root {
    --bg: #06070a;
    --bg2: #0b0d12;
    --ink: #eef2ff;
    --muted: #a9b2c8;

    --copper: #b87333;
    --silver: #d7dde8;
    --gold: #d4af37;

    --line: rgba(215, 221, 232, 0.14);
    --line2: rgba(215, 221, 232, 0.08);
    --glass: rgba(8, 10, 14, 0.72);

    --deco: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", "Garamond", serif;
    --body: "Cormorant Garamond", "Georgia", "Times New Roman", serif;

    --max: 1320px;
    --radius: 28px;
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.28);
    --shadow-panel: 0 20px 60px rgba(0, 0, 0, 0.24);
    --fast: 0.22s ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--ink);
    font: 18px/1.5 var(--body);
    overflow-x: hidden;
    background:
        radial-gradient(900px 700px at 18% 10%, rgba(184, 115, 51, 0.12), transparent 62%),
        radial-gradient(900px 700px at 80% 14%, rgba(212, 175, 55, 0.10), transparent 64%),
        radial-gradient(1000px 800px at 60% 88%, rgba(215, 221, 232, 0.08), transparent 64%),
        linear-gradient(180deg, #07080c 0%, var(--bg) 100%);
}

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

.site {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.site::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.012) 0 1px,
            transparent 1px 120px);
}

.wrap {
    position: relative;
    z-index: 5;
    max-width: var(--max);
    margin: 0 auto;
    padding: 26px 22px 70px;
}

/* shared surfaces */

.brand-mark,
.hero-panel,
.review-strip,
.side-caption,
.signal,
.fact,
.btn,
nav a,
.quick-links a,
.utility-links a {
    border: 1px solid var(--line2);
}

.hero-panel,
.review-strip,
.side-caption,
.signal {
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.hero-panel,
.review-strip,
.utility-links,
.cta-row,
.hero-bottom,
.eyebrow,
.headline-line {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.9s ease forwards;
}

/* header */

header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    border-color: var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.brand-mark img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

.brand-copy {
    padding-top: 2px;
}

.brand-name {
    margin: 0;
    font: 700 24px/1 var(--deco);
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.brand-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* nav and links */

nav,
.quick-links,
.utility-links,
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

nav {
    gap: 10px;
    justify-content: flex-end;
    max-width: 860px;
}

nav a,
.quick-links a,
.utility-links a,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition:
        transform var(--fast),
        border-color var(--fast),
        background var(--fast),
        box-shadow var(--fast),
        color var(--fast);
}

nav a,
.quick-links a,
.utility-links a {
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font: 700 11px/1 var(--deco);
    letter-spacing: 0.12em;
    white-space: nowrap;
}

nav a {
    position: relative;
    overflow: hidden;
    min-height: 36px;
    padding: 9px 13px;
    font-size: 12px;
}

nav a:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.28),
        0 0 10px rgba(212, 175, 55, 0.20);
}

nav a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 90%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.16) 45%,
            rgba(255, 255, 255, 0.28) 50%,
            transparent 100%);
    transition: transform 0.55s ease;
}

nav a:hover::after {
    transform: translateX(260%);
}

.quick-links {
    margin-top: 14px;
}

.utility-links {
    margin-top: 16px;
    animation-delay: 1s;
}

.quick-links a:hover,
.utility-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.55);
    color: var(--gold);
}

/* decorative rails */

.word-rail {
    position: absolute;
    left: -10%;
    z-index: 2;
    width: 120%;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.10;
    color: var(--silver);
    font-family: var(--deco);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.rail-1 {
    top: 160px;
    font-size: 30px;
    animation: driftLeft 42s linear infinite;
}

.rail-2 {
    top: 360px;
    font-size: 20px;
    opacity: 0.08;
    animation: driftRight 55s linear infinite;
}

.rail-3 {
    bottom: 580px;
    font-size: 24px;
    opacity: 0.07;
    animation: driftLeft 62s linear infinite;
}

/* hero */

.hero-token {
    position: absolute;
    right: 30px;
    top: 300px;
    z-index: 1;
    width: min(512px, 62vw);
    opacity: 0.24;
    pointer-events: none;
    transform: rotate(-9deg);
    animation: tokenFloat 9s ease-in-out infinite;
    will-change: transform;
}

.hero-token img {
    width: 100%;
    height: auto;
    display: block;
}

.hero {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
    column-gap: 28px;
    row-gap: 18px;
    min-height: auto;
    padding-top: 18px;
}

.hero-copy {
    position: relative;
    z-index: 12;
    max-width: 790px;
    padding: 36px 0 24px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font: 700 13px/1 var(--deco);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transform: translateY(14px);
    animation-delay: 0.1s;
}

.headline {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.headline-line {
    display: block;
    font: 700 clamp(42px, 7.3vw, 96px)/0.95 var(--deco);
    letter-spacing: 0.01em;
    transform: translateY(22px);
}

.headline-line:nth-child(1) {
    animation-delay: 0.18s;
}

.headline-line:nth-child(2) {
    animation-delay: 0.34s;
}

.headline-line:nth-child(3) {
    animation-delay: 0.50s;
}

.headline-line:nth-child(4) {
    animation-delay: 0.66s;
}

.headline-line.metal {
    color: transparent;
    background: linear-gradient(90deg, #fff0cf 0%, var(--silver) 34%, var(--gold) 68%, #fff2be 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 1px rgba(255, 240, 207, 0.35),
        0 0 8px rgba(212, 175, 55, 0.28),
        0 0 16px rgba(212, 175, 55, 0.18);
    animation:
        rise 1s ease forwards,
        metalPulse 2.2s ease-in-out infinite 1.2s;
}

/* panels */

.hero-panel {
    position: relative;
    overflow: hidden;
    max-width: 670px;
    margin-top: 24px;
    padding: 22px 22px 18px;
    border-radius: 24px;
    border-color: var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(7, 9, 13, 0.34);
    box-shadow: var(--shadow-panel);
    animation-delay: 0.62s;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 20%,
            transparent 42%);
    animation: panelShine 3.8s ease 1.5s infinite;
}

.hero-panel p {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.34;
}

.hero-panel .muted {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.45;
}

.cigo-outlier-wrap {
    padding-top: 8px;
    padding-bottom: 18px;
}

.cigo-outlier {
    max-width: 620px;
    margin: 0 0 0 auto;
    border-left: 3px solid rgba(212, 175, 55, 0.45);
}

.cigo-outlier p {
    font-size: 19px;
    line-height: 1.55;
}

.cigo-outlier strong {
    color: #fff6d9;
}

.anchor-line {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line2);
    color: #fff6d9;
    font-size: 17px;
    letter-spacing: 0.04em;
}

.review-strip {
    max-width: 760px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: var(--glass);
    animation-delay: 0.78s;
}

.review-title {
    margin: 0 0 12px;
    color: var(--gold);
    font: 700 13px/1 var(--deco);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

.fact {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.fact-wide {
    grid-column: 1 / -1;
}

.fact-label {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font: 700 11px/1 var(--deco);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fact-value {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
    word-break: break-word;
}

.fact-value code {
    color: #fff6d9;
    font: 14px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fact-value a:hover {
    color: var(--gold);
}

.disclosure {
    margin: 12px 2px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

/* buttons */

.cta-row {
    margin-top: 24px;
    animation-delay: 0.9s;
}

.btn {
    min-width: 178px;
    padding: 13px 18px;
    border-radius: 16px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    font: 700 13px/1 var(--deco);
    letter-spacing: 0.14em;
}

.btn:hover {
    transform: translateY(1px);
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.28);
}

.btn.primary {
    background: linear-gradient(90deg,
            rgba(184, 115, 51, 0.22),
            rgba(215, 221, 232, 0.16),
            rgba(212, 175, 55, 0.16));
}

/* side and bottom */

.hero-side {
    position: relative;
    min-height: 0;
    align-self: start;
    padding-top: 36px;
}

.side-caption {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 8;
    width: min(340px, 100%);
    margin: 20px 0 0 auto;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(8, 10, 14, 0.26);
    color: var(--muted);
    font-size: 17px;
    line-height: 1.42;
}

.side-caption strong {
    display: block;
    margin-bottom: 20px;
    color: var(--ink);
    font-family: var(--deco);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-bottom {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
    animation: rise 1s ease 1.08s forwards;
}

.signal {
    padding: 16px 16px 15px;
    border-radius: 20px;
    background: var(--glass);
}

.signal h3 {
    margin: 0 0 7px;
    color: var(--gold);
    font: 700 13px/1.2 var(--deco);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.signal p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.4;
}

/* footer */

.site-footer-basic {
    margin-top: 40px;
    padding: 24px 16px;
    text-align: center;
    color: var(--muted);
}

.footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.footer-info {
    text-align: center;
    line-height: 1.7;
}

.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* animations */

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes driftLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(18%);
    }
}

@keyframes driftRight {
    from {
        transform: translateX(18%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes tokenFloat {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    50% {
        transform: rotate(-6deg) translateY(12px);
    }
}

@keyframes metalPulse {

    0%,
    100% {
        filter: brightness(1);
        text-shadow:
            0 0 1px rgba(255, 240, 207, 0.35),
            0 0 8px rgba(212, 175, 55, 0.28),
            0 0 16px rgba(212, 175, 55, 0.18);
    }

    50% {
        filter: brightness(1.18);
        text-shadow:
            0 0 2px rgba(255, 248, 220, 0.55),
            0 0 14px rgba(255, 215, 0, 0.42),
            0 0 28px rgba(212, 175, 55, 0.30);
    }
}

@keyframes panelShine {
    from {
        transform: translateX(120%);
    }

    to {
        transform: translateX(140%);
    }
}

/* responsive */

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .hero-copy {
        padding: 34px 0 16px;
    }

    .hero-side {
        min-height: 0;
        padding-top: 0;
    }

    .hero-token {
        right: -40px;
        top: 300px;
        width: min(512px, 88vw);
        opacity: 0.17;
    }

    .side-caption {
        width: 100%;
        margin: 20px 0 0;
    }

    .hero-bottom {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }
}

@media (max-width: 700px) {
    .wrap {
        padding: 18px 14px 50px;
    }

    .brand-mark {
        width: 54px;
        height: 54px;
    }

    .brand-name {
        font-size: 18px;
        letter-spacing: 0.22em;
    }

    nav a {
        padding: 8px 10px;
        font-size: 11px;
    }

    .hero-copy {
        padding: 42px 0 20px;
    }

    .hero-panel p {
        font-size: 21px;
    }

    .hero-panel .muted {
        font-size: 18px;
    }

    .hero-token {
        right: -50px;
        top: 170px;
        width: 96vw;
        opacity: 0.14;
    }

    .word-rail {
        display: none;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .cta-row .btn,
    .quick-links a,
    .utility-links a {
        width: 100%;
    }
}