/* ============================================================
   Vibrancy Music — Landing CSS
   ============================================================ */

/* ---------- 1. RESET + VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0a;
    --bg-2: #101010;
    --bg-3: #161616;
    --text: #e8e8e8;
    --text-dim: #a0a0a0;
    --muted: #6a6a6a;
    --accent: #ff2e2e;
    --accent-hover: #ff4d4d;
    --premium: #e8e0c8;
    --border: #242424;
    --border-strong: #3a3a3a;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- 2. LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(60px, 8vw, 120px) 0;
    border-top: 1px solid var(--border);
}
.section-alt { background: var(--bg-2); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ---------- 3. HEADER ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 96px;
}

.logo { display: flex; align-items: center; }
.logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}
.logo:hover img { opacity: 0.8; }

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.nav a {
    color: var(--text-dim);
    transition: color 0.2s;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; gap: 12px; align-items: center; }

/* Auth Swap */
.auth-guest,
.auth-user {
    display: flex;
    gap: 12px;
    align-items: center;
}
.auth-user { display: none; }
body.is-authed .auth-guest { display: none; }
body.is-authed .auth-user  { display: flex; }

.burger {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
}
.burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    transition: transform 0.25s, opacity 0.25s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(255, 46, 46, 0.25);
}

.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); }

.btn-outline {
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- 5. HERO ---------- */
.hero {
    position: relative;
    padding: clamp(160px, 18vw, 240px) 0 clamp(80px, 12vw, 140px);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 70%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--accent); }

.hero-sub {
    max-width: 640px;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-dim);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    max-width: 720px;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--text);
    line-height: 1;
}
.hero-meta span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ---------- 6. TICKER ---------- */
.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    padding: 16px 0;
    overflow: hidden;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    width: max-content;
}
.ticker-item { display: flex; align-items: center; gap: 12px; }
.ticker-item svg { width: 18px; height: 18px; fill: var(--muted); transition: fill 0.2s; }
.ticker-item:hover svg { fill: var(--accent); }

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- 7. PLATFORMS GRID ---------- */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--bg);
    padding: 32px 20px;
    text-align: center;
    transition: background 0.2s;
}
.platform-card:hover { background: var(--bg-3); }

.platform-card svg {
    width: 44px; height: 44px;
    fill: var(--text-dim);
    transition: fill 0.3s, transform 0.3s;
}
.platform-card:hover svg { fill: var(--accent); transform: scale(1.1); }

.platform-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    transition: color 0.2s;
}
.platform-card:hover .platform-name { color: var(--text); }

/* ---------- 8. FEATURES ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.feature {
    background: var(--bg-2);
    padding: clamp(28px, 4vw, 48px);
    transition: background 0.2s;
}
.feature:hover { background: var(--bg-3); }
.feature-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.feature h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- 9. PRICING ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 28px 20px;
    transition: border-color 0.25s, transform 0.25s;
}
.price-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }

.price-card-featured { border-color: var(--accent); background: var(--bg-3); }
.price-card-featured:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 8px 8px 0 rgba(255, 46, 46, 0.15);
}

.price-card-premium {
    border-color: rgba(232, 224, 200, 0.35);
    background: linear-gradient(180deg, rgba(232, 224, 200, 0.04) 0%, var(--bg-2) 100%);
}
.price-card-premium:hover {
    border-color: rgba(232, 224, 200, 0.7);
    box-shadow: 0 0 0 1px rgba(232, 224, 200, 0.5), 8px 8px 0 rgba(232, 224, 200, 0.08);
}

.price-badge {
    position: absolute;
    top: -1px; right: 16px;
    background: var(--accent);
    color: #0a0a0a;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 5px 8px;
    text-transform: uppercase;
}
.price-card-premium .price-badge { background: var(--premium); color: #0a0a0a; }

.price-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.price-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    line-height: 1;
    color: var(--text);
    margin-bottom: 22px;
}
.price-value span {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 0.08em;
}
.price-features { flex: 1; margin-bottom: 24px; }
.price-features li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
}
.price-features li:last-child { border-bottom: none; }
.price-features .check {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    flex-shrink: 0;
}
.price-card-premium .price-features .check { color: var(--premium); }
.price-card .btn { width: 100%; }

/* ---------- 10. STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
    position: relative;
    padding: 40px 32px;
    border: 1px solid var(--border);
    background: var(--bg-2);
}
.step-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    color: var(--accent);
    margin-bottom: 16px;
}
.step h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- 11. FAQ ---------- */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.25s;
    flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--accent); }
details p { padding: 0 0 24px; color: var(--text-dim); max-width: 800px; }

/* ---------- 12. CTA ---------- */
.cta-section {
    padding: clamp(80px, 12vw, 160px) 0;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(255, 46, 46, 0.12), transparent 60%),
        var(--bg);
    border-top: 1px solid var(--border);
}
.cta-section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}
.cta-section p {
    color: var(--text-dim);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* ---------- 13. FOOTER ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-brand .logo img { height: 48px; filter: brightness(0) invert(1); }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 320px; }

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    flex-wrap: wrap;
}

/* ---------- 14. REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
    .features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .header-inner { height: 80px; }
    .logo img { height: 44px; }
    .nav {
        position: fixed;
        top: 80px; left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 0 var(--gutter);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav.active { max-height: 400px; }
    .nav a {
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid var(--border);
    }
    .nav a::after { display: none; }
    .auth-guest .btn-ghost { display: none; }
    .burger { display: flex; }
    .hero-meta { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .logo img { height: 36px; }
    .header-actions .btn { padding: 10px 16px; font-size: 0.85rem; }
    .hero-cta .btn { width: 100%; }
    .platform-card svg { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}