/* ============================================================
   Matrix AI Agents — Page-specific styles
   ============================================================ */

/* ---------- Home hero terminal visual ---------- */

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.terminal {
  background: rgba(6, 26, 72, 0.9);
  border: 1px solid rgba(37, 198, 232, 0.3);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(3, 12, 36, 0.6);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(37, 198, 232, 0.15);
  background: rgba(20, 45, 100, 0.5);
}

.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(210, 226, 245, 0.25);
}

.terminal__dot:first-child {
  background: var(--teal);
}

.terminal__dot:nth-child(2) {
  background: var(--cyan);
}

.terminal__body {
  padding: 22px;
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.85rem;
  color: var(--muted);
}

.terminal__body .t-line {
  margin-bottom: 10px;
}

.terminal__body .t-cmd {
  color: var(--cyan);
}

.terminal__body .t-ok {
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Services showcase (home) ---------- */

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
}

.service-card__link:hover {
  color: var(--teal);
}

/* ---------- Steps / process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(37, 198, 232, 0.14);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.step:hover {
  background: var(--card-hover);
  transform: translateY(-5px);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.05rem;
  color: #041434;
  background: var(--accent-grad);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Benefits split (home) ---------- */

.benefit-list {
  list-style: none;
  margin-top: 22px;
}

.benefit-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}

.benefit-list li::before {
  content: '✓';
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  color: #041434;
  background: var(--accent-grad);
}

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--card);
  border: 1px solid rgba(37, 198, 232, 0.14);
  border-radius: var(--radius);
  padding: 28px;
}

.quote-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.quote-card__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #041434;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.quote-card__who b {
  display: block;
  font-size: 0.92rem;
}

.quote-card__who span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Light band: Custom AI Agents section ---------- */

.light-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.light-card {
  background: var(--light-card);
  border: 1px solid var(--light-edge);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.light-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(32, 69, 150, 0.14);
}

.light-card h3 {
  color: var(--light-heading);
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.light-card p {
  color: var(--light-body);
  font-size: 0.92rem;
  opacity: 0.85;
}

.light-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--card-hover);
  color: var(--text);
  margin-bottom: 16px;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 55% 45% at 75% 15%, rgba(32, 69, 150, 0.5), transparent 70%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.page-hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

/* ---------- Use-case rows ---------- */

.usecase {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(210, 226, 245, 0.12);
}

.usecase:last-child {
  border-bottom: none;
}

.usecase__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(37, 198, 232, 0.12);
  border: 1px solid rgba(37, 198, 232, 0.28);
}

.usecase h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.usecase p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: #ffffff;
  border: 1px solid var(--light-edge);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 6px 18px rgba(11, 27, 58, 0.06);
}

.contact-info h3 {
  color: #0b1b3a;
  margin-bottom: 12px;
}

.contact-info p {
  color: #33415c;
  font-size: 0.94rem;
}

.contact-info__item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  color: #26324b;
  font-size: 0.92rem;
}

.contact-info__item i {
  font-style: normal;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--light-card);
  border: 1px solid var(--light-edge);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form {
  background: #ffffff;
  border: 1px solid var(--light-edge);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 6px 18px rgba(11, 27, 58, 0.06);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #33415c;
  margin: 0 0 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  background: #f7fafd;
  border: 1px solid var(--light-edge);
  border-radius: 10px;
  color: #0b1b3a;
  font: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--teal);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form__note {
  font-size: 0.82rem;
  color: #33415c;
  margin-top: 12px;
}

/* ---------- 404 / generic ---------- */

.notfound {
  padding: 140px 0;
  text-align: center;
}

.notfound h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .steps,
  .light-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .steps,
  .light-cards,
  .form__row {
    grid-template-columns: 1fr;
  }
}
