/* ===== AI в деле — стили ===== */
:root {
  --bg:        #060d18;
  --bg-card:   #0c1829;
  --bg-elev:   #112038;
  --border:    rgba(34, 211, 238, 0.15);
  --text:      #e2e8f0;
  --text-dim:  #94a3b8;
  --accent:    #22d3ee;
  --accent-2:  #818cf8;
  --success:   #34d399;
  --warn:      #fbbf24;
  --danger:    #f87171;
  --tier-green: #34d399;
  --tier-gold:  #fbbf24;
  --tier-red:   #f87171;
  --font:      'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius:    12px;
  --shadow:    0 8px 32px rgba(0, 0, 0, 0.4);
  --max:       1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.kicker__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.h2__sub { margin-top: 0.75rem; font-size: 1.0625rem; color: var(--text-dim); max-width: 56ch; }
.accent { color: var(--accent); }
.lead { font-size: 1.125rem; color: var(--text-dim); max-width: 52ch; margin-top: 1.25rem; }
.lead strong { color: var(--text); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font); font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.btn--primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--primary:hover { background: #06b6d4; box-shadow: 0 0 24px rgba(34, 211, 238, 0.35); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; z-index: 1; padding: 5rem 0 4rem; min-height: 85vh; display: flex; align-items: center; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__tagline { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--bg-card); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1rem; color: var(--text); font-style: italic; }

.hero__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.hero__card-title { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 1rem; }
.hero__formula { display: flex; flex-direction: column; gap: 0.75rem; }
.hero__formula-step { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; color: var(--text-dim); }
.hero__formula-step strong { color: var(--text); display: block; font-size: 0.8125rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.15rem; }
.hero__formula-arrow { color: var(--accent); font-size: 1.25rem; text-align: center; line-height: 1; }

/* Sections */
.section { position: relative; z-index: 1; padding: 5rem 0; }
.section--alt { background: var(--bg-card); border-block: 1px solid var(--border); }
.section__head { margin-bottom: 3rem; }
.section__head--center { text-align: center; }
.section__head--center .h2__sub { margin-inline: auto; }

/* Results */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
}

.result {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.result__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.result__title { font-weight: 600; margin-bottom: 0.35rem; }
.result__desc { font-size: 0.875rem; color: var(--text-dim); }

/* Audience */
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

.audience {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}

.section--alt .audience { background: var(--bg-elev); }

.audience__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.audience__icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.audience__title { font-size: 1.125rem; font-weight: 700; }
.audience__sub { font-size: 0.875rem; color: var(--text-dim); margin-top: 0.25rem; }

.audience__cols { display: grid; grid-template-columns: 1fr 1fr; }

.audience__col { padding: 1.25rem 1.5rem; }
.audience__col--before { border-right: 1px solid var(--border); }
.audience__col-label { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem; }
.audience__col--before .audience__col-label { color: var(--danger); }
.audience__col--after .audience__col-label { color: var(--success); }

.audience__list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.audience__list li { font-size: 0.875rem; color: var(--text-dim); padding-left: 1rem; position: relative; }
.audience__list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.audience__col--after .audience__list li { color: var(--text); }

/* Products / tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.section--alt .tier { background: var(--bg); }

.tier--featured { border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 0 32px rgba(251, 191, 36, 0.08); }

.tier__badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  width: fit-content;
}

.tier--green .tier__badge { background: rgba(52, 211, 153, 0.12); color: var(--tier-green); }
.tier--gold .tier__badge { background: rgba(251, 191, 36, 0.12); color: var(--tier-gold); }
.tier--red .tier__badge { background: rgba(248, 113, 113, 0.12); color: var(--tier-red); }

.tier__name { font-size: 1.25rem; font-weight: 700; }
.tier__price { font-family: var(--font-mono); font-size: 1.125rem; color: var(--accent); font-weight: 600; }
.tier__goal { font-size: 0.875rem; color: var(--text-dim); }

.tier__io { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; margin-top: auto; }
.io-row { display: grid; grid-template-columns: 64px 1fr; gap: 0.5rem; align-items: start; }
.io-row dt { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 0.15rem; }
.io-row--in dt { color: var(--danger); }
.io-row--proc dt { color: var(--warn); }
.io-row--out dt { color: var(--success); }
.io-row dd { color: var(--text-dim); margin: 0; }

/* Services list */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin-top: 2rem;
}

.services li {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding: 0.75rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* BPMN */
.bpmn-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.bpmn-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.bpmn-toolbar__title { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-dim); }
.bpmn-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bpmn-legend__item {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; color: var(--text-dim);
  padding: 0.25rem 0.625rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.15s; background: none; font-family: var(--font);
}
.bpmn-legend__item:hover, .bpmn-legend__item.is-active {
  color: var(--accent); border-color: var(--border);
  background: rgba(34, 211, 238, 0.06);
}
.bpmn-legend__icon { width: 14px; height: 14px; flex-shrink: 0; }
.bpmn-canvas { padding: 1.5rem; overflow-x: auto; }
.bpmn-canvas svg { display: block; min-width: 1000px; margin: 0 auto; }
.bpmn__node { cursor: pointer; transition: filter 0.15s; }
.bpmn__node.is-hovered, .bpmn__node.is-highlighted { filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6)); }
.bpmn__flow { transition: stroke 0.15s, stroke-width 0.15s; }
.bpmn__flow.is-active { stroke: var(--accent); stroke-width: 2.5; }

/* About / voice */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.voice-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.voice-card__title { font-weight: 600; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.voice-card p { font-size: 0.875rem; color: var(--text-dim); }

.identity-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-top: 2rem; }
.identity-table th, .identity-table td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.identity-table th { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); width: 28%; }
.identity-table td { color: var(--text-dim); }
.identity-table td strong { color: var(--text); font-weight: 600; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 640px; margin-inline: auto; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 0.9375rem;
  padding: 0.75rem 1rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__hint { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--text-dim); }

/* Footer */
.footer { position: relative; z-index: 1; padding: 3rem 0 2rem; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer__brand { font-weight: 700; font-size: 1.125rem; }
.footer__tagline { font-size: 0.875rem; color: var(--text-dim); margin-top: 0.25rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--text-dim); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { width: 100%; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-dim); text-align: center; }

.toaster {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  padding: 0.875rem 1.25rem; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.875rem; box-shadow: var(--shadow); max-width: 360px;
}
.toaster--ok { border-color: rgba(52, 211, 153, 0.4); }
.toaster--err { border-color: rgba(248, 113, 113, 0.4); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .audience__cols { grid-template-columns: 1fr; }
  .audience__col--before { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 0 2rem; min-height: auto; }
  .form { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .identity-table th { width: 35%; }
}
