:root {
  --home-bg: #050b18;
  --home-bg-soft: #091429;
  --home-surface: #0d1b35;
  --home-surface-strong: #10213f;
  --home-text: #f7f9fd;
  --home-muted: #b2c1d4;
  --home-line: rgba(186, 207, 234, 0.18);
  --home-line-strong: rgba(186, 207, 234, 0.3);
  --home-font: "Aptos", "Segoe UI", sans-serif;
  --home-display: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
}

html { scroll-padding-top: 88px; }

.home-saas-page {
  background: var(--home-bg);
  color: var(--home-text);
  font-family: var(--home-font);
}

.home-saas-page::selection {
  background: rgba(255, 81, 86, 0.34);
  color: #fff;
}

.home-saas-page::-webkit-scrollbar-track { background: var(--home-bg); }
.home-saas-page::-webkit-scrollbar-thumb { border-color: var(--home-bg); background: #405573; }
.home-saas-page::-webkit-scrollbar-thumb:hover { background: #607693; }

.home-saas-page .skip-link { background: #fff; color: var(--ink); }

.home-saas-page .site-header {
  min-height: 78px;
  border-bottom-color: rgba(186, 207, 234, 0.12);
  background: rgba(5, 11, 24, 0.9);
  backdrop-filter: blur(18px);
}

.home-saas-page .brand__logo-crop {
  width: 166px;
  height: 38px;
  border-radius: 0;
  background: transparent;
}

.home-saas-page .brand__logo-crop img {
  top: -92px;
  left: -18px;
  width: 208px;
  height: 208px;
  filter: invert(1);
  mix-blend-mode: screen;
}

.home-saas-page .site-nav a,
.home-saas-page .mobile-nav summary { color: #dce7f5; }
.home-saas-page .site-nav a:hover { color: #fff; }
.home-saas-page .site-nav a::after { background: var(--coral); }

.home-saas-page .mobile-nav__panel {
  border-color: var(--home-line);
  background: #0b1730;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.home-saas-page .mobile-nav__panel a { color: var(--home-text); }
.home-saas-page .mobile-nav__panel a:hover,
.home-saas-page .mobile-nav__panel a:focus-visible { background: #142543; color: #fff; }

.home-saas-page .button--coral {
  background: var(--coral-action);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.25);
}

.home-saas-page .button--coral:hover {
  background: var(--coral-action-deep);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.31);
}

.button--schedule {
  background: var(--schedule-purple);
  color: #fff;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.25);
}

.button--schedule:hover {
  background: #422182;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.31);
}

.home-saas-page .button--maintenance {
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.25);
}

.home-saas-page .button--maintenance:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.31);
}

.button--dark-outline {
  border-color: var(--home-line-strong);
  background: transparent;
  color: #fff;
}

.button--dark-outline:hover { border-color: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.06); }

.saas-home { overflow: clip; }

.saas-hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 1000px;
  padding: clamp(72px, 8vw, 108px) clamp(22px, 5vw, 80px) 96px;
  background:
    radial-gradient(circle at 50% 40%, rgba(38, 96, 174, 0.18), transparent 34%),
    linear-gradient(180deg, var(--home-bg) 0%, #071125 100%);
  text-align: center;
}

.saas-hero__copy {
  position: relative;
  z-index: 3;
  width: min(980px, 100%);
  max-width: 980px;
}

.saas-hero h1 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(50px, 5.2vw, 78px);
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
  font-family: var(--home-display);
}

.saas-hero h1 span { color: #d9e8f9; }

.saas-hero__copy > p {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--home-muted);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.62;
  text-wrap: balance;
}

.saas-hero__actions,
.saas-product__actions,
.saas-close__actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.saas-hero__actions { justify-content: center; margin-top: 36px; }

.saas-text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  color: #e4edf9;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 5px;
}

