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

:root {
    --bg: #070b14;
    --surface: rgba(255,255,255,.04);
    --border: rgba(255,255,255,.09);
    --text: #e8eef6;
    --muted: #8fa0b5;
    --accent: #ff7a00;
    --accent2: #4da3ff;
    --glow: rgba(255,122,0,.45);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

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

/* ===== Анимированный фон ===== */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: #ff7a0033; top: -120px; right: -80px; }
.blob-2 { width: 460px; height: 460px; background: #4da3ff2e; bottom: -100px; left: -120px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: #a855f726; top: 45%; left: 55%; animation-delay: -12s; }
@keyframes drift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(-70px, 60px) scale(1.18); }
}

/* ===== Шапка ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(7,11,20,.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.nav-links a { color: var(--muted); text-decoration: none; margin-left: 26px; font-size: 15px; position: relative; transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .3s; }
.nav-links a:hover::after { width: 100%; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; animation: pulse 1.8s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* ===== Hero ===== */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 64px; }
.hero-title { font-size: clamp(44px, 8vw, 92px); font-weight: 900; letter-spacing: -2px; line-height: 1.05; }
.gradient-text {
    background: linear-gradient(90deg, var(--accent), #ffb36b, var(--accent2), var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }
.hero-sub { font-size: clamp(17px, 2.4vw, 24px); color: var(--muted); margin: 26px 0 40px; min-height: 1.6em; }
.cursor { color: var(--accent); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Кнопки ===== */
.btn {
    display: inline-block; padding: 15px 34px; border-radius: 999px;
    font-weight: 700; text-decoration: none; font-size: 16px;
    transition: transform .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.btn-primary { background: var(--accent); color: #0a0e1a; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px var(--glow); }
.btn-primary::before {
    content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg); animation: sweep 3s infinite;
}
@keyframes sweep { 0% { left: -80%; } 60%,100% { left: 130%; } }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-3px); }
.btn-big { font-size: 18px; padding: 18px 44px; }

/* ===== Бегущая строка ===== */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; overflow: hidden; background: var(--surface); }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: scroll 22s linear infinite; }
.marquee-track span { color: var(--muted); font-size: 15px; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Секции ===== */
.section { padding: 110px 0; }
.section-alt { background: rgba(255,255,255,.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -1px; margin-bottom: 52px; }

/* ===== Карточки с 3D ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    padding: 30px; transition: transform .2s ease, border-color .3s, box-shadow .3s;
    transform-style: preserve-3d; will-change: transform;
}
.card:hover { border-color: var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 30px rgba(255,122,0,.12); }
.card-icon { font-size: 38px; margin-bottom: 16px; display: inline-block; animation: float 4s ease-in-out infinite; }
.card:nth-child(2) .card-icon { animation-delay: -1s; }
.card:nth-child(3) .card-icon { animation-delay: -2s; }
.card:nth-child(4) .card-icon { animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== О нас ===== */
.about-text { max-width: 760px; font-size: 19px; color: var(--muted); }
.stats { display: flex; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 44px; font-weight: 900; color: var(--accent); }
.stat-label { color: var(--muted); font-size: 14px; }

/* ===== Контакты ===== */
.contact-box { text-align: center; }
.contact-box p { color: var(--muted); margin: 18px 0 34px; }

/* ===== Футер ===== */
.footer { border-top: 1px solid var(--border); padding: 30px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Адаптив ===== */
@media (max-width: 640px) {
    .nav-links { display: none; }
    .hero { text-align: center; }
    .hero-actions { justify-content: center; }
    .section { padding: 70px 0; }
    .stats { gap: 28px; }
}