/* ==========================================================
   Avennex — home blocks
   The services cards, the process steps, product cards, the
   public board and the closing panel. Home page only.
   ========================================================== */

/* ---------- the four steps under the brain text ---------- */

.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}
.steps li:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.steps b { grid-row: 1 / 3; padding-top: 3px; font: 500 12px var(--label); color: var(--ink-3); }
.steps span { font-weight: 600; color: var(--ink); }
.steps small { font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ---------- product cards: a small window on top ---------- */

.work-list .work-card { padding: 8px; gap: 0; }
.work-card > :not(.wk-vis) { margin-inline: 12px; }
.work-card > .work-kind { margin-top: 6px; }
.work-card > .work-title { margin-top: 10px; }
.work-card > .work-line { margin-top: 6px; }
.work-card > .work-state { margin-top: auto; padding-top: 14px; }
.work-card > .work-bar { margin-top: 10px; }
.work-card > :last-child { margin-bottom: 12px; }
.wk-vis {
  height: 120px;
  margin-bottom: 10px;
  padding: 12px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(120% 100% at 80% 0%, rgba(255, 255, 255, 0.09), transparent 60%), #0D0D10;
}
.wk-vis img { width: calc(100% + 24px); height: calc(100% + 24px); margin: -12px; object-fit: cover; }
.wk-win { display: flex; gap: 5px; margin-bottom: 12px; }
.wk-win i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.wk-body span { display: block; height: 6px; margin-bottom: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.wk-body em { display: block; width: 40%; height: 24px; margin-top: 12px; border-radius: 6px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08)); }
.work-card .work-kind { align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); font-size: 10.5px; }
.work-card .work-kind.is-live { color: var(--ink); border-color: rgba(255, 255, 255, 0.4); }

/* ---------- public board ---------- */

.chat-section .chat-board {
  position: relative;
  padding: 8px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 140% at 0% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.11);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cb-head { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.cb-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 0 30px -6px rgba(255, 255, 255, 0.5);
}
.cb-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--mark-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cb-title b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.cb-title small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.chat-section .chat-msg { border-bottom-color: rgba(255, 255, 255, 0.12); }
.chat-section .chat-empty {
  padding-block: 44px;
  border-bottom: 0;
  text-align: center;
  font: 500 15px var(--text);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink-2);
}
.chat-section .chat-compose {
  margin-top: 8px;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.chat-section .chat-compose:focus-within { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.chat-section .chat-compose-input { padding: 14px 0; }

/* ---------- closing panel ---------- */

.cta-content.cta-lit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: radial-gradient(60% 120% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 70%), rgba(255, 255, 255, 0.08);
}
.cta-lit .cta-subtext { margin-inline: auto; }
.cta-lit .cta-buttons { justify-content: center; }

@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .chat-section .chat-board { padding: 6px 16px 18px; }
  .chat-section .chat-compose { flex-direction: row; align-items: center; padding-bottom: 6px; gap: 8px; }
  .chat-section .chat-compose-btn { align-self: center; }
  .cta-content.cta-lit { padding: 36px 20px; }
}

/* ---------- what we build: compact cards ---------- */

#services-section { padding-block: 72px; }
.wb { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wb-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
  align-content: start;
  padding: 22px 24px;
  color: var(--ink);
  text-decoration: none;
}
.wb-ico {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}
.wb-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wb-card .value-title { margin: 0; font-family: var(--text); letter-spacing: -0.01em; font-size: 1.02rem; font-weight: 600; line-height: 40px; }
.wb-arr { line-height: 40px; color: var(--ink-3); transition: transform 0.3s ease, color 0.3s ease; }
.wb-card:hover .wb-arr { transform: translateX(4px); color: var(--ink); }
.wb-card .value-desc { grid-column: 2 / 4; margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 960px) { .wb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .wb { grid-template-columns: 1fr; gap: 10px; } }
