/* ============================================================
   BlockDaily — dark neon crypto/tech theme  (.theme-neo)
   ============================================================ */
:root {
    --bg:        #0a0b10;
    --bg-2:      #0d0f16;
    --panel:     #11141d;
    --panel-2:   #141826;
    --ink:       #e9edf6;
    --ink-soft:  #9aa3b8;
    --ink-dim:   #66708a;
    --cyan:      #22e1ff;
    --lime:      #b6ff3a;
    --border:    rgba(255, 255, 255, .08);
    --border-2:  rgba(255, 255, 255, .14);
    --glow-cyan: rgba(34, 225, 255, .45);
    --glow-lime: rgba(182, 255, 58, .35);
    --display:   "Unbounded", system-ui, sans-serif;
    --body:      "Manrope", system-ui, sans-serif;
    --mono:      "JetBrains Mono", ui-monospace, monospace;
    --wrap:      1160px;
    --radius:    16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* radial neon glows behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60vw 50vh at 12% -6%, rgba(34, 225, 255, .14), transparent 60%),
        radial-gradient(50vw 45vh at 92% 4%, rgba(182, 255, 58, .10), transparent 60%),
        radial-gradient(70vw 60vh at 60% 110%, rgba(34, 225, 255, .08), transparent 60%),
        var(--bg);
}
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(120vw 90vh at 50% 0%, #000 30%, transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- shared bits ---------------------------------------- */
.kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cyan);
}
a.kicker { transition: color .2s ease; }
a.kicker:hover { color: var(--lime); }

.card-meta {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--ink-dim);
}

.rule-label {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 56px 0 26px;
}
.rule-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-2), transparent);
}
.rule-label span {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.rule-label span::before {
    content: "// ";
    color: var(--cyan);
}

/* ---- header --------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(10, 11, 16, .72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}
.brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--cyan), var(--lime));
    box-shadow: 0 0 16px var(--glow-cyan);
    transform: rotate(8deg);
    transition: transform .3s ease, box-shadow .3s ease;
}
.brand:hover .brand-mark {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 0 24px var(--glow-cyan);
}
.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.01em;
    color: var(--ink);
}
.nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}
.nav a {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .03em;
    color: var(--ink-soft);
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.nav a:hover {
    color: var(--ink);
    border-color: var(--border-2);
    background: rgba(255, 255, 255, .03);
}
.nav a.on {
    color: var(--bg);
    background: var(--cyan);
    box-shadow: 0 0 18px var(--glow-cyan);
}
.ticker {
    display: none;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--ink-dim);
    padding-left: 18px;
    border-left: 1px solid var(--border);
}
@media (min-width: 1080px) { .ticker { display: inline-block; } }

/* ---- main wrap ------------------------------------------ */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 48px 24px 90px;
    min-height: 60vh;
}

/* ---- hero / featured ------------------------------------ */
.hero {
    position: relative;
    margin-bottom: 18px;
}
.hero-glow {
    position: absolute;
    inset: -30px -10px 0;
    z-index: 0;
    background:
        radial-gradient(40% 70% at 20% 20%, rgba(34, 225, 255, .22), transparent 70%),
        radial-gradient(40% 70% at 90% 80%, rgba(182, 255, 58, .16), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}
.hero-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    background: linear-gradient(160deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border-2);
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
@media (min-width: 860px) {
    .hero-card { grid-template-columns: 1.05fr 1fr; }
}
.hero-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan);
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9), 0 0 38px -10px var(--glow-cyan);
}
.hero-img {
    display: block;
    overflow: hidden;
    min-height: 260px;
    background: #0a0c12;
}
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.hero-card:hover .hero-img img { transform: scale(1.04); }
.hero-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 40px 38px;
}
.hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.badge {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bg);
    background: linear-gradient(135deg, var(--cyan), var(--lime));
    padding: 5px 11px;
    border-radius: 999px;
}
.hero-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(28px, 4.4vw, 46px);
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--ink);
}
.hero-ex {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.65;
}
.hero-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 6px;
}
.hero-cta {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .03em;
    color: var(--cyan);
    transition: letter-spacing .25s ease, color .25s ease;
}
.hero-card:hover .hero-cta { letter-spacing: .09em; color: var(--lime); }

