@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;800&display=swap');

:root{
    --bg: #0b0d10;
    --text: #e9eef6;
    --muted: #aeb6c2;
    --line: rgba(255,255,255,0.08);
    --primary: #3a7bff;
    --primary-2: #17c3e5;
    --glass: blur(12px) saturate(140%);
    --maxw: 840px;
    --vpad: clamp(20px, 4vh, 32px);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }
body{
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
    color: var(--text);
    -webkit-font-smoothing: antialiased;

    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;

    background:
        radial-gradient(900px 500px at 80% -10%, rgba(58,123,255,0.16), transparent 60%),
        radial-gradient(700px 400px at 0% 0%, rgba(23,195,229,0.14), transparent 60%),
        var(--bg);
}

/* Layered backgrounds */
.bg-layer{
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
}
.bg-image{ z-index: -2; overflow: hidden; }
.bg-image::before{
    content: ""; position: absolute; inset: 0;
    background: center / cover no-repeat;
    background-image: url('../images/background_crypto.png');
    opacity: 0.25; transform-origin: 50% 40%;
    animation: breathe 22s ease-in-out infinite; will-change: transform;
}
@keyframes breathe{
    0%{ transform: scale(1); }
    50%{ transform: scale(1.08); }
    100%{ transform: scale(1); }
}
.bg-svg{
    z-index: -1;
    background: url('../images/mesh-bg-animated.svg') center/cover no-repeat;
    opacity: 0.1;
}

/* Header */
header{
    padding: 18px 20px;
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: var(--glass);
    background: rgba(11,13,16,0.5);
    border-bottom: 1px solid var(--line);
}
.brand{
    max-width: var(--maxw); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.logo{
    display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.2px;
}
.signin{
    color: var(--muted); text-decoration: none; font-weight: 600;
    border: 1px solid var(--line); padding: 8px 12px; border-radius: 10px;
}

/* Glyph coin */
.glyph{ position: relative; width: 24px; height: 24px; border-radius: 7px;
    background: conic-gradient(from 180deg, var(--primary), var(--primary-2), var(--primary));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 6px 16px rgba(58,123,255,0.35);
    overflow: hidden;
}
.glyph::after{
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    background: radial-gradient(140% 140% at 30% 30%, #f4f7fb 0%, #e9eef6 45%, #d7e1ec 70%, #c7d3e0 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset, 0 -1px 0 rgba(20,30,45,0.10) inset, 0 2px 5px rgba(8,12,20,0.28);
    z-index: 1;
}
.glyph::before{
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    background:
        radial-gradient(120% 120% at 50% 35%, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%),
        conic-gradient(from 220deg at 50% 50%, rgba(255,255,255,0.00) 0deg, rgba(255,255,255,0.12) 40deg, rgba(255,255,255,0.00) 120deg, rgba(0,0,0,0.07) 200deg, rgba(0,0,0,0.00) 360deg);
    mix-blend-mode: screen; z-index: 2; pointer-events: none; opacity: 0.9;
}
.glyph .ring{
    position: absolute; inset: 4px; border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(10,20,35,0.20) inset, 0 0 0 1px rgba(255,255,255,0.10);
    z-index: 3; pointer-events: none;
}
.glyph .mark{
    position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
    font-weight: 900; font-size: 12px; line-height: 1; letter-spacing: 0.2px;
    color: #3b4555;
    text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 -1px 0 rgba(0,0,0,0.18), 0 2px 4px rgba(8,12,20,0.18);
    pointer-events: none;
}

/* Hero (index) */
.hero{
    width: 100%; max-width: var(--maxw); margin: 0 auto;
    min-height: calc(100dvh - 68px - 60px);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: var(--vpad) 20px; text-align: center;
}
.hero-top{}
.hero-bottom{ display: grid; gap: 12px; align-content: end; }

h1{
    font-size: clamp(28px, 5.2vw, 48px);
    line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.sub{
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--muted); margin: 0 auto; max-width: 68ch;
    text-shadow: 0 2px 10px rgba(0,0,0,0.30);
}
.sub .br{ display: none; }
@media (min-width: 820px){ .sub .br{ display: block; height: 10px; } }

/* Buttons */
.cta{
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 20px 30px; font-size: 20px; font-weight: 800;
    border-radius: 16px; text-decoration: none; transition: transform .15s ease;
    min-width: 240px; justify-self: center;
}
.cta.primary{
    color: #06121a;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 30px rgba(58,123,255,0.45), 0 4px 12px rgba(23,195,229,0.28);
}
.cta.primary:hover{ transform: translateY(-1px); }
.cta.secondary{
    color: var(--text);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}
.cta.secondary:hover{ transform: translateY(-1px); }
.cta-row{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px){ .cta-row .cta{ width: 100%; } }

/* Chips */
.chips{
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 30px;
}
.chip{
    font-size: 12px; color: var(--muted);
    padding: 8px 10px; border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    backdrop-filter: var(--glass);
}

.legal{
    font-size: 12px; color: var(--muted); opacity: 0.9; text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Learn page */
.hero-lite{
    width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 12px; text-align: center;
}
.hero-lite h1{
    margin: 0 0 8px; font-size: clamp(26px, 4.8vw, 40px); letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.section{
    width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 48px; display: grid; gap: 18px;
}
.card{
    border: 1px solid var(--line); border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    backdrop-filter: var(--glass); padding: 18px; display: grid; gap: 10px;
}
.row{ display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.icon{
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: #dbe7ff; box-shadow: 0 6px 16px rgba(0,0,0,0.25) inset;
}
.binance-badge{
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,0.04);
}
.binance-logo{
    width: 16px; height: 16px; display: inline-block;
    background: conic-gradient(from 0deg, #f3ba2f, #ffd15a, #f3ba2f);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96"><path fill="%23000" d="M48 11.3 63 26.3 54.7 34.7 48 28 41.3 34.7 33 26.3 48 11.3Zm0 24 15 15-8.3 8.3L48 52.9l-6.7 6.7L33 50.3 48 35.3ZM26.3 33 34.7 41.3 28 48l6.7 6.7L26.3 63 11.3 48 26.3 33Zm43.4 0L84.7 48 69.7 63 61.3 54.7 68 48l-6.7-6.7L69.7 33ZM48 60.7l8.3 8.3L48 84.7 33 69.7l8.3-8.3L48 68.7l6.7-6.7Z"/></svg>') center/contain no-repeat;
            mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96"><path fill="%23000" d="M48 11.3 63 26.3 54.7 34.7 48 28 41.3 34.7 33 26.3 48 11.3Zm0 24 15 15-8.3 8.3L48 52.9l-6.7 6.7L33 50.3 48 35.3ZM26.3 33 34.7 41.3 28 48l6.7 6.7L26.3 63 11.3 48 26.3 33Zm43.4 0L84.7 48 69.7 63 61.3 54.7 68 48l-6.7-6.7L69.7 33ZM48 60.7l8.3 8.3L48 84.7 33 69.7l8.3-8.3L48 68.7l6.7-6.7Z"/></svg>') center/contain no-repeat;
}
.em{ font-weight: 700; color: #dbe7ff; }
.note{ font-size: 13px; color: var(--muted); }

footer{
    color: var(--muted); padding: 18px 20px; border-top: 1px solid var(--line);
    text-align: center; font-size: 12px;
    background: linear-gradient(to top, rgba(11,13,16,0.65), rgba(11,13,16,0));
}
