:root {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eef2f7;
  background: #090b10;
  font-synthesis: none;
  --bg: #090b10;
  --surface: #0f1219;
  --surface-2: #141822;
  --surface-3: #191e29;
  --border: #242b38;
  --border-soft: #1a202b;
  --text: #eef2f7;
  --muted: #8995a8;
  --faint: #596476;
  --mint: #53e3b4;
  --blue: #6ba4ff;
  --violet: #a88bff;
  --amber: #ffbf69;
  --danger: #ff7081;
  --shadow: 0 20px 70px rgba(0, 0, 0, .2);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f5f7;
  --surface: #fff;
  --surface-2: #f7f8fa;
  --surface-3: #eef1f5;
  --border: #dce2ea;
  --border-soft: #e7ebf0;
  --text: #151923;
  --muted: #697386;
  --faint: #8a94a5;
  --mint: #087d60;
  --blue: #236edb;
  --violet: #7353d8;
  --amber: #a75f00;
  --danger: #c83d52;
  --shadow: 0 18px 55px rgba(38, 48, 66, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; min-width: 320px; overflow-x: clip; color: var(--text); background: var(--bg); }
body, button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 22s ease-in-out infinite; }
.orb-a { width: 420px; height: 420px; top: -80px; left: 12%; background: color-mix(in srgb, var(--mint) 35%, transparent); }
.orb-b { width: 380px; height: 380px; top: 18%; right: -60px; background: color-mix(in srgb, var(--blue) 32%, transparent); animation-delay: -8s; }
.orb-c { width: 300px; height: 300px; bottom: 8%; left: 38%; background: color-mix(in srgb, var(--violet) 28%, transparent); animation-delay: -14s; }
.grid-fade {
  position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(color-mix(in srgb, var(--muted) 35%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--muted) 35%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 72%);
}
.cursor-glow {
  position: fixed; width: 280px; height: 280px; margin: -140px 0 0 -140px; z-index: 1; pointer-events: none;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mint) 16%, transparent), transparent 68%);
  opacity: 0; transform: translate3d(-40vw, -40vh, 0); transition: opacity .4s ease;
}
body.is-pointer .cursor-glow { opacity: 1; }

.brand { height: 36px; display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 800; letter-spacing: -.45px; text-decoration: none; white-space: nowrap; }
.brand b { color: #70a6ff; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #07110e; background: linear-gradient(140deg, #69f3c6, #6e98ff); box-shadow: 0 8px 26px rgba(83, 227, 180, .15); transform: rotate(-8deg); }
.brand-mark span { font-weight: 900; transform: rotate(8deg); }
.brand.mini { font-size: 13px; }
.brand.mini .brand-mark { width: 26px; height: 26px; border-radius: 8px; }

.site-header, main, footer { position: relative; z-index: 2; }
.site-header {
  position: sticky; top: 0; z-index: 40; height: 73px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 40px; border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(18px);
  transition: height .35s ease, background .35s ease, border-color .35s ease;
}
.site-header.compact { height: 62px; border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.header-nav { display: flex; gap: 6px; }
.header-nav a { height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 650; transition: .2s ease; }
.header-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.ghost-link { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; padding: 0 8px; }
.ghost-link:hover { color: var(--text); }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); cursor: pointer; transition: .18s ease; }
.icon-button:hover { color: var(--text); border-color: var(--faint); transform: translateY(-1px); }
.icon-button svg { width: 17px; height: 17px; }
.theme-moon { display: none; }
:root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }
.mobile-only, .nav-scrim, .mobile-drawer { display: none; }

