:root {
    --bg-deep: #0B0B14;
    --bg-mid: #15102A;
    --bg-soft: #1B0E22;
    --panel: #161624;
    --panel-2: #1E1E30;
    --border: #2A2A40;
    --border-hover: #3D3D5C;
    --text: #F3F3F8;
    --muted: #9A9AB5;
    --accent: #7C5CFF;
    --accent-2: #FF4D8D;
    --accent-grad: linear-gradient(135deg, #7C5CFF 0%, #FF4D8D 100%);
    --accent-grad-hover: linear-gradient(135deg, #9377FF 0%, #FF6FA1 100%);
    --shadow-accent: 0 0 24px rgba(124, 92, 255, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at top left, rgba(124, 92, 255, 0.18), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(255, 77, 141, 0.14), transparent 55%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 55%, var(--bg-soft) 100%);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Top bar ---- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(11, 11, 20, 0.7);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-accent);
}

.topnav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.topnav a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
}

.topnav a:hover { color: var(--text); }

.topbar-cta { padding: 10px 20px; }

/* ---- Buttons ---- */

.btn-primary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 28px;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-grad);
    color: white;
    box-shadow: 0 8px 22px rgba(124, 92, 255, 0.4);
}

.btn-primary:hover {
    background: var(--accent-grad-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(124, 92, 255, 0.08);
}

/* ---- Hero ---- */

.hero { padding: 96px 0 64px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.grad {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-bullets {
    display: flex;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
}

.hero-bullets li {
    color: var(--muted);
    font-size: 14px;
    padding-left: 22px;
    position: relative;
}

.hero-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-grad);
    box-shadow: var(--shadow-accent);
}

/* Vinyl visual */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vinyl {
    position: relative;
    width: 360px;
    height: 360px;
}

.vinyl-disc, .vinyl-ring, .vinyl-center, .vinyl-dot {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.vinyl-disc {
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 30%, #2A2A40, #0E0E18);
    box-shadow: 0 0 80px rgba(124, 92, 255, 0.5);
    animation: spin 14s linear infinite;
}

.vinyl-ring {
    width: 70%; height: 70%;
    border: 1px solid var(--border);
}
.vinyl-ring.small { width: 45%; height: 45%; }

.vinyl-center {
    width: 24%; height: 24%;
    background: var(--accent-grad);
    box-shadow: var(--shadow-accent);
}

.vinyl-dot {
    width: 6%; height: 6%;
    background: var(--bg-deep);
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---- Sections common ---- */

section { padding: 80px 0; }

.section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-align: center;
}

.section-sub {
    color: var(--muted);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto 48px;
    text-align: center;
}

/* ---- Features ---- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.feature-ico {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--accent-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 18px;
    box-shadow: var(--shadow-accent);
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature p { color: var(--muted); font-size: 15px; }

/* ---- How ---- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    position: relative;
}

.step-num {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(124, 92, 255, 0.16);
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step h3 { font-size: 18px; margin-bottom: 6px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14px; }

/* ---- Demo ---- */

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.demo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.demo-card:hover {
    border-color: var(--accent);
    background: var(--panel-2);
}

.demo-card.playing .demo-play {
    background: var(--accent-grad);
    color: white;
}

.demo-play {
    width: 44px; height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

.demo-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.demo-desc {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.demo-card .demo-name, .demo-card .demo-desc { flex: 1; }

.demo-hint {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* ---- Pricing ---- */

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.plan {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-featured {
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.12), var(--panel) 60%);
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(124, 92, 255, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent-grad);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.plan-name {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.plan-price span {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
}

.plan ul {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.plan li {
    color: var(--muted);
    font-size: 14px;
    padding: 8px 0 8px 22px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.plan li:last-child { border-bottom: 0; }

.plan li::before {
    content: '';
    position: absolute;
    left: 0; top: 14px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.2);
    border: 2px solid var(--accent);
}

/* ---- Download ---- */

.downloads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.download-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

a.download-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.download-ico {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.download-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.download-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
    flex: 1;
}

.download-meta {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- Contacts ---- */

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contacts .section-title, .contacts .section-sub {
    text-align: left;
    margin-left: 0;
}

.contact-list {
    list-style: none;
    margin-top: 24px;
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.contact-list span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    align-self: center;
}

.contact-list a:hover { color: var(--accent); }

.contact-form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.contact-form input {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus { border-color: var(--accent); }

.contact-form button { margin-top: 6px; }

.form-hint {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* ---- Footer ---- */

.footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover { color: var(--text); }

.footer-meta {
    color: var(--muted);
    font-size: 13px;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .vinyl { width: 240px; height: 240px; }
    .features-grid, .steps, .demo-grid, .plans, .downloads, .contacts-grid {
        grid-template-columns: 1fr;
    }
    .topnav { display: none; }
    section { padding: 56px 0; }
    .hero { padding: 56px 0 32px; }
}
.download-card.disabled { opacity: 0.7; cursor: pointer; }
.download-card.disabled:hover { border-color: var(--accent); }

/* ---- Demo playlist (dynamic) ---- */
.demo-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.demo-search {
    flex: 1;
    min-width: 200px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.demo-search:focus { border-color: var(--accent); }
.demo-counter {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}
.demo-list {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-height: 520px;
    overflow-y: auto;
    padding: 8px;
}
.demo-list::-webkit-scrollbar { width: 8px; }
.demo-list::-webkit-scrollbar-track { background: transparent; }
.demo-list::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
.demo-row {
    display: grid;
    grid-template-columns: 36px 36px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}
.demo-row + .demo-row { margin-top: 2px; }
.demo-row:hover { background: var(--panel-2); }
.demo-row.playing { background: rgba(124, 92, 255, 0.12); }
.demo-row-num {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.demo-row-play {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s, color 0.2s;
}
.demo-row.playing .demo-row-play {
    background: var(--accent-grad);
    color: white;
}
.demo-row-title {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.demo-row-dur {
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.demo-empty {
    text-align: center;
    color: var(--muted);
    padding: 32px 16px;
    font-size: 14px;
}
.demo-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}