/* ============================================================
   HireOps landing — "ops control room"
   Palette: deep graphite + phosphor green + alert red
   Type: Unbounded (display) / IBM Plex Sans (body) / JetBrains Mono (term)
   ============================================================ */

:root {
  --bg: #0a0e12;
  --bg-raise: #0f151b;
  --bg-panel: #121a22;
  --line: #1e2933;
  --line-bright: #2c3d4b;
  --text: #dde8f0;
  --text-dim: #8b9ba8;
  --mono-dim: #6d7f8d;
  --green: #34e39b;
  --green-soft: rgba(52, 227, 155, .12);
  --green-glow: rgba(52, 227, 155, .35);
  --red: #ff5c57;
  --amber: #f3b562;
  --display: 'Unbounded', 'IBM Plex Sans', sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--green); color: #06231a; }

/* ---------- atmosphere ---------- */

.scanlines {
  position: fixed; inset: 0; z-index: 9; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, transparent 0 2px, rgba(0, 0, 0, .14) 2px 3px);
  mix-blend-mode: multiply;
  opacity: .5;
}

body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 70% -5%, rgba(52, 227, 155, .07), transparent 60%),
    radial-gradient(700px 500px at 10% 20%, rgba(52, 130, 227, .05), transparent 60%),
    linear-gradient(to right, rgba(30, 41, 51, .35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 51, .35) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

main, .topbar, .footer { position: relative; z-index: 1; }

/* ---------- topbar ---------- */

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 22px 24px;
}

.logo {
  font-family: var(--mono); font-weight: 700; font-size: 1.15rem;
  color: var(--text); text-decoration: none; letter-spacing: -.02em;
}

.logo-cursor { color: var(--green); animation: blink 1.2s steps(1) infinite; }

@keyframes blink { 50% { opacity: .25; } }

.topbar-cta {
  font-family: var(--mono); font-size: .82rem; color: var(--green);
  text-decoration: none; border: 1px solid var(--line-bright);
  padding: 9px 16px; border-radius: 6px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.topbar-cta:hover {
  border-color: var(--green); background: var(--green-soft);
  box-shadow: 0 0 18px rgba(52, 227, 155, .18);
}

/* ---------- hero ---------- */

.hero { padding: 64px 24px 84px; }

.hero-inner { max-width: 900px; margin: 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--green); background: var(--green-soft);
  border: 1px solid rgba(52, 227, 155, .35); border-radius: 999px;
  padding: 7px 15px; transform: rotate(-1.2deg);
  animation: rise .6s .05s cubic-bezier(.2, .7, .3, 1) both;
}

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: pulse 1.8s infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.14; letter-spacing: -.01em;
  margin: 26px 0 22px; max-width: 17ch;
  animation: rise .6s .12s cubic-bezier(.2, .7, .3, 1) both;
}

h1 em {
  font-style: normal; color: var(--green);
  text-shadow: 0 0 26px var(--green-glow);
}

.hero-sub {
  font-size: 1.13rem; color: var(--text-dim); max-width: 62ch;
  margin-bottom: 38px;
  animation: rise .6s .2s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.badge { animation-name: rise, none; }

/* ---------- lead form ---------- */

.lead-form {
  background: var(--bg-raise);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 26px; max-width: 760px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  animation: rise .6s .28s cubic-bezier(.2, .7, .3, 1) both;
}

.final-cta .lead-form { animation: none; margin: 0 auto; }

.lead-fields {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  margin-bottom: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--mono-dim);
}

.field-label i { font-style: normal; text-transform: none; opacity: .75; }

@media (min-width: 821px) {
  /* лейблы всегда в одну строку: поля не разъезжаются по вертикали */
  .field-label { white-space: nowrap; }
}

.field input {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-bright); border-radius: 7px;
  font-family: var(--mono); font-size: .92rem;
  padding: 12px 13px; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder { color: #45535f; }

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 227, 155, .16);
}

.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.btn-primary {
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  color: #06231a; background: var(--green);
  border: none; border-radius: 8px; cursor: pointer;
  padding: 15px 30px; width: 100%;
  box-shadow: 0 6px 28px rgba(52, 227, 155, .3);
  transition: transform .15s, box-shadow .2s, filter .2s;
}

