:root {
    --color-bg: #070707;
    --color-accent: #32cd32;
    --color-accent-rgb: 50, 205, 50;
    --color-accent-dim: rgba(var(--color-accent-rgb), 0.3);
    --color-text: #ffffff;
    --color-text-muted: #8a8a8a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ===== Background canvas (embers) ===== */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(var(--color-accent-rgb), 0.10), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(var(--color-accent-rgb), 0.08), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(var(--color-accent-rgb), 0.06), transparent 50%);
    filter: blur(40px);
    animation: driftBg 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes driftBg {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 2%) scale(1.05); }
}

/* ===== HUD overlay ===== */
.hud-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-accent-dim);
}
.hud-corner.top-left { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.hud-corner.top-right { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.hud-corner.bottom-left { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.hud-corner.bottom-right { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.hud-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--color-accent);
    opacity: 0.5;
    white-space: nowrap;
}
.hud-text.top-center { top: 18px; }
.hud-text.bottom-center { bottom: 18px; }

/* ===== Liquid glass ===== */
.liquid-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* ===== Layout ===== */
.page {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto;
    padding: 64px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* ===== Profile header ===== */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    animation: fadeUp 0.7s ease both;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.brand-head {
    height: clamp(96px, 30vw, 130px);
    width: clamp(96px, 30vw, 130px);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(var(--color-accent-rgb), 0.35));
}

.brand-wordmark {
    height: clamp(96px, 30vw, 130px);
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.tagline {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--color-accent);
    opacity: 0.85;
}

/* ===== Featured card ===== */
.featured {
    width: 100%;
    border-radius: 20px;
    padding: 26px 24px;
    text-align: center;
    animation: fadeUp 0.7s ease 0.05s both;
    border-color: rgba(var(--color-accent-rgb), 0.2);
}

.featured-eyebrow {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    opacity: 0.8;
    margin-bottom: 8px;
}

.featured-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 8px;
}

.featured-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.featured-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-cta.split {
    padding: 12px 10px;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.btn-cta.split svg { width: 15px; height: 15px; }

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--color-bg);
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 24px rgba(var(--color-accent-rgb), 0.35);
}

.btn-cta.pulse {
    animation: ctaPulse 2.6s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(var(--color-accent-rgb), 0); }
}

.btn-cta.secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-cta.secondary:hover {
    border-color: var(--color-accent-dim);
    box-shadow: none;
}

/* ===== Link list ===== */
.link-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeUp 0.7s ease 0.1s both;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-text);
}

.link-row:hover {
    border-color: var(--color-accent-dim);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-accent);
    display: flex;
}

.link-icon svg { width: 100%; height: 100%; }

.link-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.link-arrow {
    color: var(--color-text-muted);
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.link-row:hover .link-arrow {
    transform: translateX(3px);
    color: var(--color-accent);
}

/* ===== Socials ===== */
.socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.7s ease 0.2s both;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    text-decoration: none;
}

.social-icon svg { width: 19px; height: 19px; }

.social-icon:hover {
    color: var(--color-accent);
    border-color: var(--color-accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--color-accent-rgb), 0.2);
}

/* ===== Footer ===== */
.page-footer {
    margin-top: 8px;
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    opacity: 0.6;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
    .page { padding: 48px 16px 32px; gap: 22px; }
    .name { font-size: 24px; letter-spacing: 3px; }
}
