/* ==========================================================
   Home page — modern landing layout (prefix hm-)
   Builds on frontend-modern.css tokens (--fm-*).
   ========================================================== */
.hm-page {
  background: linear-gradient(180deg, #f7f5ff 0%, #ffffff 60%);
  color: var(--fm-ink);
}
.hm-page h1,
.hm-page h2,
.hm-page h3 {
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- shared ---------- */
.hm-section {
  padding: 90px 0 0;
}
.hm-section--last {
  padding-bottom: 110px;
}
.hm-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.hm-head--wide {
  max-width: 860px;
}
.hm-title {
  margin: 14px 0 14px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--fm-ink);
}
.hm-sub,
.hm-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fm-muted);
}
.hm-text {
  margin-bottom: 26px;
}
.hm-panel {
  padding: 44px;
  border: 1px solid var(--fm-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--fm-shadow);
}
.hm-center {
  margin-top: 36px;
  text-align: center;
}

/* buttons + links */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.hm-btn i,
.hm-link i {
  transition: transform 0.25s ease;
}
.hm-btn:hover i,
.hm-link:hover i,
a:hover > * > .hm-link i {
  transform: translateX(4px);
}
.hm-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}
.hm-btn--orange {
  background: linear-gradient(135deg, var(--fm-orange-1), var(--fm-orange-2));
  box-shadow: 0 12px 26px rgba(228, 91, 45, 0.38);
}
.hm-btn--orange:hover {
  box-shadow: 0 16px 32px rgba(228, 91, 45, 0.5);
}
.hm-btn--purple {
  background: linear-gradient(135deg, var(--fm-purple-2), var(--fm-purple));
  box-shadow: 0 12px 26px rgba(90, 31, 211, 0.3);
}
.hm-btn--purple:hover {
  box-shadow: 0 16px 32px rgba(90, 31, 211, 0.42);
}
.hm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--fm-purple);
}
.hm-link:hover {
  color: var(--fm-orange-2);
}

/* ---------- hero ---------- */
.hm-hero {
  position: relative;
  padding: 200px 0 150px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 40%),
    linear-gradient(135deg, #7b19cb 0%, #5a1fd3 50%, #4d22d7 100%);
}
.hm-hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hm-hero__blob--1 {
  top: -120px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(252, 151, 21, 0.28) 0, rgba(252, 151, 21, 0) 70%);
}
.hm-hero__blob--2 {
  right: 8%;
  bottom: 40px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.hm-hero .container {
  position: relative;
  z-index: 1;
}
.hm-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 40px;
}
.hm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hm-hero__eyebrow i {
  color: var(--fm-yellow);
}
.hm-page .hm-hero__title {
  margin: 22px 0 16px;
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.hm-hero__title span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
  color: var(--fm-yellow);
}
.hm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--fm-ink);
  background: var(--fm-yellow);
  box-shadow: 0 12px 26px rgba(20, 0, 60, 0.25);
}
.hm-hero__badge i {
  color: var(--fm-orange-2);
}
.hm-hero__sub {
  margin: 24px 0 32px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}
.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hm-hero__media {
  text-align: center;
}
.hm-hero__media img {
  width: 100%;
  max-width: 620px;
  filter: drop-shadow(0 30px 40px rgba(20, 0, 60, 0.35));
  animation: hm-float 6s ease-in-out infinite;
}
.hm-hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
}
@keyframes hm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-hero__media img { animation: none; }
}

/* ---------- stats ---------- */
.hm-stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: -90px;
}
.hm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--fm-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--fm-shadow-lg);
}
.hm-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--fm-soft);
}
.hm-stat__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 8px 18px rgba(228, 91, 45, 0.14);
}
.hm-stat__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.hm-stat__value {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--fm-ink);
}
.hm-stat__value .counter {
  font-size: inherit;
  font-weight: inherit;
}
.hm-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--fm-muted);
}

/* ---------- welcome ---------- */
.hm-welcome {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 50px;
}
.hm-welcome__media {
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(90, 31, 211, 0.08) 0, rgba(90, 31, 211, 0) 70%);
}
.hm-welcome__media img {
  max-height: 380px;
}
.hm-welcome__text .hm-title {
  font-size: 38px;
}

/* ---------- account cards ---------- */
.hm-accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.hm-account,
.hm-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--fm-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--fm-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hm-account:hover,
.hm-feature:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 50px rgba(60, 30, 140, 0.14);
}
.hm-account__icon,
.hm-feature__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--fm-purple-2), var(--fm-purple));
  box-shadow: 0 12px 24px rgba(90, 31, 211, 0.3);
}
.hm-account__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.hm-account__body,
.hm-feature__body {
  display: block;
  min-width: 0;
}
.hm-page .hm-account__title,
.hm-page .hm-feature__title,
.hm-page .hm-card__title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--fm-ink);
}
.hm-feature__title {
  text-transform: capitalize !important;
}
.hm-account p,
.hm-feature p,
.hm-card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fm-muted);
}

