/* ── Bitcoin-orange design system ─────────────────────────────────────── */
:root {
    --btc:        #f7931a;   /* Bitcoin orange */
    --btc-deep:   #c96e00;
    --btc-glow:   rgba(247, 147, 26, 0.18);
    --bg:         #0d0d0d;
    --bg-card:    #161616;
    --bg-card-h:  #1e1e1e;
    --bg-header:  #0a0a0a;
    --text:       #f0f0f0;
    --muted:      #888;
    --border:     rgba(255,255,255,0.07);
    --border-btc: rgba(247,147,26,0.3);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
                 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--btc); text-decoration: none; transition: color .2s; }
a:hover { color: #ffd700; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Header ────────────────────────────────────────────────────────────── */
header {
    background: var(--bg-header);
    border-bottom: 2px solid var(--btc);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title img {
    height: 32px;
    width: auto;
}

.site-title a {
    color: inherit;
}

.site-title span {
    background: linear-gradient(135deg, var(--btc) 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    gap: 4px;
}

nav ul li a {
    color: var(--muted);
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    display: block;
    font-size: .9rem;
    transition: color .2s, background .2s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text);
    background: rgba(247,147,26,.15);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px; height: 18px;
    background: none; border: none; cursor: pointer;
}
.nav-toggle span {
    display: block; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all .25s;
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    #main-nav { display: none; width: 100%; order: 3; }
    #main-nav.open { display: block; }
    #main-nav ul { flex-direction: column; padding: 8px 0; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    padding: 72px 0 80px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 60% at 50% -10%, rgba(247,147,26,.14) 0%, transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--border-btc);
}

.hero-logo {
    display: block;
    margin: 0 auto 28px;
    height: 88px;
    width: auto;
    filter: drop-shadow(0 0 24px rgba(247,147,26,.5));
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--btc) 20%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.block-height-badge {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--muted);
}
.block-height-badge a {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    transition: color .2s, border-color .2s;
}
.block-height-badge a:hover {
    color: var(--btc);
    border-color: var(--border-btc);
}

.btn-primary {
    background: linear-gradient(135deg, var(--btc) 0%, var(--btc-deep) 100%);
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(247,147,26,.4);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(247,147,26,.55);
}

.btn-outline {
    color: var(--btc);
    border: 2px solid var(--btc);
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    transition: all .2s;
}
.btn-outline:hover {
    background: var(--btc);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Section headings ───────────────────────────────────────────────────── */
.section-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.section-label.orange { color: var(--btc); }

/* ── Projects section ───────────────────────────────────────────────────── */
.projects {
    padding: 60px 0 80px;
}

.projects h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.projects > .container > p {
    color: var(--muted);
    margin-bottom: 40px;
    font-size: .95rem;
}

/* ── Project card ───────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: background .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-btc);
    box-shadow: 0 8px 28px rgba(0,0,0,.35), inset 4px 0 0 var(--btc);
}

.card-body {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--btc) 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(90deg, var(--btc), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.card-body h3 a { color: inherit; -webkit-text-fill-color: inherit; }

.card-body p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

.card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-block;
    line-height: 0;
    transition: transform .2s, opacity .2s;
}
.store-btn:hover { transform: translateY(-2px); opacity: .85; }

.store-badge { height: 44px; width: auto; display: block; }

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card-h);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color .2s, background .2s;
}
.play-btn:hover {
    color: var(--text);
    border-color: var(--btc);
    background: rgba(247,147,26,.1);
}

/* ── Legacy card ────────────────────────────────────────────────────────── */
.card--legacy {
    opacity: .72;
    border-color: rgba(255,255,255,.04);
}
.card--legacy:hover { opacity: 1; }

.tag-legacy {
    display: inline-block;
    background: rgba(255,255,255,.08);
    color: var(--muted);
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: .05em;
}

.btn-legacy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.06);
    color: var(--muted);
    padding: 9px 15px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,.1);
    transition: background .2s, color .2s;
}
.btn-legacy:hover { background: rgba(255,255,255,.12); color: var(--text); }

/* ── Mobile card stacking ───────────────────────────────────────────────── */
@media (max-width: 680px) {
    .card {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-actions { width: 100%; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-btc);
    padding: 24px 0;
    text-align: center;
}

footer p {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.9;
}

footer a {
    color: var(--muted);
    transition: color .2s;
}
footer a:hover { color: var(--btc); }
