:root {
    color-scheme: light;
    --ink: #17231f;
    --muted: #5f6a64;
    --line: #d9ded6;
    --field: #2f6f52;
    --field-deep: #12372f;
    --gold: #c49a4a;
    --clay: #8a6045;
    --cream: #f7f1e5;
    --paper: #ffffff;
    --soft: #eef3ed;
    --shadow: 0 18px 50px rgba(23, 35, 31, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
}

a {
    color: inherit;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .95em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(23, 35, 31, .12);
    background: rgba(247, 241, 229, .94);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: var(--muted);
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-form {
    margin: 0;
}

.nav-form button {
    border: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.nav-form button:hover {
    color: var(--ink);
}

.menu-button {
    display: none;
    min-height: 40px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
    font-weight: 750;
}

.hero {
    color: white;
    background:
        linear-gradient(105deg, rgba(18, 55, 47, .98), rgba(47, 111, 82, .88)),
        linear-gradient(180deg, #315744, #17231f);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 220px;
    background:
        repeating-linear-gradient(104deg, rgba(240, 220, 173, .25) 0 2px, transparent 2px 42px),
        linear-gradient(180deg, transparent, rgba(16, 32, 27, .72));
}

.hero-inner {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    min-height: 650px;
    padding: 70px 0 100px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
    gap: 58px;
    align-items: center;
    position: relative;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(44px, 7vw, 82px);
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
}

h3 {
    font-size: 20px;
}

p {
    margin: 0;
}

.lead {
    max-width: 690px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .86);
    font-size: 20px;
}

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

.actions {
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.button.primary {
    background: #f1c86d;
    color: #1e261f;
}

.button.secondary {
    border-color: rgba(255, 255, 255, .5);
    color: white;
}

.button.secondary.dark {
    border-color: rgba(255, 255, 255, .3);
}

.button.compact {
    min-height: 40px;
    padding: 0 14px;
    background: var(--field-deep);
    color: white;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 34px 0 0;
}

.hero-metrics div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.hero-metrics dt {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-metrics dd {
    margin: 4px 0 0;
    font-weight: 850;
}

.network-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .11);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}

.network-mark {
    display: block;
    width: min(230px, 78%);
    height: auto;
    margin: 0 auto 22px;
    border-radius: 50%;
}

.panel-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 800;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8bd27a;
    box-shadow: 0 0 0 5px rgba(139, 210, 122, .16);
}

.network-panel h2 {
    font-size: 28px;
}

.network-panel p {
    margin-top: 14px;
    color: rgba(255, 255, 255, .78);
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
}

.check-list li {
    position: relative;
    padding-left: 24px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .52em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
}

.section {
    padding: 82px 22px;
}

.section.alt {
    background: var(--paper);
}

.section.closing {
    background: var(--field-deep);
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head.wide {
    max-width: 920px;
}

.section-head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
    gap: 54px;
    align-items: start;
}

.path-grid,
.command-grid,
.readiness-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

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

.path-card,
.command-card,
.note-panel,
.readiness-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 24px;
    box-shadow: 0 1px 0 rgba(23, 35, 31, .04);
}

.path-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.readiness-card {
    position: relative;
    overflow: hidden;
}

.readiness-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--field);
}

.readiness-card.progress::before {
    background: var(--gold);
}

.readiness-card span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 0 10px;
    color: #fff;
    background: var(--field);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.readiness-card.progress span {
    color: #2c2414;
    background: #f1c86d;
}

.path-card p,
.note-panel p,
.readiness-card p,
.trust-list span,
.timeline-item p {
    color: var(--muted);
}

.path-card p,
.note-panel p,
.readiness-card p {
    margin-top: 12px;
}

.evidence-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.evidence-strip a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--field-deep);
    background: var(--paper);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.evidence-strip a:hover {
    border-color: var(--field);
}

.trust-list {
    display: grid;
    gap: 14px;
}

.trust-list article {
    display: grid;
    gap: 6px;
    padding: 20px;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 1px 0 rgba(23, 35, 31, .04);
}

.trust-list strong {
    font-size: 18px;
}

.text-link {
    display: inline-flex;
    margin-top: 22px;
    color: var(--field);
    font-weight: 850;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.spec-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.spec-table th,
.spec-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    width: 30%;
    color: var(--field-deep);
    background: var(--soft);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: 0;
}

.note-panel {
    background: #fbf8ef;
}

.note-panel .button {
    margin-top: 18px;
}

.command-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.command-head span {
    color: var(--clay);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.code-block {
    overflow: auto;
    border-radius: 8px;
    margin: 0;
    padding: 18px;
    color: #e8f4ed;
    background: #10241f;
    font-size: 13px;
}

.code-block code {
    white-space: pre;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border-left: 4px solid var(--gold);
    background: var(--paper);
    border-radius: 8px;
}

.timeline-item.current {
    border-left-color: var(--field);
}

.timeline-item strong {
    color: var(--field-deep);
}

.timeline-item h3 {
    margin-bottom: 8px;
}

.callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    color: white;
}

.callout p:not(.eyebrow) {
    margin-top: 14px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.site-footer {
    padding: 34px 22px;
    color: rgba(255, 255, 255, .75);
    background: #0f211d;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner a {
    color: white;
}

.page-hero {
    padding: 92px 22px;
    color: white;
    background:
        linear-gradient(110deg, rgba(18, 55, 47, .98), rgba(47, 111, 82, .84)),
        #12372f;
}

.page-hero .section-inner {
    max-width: 980px;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .82);
    font-size: 19px;
}

