@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#0D1013;
  --bg-panel:#15191E;
  --bg-panel-2:#1B2027;
  --border:#262B33;
  --border-soft:#1E232B;
  --text:#EDEFF2;
  --text-muted:#8B93A0;
  --text-dim:#5C6472;
  --accent:#FFB020;
  --accent-soft:#FFD166;
  --accent-2:#5B8DEF;
  --accent-3:#34D399;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --body: 'Manrope', system-ui, sans-serif;
  --radius: 10px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ margin:0; font-family:var(--body); font-weight:800; letter-spacing:-0.02em; }
p{ margin:0; }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 28px; }

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px;
  background:var(--accent);
  border-radius:1px;
  display:inline-block;
}

/* ---------- header / nav ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(13,16,19,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
}
.logo{
  font-family:var(--mono);
  font-weight:700;
  font-size:19px;
  letter-spacing:0.02em;
  display:flex; align-items:center; gap:10px;
}
.logo .dot{ color:var(--accent); }
.logo-mark{
  width:26px; height:26px;
  border:1.5px solid var(--accent);
  border-radius:4px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:2px;
  padding:3px;
}
.logo-mark i{ background:var(--accent); border-radius:1px; }
.logo-mark i:nth-child(2){ background:var(--accent-soft); opacity:.6; }
.logo-mark i:nth-child(5){ background:var(--accent-soft); opacity:.6; }

.nav-links{
  display:flex; align-items:center; gap:2px;
}
.nav-links a{
  font-size:14.5px;
  font-weight:600;
  color:var(--text-muted);
  padding:9px 14px;
  border-radius:7px;
  transition:color .15s ease, background .15s ease;
}
.nav-links a:hover{ color:var(--text); background:var(--bg-panel); }
.nav-links a.active{ color:var(--text); background:var(--bg-panel-2); }

.nav-cta{ display:flex; align-items:center; gap:10px; }

.nav-toggle{
  display:none;
  background:none; border:1px solid var(--border); border-radius:7px;
  width:38px; height:38px; color:var(--text); cursor:pointer;
}

/* ---------- buttons ---------- */
.btn{
  font-family:var(--body);
  font-weight:700;
  font-size:14.5px;
  padding:11px 20px;
  border-radius:8px;
  border:1px solid transparent;
  cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .12s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:var(--accent);
  color:#161200;
}
.btn-primary:hover{ background:var(--accent-soft); }
.btn-ghost{
  background:transparent;
  border-color:var(--border);
  color:var(--text);
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-block{ width:100%; justify-content:center; }
.btn-lg{ padding:14px 26px; font-size:15.5px; }

/* ---------- hero ---------- */
.hero{
  padding:76px 0 60px;
  border-bottom:1px solid var(--border-soft);
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
}
.hero h1{
  font-size:clamp(34px, 4.4vw, 54px);
  line-height:1.06;
  margin:18px 0 20px;
}
.hero h1 em{
  font-style:normal;
  color:var(--accent);
}
.hero-sub{
  color:var(--text-muted);
  font-size:17px;
  max-width:52ch;
  margin-bottom:30px;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:22px; }
.hero-meta{ display:flex; gap:18px; flex-wrap:wrap; }
.hero-meta span{ font-family:var(--mono); font-size:12.5px; color:var(--text-dim); }
.hero-meta strong{ color:var(--text-muted); }

/* ---------- chunkbar signature ---------- */
.chunkbar-card{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:22px;
}
.chunkbar-card__head{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom:16px;
}
.chunkbar-card__head .fname{
  font-family:var(--mono); font-size:13px; color:var(--text-muted);
}
.chunkbar-card__head .fsize{
  font-family:var(--mono); font-size:12px; color:var(--text-dim);
}
.chunkbar{
  display:flex; gap:4px; height:52px; margin-bottom:8px;
}
.chunk{
  flex:1;
  position:relative;
  background:var(--bg-panel-2);
  border:1px solid var(--border);
  border-radius:4px;
  overflow:hidden;
}
.chunk__fill{
  position:absolute; inset:0;
  background:linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform:scaleX(0);
  transform-origin:left;
  animation:fillChunk 3.6s infinite ease-in-out;
  animation-delay:calc(var(--i) * 0.22s);
}
@keyframes fillChunk{
  0%{ transform:scaleX(0); opacity:1; }
  38%{ transform:scaleX(1); opacity:1; }
  70%{ transform:scaleX(1); opacity:1; }
  86%{ transform:scaleX(1); opacity:.35; }
  100%{ transform:scaleX(0); opacity:1; }
}
.chunk-labels{
  display:flex; gap:4px; margin-bottom:20px;
}
.chunk-labels span{
  flex:1; text-align:center;
  font-family:var(--mono); font-size:10.5px; color:var(--text-dim);
}
.chunkbar-stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--border); border:1px solid var(--border); border-radius:8px; overflow:hidden;
}
.chunkbar-stats div{
  background:var(--bg-panel-2); padding:12px 14px;
}
.chunkbar-stats .k{ font-family:var(--mono); font-size:10.5px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.08em; }
.chunkbar-stats .v{ font-family:var(--mono); font-size:17px; color:var(--text); font-weight:700; margin-top:4px; }
.chunkbar-stats .v.accent{ color:var(--accent); }
.chunkbar-stats .v.green{ color:var(--accent-3); }

