/* =========================
   HERO V2 SYSTEM
========================= */

.tm-hero-v2 {
  position: relative;
  overflow: hidden;

  padding: 116px 0 88px;

  background:
    radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tm-hero-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 72px;
  align-items: center;
}

.tm-hero-v2-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.tm-hero-v2-copy h1 {
  max-width: 760px;
  margin: 0 0 26px;

  color: #0f172a;

  font-size: clamp(3.7rem, 5.6vw, 6.3rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.tm-hero-v2-copy .tm-lead {
  max-width: 620px;
  margin-bottom: 34px;

  color: #475569;

  font-size: 1.1rem;
  line-height: 1.8;
}

.tm-hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;

  margin-bottom: 30px;
}

.tm-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;

  color: #64748b;

  font-size: 0.9rem;
  font-weight: 700;
}

.tm-hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tm-hero-trust-row span::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 999px;

  background: #2563eb;
}

/* =========================
   VISUAL
========================= */

.tm-hero-v2-visual {
  position: relative;

  min-height: 500px;
}

.tm-hero-dashboard-card {
  position: relative;
  z-index: 2;

  overflow: hidden;

  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 30px;

  background: #ffffff;

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 56px rgba(15, 23, 42, 0.08);
}

.tm-hero-dashboard-top {
  display: flex;
  align-items: center;
  gap: 8px;

  height: 48px;
  padding: 0 18px;

  border-bottom: 1px solid rgba(226, 232, 240, 0.95);

  background: #f8fafc;
}

.tm-hero-dashboard-top span {
  width: 10px;
  height: 10px;

  border-radius: 999px;

  background: #cbd5e1;
}

.tm-hero-dashboard-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);

  min-height: 340px;
}

.tm-hero-dashboard-side {
  padding: 26px;

  background: #071225;

  color: #ffffff;
}

.tm-hero-dashboard-side strong {
  display: block;
  margin-bottom: 24px;

  color: #ffffff;
}

.tm-hero-dashboard-side span {
  display: block;
  margin-top: 14px;

  color: rgba(255,255,255,0.68);

  font-size: 0.84rem;
  font-weight: 700;
}

.tm-hero-dashboard-main {
  padding: 28px;

  background: #f8fafc;
}

.tm-hero-dashboard-main h3 {
  margin-bottom: 22px;
}

.tm-hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tm-hero-mini-card {
  padding: 18px;

  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;

  background: #ffffff;
}

.tm-hero-mini-card strong {
  display: block;
  margin-bottom: 8px;

  color: #0f172a;

  font-size: 1.8rem;
  line-height: 1;
}

.tm-hero-mini-card span {
  color: #64748b;

  font-size: 0.82rem;
  font-weight: 700;
}

/* =========================
   FLOATING CARDS
========================= */

.tm-hero-floating-card {
  position: absolute;
  z-index: 4;

  min-width: 156px;
  padding: 16px 18px;

  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;

  background: rgba(255,255,255,0.96);

  backdrop-filter: blur(10px);

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 30px rgba(15, 23, 42, 0.08);
}

.tm-hero-floating-card strong {
  display: block;
  margin-bottom: 6px;

  color: #0f172a;

  font-size: 1.8rem;
  line-height: 1;
}

.tm-hero-floating-card span {
  color: #64748b;

  font-size: 0.82rem;
  font-weight: 700;
}

.tm-hero-floating-card-top {
  top: 26px;
  right: 28px;
}

.tm-hero-floating-card-bottom {
  left: -14px;
  bottom: 52px;
}

/* =========================
   PHONE
========================= */

.tm-hero-phone {
  position: absolute;
  right: -6px;
  bottom: 18px;
  z-index: 5;

  width: 154px;
  padding: 8px;

  border: 6px solid #0f172a;
  border-radius: 31px;

  background: #ffffff;

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 30px rgba(15, 23, 42, 0.10);
}

.tm-hero-phone-screen {
  min-height: 286px;
  padding: 20px 13px;

  border-radius: 24px;

  background: #f8fafc;
}

.tm-hero-phone-screen h3 {
  margin-bottom: 14px;

  color: #0f172a;

  font-size: 1.08rem;
  line-height: 1;
}

/* =========================
   KPI BAR
========================= */

.tm-hero-kpi-bar {
  position: relative;
  z-index: 6;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  margin-top: 44px;

  overflow: hidden;

  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;

  background: rgba(255,255,255,0.94);

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 30px rgba(15, 23, 42, 0.06);
}

.tm-hero-kpi-item {
  padding: 22px 24px;

  border-right: 1px solid rgba(226, 232, 240, 0.95);
}

.tm-hero-kpi-item:last-child {
  border-right: 0;
}

.tm-hero-kpi-item strong {
  display: block;
  margin-bottom: 6px;

  color: #0f172a;

  font-size: 1.2rem;
}

.tm-hero-kpi-item span {
  color: #64748b;

  font-size: 0.86rem;
  font-weight: 700;
}

/* =========================
   TABLET
========================= */

@media (max-width: 980px) {

  .tm-hero-v2 {
    padding: 92px 0 72px;
  }

  .tm-hero-v2-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .tm-hero-v2-visual {
    min-height: auto;
  }

  .tm-hero-floating-card,
  .tm-hero-phone {
    position: static;
    margin-top: 18px;
  }

  .tm-hero-phone {
    width: min(100%, 230px);
    margin-inline: auto;
  }

  .tm-hero-kpi-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-hero-kpi-item:nth-child(2) {
    border-right: 0;
  }

  .tm-hero-kpi-item:nth-child(1),
  .tm-hero-kpi-item:nth-child(2) {
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {

  .tm-hero-v2-copy h1 {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  .tm-hero-v2-actions {
    align-items: stretch;
  }

  .tm-hero-v2-actions .tm-btn {
    width: 100%;
    justify-content: center;
  }

  .tm-hero-dashboard-body {
    grid-template-columns: 1fr;
  }

  .tm-hero-dashboard-side {
    display: none;
  }

  .tm-hero-dashboard-main {
    padding: 22px;
  }

  .tm-hero-dashboard-grid,
  .tm-hero-kpi-bar {
    grid-template-columns: 1fr;
  }

  .tm-hero-kpi-item {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  }

  .tm-hero-kpi-item:last-child {
    border-bottom: 0;
  }

}
