.portal-home {
  --home-navy: #10283d;
  --home-green: #08675b;
  --home-mint: #a0eada;
  --home-line: #dbe7e5;
  background: #f7faf9;
}

.portal-home .wrap { width: min(1180px, calc(100% - 56px)); }
.portal-home .top { border-color: var(--home-line); }
.portal-home .nav { min-height: 72px; }
.portal-home .nav-links { gap: clamp(14px, 2.5vw, 30px); }

.home-hero {
  padding: clamp(38px, 6.5vw, 96px) 0 clamp(32px, 4vw, 58px);
  background: radial-gradient(ellipse at 74% 0%, #e3f1ee, transparent 63%), #f7faf9;
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--home-green);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .1em;
}
.home-kicker-divider { height: 1px; width: 16px; background: currentColor; }

.home-intro h1 {
  margin: 16px 0 17px;
  color: var(--home-navy);
  font-size: clamp(2.35rem, 4.6vw, 4.45rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.14;
}
.home-intro h1 em { color: var(--home-green); font-style: normal; }
.home-lead { max-width: 30em; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.home-actions { margin-top: 24px; gap: 10px; }
.portal-home .button { padding: .72rem 1rem; }
.portal-home .button span { margin-left: .35em; }
.home-note { margin: 13px 0 0; color: var(--muted); font-size: .85rem; }

.home-product {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.2vw, 28px);
  border: 1px solid #244c5b;
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 70% 44%, #215052, transparent 70%),
    linear-gradient(120deg, #102a3a, #102537);
  box-shadow: 0 22px 44px #13314329;
}
.home-product::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#bbebe817 1px, transparent 1px),
                    linear-gradient(90deg, #bbebe817 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent, #000 62%);
  content: "";
}
.home-product-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #d4e6ed;
  font-size: .73rem;
}
.home-product-caption > :first-child { color: var(--home-mint); font-weight: 750; letter-spacing: .16em; }
.home-devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  margin: 19px 0 13px;
}
.home-desktop {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #7395a4;
  border-radius: 12px;
  background: #ebf2f7;
  box-shadow: 0 16px 30px #07182675;
}
.home-window-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: #d7e5ee;
  color: #264b5e;
  font-size: .69rem;
}
.home-window-bar > :first-child { font-size: .56rem; letter-spacing: .12em; }
.home-devices img { display: block; width: 100%; height: auto; }
.home-phone {
  position: relative;
  width: clamp(77px, 10.4vw, 142px);
  margin-left: clamp(-32px, -2.4vw, -16px);
  overflow: hidden;
  border: 4px solid #182e3d;
  border-radius: clamp(12px, 1.4vw, 19px);
  box-shadow: 0 12px 23px #071826a8;
  transform: translateY(9px);
}
.home-device-caption { color: #c3d9e0; font-size: .72rem; letter-spacing: .08em; }
.home-device-caption span { margin: 0 4px; color: var(--home-mint); }

.home-platforms {
  display: grid;
  grid-template-columns: minmax(100px, .66fr) repeat(2, minmax(0, 1.25fr)) minmax(120px, .9fr);
  align-items: center;
  min-height: 95px;
  border-block: 1px solid var(--home-line);
}
.home-platform-label { color: var(--muted); font-size: .83rem; font-weight: 700; }
.home-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 70px;
  padding: 9px 14px;
  border-left: 1px solid var(--home-line);
  color: var(--home-navy);
  text-decoration: none;
}
.home-platform:hover { background: #e8f3f0; }
.home-platform svg, .home-feature-icon svg { width: 24px; height: 24px; color: var(--home-green); }
.home-platform svg { flex-shrink: 0; }
.home-platform small { display: block; color: var(--muted); font-size: .78rem; }
.home-platform strong { font-weight: 750; }
.home-arrow { margin-left: auto; color: var(--home-green); }
.home-platform-soon { margin: 0; padding-left: 12px; color: var(--muted); text-align: right; font-size: .82rem; }
.home-platform-soon span { display: block; color: var(--home-green); }

.home-section { padding-block: clamp(44px, 7vw, 96px); }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.homepage h2 { margin: 9px 0 0; color: var(--home-navy); font-size: clamp(1.85rem, 3.4vw, 3rem); line-height: 1.18; letter-spacing: -.035em; }
.home-section-heading > p { max-width: 24em; margin: 0; color: var(--muted); }
.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-feature { padding: clamp(18px, 2.8vw, 30px); border: 1px solid var(--home-line); border-radius: 15px; background: #fff; }
.home-feature-accent { background: #e9f4ef; }
.home-feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 10px; background: #e1efeb; }
.home-feature h3, .home-steps h3 { margin: 0 0 5px; color: var(--home-navy); font-size: 1.08rem; }
.home-feature p, .home-steps p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }

.home-start { border-block: 1px solid #d7e7e3; background: #edf5f2; padding: clamp(32px, 5vw, 68px) 0; }
.home-start-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: clamp(24px, 6vw, 78px); }
.home-start-layout > div > p:not(.home-kicker) { margin: 12px 0 18px; color: var(--muted); }
.home-steps { margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; padding: 12px 0; border-bottom: 1px solid #d6e5e0; }
.home-steps li:last-child { border-bottom: 0; }
.home-steps li > span { color: var(--home-green); font-size: .9rem; font-weight: 750; font-variant-numeric: tabular-nums; }

@media (max-width: 880px) {
  .home-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 6px; }
  .home-platform-label, .home-platform-soon { grid-column: 1 / -1; padding: 8px 0; text-align: left; }
  .home-platform-soon span { display: inline; margin-left: .5em; }
}

@media (max-width: 740px) {
  .portal-home .wrap { width: calc(100% - 36px); }
  .home-hero-layout, .home-start-layout { grid-template-columns: 1fr; }
  .home-product { width: min(100%, 530px); }
  .home-phone { width: clamp(90px, 23vw, 130px); }
  .home-section-heading { display: block; }
  .home-section-heading > p { margin-top: 9px; }
}

@media (max-width: 540px) {
  .portal-home .nav { min-height: 64px; gap: 10px; }
  .portal-home .nav-links { gap: 12px; font-size: .88rem; }
  .portal-home .home-nav-features { display: none; }
  .home-features { grid-template-columns: 1fr; }
  .home-feature-icon { margin-bottom: 11px; }
  .home-platform { min-height: 65px; padding: 8px; gap: 6px; }
  .home-platform svg { width: 19px; height: 19px; }
  .home-platform small { font-size: .72rem; }
}
