/* ============================================
   ALEXPIXEL.RU — дизайн-система
   ============================================ */

:root {
    --bg: #070B14;
    --surface: rgba(255, 255, 255, .045);
    --surface-hover: rgba(255, 255, 255, .075);
    --border: rgba(255, 255, 255, .09);
    --text: #F4F7FF;
    --muted: #94A3B8;

    --blue: #60A5FA;
    --violet: #A78BFA;
    --green: #34D399;
    --amber: #FBBF24;

    --grad: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --pill: 999px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
    --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 520px at 8% -10%, rgba(96, 165, 250, .18), transparent 60%),
        radial-gradient(800px 520px at 100% 0%, rgba(167, 139, 250, .14), transparent 55%),
        radial-gradient(700px 600px at 50% 110%, rgba(52, 211, 153, .07), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
}

::selection { background: rgba(96, 165, 250, .35); color: #fff; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 11, 20, .72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }

.brand-mark {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--grad);
    color: #071018;
    font-weight: 800;
    box-shadow: 0 8px 24px -8px rgba(96, 165, 250, .7);
}

.nav-links {
    display: flex;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .03);
}

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--pill);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
    transition: color .25s, background .25s;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: #DBEAFE; background: rgba(96, 165, 250, .16); }

.status {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: .72rem;
    color: var(--green);
    padding: 7px 14px;
    border-radius: var(--pill);
    border: 1px solid rgba(52, 211, 153, .22);
    background: rgba(52, 211, 153, .08);
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

/* ---------- Типографика / служебные ---------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; font-weight: 800; }

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }

.gradient-text {
    background: linear-gradient(115deg, #FFFFFF 15%, #93C5FD 60%, #C4B5FD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead { color: var(--muted); font-size: 1.06rem; max-width: 58ch; }
.muted { color: var(--muted); }

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

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 24px;
    border-radius: var(--pill);
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: .93rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}

.btn-primary { background: var(--grad); color: #071018; box-shadow: 0 12px 30px -12px rgba(96, 165, 250, .65); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border); color: var(--text); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -14px rgba(96, 165, 250, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(96, 165, 250, .45); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
    padding: 7px 14px;
    font-family: var(--mono);
    font-size: .74rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .03);
    transition: color .25s, border-color .25s;
}

.chip:hover { color: var(--text); border-color: rgba(96, 165, 250, .45); }

/* ---------- Стеклянные панели ---------- */

.panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.panel-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--muted); }

.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.dots i:first-child { background: #F87171; }
.dots i:nth-child(2) { background: var(--amber); }
.dots i:nth-child(3) { background: var(--green); }

.terminal { margin: 22px 0; font-family: var(--mono); font-size: .82rem; line-height: 2.1; color: #CBD5E1; }
.terminal .blue { color: var(--blue); }
.terminal .green { color: var(--green); }
.terminal .dim { color: #64748B; }

.cursor { display: inline-block; width: 8px; height: 14px; background: var(--green); vertical-align: middle; animation: blink 1.2s steps(2) infinite; }

.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.panel-stats b { display: block; font-size: 1.6rem; font-weight: 800; }
.panel-stats span { font-size: .74rem; color: var(--muted); }

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

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 78px 0 56px; animation: rise .7s ease both; }
.hero h1 { margin: 20px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0; }
.hero .chip-row { margin-top: 26px; }

/* ---------- Секции ---------- */

.section { padding: 44px 0; animation: rise .8s .1s ease both; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: .95rem; max-width: 44ch; }
.section-head .eyebrow { margin-bottom: 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.feature { padding: 32px; transition: transform .3s, border-color .3s, background .3s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(96, 165, 250, .35); background: linear-gradient(160deg, rgba(96,165,250,.10), rgba(255,255,255,.02)); }

.icon-tile {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 17px;
    font-size: 1.4rem;
    background: rgba(96, 165, 250, .13);
    border: 1px solid rgba(96, 165, 250, .25);
    color: var(--blue);
}

.icon-tile.green { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .25); color: var(--green); }

.feature h3 { margin: 22px 0 10px; font-size: 1.3rem; }
.feature > p { color: var(--muted); font-size: .95rem; }

.check-list { display: grid; gap: 10px; margin: 20px 0 26px; }
.check-list li { color: var(--muted); font-size: .92rem; }
.check-list li::before { content: "✓"; color: var(--green); margin-right: 10px; font-weight: 700; }

/* ---------- CTA / футер ---------- */

.cta { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin: 30px 0 10px; padding: 36px; background: linear-gradient(120deg, rgba(96,165,250,.16), rgba(167,139,250,.10)); }
.cta h2 { font-size: 1.6rem; }
.cta p { color: var(--muted); margin-top: 8px; font-size: .95rem; }

.site-footer { border-top: 1px solid var(--border); margin-top: 50px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: .86rem; }
.footer-inner a:hover { color: var(--blue); }

/* ---------- Внутренние страницы ---------- */

.page-head { padding: 70px 0 30px; animation: rise .7s ease both; }
.page-head h1 { margin: 18px 0 16px; }

.anchor { scroll-margin-top: 110px; }

.service-card, .project-card {
    display: flex; flex-direction: column; gap: 14px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform .3s, background .3s, border-color .3s, box-shadow .3s;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-6px);
    background: var(--surface-hover);
    border-color: rgba(96, 165, 250, .35);
    box-shadow: var(--shadow);
}

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.num { font-family: var(--mono); font-size: .76rem; color: #64748B; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px;
    border-radius: var(--pill);
    font-family: var(--mono);
    font-size: .7rem;
    color: #BFDBFE;
    background: rgba(96, 165, 250, .12);
    border: 1px solid rgba(96, 165, 250, .25);
    white-space: nowrap;
}

.badge.green { color: #A7F3D0; background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.25); }
.badge.amber { color: #FDE68A; background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.25); }
.badge.slate { color: var(--muted); background: rgba(148,163,184,.10); border-color: var(--border); }

.service-card p, .project-card p { color: var(--muted); font-size: .94rem; flex-grow: 1; }

.note { color: var(--muted); font-size: .9rem; margin-top: 20px; }

.stack { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.stack span { font-family: var(--mono); font-size: .7rem; color: var(--muted); padding: 5px 11px; border-radius: var(--pill); background: rgba(255,255,255,.03); border: 1px solid var(--border); }

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

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } }
@keyframes blink { 50% { opacity: 0; } }

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

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
    .hero .panel { max-width: 560px; }
}

@media (max-width: 760px) {
    .nav-inner { justify-content: center; }
    .status { display: none; }
    .nav-links { order: 3; width: 100%; justify-content: center; }
    .nav-links a { padding: 8px 14px; font-size: .85rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .section-head, .cta { flex-direction: column; align-items: flex-start; }
    .cta { padding: 28px; }
    .panel-stats { gap: 8px; }
    .panel-stats b { font-size: 1.3rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}