/* DJ Deck — лендинг. Тёмная тема, неоновые акценты. */

:root {
    color-scheme: dark;
    --bg: #111111;
    --fg: #ededed;
    --card: #181818;
    --secondary: #222222;
    --muted: #9a9a9a;
    --border: rgb(255 255 255 / 9%);
    --on-accent: #0a0a0a;

    --cyan: #22d3ee;
    --lime: #4ade80;
    --orange: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid rgb(34 211 238 / 0.6); outline-offset: 2px; }

/* ---------- утилиты ---------- */

.container { max-width: 72rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

.c-cyan { color: var(--cyan); }
.c-lime { color: var(--lime); }
.c-orange { color: var(--orange); }
.c-red { color: var(--red); }

.icon, .icon-5, .icon-6 { flex-shrink: 0; }
.icon { width: 16px; height: 16px; }
.icon-5 { width: 20px; height: 20px; }
.icon-6 { width: 24px; height: 24px; }

.glow-text { text-shadow: 0 0 24px rgb(74 222 128 / 0.45); }

.dot-grid {
    background-image: radial-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* ---------- кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 500;
    transition: transform .15s, background-color .15s;
}
.btn--primary {
    background: var(--lime);
    color: var(--on-accent);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgb(74 222 128 / 0.6), 0 0 24px rgb(74 222 128 / 0.35);
}
.btn--primary:hover { transform: scale(1.02); }
.btn--ghost { border-color: var(--border); padding: 14px 24px; }
.btn--ghost:hover { background: var(--secondary); }
.btn--dim { background: rgb(17 17 17 / 0.6); }

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgb(74 222 128 / 0.6);
    background: rgb(74 222 128 / 0.1);
    color: var(--lime);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s;
}
.btn-pill:hover { background: rgb(74 222 128 / 0.2); }

.actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 36px; }

/* ---------- шапка и подвал ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgb(17 17 17 / 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand--small { font-size: 14px; font-weight: 400; }
.brand--small img { border-radius: 6px; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.lang-switch__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    opacity: 0.6;
    transition: color .15s, background-color .15s, opacity .15s;
}
.lang-switch__item:hover { opacity: 1; color: var(--fg); }
.lang-switch__item[aria-current="page"] { opacity: 1; color: var(--fg); background: var(--secondary); }
/* на телефоне — только флаги, подписи с 640px */
.lang-switch__item span { display: none; }
.lang-switch__item { padding: 4px 6px; }
.flag { display: block; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15); }

.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.site-nav a { transition: color .15s; }
.site-nav a:hover { color: var(--fg); }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
}
.site-footer .brand span:not(.muted) { color: var(--fg); }
.site-footer .mono { font-size: 12px; }

/* ---------- секции ---------- */

.section { border-top: 1px solid var(--border); padding: 96px 0; }

.heading { max-width: 48rem; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; }
.heading h2 {
    margin-top: 16px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.lead { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

.note { margin-top: 24px; font-size: 12px; color: var(--muted); }

.grid { display: grid; gap: 16px; margin-top: 56px; }

.card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    transition: border-color .15s;
}
.card:hover { border-color: rgb(255 255 255 / 0.2); }
.card h3 { margin-top: 20px; font-size: 18px; font-weight: 600; }
.card p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }

.card--row { flex-direction: row; gap: 20px; }
.card--row h3 { margin-top: 4px; }
.card--row .tag { margin-top: 0; font-size: 12px; letter-spacing: 0.1em; }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid;
    border-radius: 12px;
}
.badge--lg { width: 48px; height: 48px; }
.badge--cyan { color: var(--cyan); border-color: rgb(34 211 238 / 0.4); background: rgb(34 211 238 / 0.1); }
.badge--lime { color: var(--lime); border-color: rgb(74 222 128 / 0.4); background: rgb(74 222 128 / 0.1); }
.badge--orange { color: var(--orange); border-color: rgb(245 158 11 / 0.4); background: rgb(245 158 11 / 0.1); }
.badge--red { color: var(--red); border-color: rgb(239 68 68 / 0.4); background: rgb(239 68 68 / 0.1); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero__glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 520px;
    pointer-events: none;
    background: radial-gradient(ellipse at top, rgb(74 222 128 / 0.12), transparent 60%);
}
.hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 80px;
    text-align: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }

