/* ============================================
   exloader cleaner
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:           #0a0a0e;
    --bg-alt:       #0c0c12;
    --bg-footer:    #07070a;
    --surface:      rgba(255, 255, 255, 0.03);
    --surface-2:    rgba(255, 255, 255, 0.05);
    --surface-3:    rgba(255, 255, 255, 0.08);
    --border:       rgba(255, 255, 255, 0.07);
    --border-2:     rgba(255, 255, 255, 0.12);

    --text:         #ededf0;
    --text-muted:   #9595a3;
    --text-dim:     #5d5d6b;

    --accent:       #7c7cff;
    --accent-2:     #a5a5ff;
    --success:      #4ade80;

    --container:    1200px;
    --radius:       16px;
    --radius-md:    12px;
    --radius-sm:    8px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

::selection { background: var(--accent); color: white; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

em {
    font-style: normal;
    color: var(--accent-2);
    font-weight: 600;
}

/* ============================================
   HEADER (сверху)
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 16px 0;
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--accent-2);
}

.brand em {
    font-weight: 500;
    color: var(--text-muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xl {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 124, 255, 0.35);
}

.btn-primary:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(124, 124, 255, 0.5);
}

.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border-2);
}

.btn-ghost:hover {
    background: var(--surface-3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   HERO + ФОНОВАЯ КАРТИНКА
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg);
}

.with-bg {
    overflow: hidden;
    position: relative;
    background-color: #0a0a0e;
    min-height: 600px;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.with-bg::before {
    display: none;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(10, 10, 14, 0.3) 0%, rgba(10, 10, 14, 0.85) 100%),
        linear-gradient(180deg, rgba(10, 10, 14, 0.2) 0%, rgba(10, 10, 14, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-logo {
    display: inline-grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 36px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--accent-2);
    box-shadow: 0 0 60px rgba(124, 124, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-title {
    font-size: clamp(40px, 6.5vw, 76px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.hero-text {
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    max-width: 720px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-meta div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-meta strong {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.hero-meta span {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    position: relative;
    z-index: 1;
}

.kicker {
    display: inline-block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.section-head p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   THREATS
   ============================================ */
.threats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.threat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.threat:hover { 
    background: var(--surface-2);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.threat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.threat h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.threat p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.threat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    padding: 4px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   STEPS
   ============================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.step {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.step:hover { 
    background: var(--surface-2);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.step-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    font-family: 'Source Code Pro', monospace;
}

.step h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 280px;
    background: radial-gradient(ellipse, rgba(124, 124, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.cta-logo {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--accent-2);
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cta > p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta .btn {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-hint {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Source Code Pro', monospace;
    position: relative;
    z-index: 1;
}

.cta-hint code {
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq details {
    background: rgba(20, 20, 28, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.faq details[open] {
    background: rgba(30, 30, 40, 0.7);
    border-color: var(--border-2);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--text-muted); }

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text-muted);
    border-radius: 1px;
    transition: transform 0.3s;
}

.faq-icon::before {
    left: 0; right: 0; top: 50%;
    height: 1.5px;
    transform: translateY(-50%);
}

.faq-icon::after {
    top: 0; bottom: 0; left: 50%;
    width: 1.5px;
    transform: translateX(-50%);
}

.faq details[open] .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
}

.faq-body {
    padding: 0 24px 22px;
}

.faq-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 32px;
    background: var(--bg-footer);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-tag {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.footer h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-grid > div:not(:first-child) a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s, padding-left 0.2s;
}

.footer-grid > div:not(:first-child) a:hover {
    color: var(--text);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text-dim);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-2);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    min-width: 280px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.toast-text {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Source Code Pro', monospace;
    margin-top: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
    .container { padding: 0 22px; }
    .section { padding: 70px 0; }
    .hero { padding: 120px 0 60px; min-height: auto; }

    .threats-grid { flex-direction: row; flex-wrap: wrap; }
    .threat { flex: 1 1 calc(50% - 6px); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .nav { display: none; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }

    .header-inner { height: 50px; padding: 0 14px; }
    .header .btn { padding: 8px 14px; font-size: 13px; }

    .hero { padding: 110px 0 50px; }
    .hero-title { font-size: 36px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-meta { gap: 24px; padding-top: 28px; }
    .hero-meta strong { font-size: 18px; }

    .threats-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }

    .cta { padding: 40px 24px; }

    .toast { left: 16px; right: 16px; bottom: 16px; min-width: 0; }
}