/* ---- live markets board --------------------------------- */
.mkt {
    position: relative;
    margin: 30px 0 18px;
}
.mkt-glow {
    position: absolute;
    inset: -26px -8px -8px;
    z-index: 0;
    background:
        radial-gradient(45% 80% at 8% 30%, rgba(34, 225, 255, .16), transparent 70%),
        radial-gradient(45% 80% at 95% 70%, rgba(182, 255, 58, .12), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.mkt-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.mkt-kicker {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--cyan);
}
.mkt-kicker::before { content: "// "; color: var(--lime); }
.mkt-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-dim);
}
.mkt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px var(--glow-lime);
    animation: mktPulse 1.6s ease-in-out infinite;
}
@keyframes mktPulse {
    0%, 100% { opacity: 1;  transform: scale(1); }
    50%      { opacity: .4; transform: scale(.7); }
}

.mkt-board {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 680px)  { .mkt-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mkt-board { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.mkt-coin {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 15px 16px;
    background: linear-gradient(165deg, var(--panel-2), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;
}
.mkt-coin::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: .5;
    transition: opacity .3s ease;
}
.mkt-coin:hover {
    transform: translateY(-4px);
    border-color: var(--border-2);
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .9), 0 0 26px -10px var(--glow-cyan);
}
.mkt-coin:hover::before { opacity: 1; }

.mkt-coin-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.mkt-sym {
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.01em;
    color: var(--ink);
}
.mkt-name {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .04em;
    color: var(--ink-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mkt-spark-wrap {
    height: 36px;
    filter: drop-shadow(0 0 6px rgba(34, 225, 255, .35));
}
.mkt-coin.is-down .mkt-spark-wrap { filter: drop-shadow(0 0 6px rgba(255, 77, 109, .3)); }
.mkt-spark {
    width: 100%;
    height: 36px;
    display: block;
}
.mkt-coin-bot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.mkt-price {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}
.mkt-pct {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .02em;
    padding: 2px 7px;
    border-radius: 999px;
}
.mkt-coin.is-up .mkt-pct {
    color: var(--lime);
    background: rgba(182, 255, 58, .1);
}
.mkt-coin.is-down .mkt-pct {
    color: #ff4d6d;
    background: rgba(255, 77, 109, .1);
}

@media (prefers-reduced-motion: reduce) {
    .mkt-dot { animation: none; }
    .mkt-coin { transition: none; }
}

/* ---- bento grid ----------------------------------------- */
.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* feature the first two cards of any grid (asymmetric / bento feel) */
@media (min-width: 980px) {
    .grid > .grid-item:nth-child(1) { grid-column: span 2; }
}

.grid-item { display: flex; }

/* ---- card ----------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(165deg, var(--panel), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;
}
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(140deg, var(--glow-cyan), transparent 40%, var(--glow-lime));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .85);
}
.card:hover::after { opacity: 1; }

.card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0c12;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.card:hover .card-img img { transform: scale(1.05); }

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 24px;
    flex: 1;
}
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.card-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.grid > .grid-item:nth-child(1) .card-title { font-size: 24px; }
.card-title a { transition: color .2s ease; }
.card:hover .card-title a { color: var(--cyan); }
.card-ex {
    margin: 0;
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
}
.card-arrow {
    margin-top: auto;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: .04em;
    color: var(--ink-dim);
    transition: color .25s ease, letter-spacing .25s ease;
}
.card:hover .card-arrow { color: var(--lime); letter-spacing: .1em; }

/* ---- section head (category) ---------------------------- */
.section-head {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.section-head h1 {
    margin: 12px 0 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -.02em;
    background: linear-gradient(100deg, var(--ink) 30%, var(--cyan));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- article -------------------------------------------- */
.article {
    max-width: 760px;
    margin: 0 auto;
}
.article-head {
    text-align: center;
    margin-bottom: 36px;
}
.article-title {
    margin: 16px 0 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(30px, 5.2vw, 52px);
    line-height: 1.06;
    letter-spacing: -.02em;
    color: var(--ink);
}
.article-lead {
    margin: 20px auto 0;
    max-width: 620px;
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.6;
}
.article-meta {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: .04em;
    color: var(--ink-dim);
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
}
.article-meta .dot { color: var(--cyan); }

.article-cover {
    margin: 0 0 40px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 0 50px -20px var(--glow-cyan);
}

.article-body {
    font-size: 18px;
    line-height: 1.78;
    color: #d3d9e6;
}
.article-body > *:first-child { margin-top: 0; }
.article-body h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 48px 0 16px;
}
.article-body h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 21px;
    color: var(--ink);
    margin: 36px 0 12px;
}
.article-body p { margin: 0 0 20px; }
.article-body a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--glow-cyan);
    transition: color .2s ease;
}
.article-body a:hover { color: var(--lime); }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin: 8px 0; }
.article-body li::marker { color: var(--cyan); }
.article-body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 3px solid var(--cyan);
    background: var(--panel);
    border-radius: 0 12px 12px 0;
    color: var(--ink-soft);
    font-style: italic;
}
.article-body img {
    border-radius: 12px;
    margin: 28px 0;
    border: 1px solid var(--border);
}
.article-body code {
    font-family: var(--mono);
    font-size: .88em;
    background: var(--panel-2);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--lime);
}
.article-body pre {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 26px 0;
}
.article-body pre code { background: none; border: 0; padding: 0; color: var(--ink); }

