/* ============================================================
   Виталий Травин · ИИ-агенты — «ОБСИДИАН» (dark premium)
   База, шапка, первый экран
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:      oklch(0.145 0.011 264);
  --bg2:     oklch(0.175 0.014 265);
  --tx:      oklch(0.975 0.005 270);
  --dim:     oklch(0.68 0.018 268);
  --soft:    oklch(0.58 0.045 270);
  --mute:    oklch(0.52 0.02 268);
  --ac:      oklch(0.71 0.135 260);   /* iris-blue */
  --ac2:     oklch(0.82 0.13 168);    /* emerald — статусы/успех */
  --ink:     oklch(0.16 0.03 262);
  --acsoft:  oklch(0.71 0.135 260 / 0.15);
  --ac2soft: oklch(0.82 0.13 168 / 0.13);
  --acglow:  oklch(0.62 0.15 260 / 0.55);
  --hair:    oklch(0.82 0.04 268 / 0.09);
  --hair2:   oklch(0.72 0.05 268 / 0.20);
  --panel:   linear-gradient(168deg, oklch(0.255 0.035 268 / 0.55), oklch(0.185 0.022 266 / 0.40));
  --card:    oklch(0.205 0.018 266);
  --card2:   oklch(0.235 0.022 266);
  --shadow:  0 50px 110px -36px oklch(0.04 0.03 266 / 0.9);
  --maxw: 1200px;
  --fd: 'Manrope', sans-serif;
  --fm: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--fd); background: var(--bg); color: var(--tx); line-height: 1.55; font-size: 17px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(50% 30% at 85% 12%, oklch(0.42 0.13 268 / 0.10), transparent 60%),
    radial-gradient(45% 28% at 8% 55%, oklch(0.30 0.08 250 / 0.10), transparent 60%),
    radial-gradient(50% 30% at 92% 88%, oklch(0.40 0.10 200 / 0.07), transparent 60%);
  background-attachment: fixed; }
body::before { content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.header, .mmenu, main, .footer { position: relative; z-index: 2; }
::selection { background: var(--ac); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--fm); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; padding: 15px 26px; border-radius: 13px; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(160deg, oklch(0.74 0.145 266), oklch(0.64 0.14 258)); color: var(--ink); box-shadow: 0 16px 40px -12px var(--acglow), inset 0 1px 0 oklch(1 0 0 / 0.25); }
.nav a.btn--primary, .mmenu a.btn--primary, a.btn--primary { color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px var(--acglow); }
.btn--ghost { border: 1px solid var(--hair2); color: var(--tx); }
.btn--ghost:hover { background: oklch(0.7 0.06 268 / 0.06); transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 17px; }
.btn--block { width: 100%; }

/* ============================================================ HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: oklch(0.145 0.011 264 / 0.72); backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--hair); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand .mk { width: 36px; height: 36px; border-radius: 10px; flex: none; background: linear-gradient(150deg, oklch(0.76 0.15 266), oklch(0.62 0.14 258)); display: grid; place-items: center; color: var(--ink); font-weight: 800; box-shadow: 0 8px 22px -6px var(--acglow), inset 0 1px 0 oklch(1 0 0 / 0.3); overflow: hidden; }
.brand .mk img { width: 100%; height: 100%; object-fit: cover; }(--ink); font-weight: 800; box-shadow: 0 8px 22px -6px var(--acglow), inset 0 1px 0 oklch(1 0 0 / 0.3); }
.brand small { display: block; font-family: var(--fm); font-size: 10px; color: var(--dim); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-top: 2px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { color: var(--dim); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--tx); }
.nav-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--hair2); color: var(--tx) !important; transition: border-color .2s, transform .15s, background .2s; }
.nav-ico:hover { border-color: var(--ac); transform: translateY(-2px); background: var(--acsoft); }
.nav-ico svg { width: 19px; height: 19px; }
.mmenu__contacts { margin-top: 26px; display: grid; gap: 2px; border-top: 1px solid var(--hair); padding-top: 18px; }
.mmenu__contacts a { font-family: var(--fm); font-size: 15px; color: var(--ac); padding: 11px 0; border: none; }
.mmenu__contacts a:hover { color: var(--tx); }
.header .btn { padding: 11px 20px; font-size: 14.5px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--hair2); color: var(--tx); place-items: center; background: oklch(0.7 0.06 268 / 0.05); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================================ HERO */
.hero { position: relative; padding-top: 130px; padding-bottom: 70px; overflow: hidden;
  background:
    radial-gradient(70% 50% at 82% -4%, oklch(0.42 0.13 268 / 0.30), transparent 60%),
    radial-gradient(60% 46% at 4% 104%, oklch(0.30 0.08 250 / 0.26), transparent 60%); }
