:root {
    --bg: #101214;
    --surface: #181b1f;
    --surface-strong: #20252a;
    --line: #343b43;
    --text: #f4f7fb;
    --muted: #aeb8c3;
    --accent: #f7931a;
    --accent-strong: #ffb14a;
    --teal: #38d6c2;
    --green: #86efac;
    --danger: #fb7185;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

.screen-reader-text {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 15% 0%, rgba(247, 147, 26, 0.16), transparent 32rem),
        linear-gradient(180deg, #101214 0%, #15181b 55%, #101214 100%);
    color: var(--text);
}

a {
    color: inherit;
}

.site-header,
.quick-nav,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 12px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #17120a;
    font-weight: 900;
}

.data-state {
    color: var(--muted);
    font-size: 0.9rem;
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 4px 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.quick-nav a {
    color: inherit;
    text-decoration: none;
}

.quick-nav a:hover,
.quick-nav a:focus-visible {
    color: var(--accent-strong);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    align-items: stretch;
    gap: 18px;
    padding: 28px 0 18px;
}

.hero-copy,
.progress-panel,
.panel,
.intent-summary,
.explainer,
.faq,
.source-panel,
.exchange-callout,
.cycle-panel,
.halving-cards {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 27, 31, 0.92);
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 330px;
    padding: 32px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    max-width: 14ch;
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 5vw, 4.35rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.lede {
    max-width: 58ch;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.metric {
    display: flex;
    min-height: 156px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
}

.metric-primary {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.98), rgba(255, 177, 74, 0.9));
    color: #17120a;
}

.metric-label,
.metric span:last-child {
    color: var(--muted);
    font-size: 0.86rem;
}

.metric-primary .metric-label,
.metric-primary span:last-child {
    color: rgba(23, 18, 10, 0.72);
}

.metric strong {
    overflow-wrap: anywhere;
    font-size: clamp(1.45rem, 4vw, 2.6rem);
    line-height: 1.02;
}

.progress-panel,
.intent-summary,
.explainer,
.faq,
.source-panel,
.exchange-callout,
.recent-blocks,
.timeline-panel,
.methodology,
.disclaimer,
.cycle-panel,
.halving-cards {
    margin-top: 18px;
    padding: 24px;
}

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

.trust-strip article {
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 27, 31, 0.92);
    padding: 18px;
}

.trust-strip span,
.reward-grid span,
.chart-meta,
.timeline-list small {
    color: var(--muted);
    font-size: 0.84rem;
}

.trust-strip strong,
.trust-strip a {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.35;
}

.site-footer span:last-child a,
.trust-strip a {
    color: var(--accent-strong);
    text-decoration: none;
}

.intent-summary,
.source-panel {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 26px;
    align-items: start;
}

.intent-copy p,
.chart-copy,
.source-panel p {
    color: var(--muted);
    line-height: 1.68;
}

.intent-copy p:last-child,
.source-panel p:last-child {
    margin-bottom: 0;
}

.customer-tools {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.42fr);
    gap: 18px;
    margin-top: 18px;
    align-items: stretch;
}

.price-context {
    grid-row: span 4;
}

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

.reward-grid div {
    min-height: 148px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    padding: 18px;
}

.reward-grid strong {
    display: block;
    margin: 10px 0;
    color: var(--accent-strong);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1;
}

.reward-grid small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

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

.price-summary-grid div {
    min-height: 108px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    padding: 14px;
}

