/* Homepage styles. The hero uses the shared header container. */
.home-main {
  --home-blue: #0062ff;
  --home-gutter: 64px;
  --home-content-width: min(var(--container-width), calc(100% - var(--home-gutter)));
  --home-navy: #070f29;
  --home-muted: #52658a;
  color: var(--home-navy);
  background: linear-gradient(#fff 40%, #f8fbff);
  padding-bottom: 38px;
}
.home-wrap { width: var(--home-content-width); margin-inline: auto; }
:where(.home-main) svg { width: 24px; height: 24px; flex: 0 0 auto; }
.home-main button, .home-main input, .home-main textarea { font: inherit; }
.home-main :is(a, button, input, textarea):focus-visible { outline: 3px solid #0756d9; outline-offset: 4px; }
.home-main button { cursor: pointer; }
.home-main .home-button { border-radius: 6px; }
.home-eyebrow { margin: 0 0 20px; color: #415b8b; font-size: 12px; line-height: 1.6; font-weight: 600; letter-spacing: 3.4px; }
/* Only the photograph occupies the right grid column. Its mask reaches full
   transparency at the copy boundary; its grid cell also confines the photograph. */
.home-hero { background: linear-gradient(115deg, #fbfdff, #f3f7ff 62%, #f7f8ff); }
.home-hero__inner { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: center; min-height: 700px; }
.home-hero__copy { position: relative; z-index: 1; min-width: 0; padding-block: 70px; }
.home-hero .home-eyebrow {   color: var(--home-blue);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 18px; }
.home-hero h1 { margin: 0; font-size: clamp(38px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -2.8px; font-weight: 800; color: #050b25; }
.home-hero h1 span { color: var(--home-blue); }
.home-hero__description { max-width: 630px; margin: 23px 0 27px; font-size: 18px; line-height: 1.55; color: #52618a; letter-spacing: -.35px; }
.home-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 27px; }
.home-feature { min-width: 0; min-height: 121px; padding: 16px 14px; border: 1px solid #dce7fb; border-radius: 6px; background: rgb(255 255 255 / 88%); box-shadow: 0 5px 19px rgb(54 94 161 / 4%); transition: transform .2s, border-color .2s; }
.home-feature__symbol { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; color: var(--home-blue); border-radius: 50%; background: #f8fbff; box-shadow: 2px 3px 9px rgb(37 89 188 / 7%); }
.home-feature:nth-child(even) .home-feature__symbol { color: #6135ff; }
.home-feature svg { width: 30px; height: 30px; stroke-width: 1.8; }
.home-feature__symbol--seo svg { width: 34px; height: 34px; }
.home-feature strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -.45px; }
.home-feature small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: #52658a; letter-spacing: -.2px; }
@media (hover: hover) {
  .home-feature:hover { transform: translateY(-3px); border-color: #a9c8ff; }
}
.home-hero__visual { position: relative; align-self: center; min-width: 0; aspect-ratio: 867 / 799; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 89%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 89%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
.home-hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.home-hero__trust { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 0; margin: 27px 0 0; list-style: none; }
.home-hero__trust li { display: flex; align-items: center; gap: 9px; color: #43577e; font-size: 14px; line-height: 1.5; }
.home-hero__trust svg { width: 28px; height: 28px; padding: 5px; color: var(--home-blue); border: 1px solid #d2e2ff; border-radius: 50%; stroke-width: 2.5; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.home-button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 12px 18px; border: 1px solid #d5e0ef; border-radius: 5px; font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap; transition: box-shadow .2s, background .2s, border-color .2s, transform .2s; }
.home-button svg { width: 17px; height: 17px; }
.home-button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgb(27 63 117 / 10%); }
.home-button:active { transform: translateY(0); }
.home-button--primary {   background: #032967;  color: #fff;  }
.home-button--primary:hover { background: #000000;  box-shadow: 0 3px 8px rgb(0 86 222 / 13%), inset 0 1px 0 rgb(255 255 255 / 18%); }
.home-button--secondary { background: rgb(255 255 255 / 96%); border-color: #d4dfed; color: #243953; box-shadow: 0 2px 5px rgb(35 61 100 / 3%); }
.home-button--secondary:hover { background: #f8fbff; border-color: #9eb9de; }
.home-button--whatsapp { color: #16724d; border-color: #bddccb; background: #f7fcf9; box-shadow: 0 2px 5px rgb(25 93 60 / 3%); }
.home-button--whatsapp:hover { color: #105c3e; background: #edf8f1; border-color: #8abc9f; }
.home-demos { position: relative; z-index: 1; margin-top: 20px; padding: 24px 24px 20px; border-radius: 22px; background: linear-gradient(#fff, #f9fcff); box-shadow: 0 6px 40px rgb(76 119 187 / 3%); scroll-margin-top: 24px; }
.home-demos__toolbar { display: flex; gap: 20px; align-items: center; margin-bottom: 25px; }
.home-categories { display: flex; gap: 9px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; padding: 3px 2px 7px; }
.home-category { display: flex; gap: 12px; align-items: center; justify-content: center; white-space: nowrap; min-height: 50px; padding: 12px 19px; border: 0; border-radius: 6px; background: #f3f7fd; color: #172749; font-size: 13px; font-weight: 500; flex: 1; }
.home-category svg { width: 20px; height: 20px; }
.home-category:hover { background: #e8f0fd; }
.home-category.is-active { background: var(--home-blue); color: #fff; box-shadow: 0 3px 10px rgb(0 98 255 / 12%); }
.home-search { width: 220px; flex: 0 0 220px; min-height: 50px; display: flex; gap: 11px; align-items: center; padding: 0 16px; border: 1px solid #dbe5f5; border-radius: 6px; color: #667fa7; margin-bottom: 4px; }
.home-search svg { width: 19px; height: 19px; }
.home-search input { min-width: 0; width: 100%; border: 0; padding-block: 13px; outline-offset: 0; color: #182b51; background: transparent; font-size: 13px; }
.home-search input::placeholder { color: #7186aa; }
.home-demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-demo { min-width: 0; background: #fff; border: 1px solid #e0e9f7; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgb(53 104 183 / 3%); transition: transform .2s, box-shadow .2s; }
.home-demo:hover { transform: translateY(-5px); box-shadow: 0 13px 26px rgb(41 89 165 / 13%); }
.home-demo__link { display: block; height: 100%; }
.home-demo__link:focus-visible { outline-offset: -4px !important; }
.home-demo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid #edf1f8; }
.home-demo__info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 12px; }
.home-demo h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: -.35px; }
.home-demo__info p { margin: 0; color: #6e81a4; font-size: 13px; }
.home-demo__preview { display: flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid #e6ecf8; border-radius: 6px; padding: 9px 10px; color: #243c67; font-size: 11px; }
.home-demo__preview svg { width: 15px; height: 15px; }
.home-demos__footer { text-align: center; padding-top: 20px; }
.home-button--all { min-height: 45px; padding: 10px 28px; color: var(--home-blue); background: #f1f6ff; font-weight: 500; }
.home-empty { padding: 40px 20px; text-align: center; color: var(--home-muted); line-height: 1.6; }
.home-tech { text-align: center; margin-top: 20px; padding: 26px 24px 24px; border-radius: 22px; background: #f0f6ff; }
.home-tech .home-eyebrow { margin-bottom: 14px; }
.home-tech h2 { margin: 0 0 9px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.25; }
.home-tech__description { margin: 0 0 27px; color: var(--home-muted); font-size: 16px; line-height: 1.6; }
.home-tech__logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.home-tech__logo { min-width: 0; height: 96px; padding: 18px; display: flex; align-items: center; justify-content: center; border: 1px solid #eaf0fa; border-radius: 9px; background: rgb(255 255 255 / 90%); }
.home-tech__logo img { max-width: 100%; width: 170px; height: 62px; object-fit: contain; }
.home-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 32px 24px 4px; }
.home-benefit { display: flex; gap: 22px; align-items: center; min-width: 0; }
.home-benefit__icon { display: grid; place-items: center; flex: 0 0 88px; width: 88px; height: 88px; border-radius: 50%; background: #e8f1ff; color: var(--home-blue); }
.home-benefit__icon svg { width: 43px; height: 43px; }
.home-benefit__icon--purple { background: #f0eaff; color: #7a16f8; }
.home-benefit__icon--green { background: #e3f8eb; color: #0aab36; }
.home-benefit h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.4; letter-spacing: -.5px; }
.home-benefit p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--home-muted); }
.home-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-callback { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #dce6f8; border-radius: 16px; color: var(--home-navy); box-shadow: 0 24px 100px rgb(4 25 65 / 24%); overflow-y: auto; }
.home-callback::backdrop { background: rgb(6 20 47 / 52%); backdrop-filter: blur(5px); }
.home-callback__panel { position: relative; padding: 30px; background: #fff; }
.home-callback__close { position: absolute; right: 16px; top: 16px; border: 0; border-radius: 6px; padding: 8px; background: #f0f5fd; color: #435c83; }
.home-callback__icon { display: grid; place-items: center; width: 48px; height: 48px; background: #edf4ff; color: var(--home-blue); border-radius: 50%; margin-bottom: 16px; }
.home-callback .home-eyebrow { font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
.home-callback h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -1.2px; }
.home-callback #callback-description { color: var(--home-muted); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.home-field { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; align-items: start; margin-bottom: 17px; }
.home-field label { font-size: 13px; font-weight: 600; line-height: 1.5; padding-top: 11px; }
.home-field label > span:not(.home-field__optional) { color: #c13443; }
.home-field__optional { display: block; font-weight: 400; font-size: 11px; color: #637597; }
.home-field :is(input, textarea) { width: 100%; border: 1px solid #d4deef; border-radius: 6px; padding: 11px 12px; font-size: 14px; color: #162b4f; background: #fbfcff; }
.home-field textarea { resize: vertical; min-height: 90px; }
.home-field [aria-invalid="true"] { border-color: #bb263c; }
.home-field small { display: block; margin-top: 5px; color: #af2337; font-size: 12px; line-height: 1.5; }
.home-field small:empty { display: none; }
.home-callback__privacy { margin: 0; color: #637597; font-size: 11px; line-height: 1.65; }
.home-callback__privacy a { text-decoration: underline; }
.home-callback__status { margin: 14px 0; font-size: 13px; line-height: 1.6; color: #435c83; }
.home-callback__status[data-state="error"] { color: #ad2339; }
.home-callback__status[data-state="success"] { padding: 12px; border-radius: 6px; background: #eaf8ef; color: #126c3a; }
.home-callback__submit { width: 100%; }
.home-callback button:disabled { cursor: wait; opacity: .65; transform: none; }
@media (max-width: 1200px) {
  
  .home-button { padding-inline: 15px; font-size: 13px; }
  .home-demos__toolbar { flex-wrap: wrap; gap: 10px; }
  .home-categories { flex-basis: 100%; }
  .home-search { width: 100%; flex-basis: 100%; }
  .home-category { padding-inline: 16px; }
  .home-demo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-tech__logo { padding: 12px; }
  .home-benefits { gap: 22px; }
  .home-benefit { gap: 13px; align-items: flex-start; }
  .home-benefit__icon { flex-basis: 62px; width: 62px; height: 62px; }
  .home-benefit__icon svg { width: 32px; height: 32px; }
  .home-benefit h2 { font-size: 14px; }
  .home-benefit p { font-size: 13px; }
}
@media (max-width: 900px) {
  .home-page .topbar__intro { display: none; }
  .home-eyebrow { font-size: 10px; letter-spacing: 2.5px; }
  
  .home-tech__logos { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-benefits { gap: 20px; }
  .home-benefit { flex-direction: column; }
}
@media (max-width: 700px) {
  .home-main { --home-gutter: 32px; }
  .home-eyebrow { font-size: 9px; letter-spacing: 2.1px; margin-bottom: 15px; }
  .home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .home-actions .home-button { padding: 12px 10px; min-height: 45px; font-size: 12px; gap: 8px; }
  .home-actions .home-button--primary { font-size: 12px; }
  .home-actions .home-button--whatsapp { grid-column: 1 / -1; }
  .home-demos { margin-top: 16px; padding: 15px 12px 18px; border-radius: 16px; }
  .home-demos__toolbar { gap: 8px; margin-bottom: 16px; }
  .home-categories { margin-inline: -3px; }
  .home-category { flex: 0 0 auto; font-size: 12px; min-height: 45px; padding: 10px 14px; gap: 8px; }
  .home-category svg { width: 17px; height: 17px; }
  .home-search { min-height: 44px; }
  .home-search input { padding-block: 11px; }
  .home-demo-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-demo__info { padding: 14px; }
  .home-demo h3 { font-size: 15px; }
  .home-demo__preview { font-size: 12px; padding: 10px 12px; }
  .home-tech { margin-top: 14px; padding: 26px 14px 16px; border-radius: 16px; }
  .home-tech h2 { font-size: 25px; letter-spacing: -.8px; }
  .home-tech__description { font-size: 14px; margin-bottom: 20px; }
  .home-tech__logos { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .home-tech__logo { height: 82px; padding: 14px; }
  .home-tech__logo img { height: 50px; }
  .home-benefits { grid-template-columns: 1fr; padding: 28px 12px 0; gap: 25px; }
  .home-benefit { flex-direction: row; align-items: center; gap: 18px; }
  .home-benefit__icon { flex-basis: 68px; width: 68px; height: 68px; }
  .home-benefit h2 { font-size: 15px; }
  .home-benefit p { font-size: 13px; }
  .home-callback__panel { padding: 24px 20px; }
  .home-callback h2 { font-size: 29px; }
  .home-field { grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
  .home-field label { padding: 0; }
  .home-field__optional { display: inline; }
}
@media (min-width: 520px) and (max-width: 700px) {
  .home-demo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-demo__info { padding: 10px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .home-main *, .home-main *::before, .home-main *::after { scroll-behavior: auto !important; transition: none !important; }
}

.home-page:has(.home-callback[open]) { overflow: hidden; }
/* Keep the shared header markup and its 1023px menu lifecycle; fit its desktop
   links in the narrow interval immediately above that existing breakpoint. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .home-page .navigation__inner { gap: 20px; }
  .home-page .brand img { width: 148px; }
  .home-page .header-menu { gap: 16px; min-width: 0; }
  .home-page .primary-nav { gap: 14px; }
  .home-page :is(.nav-link, .login-link, .start-link) { font-size: 13px; }
  .home-page .header-actions { gap: 14px; }
  .home-page .start-link { gap: 10px; padding-inline: 12px; }
}

/* Restored homepage sections keep their shared styles and SVG proportions. */
.home-main :is(.why-fumesoft__button, .launch-cta__button, .testimonials__control) { border-radius: 6px; }
.home-benefits + .why-fumesoft { margin-top: 36px; }

/* Existing content rail for the remaining homepage sections. */
.home-main > :is(.why-fumesoft, .testimonials, .launch-cta) { width: var(--home-content-width); margin-inline: auto; }
.home-main > :is(.why-fumesoft, .testimonials) > .container { width: 100%; padding-inline: 24px; }
.home-main .why-fumesoft { border-radius: 12px; }
.home-main .testimonials__header { padding-inline: 0; }
.home-main .testimonials__viewport { margin-inline: 0; padding-inline: 0; }
.home-main .launch-cta { border-radius: 12px; }
@media (max-width: 700px) {
  .home-main > :is(.why-fumesoft, .testimonials) > .container { padding-inline: 12px; }
  .home-main .launch-cta { padding-inline: 12px; }
}

.home-hero .home-actions { display: flex; flex-wrap: nowrap; gap: 10px; }
.home-hero .home-button { min-height: 58px; padding: 15px 13px; font-size: 15px; gap: 10px; border-radius: 6px; }
.home-hero .home-button--primary { flex: 1.05; }
.home-hero .home-button--secondary,
.home-hero .home-button--whatsapp { justify-content: center; }
.home-hero .home-button--secondary { flex: .9; color: #113979; }
.home-hero .home-button--whatsapp { flex: 1.4; color: #007f5b; background: #f7fcfa; border-color: #cee6df; border-radius: 8px; padding-left: 22px; gap: 12px; font-weight: 700; box-shadow: 0 2px 6px rgb(25 93 60 / 3%), inset 0 0 0 1px rgb(206 230 223 / 25%); }
.home-hero .home-button--whatsapp:hover { color: #007f5b; background: #eff9f4; border-color: #b8dacf; }
.home-hero .home-button--secondary svg,
.home-hero .home-button--whatsapp svg { width: 28px; height: 28px; flex: 0 0 28px; }
@media (min-width: 901px) and (max-width: 1200px) {
  .home-hero__inner { min-height: 610px; }
  .home-hero__copy { padding-block: 48px; }
  .home-hero h1 { font-size: 4.25vw; letter-spacing: -.05em; }
  .home-hero .home-eyebrow { font-size: 9px; letter-spacing: 2px; }
  .home-hero__description { font-size: 16px; }
  .home-features { gap: 8px; }
  .home-feature { padding: 12px 8px; }
  .home-feature strong { font-size: 12px; }
  .home-feature small { font-size: 13px; }
  .home-feature__symbol--seo svg { width: 29px; height: 29px; }
  .home-hero .home-actions { flex-wrap: wrap; }
  .home-hero .home-button { padding-inline: 12px; font-size: 14px; }
  .home-hero .home-button--whatsapp { flex-basis: 100%; }
  .home-hero__trust { gap: 10px 14px; }
  .home-hero__trust li { font-size: 13px; }
}
@media (max-width: 900px) {
  .home-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-hero__visual { display: none; }
  .home-hero__copy { padding-block: 38px; }
  .home-hero h1 { font-size: clamp(30px, 9vw, 56px); letter-spacing: -.045em; }
  .home-hero .home-eyebrow { font-size: 9px; letter-spacing: 1.8px; margin-bottom: 18px; }
  .home-hero__description { max-width: 640px; margin: 18px 0 22px; font-size: 16px; line-height: 1.6; letter-spacing: -.2px; }
  .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
  .home-feature { min-height: 105px; padding: 12px 14px; }
  .home-feature__symbol { width: 32px; height: 32px; margin-bottom: 6px; }
  .home-feature svg { width: 26px; height: 26px; }
  .home-feature strong { font-size: 14px; }
  .home-feature small { font-size: 13px; }
  .home-feature__symbol--seo svg { width: 29px; height: 29px; }
  .home-hero .home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-hero .home-button { padding: 13px 8px; min-height: 50px; font-size: 13.5px; gap: 8px; }
  .home-hero .home-button--whatsapp { grid-column: 1 / -1; }
  .home-hero .home-button--secondary svg,
  .home-hero .home-button--whatsapp svg { width: 24px; height: 24px; flex-basis: 24px; }
  .home-hero__trust { gap: 9px 15px; margin-top: 20px; }
  .home-hero__trust li { gap: 7px; font-size: 12.5px; }
  .home-hero__trust svg { width: 24px; height: 24px; padding: 4px; }
}
@media (max-width: 399px) {
  .home-hero__copy { padding-block: 30px; }
  .home-hero .home-eyebrow { font-size: 8px; letter-spacing: 1.35px; }
  .home-hero__description { font-size: 14px; }
}

@media (max-width: 359px) {
  .home-hero .home-button { font-size: 12.5px; padding-inline: 6px; gap: 6px; }
  .home-hero .home-button--secondary svg,
  .home-hero .home-button--whatsapp svg { width: 22px; height: 22px; flex-basis: 22px; }
}