.hero h1 {
    max-width: 56rem;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.hero__lead { max-width: 42rem; margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
    margin-top: 28px;
    font-size: 14px;
    color: var(--muted);
}
.hero__badges li { display: flex; align-items: center; gap: 6px; }

.device { position: relative; width: 100%; max-width: 64rem; margin-top: 64px; }
.device__glow {
    position: absolute;
    inset: -24px -40px;
    border-radius: 3rem;
    background: radial-gradient(ellipse at center, rgb(34 211 238 / 0.14), transparent 65%);
    filter: blur(40px);
}
.device__frame {
    position: relative;
    padding: 10px;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 2.2rem;
    background: linear-gradient(to bottom, #2a2a2a, #141414);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
.device__screen { overflow: hidden; border-radius: 1.7rem; background: #000; }
.device__screen img { width: 100%; }
.device__button {
    display: none;
    position: absolute;
    top: 50%;
    left: 4px;
    width: 4px;
    height: 40px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
}

/* ---------- движок ---------- */

.grid-joined {
    display: grid;
    gap: 1px;
    margin-top: 56px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--border);
}
.cell { padding: 28px; background: var(--card); }
.cell h3 { margin-top: 20px; font-size: 16px; font-weight: 600; }
.cell p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- вейвформа ---------- */

.wave { display: flex; align-items: center; gap: 2px; height: 64px; }
.wave > div { position: relative; flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; }
.wave span { position: absolute; width: 100%; border-radius: 999px; }
.wave .w-low { background: rgb(239 68 68 / 0.8); }
.wave .w-mid { background: rgb(74 222 128 / 0.8); }
.wave .w-high { background: var(--blue); }
.wave--56 { height: 56px; }

.wave-box {
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: rgb(17 17 17 / 0.6);
}

/* ---------- честно ---------- */

.checklist { padding: 28px; }
.checklist--yes, .checklist--yes:hover { border-color: rgb(74 222 128 / 0.3); }
.checklist--no, .checklist--no:hover { border-color: rgb(239 68 68 / 0.3); }
.checklist h3 { margin-top: 0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.checklist--yes h3 { color: var(--lime); }
.checklist--no h3 { color: var(--red); }
.checklist ul { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; font-size: 14px; line-height: 1.65; }
.checklist li .icon { margin-top: 3px; }
.checklist--no li { color: var(--muted); }

/* ---------- приватность ---------- */

.panel {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background-color: var(--card);
}
.panel .heading { max-width: 42rem; }
.panel .heading h2 { line-height: 1.2; }
.privacy { gap: 24px; margin-top: 40px; }
.tile { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: rgb(17 17 17 / 0.7); }
.tile h3 { margin-top: 16px; font-size: 16px; font-weight: 600; }
.tile p { margin-top: 6px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 48px; }
.faq__list { border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.faq details { padding: 20px 24px; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__plus { color: var(--muted); transition: transform .2s; }
.faq details[open] .faq__plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- финальный CTA ---------- */

.cta {
    position: relative;
    overflow: hidden;
    padding: 56px 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    text-align: center;
}
.cta__wave { position: absolute; left: 0; right: 0; bottom: 0; height: 112px; opacity: 0.2; pointer-events: none; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__logo {
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgb(239 68 68 / 0.6), 0 0 32px rgb(239 68 68 / 0.35);
}
.cta h2 {
    max-width: 42rem;
    margin-top: 32px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.cta .lead { max-width: 36rem; }
.cta .actions { gap: 12px; }
.cta .note { margin-top: 20px; }

/* ---------- адаптив ---------- */

@media (min-width: 640px) {
    .lang-switch__item { padding: 4px 9px 4px 6px; }
    .lang-switch__item span { display: inline; }
    .actions { flex-direction: row; }
    .grid--3, .grid--4, .grid-joined { grid-template-columns: repeat(2, 1fr); }
    .card--wide { grid-column: span 2; }
}

@media (min-width: 768px) {
    .container { padding-left: 24px; padding-right: 24px; }
    .site-nav { display: block; }
    .site-footer__inner { flex-direction: row; }

    .heading h2 { font-size: 36px; line-height: 1.15; }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .card--row { padding: 28px; }

    .hero__inner { padding-top: 96px; }
    .hero h1 { font-size: 60px; }
    .device__frame { padding: 14px; border-radius: 2.8rem; }
    .device__screen { border-radius: 2.2rem; }
    .device__button { display: block; }

    .panel { padding: 48px; }
    .cta { padding: 80px 48px; }
    .cta h2 { font-size: 48px; line-height: 1.05; }
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 72px; }
    .grid--3, .grid-joined { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .faq { grid-template-columns: 1fr 1.6fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .btn-pill, .faq__plus { transition: none; }
}