.price-summary-grid span,
.price-summary-grid small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.price-summary-grid strong {
    display: block;
    margin: 8px 0;
    color: var(--text);
    font-size: clamp(1rem, 2vw, 1.45rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.price-summary-grid .is-positive {
    color: var(--green);
}

.price-summary-grid .is-negative {
    color: var(--danger);
}

.chart-copy {
    margin-bottom: 18px;
}

.price-chart {
    width: 100%;
    height: auto;
    margin-top: 4px;
    overflow: visible;
}

.line-chart {
    min-height: 320px;
}

.interactive-chart {
    position: relative;
}

.chart-tooltip {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 2px;
    min-width: 132px;
    border: 1px solid rgba(247, 147, 26, 0.48);
    border-radius: 8px;
    background: rgba(13, 15, 17, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    color: var(--text);
    padding: 9px 10px;
    pointer-events: none;
}

.chart-tooltip strong {
    color: var(--accent-strong);
    font-size: 0.78rem;
    line-height: 1.2;
}

.chart-tooltip span {
    font-size: 0.96rem;
    font-weight: 850;
}

.chart-grid line {
    stroke: rgba(174, 184, 195, 0.14);
    stroke-width: 1;
}

.chart-grid text,
.chart-axis text {
    fill: var(--muted);
    font-size: 14px;
}

.chart-axis text {
    text-anchor: middle;
}

.chart-area {
    fill: rgba(56, 214, 194, 0.08);
}

.chart-event line {
    stroke: var(--accent);
    stroke-dasharray: 6 7;
    stroke-width: 1.5;
}

.chart-event text {
    fill: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.chart-line {
    fill: none;
    stroke: var(--teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.chart-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 22px;
    text-align: center;
}

.chart-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.reminder-panel p,
.insight-panel p,
.share-panel p {
    color: var(--muted);
    line-height: 1.65;
}

.form-status {
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    font-weight: 750;
}

.form-status.is-success {
    border: 1px solid rgba(134, 239, 172, 0.34);
    background: rgba(134, 239, 172, 0.1);
    color: var(--green);
}

.form-status.is-error {
    border: 1px solid rgba(251, 113, 133, 0.34);
    background: rgba(251, 113, 133, 0.1);
    color: var(--danger);
}

.email-form,
.share-actions {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.email-form label {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.email-form div,
.share-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.email-form input,
.share-actions input {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1215;
    color: var(--text);
    font: inherit;
    padding: 0 12px;
}

.email-form input:focus,
.share-actions input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(247, 147, 26, 0.22);
    outline-offset: 0;
}

.email-form button,
.share-actions button,
.cycle-controls button {
    min-height: 44px;
    border: 1px solid rgba(247, 147, 26, 0.45);
    border-radius: 8px;
    background: var(--accent);
    color: #17120a;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    padding: 0 16px;
}

.email-form button:hover,
.email-form button:focus-visible,
.share-actions button:hover,
.share-actions button:focus-visible,
.button-link:hover,
.button-link:focus-visible {
    background: var(--accent-strong);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.insight-panel strong {
    display: block;
    color: var(--accent-strong);
    font-size: clamp(1.4rem, 4vw, 2.15rem);
    line-height: 1.05;
}

.share-status {
    display: block;
    min-height: 1.2em;
    color: var(--green);
    font-size: 0.86rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    background: var(--accent);
    color: #17120a;
    font-weight: 850;
    padding: 0 18px;
    text-decoration: none;
}

.progress-track {
    overflow: hidden;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0d0f;
}

.progress-track span {
    display: block;
    height: 100%;
    min-width: 2px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    font-size: 0;
    line-height: 0;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    gap: 4px;
    margin-top: 18px;
}

.cycle-grid span {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid #2e353c;
    border-radius: 3px;
    background: #111417;
    font-size: 0;
    line-height: 0;
}

.cycle-grid .is-filled {
    border-color: rgba(247, 147, 26, 0.7);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow:
        0 0 0 1px rgba(255, 177, 74, 0.16),
        0 0 14px rgba(247, 147, 26, 0.34);
    animation: cycle-cell-glow 4.8s ease-in-out infinite;
}

.cycle-grid .is-filled:nth-child(4n) {
    animation-delay: 0.45s;
}

.cycle-grid .is-filled:nth-child(4n + 2) {
    animation-delay: 0.9s;
}

.cycle-grid .is-filled:nth-child(4n + 3) {
    animation-delay: 1.35s;
}

@keyframes cycle-cell-glow {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(255, 177, 74, 0.12),
            0 0 10px rgba(247, 147, 26, 0.22);
    }

    50% {
        box-shadow:
            0 0 0 1px rgba(255, 177, 74, 0.24),
            0 0 18px rgba(247, 147, 26, 0.46);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cycle-grid .is-filled {
        animation: none;
    }
}

.cycle-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.cycle-controls button {
    min-height: 38px;
    border-color: var(--line);
    background: var(--surface-strong);
    color: var(--text);
    padding: 0 12px;
}

.cycle-controls button:hover,
.cycle-controls button:focus-visible,
.cycle-controls button.is-active {
    border-color: rgba(247, 147, 26, 0.7);
    background: rgba(247, 147, 26, 0.14);
    color: var(--accent-strong);
}

.cycle-chart {
    width: 100%;
    min-height: 300px;
    overflow: visible;
}

.cycle-zero {
    stroke: var(--accent);
    stroke-dasharray: 5 6;
    stroke-width: 1.5;
}

.cycle-line {
    fill: none;
    stroke: var(--cycle-color);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
    transition: opacity 160ms ease, stroke-width 160ms ease;
}

.cycle-line.is-focused {
    stroke-width: 4;
}

.cycle-line.is-hidden {
    opacity: 0;
}

.cycle-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.cycle-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cycle-legend span::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--cycle-color);
}

.cycle-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.cycle-table {
    min-width: 620px;
}

.cycle-table th,
.cycle-table td {
    white-space: nowrap;
}

.halving-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.halving-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    padding: 18px;
}

.halving-card > span {
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 850;
}

.halving-card > strong {
    display: block;
    margin-top: 10px;
    overflow-wrap: anywhere;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.05;
}

.halving-card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 0;
    margin: 16px 0 0;
}

.halving-card dt,
.halving-card dd {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.halving-card dt {
    color: var(--muted);
    font-size: 0.8rem;
}

.halving-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 750;
    text-align: right;
}

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

.timeline-panel,
.methodology,
.disclaimer,
.cycle-panel,
.halving-cards {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 27, 31, 0.92);
    box-shadow: var(--shadow);
}

.timeline-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-list li {
    position: relative;
    min-height: 152px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    padding: 18px;
}

.timeline-list li::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-year {
    display: block;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 850;
}

.timeline-list strong {
    display: block;
    margin-top: 12px;
    font-size: 1.5rem;
}

.timeline-list span:not(.timeline-year) {
    display: block;
    margin-top: 8px;
    color: var(--text);
}

.panel {
    padding: 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

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

th {
    color: var(--muted);
    font-weight: 700;
}

td {
    color: var(--text);
}

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

.hash-cell {
    max-width: 360px;
    overflow-wrap: anywhere;
    color: var(--teal);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
}

.countdown-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.countdown-list div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.countdown-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.countdown-term {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.countdown-list strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    font-size: 1.06rem;
    font-weight: 750;
}

.explainer {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 26px;
    align-items: start;
}

.methodology {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 26px;
}

.methodology ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.6;
}

.methodology li::marker {
    color: var(--accent);
    font-weight: 850;
}

.source-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.source-list li {
    min-height: 122px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    padding: 16px;
}

.source-list a {
    display: block;
    color: var(--accent-strong);
    font-weight: 850;
    text-decoration: none;
}

.source-list span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.55;
}

.explainer-copy p,
.faq p,
.exchange-callout p {
    color: var(--muted);
    line-height: 1.68;
}

.section-heading {
    margin-bottom: 14px;
}

details {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

details:last-child {
    padding-bottom: 0;
}

summary {
    cursor: pointer;
    font-weight: 800;
}

summary::marker {
    color: var(--accent);
}

.exchange-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.exchange-callout iframe {
    flex: 0 0 auto;
    border: 0;
    border-radius: 4px;
}

.disclaimer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--muted);
    line-height: 1.55;
}