.saas-text-link:hover { color: #fff; text-decoration: underline; }
.saas-text-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.saas-stage {
  position: relative;
  z-index: 2;
  width: min(1180px, 91vw);
  min-height: 570px;
  margin: 64px auto 0;
}

.saas-stage__glow {
  position: absolute;
  inset: 6% 16% 10%;
  background: rgba(55, 111, 188, 0.22);
  filter: blur(70px);
  pointer-events: none;
}

.saas-stage__main {
  position: absolute;
  inset: 4% 5% auto 5%;
  overflow: hidden;
  border: 1px solid var(--home-line-strong);
  border-radius: 15px;
  background: #eaf1fb;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.34);
}

.saas-stage__bar {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-bottom: 1px solid #dbe4f0;
  background: #f7f9fc;
}

.saas-stage__bar span,
.saas-screen__bar span { width: 8px; height: 8px; border-radius: 50%; background: #b9c5d4; }
.saas-stage__bar span:first-child,
.saas-screen__bar span:first-child { background: #ff777b; }
.saas-stage__bar strong { margin-left: 7px; color: #5b6b81; font-size: 11px; font-weight: 700; }
.saas-stage__main > img { display: block; width: 100%; height: auto; }

.saas-stage__phone {
  position: absolute;
  z-index: 3;
  top: 1%;
  left: 0;
  width: clamp(160px, 17vw, 226px);
  overflow: hidden;
  border: 7px solid #101a2b;
  border-radius: 34px;
  background: #101a2b;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
  transform: rotate(-3deg);
}

.saas-stage__phone img { display: block; width: 100%; height: auto; border-radius: 25px; }

.saas-stage__panel {
  position: absolute;
  z-index: 4;
  top: 9%;
  right: -1%;
  width: clamp(280px, 30vw, 410px);
  overflow: hidden;
  border: 1px solid var(--home-line-strong);
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.saas-stage__panel-label {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-bottom: 1px solid #e0e7f0;
  color: #172c4b;
  font-size: 12px;
  font-weight: 780;
}

.saas-stage__panel-label img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.saas-stage__panel > img { display: block; width: 100%; height: auto; }

.saas-stage figcaption,
.saas-product__visual figcaption {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  color: #8fa3bc;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.saas-stage figcaption {
  padding: 9px 12px;
  background: #050b18;
  color: #d6e1ee;
}

.saas-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.saas-benefits article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 46px clamp(24px, 3vw, 44px);
}

.saas-benefits article + article { border-left: 1px solid var(--home-line); }
.saas-benefits svg { width: 34px; height: 34px; fill: none; stroke: #78b7ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.saas-benefits h2 { margin: 0; color: var(--home-text); font-size: 18px; font-weight: 760; letter-spacing: -0.025em; line-height: 1.25; }
.saas-benefits p { margin: 10px 0 0; color: var(--home-muted); font-size: 14px; line-height: 1.65; }

.saas-products { padding: clamp(100px, 11vw, 158px) clamp(22px, 5vw, 80px); }

.saas-products__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  align-items: end;
  gap: 60px;
  max-width: 1240px;
  margin: 0 auto clamp(86px, 9vw, 126px);
}

.saas-products__heading h2,
.saas-close h2 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 810;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
  font-family: var(--home-display);
}

.saas-products__heading p,
.saas-close p {
  margin: 0;
  color: var(--home-muted);
  font-size: 18px;
  line-height: 1.68;
}

.saas-product {
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: clamp(70px, 8vw, 124px);
  max-width: 1320px;
  min-height: 760px;
  margin: 0 auto;
  padding: clamp(80px, 9vw, 132px) 0;
  border-top: 1px solid var(--home-line);
}

.saas-product--schedule { grid-template-columns: minmax(520px, 1.14fr) minmax(380px, 0.86fr); }

.saas-product__copy { max-width: 570px; }

.saas-product__identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  color: #dbe7f5;
  font-size: 15px;
  font-weight: 760;
}

.saas-product__identity img { width: 60px; height: 60px; border-radius: 15px; object-fit: cover; }

.saas-product h2 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(42px, 4.35vw, 64px);
  font-weight: 810;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
  font-family: var(--home-display);
}

.saas-product__copy > p {
  max-width: 620px;
  margin: 27px 0 34px;
  color: var(--home-muted);
  font-size: 18px;
  line-height: 1.72;
}

.saas-product__actions { flex-wrap: wrap; }
.saas-product__note { color: #d5deea; font-size: 14px; font-weight: 700; }

.saas-product__visual {
  position: relative;
  min-width: 0;
  margin: 0;
}

.saas-product__visual--phones { min-height: 650px; }

.saas-phone {
  position: absolute;
  overflow: hidden;
  border: 7px solid #101a2b;
  border-radius: 38px;
  background: #101a2b;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

.saas-phone img { display: block; width: 100%; height: auto; border-radius: 29px; }
.saas-phone--back { top: 46px; left: 6%; width: 290px; transform: rotate(-5deg); }
.saas-phone--front { top: 0; right: 7%; z-index: 2; width: 326px; transform: rotate(3deg); }
.saas-product__visual--phones figcaption { bottom: 0; }

.saas-screen {
  overflow: hidden;
  border: 1px solid var(--home-line-strong);
  border-radius: 15px;
  background: #edf3fb;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.31);
  transform: perspective(1400px) rotateY(2deg) rotateX(1deg);
}

.saas-product--schedule .saas-screen { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.saas-screen__bar {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 1px solid #dce5f0;
  background: #f8fafc;
}

.saas-screen > img { display: block; width: 100%; height: auto; }
.saas-product__visual--desktop { padding-bottom: 34px; }

.saas-product--audit .saas-product__identity { color: #c9f0f1; }
.saas-product--schedule .saas-product__identity { color: #ded4ff; }
.saas-product--maintenance .saas-product__identity { color: #ffd7ba; }

.saas-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 70px;
  max-width: 1280px;
  margin: 0 auto 96px;
  border: 1px solid var(--home-line-strong);
  border-radius: 16px;
  padding: clamp(48px, 6vw, 82px);
  background: var(--home-surface);
}

.saas-close > div:first-child { max-width: 760px; }
.saas-close p { max-width: 680px; margin-top: 24px; }
.saas-close__actions { justify-content: flex-end; flex-wrap: wrap; }

.home-saas-page .site-footer {
  border-top-color: var(--home-line);
  background: #030812;
  color: var(--home-muted);
}

.home-saas-page .site-footer p,
.home-saas-page .site-footer small { color: #91a4bc; }
.home-saas-page .site-footer > a:not(.brand) { color: #f1f6fc; }
.home-saas-page .site-footer > a:not(.brand):hover { color: #fff; }

@media (max-width: 1100px) {
  .saas-stage { min-height: 500px; }
  .saas-product,
  .saas-product--schedule { grid-template-columns: 1fr; gap: 66px; min-height: 0; }
  .saas-product--schedule .saas-product__visual { order: 2; }
  .saas-product--schedule .saas-product__copy { order: 1; }
  .saas-product__copy { max-width: 760px; }
  .saas-product__visual--phones { width: min(720px, 100%); min-height: 690px; margin-inline: auto; }
  .saas-product__visual--desktop { width: 100%; }
  .saas-close { grid-template-columns: 1fr; align-items: start; }
  .saas-close__actions { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .home-saas-page .site-header { grid-template-columns: 1fr auto auto; gap: 12px; padding-inline: 20px; }
  .home-saas-page .site-nav { display: none; }
  .home-saas-page .mobile-nav { display: block; }
  .saas-hero { min-height: 900px; }
  .saas-stage { min-height: 430px; margin-top: 72px; }
  .saas-stage__main { inset-inline: 2%; }
  .saas-stage__phone { left: -2%; }
  .saas-stage__panel { right: -4%; }
  .saas-benefits { grid-template-columns: 1fr; margin-inline: 22px; }
  .saas-benefits article + article { border-top: 1px solid var(--home-line); border-left: 0; }
  .saas-products__heading { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .home-saas-page .site-header { min-height: 72px; grid-template-columns: 1fr auto; }
  .home-saas-page .brand__logo-crop { width: 136px; height: 31px; }
  .home-saas-page .brand__logo-crop img { top: -75px; left: -15px; width: 170px; height: 170px; }
  .home-saas-page .header-cta { display: none; }
  .home-saas-page .mobile-nav summary { padding-inline: 8px; }

  .saas-hero { min-height: 780px; padding: 72px 20px 64px; }
  .saas-hero h1 { font-size: clamp(43px, 12vw, 58px); line-height: 1.04; }
  .saas-hero__copy > p { margin-top: 22px; font-size: 17px; }
  .saas-hero__actions { align-items: stretch; flex-direction: column; gap: 12px; margin-top: 30px; }
  .saas-hero__actions .button { width: 100%; }
  .saas-hero__actions .saas-text-link { justify-content: center; }

  .saas-stage { width: 100%; min-height: 330px; margin-top: 58px; }
  .saas-stage__main { inset: 0 -34% auto -34%; }
  .saas-stage__bar { height: 25px; }
  .saas-stage__bar strong { font-size: 11px; }
  .saas-stage__phone { top: auto; bottom: 0; left: 0; width: 132px; border-width: 5px; border-radius: 25px; }
  .saas-stage__phone img { border-radius: 19px; }
  .saas-stage__panel { top: auto; right: -24px; bottom: 2px; width: 210px; }
  .saas-stage__panel-label { min-height: 39px; padding: 5px 8px; font-size: 11px; }
  .saas-stage__panel-label img { width: 27px; height: 27px; border-radius: 7px; }
  .saas-stage figcaption {
    bottom: -2px;
    padding: 9px 8px;
    background: #050b18;
  }

  .saas-benefits { margin-inline: 20px; }
  .saas-benefits article { grid-template-columns: 38px 1fr; gap: 14px; padding: 30px 5px; }
  .saas-benefits svg { width: 29px; height: 29px; }

  .saas-products { padding: 90px 20px 76px; }
  .saas-products__heading { margin-bottom: 68px; }
  .saas-products__heading h2,
  .saas-close h2 { font-size: clamp(39px, 11.5vw, 52px); }
  .saas-products__heading p,
  .saas-close p { font-size: 17px; }

  .saas-product,
  .saas-product--schedule { gap: 48px; padding: 72px 0; }
  .saas-product__identity { margin-bottom: 24px; font-size: 14px; }
  .saas-product__identity img { width: 52px; height: 52px; border-radius: 13px; }
  .saas-product h2 { font-size: clamp(38px, 11vw, 50px); }
  .saas-product__copy > p { margin-block: 22px 28px; font-size: 17px; }
  .saas-product__actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .saas-product__actions .button { width: 100%; white-space: normal; text-align: center; }
  .saas-product__actions .saas-text-link { justify-content: center; }
  .saas-product__note { text-align: center; }

  .saas-product__visual--phones { min-height: 500px; }
  .saas-phone { border-width: 5px; border-radius: 29px; }
  .saas-phone img { border-radius: 23px; }
  .saas-phone--back { top: 42px; left: 0; width: 52%; }
  .saas-phone--front { right: 0; width: 57%; }
  .saas-product__visual--phones figcaption { bottom: -4px; }
  .saas-screen { border-radius: 12px; transform: none; }
  .saas-product--schedule .saas-screen { transform: none; }
  .saas-screen__bar { height: 25px; }

  .saas-close { gap: 34px; margin: 0 20px 72px; border-radius: 14px; padding: 34px 24px; }
  .saas-close__actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .saas-close__actions .button { width: 100%; }
}

@media (max-width: 430px) {
  .saas-stage { min-height: 305px; }
  .saas-stage__panel { width: 184px; }
  .saas-product__visual--phones { min-height: 445px; }
}

@media (prefers-reduced-motion: reduce) {
  .saas-stage__phone,
  .saas-stage__panel,
  .saas-screen,
  .saas-product--schedule .saas-screen { transform: none; }
}