.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 8px 36px rgba(52, 227, 155, .42); transform: translateY(-1px); }

.btn-primary:active { transform: translateY(0); }

.btn-primary[disabled] { opacity: .6; cursor: wait; transform: none; }

.form-note {
  font-family: var(--mono); font-size: .74rem; color: var(--mono-dim);
  margin-top: 12px; text-align: center;
}

.form-error {
  margin-top: 12px; font-family: var(--mono); font-size: .82rem;
  color: var(--red); text-align: center;
}

.form-success {
  margin-top: 16px; border: 1px solid rgba(52, 227, 155, .4);
  background: var(--green-soft); border-radius: 8px; padding: 16px 18px;
}

.success-title { font-family: var(--mono); font-size: .78rem; color: var(--green); margin-bottom: 6px; }

.success-body { font-size: .95rem; }

.success-body b { color: var(--green); font-family: var(--mono); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none; margin-top: 26px;
  animation: rise .6s .36s cubic-bezier(.2, .7, .3, 1) both;
}

.trust-row li {
  font-family: var(--mono); font-size: .78rem; color: var(--mono-dim);
}

.trust-row li::before { content: '▸ '; color: var(--green); }

/* ---------- sections ---------- */

section { padding: 72px 24px; }

.section-head { max-width: 900px; margin: 0 auto 44px; }

.section-kicker {
  font-family: var(--mono); font-size: .8rem; color: var(--green);
  letter-spacing: .06em; margin-bottom: 12px;
}

h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.2;
  letter-spacing: -.01em;
}

.section-sub { color: var(--text-dim); margin-top: 14px; max-width: 66ch; }

/* ---------- demo session ---------- */

.demo { padding-top: 20px; }

.session {
  max-width: 1180px; margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--line-bright); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(52, 227, 155, .05), 0 0 60px rgba(52, 227, 155, .06);
  overflow: hidden;
}

.session-chrome {
  display: flex; align-items: center; gap: 8px;
  background: #0c1218; border-bottom: 1px solid var(--line);
  padding: 11px 16px;
}

.chrome-dot { width: 11px; height: 11px; border-radius: 50%; }
.chrome-dot.red { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green { background: #28c840; }

.chrome-title {
  font-family: var(--mono); font-size: .76rem; color: var(--mono-dim);
  margin-left: 10px; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.chrome-replay {
  font-family: var(--mono); font-size: .74rem; color: var(--mono-dim);
  background: none; border: 1px solid var(--line-bright); border-radius: 5px;
  padding: 4px 10px; cursor: pointer; transition: color .2s, border-color .2s;
}

.chrome-replay:hover { color: var(--green); border-color: var(--green); }

.session-body {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.pane { min-height: 470px; }

.pane-candidate { border-right: 1px solid var(--line); }

.pane-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}

.pane-role {
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; color: var(--mono-dim);
}

.pane-role-live { color: var(--red); display: inline-flex; align-items: center; gap: 7px; }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 8px var(--red); animation: pulse 1.4s infinite;
}

.pane-hint { font-family: var(--mono); font-size: .72rem; color: var(--mono-dim); }

/* candidate terminal */

.term {
  font-family: var(--mono); font-size: .84rem; line-height: 1.6;
  padding: 16px 18px; height: 420px; overflow: hidden;
  text-shadow: 0 0 7px rgba(52, 227, 155, .18);
  white-space: pre-wrap; word-break: break-word;
}

.term .t-line { display: block; min-height: 1.35em; }

.term .t-prompt { color: var(--green); }
.term .t-cmd { color: var(--text); }
.term .t-out { color: var(--mono-dim); text-shadow: none; }
.term .t-err { color: var(--red); }
.term .t-ok { color: var(--green); }
.term .t-warn { color: var(--amber); }

.term .t-caret {
  display: inline-block; width: .55em; height: 1.05em;
  background: var(--green); vertical-align: -0.18em;
  animation: blink 1s steps(1) infinite;
}

/* observer pane */

.pane-observer { background: #0d141b; display: flex; flex-direction: column; }

.observer-block { padding: 14px 16px; border-bottom: 1px solid var(--line); }

.observer-label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mono-dim); margin-bottom: 10px;
}

.checkpoints { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.checkpoints li {
  display: flex; align-items: center; gap: 10px;
  font-size: .86rem; color: var(--text-dim);
  transition: color .3s;
}

.cp-mark {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-bright);
  transition: all .3s;
}

.checkpoints li.done { color: var(--text); }

.checkpoints li.done .cp-mark {
  background: var(--green); border-color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  animation: cp-pop .4s cubic-bezier(.2, .8, .3, 1.4);
}

@keyframes cp-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

.cp-cmd {
  font-family: var(--mono); font-size: .68rem; color: var(--mono-dim);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px;
}

.cp-badge {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--amber);
  border: 1px solid rgba(243, 181, 98, .5); border-radius: 4px;
  padding: 1px 6px; flex: none;
}