.hero__grain { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 26%, transparent 76%); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 54px; align-items: center; position: relative; z-index: 2; }
.kick { display: inline-flex; align-items: center; gap: 11px; font-family: var(--fm); font-size: 12px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ac); }
.kick::before { content: ''; width: 26px; height: 1px; background: var(--ac); }
.hero h1 { font-size: clamp(36px, 4.6vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; margin-top: 22px; max-width: 480px; }
.hero h1 .soft { color: var(--soft); }
.hero__sub { color: var(--dim); font-size: clamp(16px, 2vw, 18.5px); line-height: 1.6; margin-top: 24px; max-width: 480px; }
.hero__sub b { color: var(--tx); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero__trust { display: flex; align-items: center; gap: 26px; margin-top: 44px; }
.hero__offer { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 11px 16px 11px 11px; border: 1px solid oklch(0.82 0.13 168 / 0.4); border-radius: 100px; background: oklch(0.82 0.13 168 / 0.08); transition: border-color .2s, transform .15s, background .2s; }
.hero__offer:hover { border-color: var(--ac2); transform: translateY(-2px); background: oklch(0.82 0.13 168 / 0.14); }
.hero__offer-badge { font-family: var(--fm); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: oklch(0.16 0.04 168); background: var(--ac2); border-radius: 100px; padding: 6px 12px; white-space: nowrap; }
.hero__offer-text { font-size: 14.5px; color: var(--tx); white-space: nowrap; }
.hero__offer-text b { font-weight: 700; color: var(--ac2); }
.hero__offer svg { width: 17px; height: 17px; color: var(--ac2); flex: none; }
.hero__trust .it b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.hero__trust .it span { font-family: var(--fm); font-size: 11px; color: var(--dim); display: block; margin-top: 3px; }
.hero__trust .sep { width: 1px; height: 32px; background: var(--hair2); }

/* консоль агентов */
.cns { border: 1px solid var(--hair2); border-radius: 22px; background: var(--panel); backdrop-filter: blur(24px); box-shadow: var(--shadow), inset 0 1px 0 oklch(1 0 0 / 0.07); overflow: hidden; }
.cns__h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--hair); }
.cns__h b { font-size: 14px; font-weight: 700; }
.cns__h .live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--fm); font-size: 11px; color: var(--ac2); }
.cns__h .live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ac2); box-shadow: 0 0 10px var(--ac2); animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.cns__metric { padding: 18px 20px 10px; }
.cns__metric .lbl { font-family: var(--fm); font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.cns__metric .v { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 5px; }
.cns__metric .v small { font-size: 14px; color: var(--ac2); font-weight: 700; margin-left: 6px; }
.cns__spark { padding: 0 20px 14px; }
.arow { display: flex; align-items: center; gap: 13px; padding: 13px 20px; border-top: 1px solid var(--hair); }
.arow .ic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--hair2); display: grid; place-items: center; color: var(--ac); flex: none; background: oklch(0.7 0.06 268 / 0.05); }
.arow .ic svg { width: 16px; height: 16px; }
.arow .nm { flex: 1; min-width: 0; }
.arow .nm b { font-size: 13.5px; font-weight: 600; display: block; }
.arow .nm span { font-size: 12px; color: var(--dim); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .st { font-family: var(--fm); font-size: 10.5px; font-weight: 500; padding: 5px 10px; border-radius: 100px; white-space: nowrap; }
.st--on { color: var(--ac2); background: var(--ac2soft); }
.st--go { color: var(--ac); background: var(--acsoft); }
.cns__f { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-family: var(--fm); font-size: 11px; color: var(--dim); border-top: 1px solid var(--hair); }
.cns__f b { color: var(--tx); }

/* бегущая строка */
.marquee { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); overflow: hidden; margin-top: 64px; padding: 16px 0; white-space: nowrap; position: relative; z-index: 2; }
.marquee__t { display: inline-flex; gap: 34px; animation: mq 30s linear infinite; will-change: transform; }
.marquee span { font-family: var(--fm); font-size: 14px; color: var(--dim); display: inline-flex; align-items: center; gap: 34px; text-transform: uppercase; letter-spacing: 0.04em; }
.marquee span::after { content: '◆'; color: var(--ac); font-size: 8px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* мобильное меню */
.mmenu { position: fixed; inset: 0; z-index: 99; background: oklch(0.145 0.011 264 / 0.98); backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 4px; padding: 96px 28px 28px; transform: translateX(101%); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.mmenu.open { transform: none; }
.mmenu a { font-size: 26px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--hair); letter-spacing: -0.02em; }
.mmenu .btn { margin-top: 24px; }
.mclose { position: absolute; top: 16px; right: 24px; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--hair2); color: var(--tx); display: grid; place-items: center; background: oklch(0.7 0.06 268 / 0.05); }
.mclose svg { width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__console { display: none; }
  .hero__grid > div:first-child { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero .kick { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__offer { align-self: center; }
  .hero__trust { justify-content: center; }
  .nav { display: none; }
  .header .btn--primary { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 108px; }
  .hero__grid > div:first-child { text-align: center; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__trust { gap: 16px; flex-wrap: wrap; }
  .brand small { display: none; }
}
