:root {
    --bg: #030303;
    --bg-elevated: #0c0c10;
    --card: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --ink: #f5f7ff;
    --muted: rgba(245, 247, 255, 0.68);
    --line: rgba(255, 255, 255, 0.1);
    --accent: #8b5cf6;
    --cyan: #38bdf8;
    --pink: #f472b6;
    --grad: linear-gradient(120deg, #f472b6 0%, #a855f7 42%, #3b82f6 100%);
    --grad-soft: linear-gradient(135deg, rgba(244, 114, 182, 0.25), rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.22));
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    --glow: 0 0 40px rgba(168, 85, 247, 0.35);
    --r: 20px;
    --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[hidden] {
    display: none !important;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font: 16px/1.6 var(--font);
    color: var(--ink);
    background: var(--bg);
}

.bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(139, 92, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 20%, rgba(56, 189, 248, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(244, 114, 182, 0.08), transparent 55%),
        #030303;
}

.shell {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    margin-bottom: 32px;
    border: 1px solid var(--card-border);
    border-radius: calc(var(--r) + 2px);
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: var(--glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-sub {
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.topbar-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pill {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
}

.pill--member {
    background: var(--grad-soft);
    color: var(--ink);
}

.pill--muted {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.35);
}

.btn--primary:hover {
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.5);
}

.btn--ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--card-border);
}

.btn--download {
    font-size: 1.05rem;
    padding: 16px 28px;
    width: 100%;
    max-width: 360px;
}

.btn-icon {
    font-size: 1.2rem;
}

.auth {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px 40px;
    border-radius: calc(var(--r) + 4px);
    border: 1px solid var(--card-border);
    background: rgba(12, 12, 18, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-banner {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 24px;
    border-radius: 14px;
}

.auth-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 20px;
    box-shadow: var(--glow);
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.auth-title {
    margin: 0 0 10px;
    font-size: 1.75rem;
    font-weight: 800;
}

.auth-tagline {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: var(--ink);
}

.auth-lead {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--muted);
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.45);
    color: var(--ink);
    font: inherit;
}

.field input:focus {
    outline: 2px solid rgba(139, 92, 246, 0.55);
    border-color: transparent;
}

.auth-links {
    margin: 20px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-links a {
    color: var(--cyan);
}

.msg {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.msg--err {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.hero-banner {
    width: 100%;
    height: auto;
    border-radius: calc(var(--r) + 2px);
    margin-bottom: 36px;
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 880px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.hero-title {
    margin: 0 0 12px;
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
}

.hero-tagline {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}

.hero-text {
    margin: 0 0 20px;
    color: var(--muted);
}

.hero-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
}

.tag--rainbow {
    background: var(--grad-soft);
}

.download-card {
    padding: 28px 26px 32px;
    border-radius: calc(var(--r) + 4px);
    border: 1px solid var(--card-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.download-card.is-downloading {
    box-shadow: var(--shadow), var(--glow);
}

.download-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin-bottom: 18px;
    box-shadow: var(--glow);
}

.download-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.download-sub {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.meta-list {
    margin: 0 0 24px;
    display: grid;
    gap: 12px;
}

.meta-list div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px;
    font-size: 0.9rem;
}

.meta-list dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.meta-list dd {
    margin: 0;
}

.download-hint {
    margin: 16px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 36em;
}

.download-hint code {
    font-size: 0.82em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.section-title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.features {
    margin-bottom: 52px;
}

.feature-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature {
    padding: 22px 20px;
    border-radius: var(--r);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.feature--violet {
    border-color: rgba(139, 92, 246, 0.35);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), transparent);
}

.feature--cyan {
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), transparent);
}

.feature--pink {
    border-color: rgba(244, 114, 182, 0.3);
    background: linear-gradient(145deg, rgba(244, 114, 182, 0.1), transparent);
}

.feature--amber {
    border-color: rgba(251, 191, 36, 0.25);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.08), transparent);
}

.palette-preview {
    display: flex;
    gap: 0;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.palette-preview span {
    flex: 1;
}

.steps {
    margin-bottom: 48px;
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

@media (min-width: 720px) {
    .step-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-list li {
    display: flex;
    gap: 14px;
    padding: 20px 18px;
    border-radius: var(--r);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-weight: 800;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 0.95rem;
}

.step-list strong {
    display: block;
    margin-bottom: 4px;
}

.step-list p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.foot {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.foot-club {
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 6px;
}

.foot a {
    color: var(--cyan);
}

.foot-meta {
    margin-top: 10px;
    font-size: 0.8rem;
}

.muted {
    color: var(--muted);
}
