/*
 * Blockchain Technologies Limited — shared design system
 * Used across the public site, user dashboard, and admin panel.
 */

:root {
    --bg: #05070d;
    --bg-elevated: #0a0e1a;
    --surface: #10152400;
    --surface-1: #10152a;
    --surface-2: #161c33;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #eef1f8;
    --text-muted: #92a0bd;
    --text-faint: #5c6788;

    --accent: #6c5ce7;
    --accent-2: #00e5c7;
    --accent-soft: rgba(108, 92, 231, 0.14);
    --accent-2-soft: rgba(0, 229, 199, 0.14);
    --gold: #d4af37;
    --gold-soft: rgba(212, 175, 55, 0.14);

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 0 1px rgba(108, 92, 231, 0.25), 0 20px 60px -20px rgba(108, 92, 231, 0.35);

    --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bt-theme {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.bt-theme h1, .bt-theme h2, .bt-theme h3, .bt-theme h4, .bt-theme h5 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.bt-theme a { text-decoration: none; color: inherit; }
.bt-theme ::selection { background: var(--accent); color: #fff; }

/* ---------- layout helpers ---------- */
.bt-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.bt-section { padding: 96px 0; position: relative; }
.bt-section--tight { padding: 64px 0; }
.bt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    background: var(--accent-2-soft);
    border: 1px solid rgba(0, 229, 199, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.bt-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 8px var(--accent-2);
}
.bt-section-title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; }
.bt-section-lead { color: var(--text-muted); font-size: 17px; max-width: 620px; }
.bt-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- network / node background ---------- */
.bt-network-bg {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
    background:
        radial-gradient(600px 400px at 15% 10%, rgba(108, 92, 231, 0.22), transparent 60%),
        radial-gradient(500px 380px at 85% 25%, rgba(0, 229, 199, 0.16), transparent 60%),
        radial-gradient(700px 500px at 50% 100%, rgba(108, 92, 231, 0.12), transparent 60%);
}
.bt-network-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.bt-network-bg .node { fill: var(--accent-2); }
.bt-network-bg .edge { stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.bt-grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}

@keyframes bt-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}
.bt-network-bg .node { animation: bt-pulse 3.6s ease-in-out infinite; transform-origin: center; }
.bt-network-bg .edge { animation: bt-fade-in 1.6s ease both; }
@keyframes bt-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- scroll reveal ---------- */
.bt-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1);
}
.bt-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .bt-reveal { opacity: 1; transform: none; transition: none; }
    .bt-network-bg .node, .bt-network-bg .edge { animation: none; }
}

/* nav shadow once page scrolls */
.bt-nav.is-scrolled { box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6); border-bottom-color: var(--border-strong); }

/* ---------- buttons ---------- */
.bt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
    padding: 13px 26px; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.bt-btn:hover { transform: translateY(-1px); }
.bt-btn-primary {
    background: linear-gradient(135deg, var(--accent), #8f7bff);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(108, 92, 231, 0.65);
}
.bt-btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(108, 92, 231, 0.8); color: #fff; }
.bt-btn-ghost {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-strong);
    color: var(--text);
}
.bt-btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.bt-btn-gold {
    background: linear-gradient(135deg, var(--gold), #f1cf6b);
    color: #191100;
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.55);
}
.bt-btn-block { width: 100%; }
.bt-btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- cards ---------- */
.bt-card {
    background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}
.bt-card--hover { transition: transform .2s ease, border-color .2s ease; }
.bt-card--hover:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.bt-icon-tile {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent-2);
    font-size: 20px; margin-bottom: 18px;
}

/* ---------- navbar ---------- */
.bt-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(5, 7, 13, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.bt-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.bt-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.bt-logo__mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #05070d;
}
.bt-nav__links { display: flex; align-items: center; gap: 32px; }
.bt-nav__links a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .15s ease; }
.bt-nav__links a:hover { color: #fff; }
.bt-nav__actions { display: flex; align-items: center; gap: 14px; }
.bt-nav__toggle { display: none; }

@media (max-width: 900px) {
    .bt-nav__links { display: none; }
    .bt-nav__toggle { display: flex; }
}

/* ---------- footer ---------- */
.bt-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.bt-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.bt-footer__col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.bt-footer__col a { display: block; color: var(--text-muted); font-size: 14.5px; margin-bottom: 10px; transition: color .15s; }
.bt-footer__col a:hover { color: var(--accent-2); }
.bt-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .bt-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- forms ---------- */
.bt-field { margin-bottom: 18px; }
.bt-field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.bt-input, .bt-select, select.bt-input, textarea.bt-input {
    width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong);
    color: var(--text); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; font-family: var(--font-body);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bt-input:focus, .bt-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bt-input::placeholder { color: var(--text-faint); }
.bt-auth-card { max-width: 440px; width: 100%; margin: 0 auto; }

/* ---------- badges / stats ---------- */
.bt-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.bt-badge--success { background: rgba(34,197,94,0.14); color: var(--success); }
.bt-badge--warning { background: rgba(245,158,11,0.14); color: var(--warning); }
.bt-badge--danger { background: rgba(239,68,68,0.14); color: var(--danger); }
.bt-badge--muted { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.bt-badge--gold { background: var(--gold-soft); color: var(--gold); }

.bt-stat { text-align: center; }
.bt-stat__value { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff; }
.bt-stat__label { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- utility ---------- */
.bt-muted { color: var(--text-muted); }
.bt-mono { font-family: var(--font-mono); }
.bt-divider { height: 1px; background: var(--border); border: none; margin: 0; }