.compact-page-hero {
    padding: 64px 22px;
}

.compact-page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.wallet-hero {
    padding-bottom: 76px;
}

.explorer-hero {
    background:
        linear-gradient(112deg, rgba(18, 55, 47, .98), rgba(20, 65, 71, .9)),
        #12372f;
}

.auth-shell,
.wallet-shell,
.explorer-shell {
    width: min(100%, 980px);
    margin: 0 auto;
}

.wallet-shell,
.explorer-shell {
    width: min(100%, 1180px);
}

.form-panel,
.wallet-panel,
.explorer-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 1px 0 rgba(23, 35, 31, .04);
}

.form-panel {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px;
}

.form-panel h2,
.wallet-panel h2 {
    font-size: 30px;
}

.form-panel label,
.wallet-form label {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    font-weight: 800;
}

.form-panel input,
.wallet-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.form-panel input:focus,
.wallet-form input:focus {
    outline: 3px solid rgba(47, 111, 82, .16);
    border-color: var(--field);
}

.checkbox-line {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700 !important;
}

.checkbox-line input {
    width: 18px;
    min-height: 18px;
}

.form-button {
    width: 100%;
    margin-top: 22px;
    border: 0;
    cursor: pointer;
}

.form-footnote,
.form-hint,
.wallet-copy {
    color: var(--muted);
}

.form-footnote {
    margin-top: 18px;
    text-align: center;
}

.form-footnote a {
    color: var(--field);
    font-weight: 850;
}

.form-hint {
    margin-top: 10px;
    font-size: 14px;
}

.alert {
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 750;
}

.alert.warning {
    border: 1px solid #e6cf8f;
    color: #55401d;
    background: #fff7df;
}

.alert.danger {
    border: 1px solid #e6aaa4;
    color: #6d2018;
    background: #fff0ee;
}

.alert.success {
    border: 1px solid #a9d2b2;
    color: #1f5c34;
    background: #edf9f0;
}

.wallet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 18px;
}

.wallet-grid.lower {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
    margin-top: 18px;
}

.wallet-panel {
    padding: 24px;
}

.wallet-primary {
    min-height: 260px;
}

.wallet-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.network-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    color: white;
    background: var(--field-deep);
    font-size: 12px;
    font-weight: 900;
}

.address-box {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--soft);
}

.address-box span,
.balance-stack span,
.transaction-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.address-box code {
    overflow-wrap: anywhere;
    color: var(--field-deep);
    font-size: 17px;
    font-weight: 850;
}

.balance-stack {
    display: grid;
    gap: 14px;
}

.mini-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mini-balance-grid div {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.mini-balance-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.mini-balance-grid strong {
    overflow-wrap: anywhere;
}

.balance-stack div {
    display: grid;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.balance-stack div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.balance-stack strong {
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1;
}

.wallet-form {
    display: grid;
    gap: 2px;
}

.transaction-list {
    display: grid;
    gap: 10px;
}

.transaction-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.transaction-list article:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.transaction-list article div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.transaction-list article div:last-child {
    text-align: right;
}

.transaction-list span {
    overflow-wrap: anywhere;
}

.wallet-full-panel {
    margin-top: 18px;
}

.explorer-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--paper);
}

.explorer-search label {
    display: grid;
    gap: 8px;
    color: var(--field-deep);
    font-weight: 850;
}

.explorer-search input {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
}

.explorer-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.explorer-metrics article,
.detail-grid div {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--paper);
}

.explorer-metrics span,
.detail-grid span,
.hash-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.explorer-metrics strong {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1;
}

.explorer-panel {
    padding: 24px;
}

.explorer-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.data-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--field-deep);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.data-table td {
    color: var(--muted);
}

.data-table a {
    color: var(--field);
    font-weight: 850;
    text-decoration: none;
}

.data-table code,
.hash-list code,
.long-link {
    overflow-wrap: anywhere;
}

.data-table code {
    color: var(--ink);
    font-size: 12px;
}

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

.detail-grid strong {
    overflow-wrap: anywhere;
}

.hash-list {
    display: grid;
    gap: 14px;
}

.hash-list div {
    display: grid;
    gap: 6px;
}

.hash-list a {
    color: var(--field);
}

.receive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
}

.receive-grid .address-box {
    margin-top: 16px;
}

.qr-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.qr-card img {
    width: min(100%, 240px);
    aspect-ratio: 1;
    display: block;
}

.qr-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 940px) {
    .hero-inner,
    .split,
    .spec-layout,
    .callout {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 58px;
    }

    .path-grid,
    .command-grid,
    .readiness-grid,
    .wallet-grid,
    .wallet-grid.lower,
    .explorer-metrics,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .explorer-search {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .menu-button {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 66px;
        left: 16px;
        right: 16px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

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

    .section {
        padding: 62px 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .spec-table th,
    .spec-table td {
        display: block;
        width: 100%;
    }

    .footer-inner {
        display: grid;
    }

    .form-panel,
    .wallet-panel,
    .explorer-panel {
        padding: 20px;
    }

    .wallet-panel-head,
    .explorer-panel-head,
    .transaction-list article,
    .mini-balance-grid,
    .receive-grid {
        grid-template-columns: 1fr;
    }

    .qr-card {
        justify-items: stretch;
    }

    .qr-card img {
        margin: 0 auto;
    }

    .wallet-panel-head {
        display: grid;
    }

    .transaction-list article div:last-child {
        text-align: left;
    }
}