.disclaimer strong {
    flex: 0 0 auto;
    color: var(--accent-strong);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0 40px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer span:last-child {
    display: inline-flex;
    gap: 14px;
}

.site-footer a {
    color: var(--accent-strong);
    text-decoration: none;
}

@media (max-width: 920px) {
    .hero,
    .dashboard-grid,
    .explainer,
    .customer-tools,
    .intent-summary,
    .source-panel,
    .methodology,
    .halving-card-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: auto;
    }

    .price-context {
        grid-row: auto;
    }

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

@media (max-width: 640px) {
    .site-header,
    .quick-nav,
    .site-footer,
    main {
        width: min(100% - 20px, 1180px);
    }

    .site-header,
    .site-footer,
    .exchange-callout,
    .progress-meta,
    .chart-meta,
    .disclaimer {
        align-items: flex-start;
        flex-direction: column;
    }

    .trust-strip,
    .source-list,
    .timeline-list {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 14px;
    }

    .hero-copy,
    .panel,
    .progress-panel,
    .intent-summary,
    .explainer,
    .faq,
    .source-panel,
    .exchange-callout,
    .timeline-panel,
    .cycle-panel,
    .halving-cards,
    .methodology,
    .disclaimer {
        padding: 18px;
    }

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

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

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

    .email-form div,
    .share-actions,
    .halving-card-grid {
        grid-template-columns: 1fr;
    }

    .line-chart {
        min-height: 230px;
    }

    .cycle-chart {
        min-height: 240px;
    }

    .metric {
        min-height: 130px;
    }

    .cycle-grid {
        grid-template-columns: repeat(10, 1fr);
    }

    table {
        font-size: 0.86rem;
    }
}
