/* ============================================
   CREATEFULLY — общие стили
   ============================================ */

:root {
    --bg: #0a0a0a;
    --bg-raised: #111111;
    --card: #141414;
    --card-hover: #1a1a1a;
    --border: #232323;
    --border-hover: #353535;
    --text: #fafafa;
    --text-dim: #a1a1aa;
    --text-mute: #6b6b70;
    --accent: #7c5cff;
    --accent-bright: #9b80ff;
    --accent-dim: rgba(124, 92, 255, 0.12);
    --accent-line: rgba(124, 92, 255, 0.3);
    --ok: #4ade80;
    --radius: 14px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

a { color: inherit; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.mono { font-family: 'JetBrains Mono', monospace; }

/* === Scroll progress bar === */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    z-index: 2000;
    transition: width 0.1s linear;
}

/* === Навигация === */
.navbar {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text);
}
.nav-logo {
    width: 30px; height: 30px;
    flex-shrink: 0;
}
.nav-brand-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.nav-brand-text span { color: var(--accent); }
.nav-links { display: flex; gap: 2.1rem; list-style: none; }
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.25s var(--ease);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 1.5px;
    background: var(--accent);
    transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; gap: 0.7rem; align-items: center; }
.btn {
    padding: 0.62rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.btn-primary {
    background: var(--text);
    color: #0a0a0a;
}
.btn-primary:hover {
    background: var(--accent-bright);
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-hover);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn-large { padding: 0.95rem 2.1rem; font-size: 0.92rem; }
.mobile-menu-btn {
    display: none;
    background: none; border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 880px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: block; }
}

/* === Layout === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.page-hero {
    padding: 5rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
}
.section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--accent-bright);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.page-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.page-title .accent { color: var(--accent); }
.page-subtitle {
    color: var(--text-dim);
    font-size: 1.08rem;
    max-width: 560px;
    line-height: 1.7;
}

.section-header { margin-bottom: 2.8rem; }
.section-label {
    font-size: 0.78rem;
    color: var(--accent-bright);
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.section-subtitle {
    color: var(--text-dim);
    font-size: 0.98rem;
    max-width: 580px;
    line-height: 1.7;
}

/* === Reveal on scroll === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* === Cards === */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
    border-color: var(--border-hover);
    background: var(--card-hover);
    transform: translateY(-3px);
}

/* === Grid utilities === */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.3rem; }

/* === Stats rail === */
.stats-rail {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
}
.stat-cell {
    flex: 1;
    min-width: 130px;
    padding: 1.4rem 1.6rem;
    border-right: 1px solid var(--border);
    position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-value {
    font-family: 'Manrope', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}
.stat-value .accent { color: var(--accent); }
.stat-label {
    font-size: 0.78rem;
    color: var(--text-mute);
    margin-top: 0.3rem;
}

/* === Footer === */
.footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding: 4rem 2rem 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: var(--container);
    margin: 0 auto;
}
.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-mute);
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer-col a, .footer-col p {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.55rem;
    transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
    max-width: var(--container);
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-mute);
    font-size: 0.8rem;
}
.footer-ip { color: var(--accent-bright); font-weight: 600; }

@media (max-width: 600px) {
    .container { padding: 0 1.3rem; }
    .navbar { padding: 1rem 1.3rem; }
    .page-hero { padding: 3.5rem 0 2.5rem; }
    .section { padding: 3.5rem 0; }
}
