:root {
    --primary: #00F0FF;
    --primary-700: #00C6D4;
    --secondary: #7B61FF;
    --accent: #00FFA3;
    --ink: #E2E8F0;
    --muted: #94A3B8;
    --bg: #0B0E14;
    --card: #151A25;
    --border: #222B3D;
    --success: #00FFA3;
    --danger: #FF3366;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(0, 240, 255, 0.15);
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; transition: 0.25s ease; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.1rem;
}

.logo-badge {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0B0E14;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover { color: var(--primary); text-shadow: 0 0 8px rgba(0,240,255,0.4); }

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 42px;
    height: 42px;
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #0B0E14;
    border: none;
    border-radius: var(--radius);
    font-weight: 800;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn:hover { 
    background: var(--primary-700); 
    transform: translateY(-2px); 
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4); 
}
.btn-sm { padding: 10px 14px; font-size: 0.9rem; }
.btn-ghost { 
    background: transparent; 
    color: var(--primary); 
    border: 1px solid var(--primary); 
    box-shadow: none;
}
.btn-ghost:hover { 
    background: rgba(0, 240, 255, 0.1); 
    transform: translateY(-2px); 
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.hero {
    padding: 74px 0 44px;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 400px;
    background: radial-gradient(ellipse at top, rgba(123, 97, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}

.hero-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 15px var(--primary);
}

.hero h1 {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    line-height: 1.1;
    margin-bottom: 14px;
    color: #ffffff;
}

.hero p { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.micro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.micro-stats article {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.micro-stats h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 2px; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.micro-stats p { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.hero-media {
    border-radius: 20px;
    overflow: hidden;
    min-height: 330px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,14,20,0) 0%, rgba(11,14,20,0.8) 100%);
}

.section-padding { padding: 62px 0; }

.section-title { margin-bottom: 24px; }
.section-title h2 { font-size: clamp(1.55rem, 2.4vw, 2.2rem); margin-bottom: 8px; color: #ffffff; }
.section-title p { color: var(--muted); max-width: 760px; font-size: 1.05rem; }

.api-status {
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.05);
    color: #FCD535;
    font-size: 0.88rem;
    font-weight: 500;
}

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

.crypto-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
}

.crypto-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.crypto-info { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.crypto-info img { width: 32px; height: 32px; border-radius: 50%; }
.crypto-ticker { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.price { font-weight: 800; font-size: 1.4rem; margin-bottom: 6px; color: #ffffff; }
.change { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; font-size: 0.85rem; padding: 4px 8px; border-radius: 6px; background: var(--bg); }
.change.up { color: var(--success); background: rgba(0, 255, 163, 0.1); border: 1px solid rgba(0, 255, 163, 0.2); }
.change.down { color: var(--danger); background: rgba(255, 51, 102, 0.1); border: 1px solid rgba(255, 51, 102, 0.2); }

.macro-shell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.macro-shell::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(123,97,255,0.08) 0%, rgba(11,14,20,0) 60%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.stat-item h3 { font-size: 2rem; color: var(--primary); margin-bottom: 6px; font-weight: 800; text-shadow: 0 0 10px rgba(0,240,255,0.2); }
.stat-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

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

.ref-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.ref-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.15);
}

.ref-card h3 { margin: 12px 0; color: #ffffff; font-size: 1.25rem; }
.ref-card p { color: var(--muted); margin-bottom: 20px; }

.page-shell {
    max-width: 920px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.page-shell h1 { margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.5rem); color: #ffffff; }
.page-shell h2, .page-shell h3 { margin: 24px 0 12px; color: #ffffff; }
.page-shell p { color: var(--muted); margin-bottom: 16px; }
.page-shell ul { padding-left: 20px; list-style: disc; color: var(--muted); margin-bottom: 16px; }
.page-shell li { margin-bottom: 8px; }

.site-footer {
    margin-top: 60px;
    background: #07090C;
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo { color: #ffffff; margin-bottom: 12px; font-size: 1.2rem; font-weight: 800; }
.footer-text { max-width: 520px; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer h4 { margin-bottom: 16px; color: #ffffff; font-size: 1.1rem; }
.site-footer li { margin-bottom: 10px; font-size: 0.95rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); text-shadow: 0 0 8px rgba(0,240,255,0.4); }

.footer-legal {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--muted);
    display: grid;
    gap: 8px;
    text-align: center;
}

.reveal-on-scroll { opacity: 1; transform: none; }
.reveal-on-scroll.revealed { opacity: 1; transform: none; }

@media (max-width: 1024px) {
    .crypto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .menu-toggle { display: inline-grid; place-items: center; }
    .main-nav,
    .nav-wrap > .btn { display: none; }

    body.menu-open .main-nav {
        display: flex;
        position: absolute;
        top: 78px;
        left: 4%;
        right: 4%;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-grid,
    .reference-grid,
    .stats-grid,
    .footer-top { grid-template-columns: 1fr; }

    .hero-panel { padding: 24px; }
    .micro-stats { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .crypto-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 48px 0; }
    .page-shell { padding: 24px; }
}