@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg: #0E0E0E;
  --bg2: #141414;
  --bg3: #1C1C1C;
  --lime: #BAFF29;
  --lime-glow: rgba(186,255,41,0.10);
  --lime-dim: rgba(186,255,41,0.35);
  --white: #F0F0F0;
  --muted: #666;
  --border: #232323;
  --dot-r: #FF5F57;
  --dot-y: #FEBC2E;
  --dot-g: #28C840;
  --r: 4px;
  --fh: 'Unbounded', sans-serif;
  --fm: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--fm);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ── GRAIN ── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9990; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── CURSOR ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 22px; height: 22px;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  transition: transform .08s linear;
}
.cursor::before {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--lime);
  border-radius: 50%;
}
.cursor::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 3px; height: 3px;
  background: var(--lime); border-radius: 50%;
}
.cursor.clicking { transform: translate(-50%,-50%) scale(.7); }

/* ── FLASH ── */
.screenshot-flash {
  position: fixed; inset: 0;
  background: #fff; pointer-events: none;
  z-index: 99999; opacity: 0;
}
@keyframes flash { 0%{opacity:0} 8%{opacity:.9} 100%{opacity:0} }
.screenshot-flash.go { animation: flash .35s ease forwards; }

/* ── TOOLBAR ── */
.toolbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(14,14,14,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; gap: 0;
}
.toolbar__dots { display: flex; gap: 6px; align-items: center; margin-right: 16px; }
.toolbar__dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.toolbar__dots span:nth-child(1){ background: var(--dot-r); }
.toolbar__dots span:nth-child(2){ background: var(--dot-y); }
.toolbar__dots span:nth-child(3){ background: var(--dot-g); }

.toolbar__logo {
  font-family: var(--fh); font-size: 11px; font-weight: 700;
  color: var(--white); text-decoration: none;
  letter-spacing: .12em; margin-right: 24px; white-space: nowrap;
}
.t-sep { width: 1px; height: 28px; background: var(--border); margin: 0 16px; flex-shrink: 0; }

.toolbar__nav { display: flex; gap: 2px; flex: 1; }
.toolbar__nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-family: var(--fm); font-size: 12px;
  color: var(--muted); text-decoration: none;
  border-radius: var(--r); border: 1px solid transparent;
  transition: all .2s; letter-spacing: .02em; white-space: nowrap;
}
.toolbar__nav a:hover { color: var(--white); background: var(--bg3); border-color: var(--border); }
.toolbar__nav a.active { color: var(--lime); background: rgba(186,255,41,.06); border-color: var(--lime-dim); }

.toolbar__cta { margin-left: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  font-family: var(--fm); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--r);
  cursor: none; transition: all .2s; border: 1px solid;
}
.btn-primary { background: var(--lime); color: #000; border-color: var(--lime); }
.btn-primary:hover { background: #d0ff55; box-shadow: 0 0 24px rgba(186,255,41,.28); }
.btn-outline { background: transparent; color: var(--lime); border-color: var(--lime-dim); }
.btn-outline:hover { background: var(--lime-glow); border-color: var(--lime); }
.btn-lg { padding: 13px 32px; font-size: 13px; }

/* ── WINDOW CHROME ── */
.window { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; background: var(--bg2); }
.window__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; background: var(--bg3); border-bottom: 1px solid var(--border);
}
.window__dots { display: flex; gap: 6px; }
.window__dots span { width: 10px; height: 10px; border-radius: 50%; }
.window__dots span:nth-child(1){ background: var(--dot-r); }
.window__dots span:nth-child(2){ background: var(--dot-y); }
.window__dots span:nth-child(3){ background: var(--dot-g); }
.window__title { font-size: 11px; color: var(--muted); flex: 1; text-align: center; letter-spacing: .05em; }
.window__body { padding: 40px; position: relative; }

/* ── ANNOTATIONS ── */
.ann { position: absolute; pointer-events: none; user-select: none; }
.ann-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--lime); font-family: var(--fm);
  white-space: nowrap; opacity: 0; transition: opacity .5s ease;
}
.ann-label.vis { opacity: 1; }
.ann-label::before {
  content: attr(data-n);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--lime); color: #000;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Marker highlight */
.mark { position: relative; display: inline; }
.mark::before {
  content: '';
  position: absolute; inset: 0px -4px -2px;
  background: rgba(186,255,41,.2);
  transform: skewX(-3deg) rotate(-.4deg);
  z-index: -1; border-radius: 2px;
}

/* Selection box */
.sel-rect {
  fill: rgba(186,255,41,.025);
  stroke: #BAFF29; stroke-width: 1.2;
  stroke-dasharray: 1264; stroke-dashoffset: 1264;
}
@keyframes drawRect { to { stroke-dashoffset: 0; } }
.sel-rect.draw { animation: drawRect 2.4s cubic-bezier(.4,0,.2,1) forwards .4s; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 56px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186,255,41,.055) 0%, transparent 68%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-window { width: 100%; max-width: 980px; position: relative; }
.hero-window .window__body { padding: 60px 64px; min-height: 420px; }