.button { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 15px; height: 15px; transition: transform .22s ease; }
.button:hover svg { transform: translateX(3px); }
.button.primary { color: #07130f; background: var(--mint); box-shadow: 0 8px 28px color-mix(in srgb, var(--mint) 18%, transparent); }
.button.primary:hover { box-shadow: 0 14px 40px color-mix(in srgb, var(--mint) 32%, transparent); }
.button.secondary { border-color: var(--border); color: var(--text); background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.button.compact { height: 38px; padding: 0 13px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.hero { min-height: calc(100vh - 73px); display: flex; flex-direction: column; justify-content: center; padding: 72px 0 36px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 50%, transparent); animation: pulse 2.2s ease-out infinite; }
h1 { margin: 22px 0 24px; font-size: clamp(46px, 8vw, 92px); line-height: .92; letter-spacing: -4.2px; }
h1 .line { display: block; overflow: hidden; }
h1 em { color: var(--mint); font-style: normal; font-weight: 500; }
.lead { max-width: 640px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 56px 0 0; padding: 0; max-width: 820px; }
.stat-strip > div { padding: 16px 18px 4px 0; border-top: 1px solid var(--border); }
.stat-strip dt { color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.stat-strip dd { margin: 8px 0 0; font-size: 22px; font-weight: 750; letter-spacing: -1px; }

.marquee { position: relative; z-index: 2; margin: 0; padding: 18px 0 28px; overflow: hidden; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 32s linear infinite; color: var(--faint); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.marquee-track span { white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.section { padding: 100px 0 20px; }
.eyebrow { color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split-copy h2, .section-intro h2 { max-width: 720px; margin: 12px 0 14px; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -2px; }
.split-copy p, .section-intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.section-intro { margin-bottom: 36px; }

.rail { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.rail li { position: relative; padding: 22px 0 22px 22px; border-left: 1px solid var(--border); transition: border-color .3s ease, background .3s ease; }
.rail li:hover { border-left-color: var(--mint); background: linear-gradient(90deg, color-mix(in srgb, var(--mint) 6%, transparent), transparent 70%); }
.rail b { color: var(--faint); font: 500 11px "DM Mono", monospace; }
.rail h3 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -.4px; }
.rail p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.bento article { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.bento article:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--mint) 28%, var(--border)); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.bento-wide { grid-row: 1 / 3; }
.bento h3 { margin: 10px 0 10px; font-size: 24px; letter-spacing: -.7px; }
.bento p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.flow-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.pill { padding: 6px 10px; border-radius: 999px; font: 500 10px "DM Mono", monospace; border: 1px solid var(--border); }
.pill.blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.pill.amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.pill.mint { color: var(--mint); background: color-mix(in srgb, var(--mint) 10%, transparent); }
.pill.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.flow-line { width: 28px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.flow-line::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform: translateX(-100%); animation: sweep 2.4s ease-in-out infinite; }

.console-stage { perspective: none; }
.console { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.console-head { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: pulse 2.2s ease-out infinite; }
.console-body { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px; }
.metric-col { display: grid; gap: 10px; }
.metric { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.metric.mint { color: var(--mint); } .metric.blue { color: var(--blue); } .metric.amber { color: var(--amber); }
.metric small { color: var(--muted); font-size: 10px; font-weight: 700; }
.metric strong { display: block; margin-top: 10px; color: var(--text); font-size: 26px; letter-spacing: -1.2px; }
.metric i { position: absolute; right: -20px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: currentColor; opacity: .08; }
.code-panel { border: 1px solid var(--border); border-radius: 14px; background: #0a0d13; overflow: hidden; }
.code-head { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #242b38; color: #8995a8; font-size: 11px; font-weight: 700; }
.code-panel pre { margin: 0; padding: 22px; color: #cbd6e4; font: 400 13px/1.8 "DM Mono", monospace; }
.green { color: var(--mint); } .purple { color: var(--violet); } .amber { color: var(--amber); } .blue { color: var(--blue); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.timeline article { min-height: 210px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.timeline span { color: var(--mint); font: 500 12px "DM Mono", monospace; }
.timeline h3 { margin: 18px 0 10px; font-size: 20px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.timeline a { color: var(--mint); text-decoration: none; }

.contact-band { margin: 80px 0 0; padding: 72px 0 24px; border-top: 1px solid var(--border); background:
  radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--mint) 12%, transparent), transparent 42%),
  var(--surface); }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-band h2 { margin: 12px 0 12px; font-size: clamp(36px, 5vw, 58px); letter-spacing: -2.4px; }
.contact-band > .contact-inner > p { margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.telegram-hero { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 36px; color: var(--text); text-decoration: none; font: 500 28px/1 "DM Mono", monospace; letter-spacing: -.8px; }
.telegram-hero svg { width: 22px; height: 22px; color: var(--mint); transition: transform .25s ease; }
.telegram-hero:hover svg { transform: translate(4px, -3px); }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; outline: 0; color: var(--text); background: var(--bg); font: inherit; transition: border .15s ease, box-shadow .15s ease;
}
.contact-form input { height: 44px; padding: 0 13px; font-size: 13px; }
.contact-form textarea { padding: 12px 13px; resize: vertical; min-height: 100px; font-size: 13px; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: color-mix(in srgb, var(--mint) 65%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 8%, transparent);
}

footer {
  max-width: 1180px; min-height: 120px; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 28px; margin: 0 auto; padding: 36px 40px 48px; color: var(--faint);
}
footer p { margin: 0; font-size: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--mint); }

.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--mint) 25%, var(--border)); border-radius: 11px; color: var(--text);
  background: var(--surface-2); box-shadow: var(--shadow); font-size: 12px; font-weight: 700;
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 14px; color: var(--mint); }

.reveal { opacity: 1; transform: none; }
.hero .reveal { animation: rise .85s cubic-bezier(.16, 1, .3, 1) both; }
.hero .delay-1 { animation-delay: .1s; }
.hero .delay-2 { animation-delay: .18s; }
.hero .delay-3 { animation-delay: .26s; }
.hero .delay-4 { animation-delay: .34s; }
.js .section .reveal, .js .contact-band .reveal, .js .timeline .reveal, .js .bento .reveal {
  transform: translateY(14px);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.js .section .reveal.in, .js .contact-band .reveal.in, .js .timeline .reveal.in, .js .bento .reveal.in {
  transform: none;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.08); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 45%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .split-section, .bento, .console-body, .timeline, .stat-strip { grid-template-columns: 1fr; }
  .bento-wide { grid-row: auto; }
  .console { transform: none; animation: none; }
}

@media (max-width: 820px) {
  .header-nav, .ghost-link { display: none; }
  .mobile-only { display: inline-grid; }
  .mobile-drawer {
    position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(320px, 88vw); display: flex; flex-direction: column; gap: 6px;
    padding: 18px; border-right: 1px solid var(--border); background: var(--surface); transform: translateX(-105%); transition: transform .22s ease;
  }
  .mobile-drawer.open { transform: translateX(0); }
  .mobile-drawer a { height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 18px; font-weight: 800; }
  .nav-scrim { position: fixed; inset: 0; z-index: 45; border: 0; background: rgba(4, 6, 10, .65); backdrop-filter: blur(3px); }
  .nav-scrim.open { display: block; }
  .site-header, main, footer { padding-left: 20px; padding-right: 20px; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 42px; letter-spacing: -2px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .marquee-track, .flow-line::after, .live-dot, .live-badge i { animation: none !important; }
  .hero .reveal, .js .hero .reveal, .js .section .reveal, .js .contact-band .reveal, .js .timeline .reveal, .js .bento .reveal {
    opacity: 1; transform: none; animation: none; transition: none;
  }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