.cp-time { font-family: var(--mono); font-size: .72rem; color: var(--green); margin-left: auto; }

.observer-feed-block { flex: 1; min-height: 0; border-bottom: none; }

.feed {
  font-family: var(--mono); font-size: .76rem; line-height: 1.75;
  height: 214px; overflow: hidden; color: var(--mono-dim);
}

.feed .f-line { display: flex; gap: 10px; opacity: 0; animation: feed-in .3s forwards; }

@keyframes feed-in { to { opacity: 1; } }

.feed .f-time { color: #45535f; flex: none; }

.feed .f-cmd { color: var(--text-dim); word-break: break-all; }

.feed .f-event { color: var(--green); }

.observer-result {
  margin-top: auto; padding: 14px 16px;
  background: var(--green-soft); border-top: 1px solid rgba(52, 227, 155, .4);
}

.result-line { font-family: var(--mono); font-size: .82rem; color: var(--green); }

.demo-caption {
  max-width: 1180px; margin: 18px auto 0;
  font-family: var(--mono); font-size: .78rem; color: var(--mono-dim);
  text-align: center;
}

/* ---------- how ---------- */

.steps {
  list-style: none; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

.step {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.step:hover {
  transform: translateY(-4px); border-color: var(--line-bright);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}

.step-num {
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  color: var(--green); display: block; margin-bottom: 14px;
}

.step-num::after {
  content: ''; display: block; width: 34px; height: 2px;
  background: linear-gradient(to right, var(--green), transparent);
  margin-top: 8px;
}

.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; }

.step p { font-size: .9rem; color: var(--text-dim); }

/* ---------- pains ---------- */

.pain-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.pain-card {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px 24px;
}

.pain-card h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 12px;
}

.pain-x { color: var(--red); margin-right: 4px; }

.pain-v { color: var(--green); margin-right: 4px; }

.pain-card p { font-size: .92rem; color: var(--text-dim); }

.pain-fix {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--line-bright);
  color: var(--text) !important;
}

/* ---------- faq ---------- */

.faq-list { max-width: 900px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-family: var(--body); font-weight: 600; font-size: 1.02rem;
  cursor: pointer; padding: 20px 34px 20px 0;
  list-style: none; position: relative;
  transition: color .2s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.3rem; color: var(--green);
  transition: transform .25s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq summary:hover { color: var(--green); }

.faq details p {
  padding: 0 0 22px; color: var(--text-dim); font-size: .95rem; max-width: 72ch;
}

/* ---------- final cta ---------- */

.final-cta {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(52, 227, 155, .08), transparent 65%);
}

.final-inner { max-width: 780px; margin: 0 auto; text-align: center; }

.final-inner .section-sub { margin: 14px auto 34px; }

.final-inner .lead-form { text-align: left; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 24px 40px; text-align: center;
}

.footer p { font-family: var(--mono); font-size: .76rem; color: var(--mono-dim); }

.footer-logo { color: var(--text-dim); font-weight: 700; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .session-body { grid-template-columns: 1fr; }
  .pane-candidate { border-right: none; border-bottom: 1px solid var(--line); }
  .pane { min-height: 0; }
  .term { height: 330px; }
  .feed { height: 170px; }
}

@media (max-width: 820px) {
  .lead-fields { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 52px 18px; }
  .hero { padding: 40px 18px 60px; }
  .term { font-size: .76rem; padding: 12px; }
  .topbar-cta { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