.hero__kicker {
  font-size: 10px; color: var(--lime);
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.hero__kicker::before { content: ''; width: 24px; height: 1px; background: var(--lime); }

.hero__title {
  font-family: var(--fh);
  font-size: clamp(36px,6vw,76px);
  font-weight: 900; line-height: 1.03;
  letter-spacing: -.025em; margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: var(--lime); }

.hero__sub {
  font-size: 14px; color: var(--muted);
  max-width: 460px; margin-bottom: 40px; line-height: 1.75;
}
.hero__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__version { font-size: 11px; color: var(--muted); margin-left: 4px; }

/* ── STATS ── */
.stats-wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.stat { background: var(--bg); padding: 44px 36px; position: relative; }
.stat::before {
  content: attr(data-n); position: absolute;
  top: 16px; right: 16px;
  font-size: 10px; color: var(--border); font-family: var(--fm);
}
.stat__num {
  font-family: var(--fh); font-size: 52px; font-weight: 900;
  color: var(--lime); line-height: 1; margin-bottom: 8px;
}
.stat__lbl { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ── SECTION ── */
.section { padding: 96px 24px; max-width: 980px; margin: 0 auto; }
.section__head { margin-bottom: 56px; }
.section__kicker {
  font-size: 10px; color: var(--lime);
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.section__kicker::before { content: ''; width: 20px; height: 1px; background: var(--lime); }
.section__title {
  font-family: var(--fh);
  font-size: clamp(24px,4vw,46px);
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
}
.section__title em { font-style: normal; color: var(--lime); }
.section__sub { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 560px; line-height: 1.75; }

/* ── FEATURE GRID (homepage) ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.fcard { background: var(--bg); padding: 40px 32px; transition: background .25s; position: relative; overflow: hidden; }
.fcard:hover { background: var(--bg2); }
.fcard__num {
  position: absolute; top: 16px; right: 20px;
  font-size: 10px; color: var(--border); font-family: var(--fm);
}
.fcard__icon {
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: var(--r); display: flex; align-items: center;
  justify-content: center; font-size: 16px; margin-bottom: 20px;
  transition: border-color .25s;
}
.fcard:hover .fcard__icon { border-color: var(--lime-dim); color: var(--lime); }
.fcard__title { font-family: var(--fh); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.fcard__text { font-size: 12px; color: var(--muted); line-height: 1.75; }

/* ── FEAT SHOWCASE (features page) ── */
.feat-block { margin-bottom: 20px; }
.feat-block .window__body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center; padding: 48px;
}
.feat-block.rev .window__body { direction: rtl; }
.feat-block.rev .window__body > * { direction: ltr; }

.feat-demo {
  background: var(--bg3); border-radius: var(--r);
  padding: 24px; min-height: 190px; position: relative; overflow: hidden;
}
.ui-ln { height: 7px; border-radius: 2px; background: var(--border); margin-bottom: 9px; }
.ui-ln.w100{width:100%} .ui-ln.w80{width:80%} .ui-ln.w60{width:60%} .ui-ln.w45{width:45%}
.ui-box { border-radius: var(--r); background: #1a1a1a; border: 1px solid var(--border); }

.feat-kicker { font-size: 10px; color: var(--lime); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 12px; }
.feat-title { font-family: var(--fh); font-size: 20px; font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
.feat-text { font-size: 12px; color: var(--muted); line-height: 1.75; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.feat-tag {
  padding: 3px 10px; border: 1px solid var(--border);
  border-radius: 99px; font-size: 10px; color: var(--muted); letter-spacing: .04em;
}

/* ── STEPS (how-it-works) ── */
.rec-bar {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 48px;
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.15} }
.rec-dot { animation: blink 1.2s ease-in-out infinite; }
.rec-lbl { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.rec-time { font-size: 11px; color: var(--lime); margin-left: 16px; font-variant-numeric: tabular-nums; }

.steps { display: flex; flex-direction: column; gap: 2px; }
.step {
  display: grid; grid-template-columns: 80px 1fr;
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; background: var(--bg); transition: border-color .3s;
}
.step:hover { border-color: var(--lime-dim); }
.step__side {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg3); border-right: 1px solid var(--border);
  padding: 24px; gap: 6px;
}
.step__tc { font-size: 9px; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.step__n { font-family: var(--fh); font-size: 30px; font-weight: 900; color: var(--lime); line-height: 1; }
.step__body {
  padding: 28px 36px;
  display: grid; grid-template-columns: 1fr 180px;
  gap: 24px; align-items: center;
}
.step__title { font-family: var(--fh); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step__text { font-size: 12px; color: var(--muted); line-height: 1.75; }
.step__vis {
  border-radius: var(--r); background: var(--bg3);
  border: 1px solid var(--border); height: 80px;
  position: relative; overflow: hidden; display: flex;
  align-items: center; justify-content: center; font-size: 11px; color: var(--muted);
}
.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 24px; padding: 0 6px;
  background: var(--bg3); border: 1px solid #444;
  border-bottom-width: 3px; border-radius: 4px;
  font-size: 11px; color: var(--white); font-family: var(--fm);
  transition: all .1s;
}
.hotkey { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; }
.hotkey span { font-size: 11px; color: var(--muted); }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.pcard {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 36px 28px; background: var(--bg);
  position: relative; transition: border-color .3s;
}
.pcard:hover { border-color: #333; }
.pcard.feat { border-color: var(--lime-dim); background: var(--bg2); }
.pcard.feat::before {
  content: 'ПОПУЛЯРНЫЙ';
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: #000;
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 12px; border-radius: 99px; font-family: var(--fm);
}
/* selection handles */
.pcard.feat::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--r);
  background: transparent;
  pointer-events: none;
}
.pcard__sel-h { position: absolute; width: 8px; height: 8px; background: var(--lime); border: 1px solid #000; display: none; }
.pcard.feat .pcard__sel-h { display: block; }
.pcard__sel-h.tl { top: -4px; left: -4px; }
.pcard__sel-h.tr { top: -4px; right: -4px; }
.pcard__sel-h.bl { bottom: -4px; left: -4px; }
.pcard__sel-h.br { bottom: -4px; right: -4px; }

.pcard__tier { font-size: 10px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.pcard__price {
  font-family: var(--fh); font-size: 44px; font-weight: 900;
  line-height: 1; margin-bottom: 4px;
}
.pcard__price sup { font-size: 18px; vertical-align: super; font-weight: 400; color: var(--muted); }
.pcard__period { font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.pcard__div { height: 1px; background: var(--border); margin-bottom: 24px; }
.plist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.plist li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.plist li::before { content: '✓'; color: var(--lime); font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.plist li.off { opacity: .3; }
.plist li.off::before { content: '×'; color: var(--muted); }

/* ── CONTACTS ── */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-top: 48px; }
.cform { display: flex; flex-direction: column; gap: 16px; }
.cform-group { display: flex; flex-direction: column; gap: 6px; }
.cform-group label { font-size: 10px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.cform-group input, .cform-group textarea, .cform-group select {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 16px;
  color: var(--white); font-family: var(--fm); font-size: 13px;
  outline: none; transition: border-color .2s; resize: none;
  -webkit-appearance: none;
}
.cform-group input:focus, .cform-group textarea:focus, .cform-group select:focus { border-color: var(--lime-dim); }
.cform-group textarea { min-height: 130px; }
.cform-group select option { background: var(--bg3); }

.cinfo {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
  display: flex; flex-direction: column; gap: 28px;
  height: fit-content; position: relative;
}
.cinfo__item { display: flex; flex-direction: column; gap: 5px; }
.cinfo__lbl { font-size: 10px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.cinfo__val { font-size: 14px; color: var(--white); text-decoration: none; transition: color .2s; line-height: 1.5; }
a.cinfo__val:hover { color: var(--lime); }
.cinfo__val.lime { color: var(--lime); }
.cinfo__div { height: 1px; background: var(--border); }

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 24px; text-align: center; position: relative;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(186,255,41,.045) 0%, transparent 100%);
  pointer-events: none;
}
.cta-section .section__kicker { justify-content: center; }
.cta-section .section__title { max-width: 640px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border); padding: 14px 24px;
  display: flex; align-items: center; gap: 0; font-size: 11px; color: var(--muted);
  letter-spacing: .04em; flex-wrap: wrap; gap: 0;
}
.footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--lime); }
.footer__logo { font-family: var(--fh); font-weight: 700; font-size: 10px; color: var(--white) !important; text-decoration: none; margin-right: 16px; }
.footer__sep { width: 1px; height: 14px; background: var(--border); margin: 0 12px; flex-shrink: 0; }
.footer__right { margin-left: auto; display: flex; align-items: center; gap: 0; }
.footer__ver { color: var(--lime); font-size: 10px; }

/* ── SCROLL FADE ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.fu { opacity: 0; }
.fu.vis { animation: fadeUp .6s ease forwards; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .toolbar__nav { display: none; }
  .hero-window .window__body { padding: 36px 28px; }
  .stats { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feat-block .window__body { grid-template-columns: 1fr; padding: 32px; }
  .feat-block.rev .window__body { direction: ltr; }
  .step__body { grid-template-columns: 1fr; }
  .step__vis { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__right { margin-left: 0; width: 100%; margin-top: 10px; }
}