/* ---------- sections ---------- */
section{ padding:72px 0; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(26px,3vw,36px); margin-top:14px; }
.section-head p{ color:var(--text-muted); margin-top:12px; font-size:16px; }
.section-alt{ background:var(--bg-panel); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }

/* stat strip */
.stat-strip{
  display:grid; grid-template-columns:repeat(4,1fr);
  border:1px solid var(--border); border-radius:12px; overflow:hidden;
}
.stat-strip div{
  padding:26px 22px; border-right:1px solid var(--border);
  background:var(--bg-panel);
}
.stat-strip div:last-child{ border-right:none; }
.stat-strip .num{ font-family:var(--mono); font-size:30px; font-weight:700; color:var(--accent); }
.stat-strip .lbl{ font-size:13px; color:var(--text-muted); margin-top:6px; }

/* feature cards */
.grid{ display:grid; gap:20px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.card{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:26px;
  transition:border-color .15s ease, transform .15s ease;
}
.card:hover{ border-color:var(--accent); transform:translateY(-2px); }
.card .icon{
  width:38px; height:38px;
  border-radius:8px;
  background:var(--bg-panel-2);
  border:1px solid var(--border);
  display:grid; place-items:center;
  margin-bottom:16px;
  color:var(--accent);
}
.card h3{ font-size:17px; margin-bottom:8px; }
.card p{ color:var(--text-muted); font-size:14.5px; }
.card .tag{
  font-family:var(--mono); font-size:10.5px; color:var(--text-dim);
  text-transform:uppercase; letter-spacing:.08em;
  margin-bottom:10px; display:block;
}

/* steps */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.step{ padding:30px 26px; border-right:1px solid var(--border); position:relative; background:var(--bg-panel); }
.step:last-child{ border-right:none; }
.step .n{ font-family:var(--mono); color:var(--accent); font-size:13px; font-weight:700; margin-bottom:14px; display:block; }
.step h3{ font-size:16.5px; margin-bottom:8px; }
.step p{ color:var(--text-muted); font-size:14px; }

/* benchmark bars */
.bench{ display:flex; flex-direction:column; gap:14px; }
.bench-row{ display:grid; grid-template-columns:150px 1fr 90px; align-items:center; gap:14px; }
.bench-row .label{ font-family:var(--mono); font-size:13px; color:var(--text-muted); }
.bench-track{ height:14px; background:var(--bg-panel-2); border:1px solid var(--border); border-radius:7px; overflow:hidden; }
.bench-fill{ height:100%; background:linear-gradient(90deg,var(--accent-2),var(--accent)); border-radius:7px; }
.bench-row .val{ font-family:var(--mono); font-size:13px; text-align:right; color:var(--text); }

/* CTA band */
.cta-band{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:52px 48px;
  display:flex; align-items:center; justify-content:space-between; gap:30px;
  flex-wrap:wrap;
}
.cta-band h2{ font-size:26px; }
.cta-band p{ color:var(--text-muted); margin-top:10px; }

/* footer */
footer.site{ border-top:1px solid var(--border-soft); padding:56px 0 30px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; margin-bottom:44px; }
.footer-col h4{ font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dim); margin-bottom:16px; font-weight:700; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a{ color:var(--text-muted); font-size:14px; }
.footer-col ul a:hover{ color:var(--accent); }
.footer-about p{ color:var(--text-muted); font-size:14px; max-width:34ch; margin-top:14px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--border-soft); flex-wrap:wrap; gap:12px; }
.footer-bottom span{ font-size:13px; color:var(--text-dim); }

