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

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

:root {
    --bg:      #070510;
    --p1:      #7c5cfc;
    --p2:      #c084fc;
    --rose:    #e879a0;
    --green:   #34d399;
    --text:    #f1eeff;
    --muted:   #8b7eb8;
    --dim:     #3d3560;
    --card-bg: rgba(255,255,255,.03);
    --card-bd: rgba(255,255,255,.07);
    --r:       18px;
    --w:       1080px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px; line-height: 1.6;
    color: var(--text); background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 90% 70% at 15% -5%,  rgba(100,55,240,.45) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 90% 25%,  rgba(200,60,180,.28) 0%, transparent 55%),
        radial-gradient(ellipse 50% 55% at 50% 105%, rgba(40,30,160,.35)  0%, transparent 60%);
    min-height: 100vh; overflow-x: hidden;
}

/* grain overlay */
body::after {
    content: ''; position: fixed; inset: 0;
    z-index: 0; pointer-events: none; opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
}

/* ── layout ── */
.wrap {
    position: relative; z-index: 1;
    max-width: var(--w); margin: 0 auto; padding: 0 28px;
}

/* ── nav ── */
nav {
    position: sticky; top: 0; z-index: 200;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    background: rgba(7,5,16,.65);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
nav .inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 58px; max-width: var(--w); margin: 0 auto; padding: 0 28px;
}
.logo {
    font-size: 20px; font-weight: 900; letter-spacing: -1px;
    text-decoration: none;
    background: linear-gradient(120deg, var(--p1), var(--rose));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-social { display: flex; align-items: center; gap: 8px; }
.nav-social a {
    color: var(--dim); text-decoration: none;
    font-size: 13px; font-weight: 600;
    padding: 5px 10px; border-radius: 7px;
    border: 1px solid rgba(255,255,255,.07);
    transition: color .15s, border-color .15s;
}
.nav-social a:hover { color: var(--muted); border-color: rgba(255,255,255,.14); }
.nav-link {
    color: var(--muted); text-decoration: none;
    font-size: 14px; font-weight: 500; transition: color .15s;
}
.nav-link:hover { color: var(--text); }
.nav-link::after { content: ' →'; }

/* ── buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 32px; border-radius: 12px;
    font-size: 15px; font-weight: 700; letter-spacing: -.1px;
    text-decoration: none; font-family: inherit; cursor: pointer; border: none;
    transition: transform .18s, box-shadow .18s;
}
.btn-glow {
    background: linear-gradient(130deg, #7c5cfc, #c084fc 60%, #e879a0);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(124,92,252,.4), 0 8px 28px rgba(124,92,252,.35), 0 2px 6px rgba(0,0,0,.4);
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(124,92,252,.5), 0 14px 36px rgba(124,92,252,.45), 0 2px 8px rgba(0,0,0,.5);
}
.btn-ghost {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    color: var(--muted); font-weight: 500; font-size: 14px; padding: 12px 22px;
}
.btn-ghost:hover { background: rgba(255,255,255,.07); color: var(--text); }

/* ── separator ── */
.sep {
    position: relative; z-index: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08) 30%, rgba(255,255,255,.08) 70%, transparent);
}

/* ── section typography ── */
.eyebrow {
    text-align: center; font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--p1); margin-bottom: 12px;
}
h2 {
    text-align: center; font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 800; color: #fff; letter-spacing: -1px;
    margin-bottom: 6px; text-wrap: balance;
}
.sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 52px; }
.sub a { color: var(--p2); }

/* ── card ── */
.card {
    position: relative;
    background: var(--card-bg); border: 1px solid var(--card-bd);
    border-radius: var(--r); padding: 28px 26px 32px;
    overflow: hidden;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,92,252,.6), rgba(232,121,160,.5), transparent);
    opacity: 0; transition: opacity .25s;
}
.card::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--r);
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,92,252,.1), transparent 70%);
    opacity: 0; transition: opacity .25s; pointer-events: none;
}
.card:hover {
    border-color: rgba(124,92,252,.25); transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(7,5,16,.6), 0 0 0 1px rgba(124,92,252,.15);
}
.card:hover::before, .card:hover::after { opacity: 1; }
.icon {
    width: 44px; height: 44px; border-radius: 11px;
    background: linear-gradient(135deg, rgba(124,92,252,.18), rgba(232,121,160,.12));
    border: 1px solid rgba(124,92,252,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 18px;
}
.card h3 { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.3px; line-height: 1.3; margin-bottom: 10px; }
.card p  { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── footer ── */
footer {
    position: relative; z-index: 1;
    border-top: 1px solid rgba(255,255,255,.05); padding: 30px 28px;
}
footer .inner {
    max-width: var(--w); margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.fsocial { display: flex; gap: 10px; justify-content: center; margin-bottom: 4px; }
.fsocial a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.07);
    color: var(--dim); text-decoration: none;
    font-size: 13px; font-weight: 600; transition: color .15s, border-color .15s;
}
.fsocial a:hover { color: var(--muted); border-color: rgba(255,255,255,.14); }
.flinks { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.flinks a { color: var(--dim); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .18s; }
.flinks a:hover { color: var(--muted); }
.legal { color: rgba(61,53,96,.8); font-size: 12px; }

/* ── animation ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── responsive ── */
@media (max-width: 560px) {
    .btn-glow { width: 100%; justify-content: center; }
    .wrap { padding: 0 20px; }
}