/* ---------- why choose us ---------- */
.hm-choose {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  align-items: center;
  gap: 40px;
}
.hm-choose__media {
  text-align: center;
}
.hm-choose__media img {
  max-height: 400px;
  animation: hm-float 7s ease-in-out infinite;
}
.hm-choose__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.hm-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border: 1px solid var(--fm-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--fm-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hm-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 50px rgba(60, 30, 140, 0.14);
}
.hm-card__thumb {
  width: 100%;
  height: 150px;
  margin-bottom: 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f6f4fd 0%, #efeafd 100%);
}
.hm-card__thumb img {
  max-height: 120px;
  object-fit: contain;
}
.hm-card p {
  flex: 1;
}
.hm-card .hm-link {
  align-self: flex-start;
}

/* ---------- invest band + table ---------- */
.hm-invest {
  position: relative;
  margin-top: 100px;
  padding: 90px 0 90px;
  overflow: hidden;
  background: linear-gradient(135deg, #7b19cb 0%, #5a1fd3 55%, #4d22d7 100%);
}
.hm-invest__ring {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.hm-invest .container {
  position: relative;
}
.hm-head--light .hm-title {
  color: #fff;
}
.hm-head--light .hm-sub {
  color: rgba(255, 255, 255, 0.85);
}
.hm-eyebrow-light {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fm-yellow);
  background: rgba(255, 255, 255, 0.12);
}
.hm-table-panel {
  padding: 10px 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(20, 0, 60, 0.3);
}
.hm-table {
  width: 100%;
  border-collapse: collapse;
}
.hm-table thead th {
  padding: 18px 12px;
  border-bottom: 2px solid var(--fm-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--fm-muted);
  text-align: left;
}
.hm-table tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--fm-line);
  font-size: 15px;
  color: var(--fm-ink);
  vertical-align: middle;
}
.hm-table tbody tr:last-child td {
  border-bottom: none;
}
.hm-table tbody tr {
  transition: background-color 0.2s ease;
}
.hm-table tbody tr:hover {
  background: var(--fm-soft);
}
.hm-table .person-details {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hm-table .person-details .thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--fm-soft);
}
.hm-table .person-details .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hm-table .person-details .name {
  font-size: 15px;
  text-transform: capitalize;
  font-weight: 700;
  color: var(--fm-ink);
}
.hm-table .growth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--fm-green);
}
.hm-table .growth i {
  font-size: 12px;
}
.hm-table .investors-amount {
  font-weight: 600;
}
.hm-table tbody td:last-child {
  white-space: nowrap;
  text-align: right;
}
.hm-table .remaining-time {
  display: inline-block;
  margin-right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fm-orange-2);
  background: rgba(228, 91, 45, 0.1);
  vertical-align: middle;
}
.hm-table .btn.pull-right {
  float: none !important;
  padding: 9px 16px;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- safety ---------- */
.hm-safety {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hm-safety__media {
  position: relative;
  height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 70%, rgba(90, 31, 211, 0.12) 0, rgba(90, 31, 211, 0) 60%),
    var(--fm-soft);
}
/* the illustration is a wide strip with the scene on its left — crop to it */
.hm-safety__media img {
  position: absolute;
  top: 50%;
  left: 40px;
  height: 96%;
  width: auto;
  max-width: none;
  transform: translateY(-50%);
}
.hm-safety__list {
  display: grid;
  gap: 18px;
}
.hm-feature {
  padding: 22px 24px;
}
.hm-feature__icon {
  background: rgba(228, 91, 45, 0.1);
  box-shadow: none;
}
.hm-feature__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.hm-feature p {
  margin-bottom: 10px;
}

/* ---------- testimonials ---------- */
.hm-quotes {
  column-count: 3;
  column-gap: 22px;
}
.hm-quote {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 28px 26px 24px;
  border: 1px solid var(--fm-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--fm-shadow);
  break-inside: avoid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hm-quote:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(60, 30, 140, 0.14);
}
.hm-quote__mark {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  color: var(--fm-orange-1);
}
.hm-quote .hm-quote__text {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fm-muted);
}
.hm-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--fm-line);
}
.hm-quote--short figcaption {
  padding-top: 0;
  border-top: 0;
}
.hm-quote figcaption img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(60, 30, 140, 0.18);
}
.hm-quote figcaption span {
  min-width: 0;
}
.hm-quote figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--fm-ink);
}
.hm-quote figcaption small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--fm-purple);
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .hm-page .hm-hero__title {
    font-size: 54px;
  }
  .hm-choose {
    grid-template-columns: 1fr;
  }
  .hm-choose__media {
    display: none;
  }
}
@media (max-width: 991px) {
  .hm-hero {
    padding: 170px 0 140px;
  }
  .hm-hero__grid,
  .hm-welcome,
  .hm-safety {
    grid-template-columns: 1fr;
  }
  .hm-hero__text {
    text-align: center;
  }
  .hm-hero__sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hm-actions {
    justify-content: center;
  }
  .hm-hero__media img {
    max-width: 480px;
  }
  .hm-welcome {
    gap: 24px;
  }
  .hm-welcome__text {
    text-align: center;
  }
  .hm-safety__media {
    height: 340px;
  }
  .hm-quotes {
    column-count: 2;
  }
  /* table becomes stacked cards */
  .hm-table-panel {
    padding: 8px 18px;
  }
  .hm-table thead {
    display: none;
  }
  .hm-table,
  .hm-table tbody,
  .hm-table tr,
  .hm-table td {
    display: block;
    width: 100%;
  }
  .hm-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--fm-line);
  }
  .hm-table tbody tr:last-child {
    border-bottom: none;
  }
  .hm-table tbody tr:hover {
    background: none;
  }
  .hm-table tbody td {
    padding: 0;
    border: none;
    font-size: 15px;
  }
  .hm-table tbody td:first-child,
  .hm-table tbody td:last-child {
    grid-column: 1 / -1;
  }
  .hm-table tbody td:nth-child(2)::before,
  .hm-table tbody td:nth-child(3)::before,
  .hm-table tbody td:nth-child(4)::before {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--fm-muted);
  }
  .hm-table tbody td:nth-child(2)::before { content: "Capital"; }
  .hm-table tbody td:nth-child(3)::before { content: "Raised"; }
  .hm-table tbody td:nth-child(4)::before { content: "Investors"; }
  .hm-table tbody td:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }
  .hm-table .remaining-time {
    margin-right: 0;
  }
  .hm-table .btn.pull-right {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 767px) {
  .hm-section {
    padding-top: 64px;
  }
  .hm-section--last {
    padding-bottom: 80px;
  }
  .hm-head {
    margin-bottom: 28px;
  }
  .hm-page .hm-title,
  .hm-page .hm-welcome__text .hm-title {
    font-size: 28px;
  }
  .hm-sub,
  .hm-text {
    font-size: 15px;
  }
  .hm-panel {
    padding: 26px 18px;
    border-radius: 18px;
  }
  .hm-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }
  .hm-stat {
    padding: 14px 16px;
  }
  .hm-stat__icon {
    width: 52px;
    height: 52px;
  }
  .hm-stat__value {
    font-size: 26px;
  }
  .hm-accounts,
  .hm-choose__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hm-account,
  .hm-feature {
    padding: 20px 18px;
    gap: 16px;
    border-radius: 18px;
  }
  .hm-account__icon,
  .hm-feature__icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }
  .hm-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .hm-invest {
    margin-top: 70px;
    padding: 64px 0;
  }
  .hm-table-panel {
    border-radius: 18px;
  }
  /* testimonials: swipeable row */
  .hm-quotes {
    column-count: auto;
    display: flex;
    gap: 14px;
    margin: 0 -16px;
    padding: 4px 16px 18px;
    overflow-x: auto;
    align-items: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hm-quotes::-webkit-scrollbar {
    display: none;
  }
  .hm-quote {
    flex: 0 0 86%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 24px 20px 20px;
    border-radius: 18px;
    scroll-snap-align: center;
  }
  .hm-quote:hover {
    transform: none;
  }
  .hm-quote--short {
    justify-content: center;
  }
}
@media (max-width: 575px) {
  .hm-hero {
    padding: 150px 0 120px;
  }
  .hm-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.6px;
    padding: 6px 12px;
  }
  .hm-page .hm-hero__title {
    margin-top: 18px;
    font-size: 42px;
  }
  .hm-hero__badge {
    font-size: 16px;
  }
  .hm-hero__sub {
    margin: 20px auto 26px;
    font-size: 16px;
  }
  .hm-hero__media img {
    max-width: 100%;
  }
  .hm-hero__wave {
    height: 50px;
  }
  .hm-stats-wrap {
    margin-top: -70px;
  }
  .hm-safety__media {
    height: 250px;
    border-radius: 18px;
  }
  .hm-safety__media img {
    left: 50px;
  }
  .hm-btn {
    width: 100%;
  }
  .hm-welcome__text .hm-btn,
  .hm-center .hm-btn {
    width: auto;
  }
}
