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

:root {
    --red: #EF4444;
    --yellow: #FAC615;
    --green: #22C55E;
    --blue: #3B82F6;
    --purple: #A855F7;
    --cyan: #22D3EE;
    --bg: #000;
    --glass: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.06);
    --glass-border-hover: rgba(255,255,255,0.12);
    --text: #F0F0F0;
    --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav-wordmark, .footer-name {
    font-family: 'Outfit', sans-serif;
}

#nexus-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Shared ────────────────────────────────────── */
.section-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}

.label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.section-desc {
    font-size: 14px;
    color: #fff;
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Unified Card Grid ─────────────────────────── */
.card-grid {
    display: grid;
    gap: 10px;
}
.card-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 14px 14px;
    transition: border-color 0.25s, transform 0.2s;
}

.card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.card svg {
    display: block;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.card strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.card span {
    font-size: 11px;
    color: #fff;
    line-height: 1.45;
}

/* ── Nav ───────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    background: rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.nav-icon { width: 26px; height: 26px; border-radius: 6px; }
.nav-wordmark { font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 20px; }

.nav-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* ── Hero ──────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 20px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/galaxy-bg.png') center top / cover no-repeat;
    opacity: 0.15;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-content { max-width: 680px; width: 100%; }

.hero-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    position: relative;
    z-index: 1;
}

.hero-icon-glow {
    position: absolute;
    inset: -14px;
    border-radius: 32px;
    background: radial-gradient(circle, rgba(239,68,68,0.2) 0%, transparent 70%);
    animation: icon-pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes icon-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.hero-label {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(13px, 2vw, 18px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-accent {
    background: linear-gradient(135deg, var(--red) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .card-grid { margin-top: 20px; text-align: left; }

/* ── Sections ──────────────────────────────────── */
#privacy, #features {
    position: relative;
    z-index: 1;
    padding: 28px 0 24px;
}

#privacy h2, #features h2 {
    font-size: clamp(24px, 4.5vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

/* ── Platforms ──────────────────────────────────── */
#platforms {
    position: relative;
    z-index: 1;
    padding: 24px 0 20px;
}

.platforms-inner { text-align: center; }

#platforms h2 {
    font-size: clamp(24px, 4.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.plat-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.2s;
}

.plat-card:hover { border-color: var(--glass-border-hover); }
.plat-card svg { opacity: 0.6; }

/* ── Footer ────────────────────────────────────── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    margin-top: 20px;
}

.footer-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left { display: flex; align-items: center; gap: 6px; }
.footer-icon { width: 18px; height: 18px; border-radius: 4px; }
.footer-name { font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 820px) {
    .card-grid.c3 { grid-template-columns: repeat(2, 1fr); }
    .card-grid.c4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero { padding: 56px 16px 16px; }
    .hero-icon { width: 60px; height: 60px; border-radius: 15px; }
    #privacy, #features { padding: 20px 0 16px; }
    #platforms { padding: 16px 0 12px; }
    .card { padding: 12px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 11px; }
    .footer-inner { flex-direction: column; gap: 4px; }
    .section-desc { font-size: 13px; margin-bottom: 16px; }
}
