/* Homepage layout matching the approved reference. Visual only. */
body.ref-home {
  background: #fff !important;
  color: #0B1F3A;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body.ref-home #app_Mainheader,
body.ref-home #backtoTop,
body.ref-home .footer_wrapper,
body.ref-home .legacy-home {
  display: none !important;
}

body.ref-home .page-wrapper {
  background: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ref-landing {
  background: #fff;
  color: #0B1F3A;
  min-height: 100vh;
}

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

.ref-logo {
  color: #0B1F3A !important;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.ref-logo img {
  display: block;
  width: 200px;
  max-width: min(200px, 46vw);
  height: auto;
}

.ref-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ref-nav-links > a:not(.ref-btn) {
  color: #24344d !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 500;
}

.ref-nav-links > a:not(.ref-btn):hover {
  color: #0F8F86 !important;
}

.ref-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.ref-nav-toggle span {
  display: block;
  height: 2px;
  background: #0B1F3A;
  border-radius: 2px;
}

.ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1;
}

.ref-btn-solid {
  background: #0F8F86 !important;
  color: #fff !important;
  border-color: #0F8F86 !important;
}

.ref-btn-solid:hover {
  background: #0C756E !important;
  border-color: #0C756E !important;
  color: #fff !important;
}

.ref-btn-ghost {
  background: #fff !important;
  color: #0B1F3A !important;
  border-color: #d9d3c8 !important;
}

.ref-btn-ghost:hover {
  border-color: #0B1F3A !important;
  color: #0B1F3A !important;
}

.ref-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 28px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 520px);
  gap: 36px;
  align-items: center;
}

.ref-pill {
  display: inline-flex;
  align-items: center;
  background: #e7f6f4;
  color: #0c756e;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.ref-hero-copy h1 {
  margin: 0 0 16px;
  color: #0B1F3A;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 750;
  max-width: 520px;
}

.ref-hero-copy p {
  margin: 0 0 26px;
  color: #5c6b7a;
  font-size: 18px;
  line-height: 1.5;
  max-width: 420px;
}

.ref-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ref-panel {
  background: #fff;
  border: 1px solid #ece7e0;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
  overflow: hidden;
}

.ref-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  color: #0B1F3A;
  font-weight: 700;
}

.ref-panel-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-cap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e7f6f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ref-panel-menu {
  color: #8b97a3;
  letter-spacing: 1px;
}

.ref-panel-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px;
  padding: 6px 14px 16px;
}

.ref-panel-side {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
}

.ref-panel-side li {
  color: #6b7785;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
}

.ref-panel-side li.is-on {
  background: #f4f7f8;
  color: #0B1F3A;
  font-weight: 650;
}

.ref-panel-main {
  min-width: 0;
}

.ref-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #0B1F3A;
}

.ref-panel-head span {
  color: #8b97a3;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #ece7e0;
  border-radius: 8px;
  padding: 4px 8px;
}

.ref-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ref-stat,
.ref-message {
  border: 1px solid #ece7e0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.ref-stat-label,
.ref-message-title {
  color: #6b7785;
  font-size: 12px;
  margin-bottom: 6px;
}

.ref-stat-value {
  color: #0B1F3A;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ref-stat-up {
  color: #0F8F86;
  font-size: 12px;
  margin-top: 6px;
}

.ref-stat-note {
  color: #6b7785;
  font-size: 12px;
  margin-top: 6px;
}

.ref-message {
  margin-top: 10px;
  position: relative;
}

.ref-message-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ref-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e7f6f4;
  color: #0c756e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.ref-message-row strong {
  display: block;
  font-size: 13px;
  color: #0B1F3A;
}

.ref-message-row p,
.ref-message-row small {
  margin: 2px 0 0;
  color: #6b7785;
  font-size: 12px;
}

.ref-message-link {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #0B1F3A;
  font-size: 12px;
  border: 1px solid #ece7e0;
  border-radius: 8px;
  padding: 4px 8px;
}

.ref-features {
  background: #F6F3EE;
  margin: 18px 28px 28px;
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1124px;
  margin-left: auto;
  margin-right: auto;
}

.ref-features article {
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 20px;
  min-height: 168px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.04);
}

.ref-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7f6f4;
  color: #0F8F86;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.ref-features h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0B1F3A;
  font-weight: 700;
}

.ref-features p {
  margin: 0;
  color: #5c6b7a;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .ref-hero,
  .ref-features {
    grid-template-columns: 1fr;
  }

  .ref-hero-copy h1 {
    font-size: 42px;
  }

  .ref-nav-toggle {
    display: flex;
  }

  .ref-nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid #ece7e0;
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    z-index: 20;
    box-shadow: 0 16px 40px rgba(11, 31, 58, 0.08);
  }

  .ref-nav {
    position: relative;
  }

  .ref-nav-links.is-open {
    display: flex;
  }
}