/* page hero (secondary pages) */
.page-hero{ padding:56px 0 40px; border-bottom:1px solid var(--border-soft); }
.page-hero h1{ font-size:clamp(30px,4vw,44px); margin-top:14px; }
.page-hero p{ color:var(--text-muted); max-width:60ch; margin-top:14px; font-size:16.5px; }
.crumb{ font-family:var(--mono); font-size:12px; color:var(--text-dim); margin-bottom:14px; }
.crumb a{ color:var(--text-muted); }
.crumb a:hover{ color:var(--accent); }

/* tables */
table{ width:100%; border-collapse:collapse; }
table th, table td{ text-align:left; padding:13px 16px; border-bottom:1px solid var(--border); font-size:14px; }
table th{ font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-dim); }
table td{ color:var(--text-muted); }
table td:first-child, table th:first-child{ color:var(--text); font-weight:600; }

/* pricing */
.price-card{ background:var(--bg-panel); border:1px solid var(--border); border-radius:14px; padding:30px; display:flex; flex-direction:column; }
.price-card.featured{ border-color:var(--accent); position:relative; }
.price-card.featured::before{
  content:"РЕКОМЕНДУЕМ"; position:absolute; top:-11px; left:24px;
  background:var(--accent); color:#161200; font-family:var(--mono); font-size:10.5px;
  font-weight:700; letter-spacing:.06em; padding:4px 10px; border-radius:5px;
}
.price-card h3{ font-size:18px; }
.price-card .price{ font-family:var(--mono); font-size:38px; font-weight:700; margin:16px 0 4px; }
.price-card .price span{ font-size:14px; color:var(--text-dim); font-weight:500; }
.price-card .desc{ color:var(--text-muted); font-size:13.5px; margin-bottom:22px; }
.price-list{ margin:22px 0 26px; flex-grow:1; }
.price-list li{ display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--text-muted); padding:7px 0; }
.price-list li strong{ color:var(--text); font-weight:600; }
.price-list li::before{ content:"✓"; color:var(--accent-3); font-weight:700; flex-shrink:0; }

/* tabs (download page) */
.tabs{ display:flex; gap:8px; margin-bottom:26px; flex-wrap:wrap; }
.tab-btn{
  font-family:var(--mono); font-size:13px; font-weight:600;
  padding:10px 18px; border-radius:8px; border:1px solid var(--border);
  background:var(--bg-panel); color:var(--text-muted); cursor:pointer;
}
.tab-btn.active{ border-color:var(--accent); color:var(--accent); background:var(--bg-panel-2); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }
.download-card{
  background:var(--bg-panel); border:1px solid var(--border); border-radius:14px; padding:32px;
  display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
}
.download-card .meta{ font-family:var(--mono); font-size:12.5px; color:var(--text-dim); margin-top:8px; }
.checksum{
  font-family:var(--mono); font-size:12.5px; color:var(--text-muted);
  background:var(--bg-panel-2); border:1px solid var(--border); border-radius:7px;
  padding:12px 14px; margin-top:16px; word-break:break-all;
}

/* faq accordion */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; color:var(--text);
  font-family:var(--body); font-weight:700; font-size:16px;
  padding:22px 0; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:20px;
}
.faq-q .plus{ font-family:var(--mono); color:var(--accent); font-size:18px; transition:transform .2s ease; flex-shrink:0; }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a p{ color:var(--text-muted); font-size:14.5px; padding-bottom:22px; max-width:70ch; }
.faq-item.open .faq-a{ max-height:400px; }

/* responsive */
@media (max-width:920px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid-3, .grid-2{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .step{ border-right:none; border-bottom:1px solid var(--border); }
  .stat-strip{ grid-template-columns:1fr 1fr; }
  .stat-strip div:nth-child(2){ border-right:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:block; }
  .cta-band{ padding:36px 26px; }
}
@media (max-width:600px){
  .footer-grid{ grid-template-columns:1fr; }
  .bench-row{ grid-template-columns:90px 1fr 70px; }
}

/* mobile nav drawer */
.mobile-nav{
  display:none;
  flex-direction:column;
  gap:4px;
  padding:12px 28px 20px;
  border-bottom:1px solid var(--border-soft);
  background:var(--bg);
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{ padding:12px 8px; font-weight:600; color:var(--text-muted); border-radius:7px; }
.mobile-nav a.active, .mobile-nav a:hover{ color:var(--text); background:var(--bg-panel); }
