/* ============================================================
   light-site — тёмная тема, акцент «благородный красный» (red-ai)
   Палитра в :root, фоновые ауроры и сетка через псевдоэлементы.
   ============================================================ */

:root {
    --bg:        #0a0708;
    --surface:   rgba(24, 16, 17, 0.72);
    --surface-2: rgba(30, 19, 20, 0.60);
    --border:    rgba(255, 255, 255, 0.08);
    --border-2:  rgba(255, 255, 255, 0.14);
    --text:      #f2e9ea;
    --muted:     #a89296;
    --accent:    #e5484d;   /* благородный красный — бренд */
    --accent-2:  #f59e0b;   /* тёплый янтарь — второй тон градиента */
    --ok:        #4ade80;   /* только индикатор статуса */
    --radius:    18px;
    --maxw:      1040px;
}

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

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Фон: аурора ---------- */

body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    background:
        radial-gradient(38% 45% at 22% 18%, rgba(229, 72, 77, 0.22), transparent 70%),
        radial-gradient(42% 50% at 82% 12%, rgba(245, 158, 11, 0.16), transparent 72%),
        radial-gradient(50% 55% at 60% 92%, rgba(120, 40, 90, 0.18), transparent 70%);
    filter: blur(30px);
    animation: drift 18s ease-in-out infinite alternate;
}

/* ---------- Фон: тонкая сетка ---------- */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(80% 60% at 50% 25%, #000 0%, transparent 85%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 25%, #000 0%, transparent 85%);
    pointer-events: none;
}

/* ---------- Обёртка ---------- */

.page {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 24px 60px;
}

/* ---------- Навигация ---------- */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    margin-bottom: 56px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-name {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.brand-name .accent { color: var(--accent); }

.mark {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px rgba(229, 72, 77, 0.65);
}

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 0.92rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

.hero { max-width: 700px; margin-bottom: 64px; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse 2s ease-in-out infinite;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.grad {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(120deg, var(--accent), #f2733a);
    box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.4), 0 10px 30px rgba(229, 72, 77, 0.30);
}

.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.6), 0 14px 40px rgba(229, 72, 77, 0.45); }

.btn.ghost {
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Статистика ---------- */

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

.stat {
    padding: 24px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.7;
}

.stat-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat-label { color: var(--muted); font-size: 0.9rem; }

/* ---------- Список моделей ---------- */

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.model-list { list-style: none; display: grid; gap: 12px; }

.model {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s;
}

.model:hover {
    border-color: var(--border-2);
    box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.25), 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.model-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.model-name {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1rem;
    color: var(--text);
}

.model-size { font-size: 0.9rem; color: var(--accent-2); font-weight: 600; }

.model-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--muted);
}

.model-state.ok { color: var(--ok); font-weight: 600; }

/* ---------- Футер ---------- */

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}

.links { display: flex; gap: 18px; }

.links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ---------- Анимации ---------- */

@keyframes drift {
    from { transform: translate3d(-2%, -1%, 0) scale(1.0); }
    to   { transform: translate3d(2%, 1%, 0) scale(1.06); }
}

@keyframes pulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

@media (prefers-reduced-motion: reduce) {
    body::before, .dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Мобильные ---------- */

@media (max-width: 720px) {
    .stats { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .model-meta { flex-direction: column; gap: 4px; }
}