.more { margin-top: 70px; }

/* ---- 404 ------------------------------------------------- */
.notfound {
    text-align: center;
    padding: 70px 20px 90px;
    max-width: 620px;
    margin: 0 auto;
}
.notfound-code {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(90px, 22vw, 190px);
    line-height: 1;
    margin: 14px 0;
    background: linear-gradient(120deg, var(--cyan), var(--lime));
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px var(--glow-cyan);
}
.notfound h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 12px;
    color: var(--ink);
}
.notfound p { color: var(--ink-soft); margin: 0 0 28px; }

.btn-link {
    display: inline-block;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: .03em;
    color: var(--bg);
    background: var(--cyan);
    padding: 12px 24px;
    border-radius: 999px;
    box-shadow: 0 0 22px -4px var(--glow-cyan);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-link:hover {
    transform: translateY(-2px);
    background: var(--lime);
    box-shadow: 0 0 30px -2px var(--glow-lime);
}

.empty {
    text-align: center;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 14px;
    padding: 80px 0;
}

/* ---- pager ---------------------------------------------- */
.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}
.pager a {
    font-family: var(--mono);
    font-size: 14px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--ink-soft);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.pager a:hover { border-color: var(--border-2); color: var(--ink); }
.pager a.on {
    color: var(--bg);
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 18px var(--glow-cyan);
}

/* ---- footer --------------------------------------------- */
.site-foot {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(34, 225, 255, .04));
    margin-top: 60px;
}
.foot-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 54px 24px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: space-between;
}
.foot-lead { max-width: 340px; }
.foot-tag {
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}
.foot-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.foot-nav-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 4px;
}
.foot-nav a {
    color: var(--ink-soft);
    font-size: 15px;
    transition: color .2s ease;
}
.foot-nav a:hover { color: var(--cyan); }
.foot-copy {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 22px 24px 40px;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.7;
    letter-spacing: .02em;
    color: var(--ink-dim);
}

/* ---- motion: staggered reveal --------------------------- */
@keyframes neoIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    animation: neoIn .6s cubic-bezier(.2, .8, .2, 1) forwards;
    animation-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; animation: none; }
    .card, .hero-card, .brand-mark, .card-img img, .hero-img img { transition: none; }
}
