:root {
  --bg: #0A0A0A;
  --bg-soft: #111111;
  --bg-card: #141414;
  --border: #232323;
  --text: #FFFFFF;
  --text-muted: #A0A0A0;
  --accent: #00FF88;
  --accent-blue: #0088FF;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); }

a { color: inherit; text-decoration: none; }

.accent-word { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-small { padding: 10px 20px; font-size: 15px; }
.btn-full { width: 100%; }

.btn-cta {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 255, 136, .25);
}
.btn-cta:hover { box-shadow: 0 0 40px rgba(0, 255, 136, .45); transform: translateY(-1px); }

.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}

@media (max-width: 640px) {
  .header-inner {
    gap: 12px;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-inner .btn-small {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    margin-inline: 0;
    flex-shrink: 0;
  }
  .logo {
    font-size: 18px;
  }
  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-left: 0;
    margin-bottom: 16px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav { display: flex; gap: 24px; margin-left: auto; justify-content: center; align-items: center; }
.nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 40px 0 72px; position: relative; overflow: hidden; }

.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 255, 136, .07), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 136, 255, .06), transparent 60%);
  pointer-events: none;
}

  .hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }

  @media (max-width: 640px) {
    .hero-inner {
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 40px;
    }
    .hero-copy {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
    .badge {
      margin-inline: auto;
      width: fit-content;
    }
    .lead {
      margin-inline: auto;
      text-align: center;
    }
    .hero-actions {
      justify-content: center;
      width: 100%;
    }
    .hero-metrics {
      justify-items: center;
      text-align: center;
      width: 100%;
    }
    .terminal {
      margin: 0 auto;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
  }

.badge {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  background: var(--bg-soft);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 24px;
}

.lead { color: var(--text-muted); font-size: 19px; margin-bottom: 36px; max-width: 560px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--border); padding-top: 28px; }
.metric strong { display: block; font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.metric span { font-size: 14px; color: var(--text-muted); }

/* Terminal */
.terminal {
  background: #0F0F0F;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .terminal {
    max-width: 100%;
  }
  .terminal-title {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.dot { width: 12px; height: 12px; border-radius: 50%; background: #2b2b2b; }
.dot:first-child { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.terminal-title { margin-left: 8px; color: var(--text-muted); font-size: 13px; font-family: 'JetBrains Mono', monospace; }

.terminal-body {
  padding: 20px;
  min-height: 340px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #d4d4d4;
}
.t-line { margin-bottom: 6px; white-space: pre-wrap; word-break: break-word; }
.t-user { color: var(--accent); }
.t-prompt { color: var(--accent); }
.t-ai { color: #e8e8e8; }
.t-dim { color: #6b6b6b; }
.t-blue { color: var(--accent-blue); }
.t-caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
section { padding: 88px 0; }

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* Cards */
.cards-grid { display: grid; gap: 20px; }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(0, 255, 136, .35); transform: translateY(-3px); }

.card-emoji { font-size: 32px; margin-bottom: 16px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 16px; }

.card-big { display: flex; flex-direction: column; }
.card-stat { margin-bottom: 16px; }
.stat-num { font-size: 40px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }

.forwhom { padding-top: 0; }

/* Cases */
.cases { border-top: 1px solid var(--border); }

.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.case:hover { border-color: rgba(0, 255, 136, .35); transform: translateY(-2px); }

.case-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.case-tag { color: var(--accent); font-size: 14px; font-weight: 600; }
.case-term { color: var(--text-muted); font-size: 14px; }

.case h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.case-pain { color: var(--text-muted); font-size: 16px; margin-bottom: 8px; }
.case-pain::before { content: 'Боль: '; color: var(--accent); font-weight: 600; }
.case-solve { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }
.case-solve::before { content: 'Решение: '; color: var(--accent-blue); font-weight: 600; }

.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--border); padding-top: 20px; }
.case-results > div { font-size: 14px; color: var(--text-muted); }
.case-num { display: block; font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 4px; }

.case-featured { border-color: rgba(0, 255, 136, .4); }
.case-featured blockquote {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  color: var(--text-muted);
  font-size: 16px;
  font-style: italic;
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 40px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-num { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 16px; font-family: 'JetBrains Mono', monospace; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

.process-note {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 16px;
}
.process-note strong { color: var(--accent); }

/* Pricing */
.pricing { border-top: 1px solid var(--border); }
.price { position: relative; display: flex; flex-direction: column; }
.price h3 { font-size: 20px; }
.price-amount { font-size: 40px; font-weight: 900; margin: 16px 0 4px; letter-spacing: -0.02em; }
.price-note { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.price ul { list-style: none; margin-bottom: 28px; flex-grow: 1; }
.price li {
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 10px;
}
.price li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.price-hot { border-color: rgba(0, 255, 136, .5); }
.price-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--bg-card); overflow: hidden; }
.accordion-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.accordion-item[open] summary::after { transform: rotate(45deg); }

.accordion-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 16px;
  animation: accordion-slide 0.3s ease-out;
}

@keyframes accordion-slide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Audit form */
.audit { border-top: 1px solid var(--border); }
.audit-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.audit-box h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 16px; }
.audit-box > p { color: var(--text-muted); margin-bottom: 36px; font-size: 18px; }

.form { text-align: left; max-width: 560px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label {
  display: block;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.form input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus { outline: none; border-color: var(--accent); }
.form input.invalid { border-color: #ff5f57; box-shadow: 0 0 0 1px #ff5f57; }

.error-msg {
  display: none;
  color: #ff5f57;
  font-size: 12px;
  margin-top: 4px;
  margin-left: 4px;
  font-weight: 500;
}
.form input.invalid + .error-msg { display: block; }
.form button { margin-top: 8px; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(0, 255, 136, .08);
  border: 1px solid rgba(0, 255, 136, .4);
  border-radius: 12px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.form-success.visible { display: block; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-text {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.4;
}
.legal-link {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color .2s ease;
}
.legal-link:hover {
  color: var(--accent);
}
.footer-inner p { color: var(--text-muted); font-size: 14px; max-width: 420px; }
.footer .nav { margin: 0 0 0 auto; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid.four { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.three { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(4), .step:nth-child(5) { grid-column: span 1; }
  .footer .nav { margin-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { padding: 56px 0; }
  .hero-metrics { grid-template-columns: 1fr; }
  .cards-grid.four, .cards-grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .case-results { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .audit-box { padding: 32px 20px; }
  .btn-cta.header-cta { display: none; }
}