/* QHItech homepage: compact service overview and domain entry point. */

.qhi-home-page {
  background:
    radial-gradient(760px 420px at 8% 0%, rgba(47, 107, 255, .10), transparent 68%),
    radial-gradient(680px 420px at 94% 5%, rgba(55, 214, 255, .10), transparent 70%),
    #f7faff !important;
  background-attachment: scroll !important;
  background-size: auto !important;
}

.qhi-home {
  overflow: hidden;
  color: #0a1930;
}

.qhi-home .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.qhi-home h1,
.qhi-home h2,
.qhi-home h3,
.qhi-home p {
  letter-spacing: normal;
}

.qhi-home-kicker {
  margin: 0 0 11px;
  color: #1267dd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .035em !important;
  text-transform: uppercase;
}

.qhi-home-kicker span {
  margin-right: 6px;
  color: #16ad67;
}

.qhi-home-hero {
  position: relative;
  padding: 58px 0 26px;
  border-bottom: 1px solid #dbe6f3;
  background:
    radial-gradient(560px 360px at 78% 22%, rgba(55, 214, 255, .14), transparent 72%),
    radial-gradient(680px 390px at 14% 5%, rgba(47, 107, 255, .13), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(244, 249, 255, .92));
}

.qhi-home-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 107, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: '';
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 90%);
}

.qhi-home-hero .container {
  position: relative;
}

.qhi-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr);
  gap: 48px;
  align-items: center;
}

.qhi-home-hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #071830;
  font-size: clamp(42px, 4.3vw, 66px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em !important;
}

.qhi-home-lead {
  max-width: 670px;
  margin: 22px 0 0;
  color: #435874;
  font-size: 19px;
  line-height: 1.55;
}

.qhi-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 27px;
}

.qhi-home-button,
.qhi-home-service-cta {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.qhi-home-button:hover,
.qhi-home-service-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.qhi-home-button--primary {
  border-color: #176df2;
  background: linear-gradient(135deg, #176df2, #269be9);
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 109, 242, .22);
}

.qhi-home-button--secondary {
  border-color: #b9cbe3;
  background: rgba(255, 255, 255, .88);
  color: #163456;
  box-shadow: 0 10px 22px rgba(18, 50, 88, .08);
}

.qhi-home-button--secondary:hover {
  border-color: #7fa7d8;
  background: #fff;
  color: #125fd5;
}

.qhi-home-hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(157, 186, 221, .68);
  border-radius: 26px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 28px 62px rgba(29, 73, 132, .16);
}

.qhi-home-hero-visual::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  content: '';
}

.qhi-home-hero-visual > img {
  display: block;
  width: 100%;
  min-height: 340px;
  object-fit: cover;
}

.qhi-home-hero-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(183, 204, 231, .78);
  border-radius: 15px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 35px rgba(23, 60, 110, .13);
  backdrop-filter: blur(12px);
}

.qhi-home-hero-visual figcaption span {
  padding: 7px 5px;
  border-radius: 9px;
  color: #28496f;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.qhi-home-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid #d7e3f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 14px 35px rgba(31, 71, 123, .08);
}

.qhi-home-facts > div {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  color: #274565;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.qhi-home-facts > div + div {
  border-left: 1px solid #e1e9f3;
}

.qhi-home-facts img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.qhi-home-section {
  padding: 68px 0;
}

.qhi-home-section-head {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.qhi-home-section-head h2,
.qhi-home-domain h2,
.qhi-home-panel h2 {
  margin: 0;
  color: #071830;
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em !important;
}

.qhi-home-section-head > p:last-child {
  margin: 12px auto 0;
  color: #566a85;
  font-size: 16px;
  line-height: 1.55;
}

.qhi-home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.qhi-home-service-card {
  --qhi-card-accent: #176df2;
  --qhi-card-soft: #eaf3ff;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 395px;
  flex-direction: column;
  overflow: hidden;
  padding: 23px 20px 20px;
  border: 1px solid #d3deeb;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(18, 54, 99, .09);
}

.qhi-home-service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--qhi-card-accent);
  content: '';
}

.qhi-home-service-card--hosting {
  --qhi-card-accent: #12a75f;
  --qhi-card-soft: #e9f9f0;
}

.qhi-home-service-card--vps {
  --qhi-card-accent: #176df2;
  --qhi-card-soft: #eaf3ff;
}

.qhi-home-service-card--minecraft {
  --qhi-card-accent: #7c3fe4;
  --qhi-card-soft: #f1ebff;
}

.qhi-home-service-card--domains {
  --qhi-card-accent: #e59312;
  --qhi-card-soft: #fff5df;
}

.qhi-home-service-card--hosting .qhi-home-service-icon img {
  filter: hue-rotate(-65deg) saturate(1.15);
}

.qhi-home-service-card--minecraft .qhi-home-service-icon img {
  filter: hue-rotate(50deg) saturate(1.2);
}

.qhi-home-service-card--domains .qhi-home-service-icon img {
  filter: hue-rotate(180deg) saturate(1.35);
}

.qhi-home-service-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qhi-home-service-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: var(--qhi-card-soft);
}

.qhi-home-service-icon img {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.qhi-home-service-eyebrow {
  margin: 0 0 3px;
  color: var(--qhi-card-accent);
  font-size: 12px;
  font-weight: 900;
}

.qhi-home-service-card h3 {
  margin: 0;
  color: #0a1a31;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
}

.qhi-home-service-copy {
  min-height: 69px;
  margin: 19px 0 0;
  color: #51647d;
  font-size: 14px;
  line-height: 1.58;
}

.qhi-home-service-card ul,
.qhi-home-panel-copy ul {
  display: grid;
  gap: 9px;
  margin: 19px 0 22px;
  padding: 0;
  list-style: none;
}

.qhi-home-service-card li,
.qhi-home-panel-copy li {
  position: relative;
  padding-left: 23px;
  color: #2a405d;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.4;
}

.qhi-home-service-card li::before,
.qhi-home-panel-copy li::before {
  position: absolute;
  top: .08em;
  left: 0;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--qhi-card-accent, #176df2);
  color: #fff;
  content: '✓';
  font-size: 10px;
  font-weight: 950;
}

.qhi-home-service-cta {
  width: 100%;
  margin-top: auto;
  background: var(--qhi-card-accent);
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--qhi-card-accent) 24%, transparent);
}

.qhi-home-domain {
  padding: 8px 0 68px;
}

.qhi-home-domain-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(124, 167, 226, .54);
  border-radius: 27px;
  background:
    radial-gradient(600px 230px at 100% 0%, rgba(53, 196, 255, .26), transparent 72%),
    linear-gradient(135deg, #0b2f69 0%, #145fd5 58%, #177ccc 100%);
  box-shadow: 0 25px 55px rgba(17, 72, 146, .20);
  color: #fff;
}

.qhi-home-domain-card::after {
  position: absolute;
  top: -110px;
  right: -70px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  content: '';
}

.qhi-home-domain-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.qhi-home-domain-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}

.qhi-home-domain-icon img {
  width: 35px;
  height: 35px;
  filter: none;
}

.qhi-home-domain .qhi-home-kicker {
  margin-bottom: 7px;
  color: #bde8ff;
}

.qhi-home-domain h2 {
  max-width: 800px;
  color: #fff;
}

.qhi-home-domain-copy p:last-child {
  max-width: 780px;
  margin: 12px 0 0;
  color: #dcecff;
  font-size: 16px;
  line-height: 1.55;
}

.qhi-home-domain .qhi-domain-search {
  position: relative;
  z-index: 1;
  width: 100%;
}

.qhi-home-domain-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 26px;
}

.qhi-home-domain-form input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 13px;
  background: #fff;
  color: #0a1b32;
  font: inherit;
  font-size: 16px;
  box-shadow: 0 13px 28px rgba(3, 27, 65, .18);
}

.qhi-home-domain-form button {
  min-height: 56px;
  padding: 13px 24px;
  border: 1px solid #fff;
  border-radius: 13px;
  background: #fff;
  color: #125fd5;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(3, 27, 65, .18);
}

.qhi-home-domain-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.qhi-home-domain-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.qhi-home-domain-tlds span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.qhi-home-domain-meta > p {
  margin: 0;
  color: #dcecff;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.qhi-home-panel {
  padding-top: 62px;
  border-top: 1px solid #e0e9f4;
  background: rgba(255, 255, 255, .62);
}

.qhi-home-panel-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: center;
}

.qhi-home-panel-media {
  overflow: hidden;
  border: 1px solid #d0ddea;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 19px 42px rgba(17, 58, 107, .12);
}

.qhi-home-panel-media img {
  display: block;
  width: 100%;
  min-height: 300px;
  object-fit: cover;
}

.qhi-home-panel-copy > p:not(.qhi-home-kicker) {
  margin: 16px 0 0;
  color: #52667f;
  font-size: 16px;
  line-height: 1.6;
}

.qhi-home-panel-copy {
  --qhi-card-accent: #176df2;
}

.qhi-home-panel-copy ul {
  margin: 21px 0 25px;
}

.qhi-home-panel-copy li {
  font-size: 14px;
}

.qhi-home-benefits {
  padding: 52px 0 66px;
  border-top: 1px solid #dbe5f1;
}

.qhi-home-section-head--compact {
  margin-bottom: 23px;
}

.qhi-home-section-head--compact h2 {
  font-size: clamp(27px, 2.8vw, 36px);
}

.qhi-home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d7e2ef;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 15px 36px rgba(19, 56, 101, .08);
}

.qhi-home-benefit-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 20px 17px;
}

.qhi-home-benefit-grid article + article {
  border-left: 1px solid #e0e8f2;
}

.qhi-home-benefit-grid img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.qhi-home-benefit-grid h3 {
  margin: 0;
  color: #142c4c;
  font-size: 14px;
  font-weight: 900;
}

.qhi-home-benefit-grid p {
  margin: 5px 0 0;
  color: #60718a;
  font-size: 12px;
  line-height: 1.45;
}

html[data-theme='dark'] .qhi-home-page {
  background: #071426 !important;
}

html[data-theme='dark'] .qhi-home,
html[data-theme='dark'] .qhi-home-hero-copy h1,
html[data-theme='dark'] .qhi-home-section-head h2,
html[data-theme='dark'] .qhi-home-panel h2,
html[data-theme='dark'] .qhi-home-service-card h3,
html[data-theme='dark'] .qhi-home-benefit-grid h3 {
  color: #f1f6ff;
}

html[data-theme='dark'] .qhi-home-hero,
html[data-theme='dark'] .qhi-home-panel {
  border-color: #1d3657;
  background: #0a172a;
}

html[data-theme='dark'] .qhi-home-service-card,
html[data-theme='dark'] .qhi-home-facts,
html[data-theme='dark'] .qhi-home-benefit-grid,
html[data-theme='dark'] .qhi-home-hero-visual {
  border-color: #203b5e;
  background: #0e2037;
}

html[data-theme='dark'] .qhi-home-lead,
html[data-theme='dark'] .qhi-home-section-head > p:last-child,
html[data-theme='dark'] .qhi-home-service-copy,
html[data-theme='dark'] .qhi-home-service-card li,
html[data-theme='dark'] .qhi-home-panel-copy > p:not(.qhi-home-kicker),
html[data-theme='dark'] .qhi-home-panel-copy li,
html[data-theme='dark'] .qhi-home-benefit-grid p,
html[data-theme='dark'] .qhi-home-facts > div {
  color: #b8c8dd;
}

@media (max-width: 1020px) {
  .qhi-home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr);
    gap: 30px;
  }

  .qhi-home-service-grid,
  .qhi-home-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qhi-home-benefit-grid article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #e0e8f2;
  }

  .qhi-home-benefit-grid article:nth-child(4) {
    border-top: 1px solid #e0e8f2;
  }
}

@media (max-width: 900px) {
  .qhi-home-page .topbar .topbar-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 10px;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 6px 0 8px;
  }

  .qhi-home-page .topbar .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .qhi-home-page .topbar .brand .brand-logo {
    width: 128px;
    height: auto;
    max-height: 38px;
    transform: none;
  }

  .qhi-home-page .topbar .actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .qhi-home-page .topbar .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .qhi-home-page .topbar .nav .nav-link {
    min-height: 30px;
    justify-content: center;
    padding: 5px 6px;
    font-size: 12px;
  }

  .qhi-home-hero {
    padding-top: 42px;
  }

  .qhi-home-hero-grid,
  .qhi-home-panel-card {
    grid-template-columns: 1fr;
  }

  .qhi-home-hero-visual {
    max-width: 680px;
  }

  .qhi-home-hero-visual > img {
    min-height: 300px;
  }

  .qhi-home-panel-media {
    order: 2;
  }

  .qhi-home-panel-copy {
    order: 1;
  }
}

@media (max-width: 680px) {
  .qhi-home-page {
    padding-bottom: 62px;
  }

  .qhi-home-page .topbar .container {
    width: min(100%, calc(100% - 18px));
  }

  .qhi-home-page .topbar .brand .brand-logo {
    width: 108px;
    height: auto;
    max-height: 34px;
  }

  .qhi-home-page .topbar .actions {
    gap: 4px;
  }

  .qhi-home-page .topbar .actions .btn {
    width: auto;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 11px;
  }

  .qhi-home-page .qhi-header-more-menu {
    width: auto;
  }

  .qhi-home-page .qhi-header-more-dropdown {
    right: 0;
    left: auto;
  }

  .qhi-home-page .qhi-support-widget {
    right: 10px;
    bottom: 10px;
  }

  .qhi-home-page .qhi-support-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    font-size: 0;
  }

  .qhi-home-page .qhi-support-toggle::before {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .qhi-home-hero {
    padding: 34px 0 20px;
  }

  .qhi-home-hero-copy h1 {
    font-size: clamp(36px, 11.4vw, 48px);
  }

  .qhi-home-lead {
    margin-top: 17px;
    font-size: 16px;
  }

  .qhi-home-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 21px;
  }

  .qhi-home-hero-visual > img {
    min-height: 235px;
  }

  .qhi-home-hero-visual figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qhi-home-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
  }

  .qhi-home-facts > div:nth-child(3),
  .qhi-home-facts > div:nth-child(4) {
    border-top: 1px solid #e1e9f3;
  }

  .qhi-home-facts > div:nth-child(3) {
    border-left: 0;
  }

  .qhi-home-section {
    padding: 50px 0;
  }

  .qhi-home-section-head {
    margin-bottom: 23px;
    text-align: left;
  }

  .qhi-home-service-grid,
  .qhi-home-benefit-grid {
    grid-template-columns: 1fr;
  }

  .qhi-home-service-card {
    min-height: 0;
  }

  .qhi-home-service-copy {
    min-height: 0;
  }

  .qhi-home-domain {
    padding: 4px 0 50px;
  }

  .qhi-home-domain-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .qhi-home-domain-copy {
    grid-template-columns: 1fr;
  }

  .qhi-home-domain-icon {
    width: 50px;
    height: 50px;
  }

  .qhi-home-domain-form {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .qhi-home-domain-form button {
    width: 100%;
  }

  .qhi-home-domain-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .qhi-home-domain-meta > p {
    text-align: left;
  }

  .qhi-home-panel-card {
    gap: 28px;
  }

  .qhi-home-panel-media img {
    min-height: 230px;
  }

  .qhi-home-benefit-grid article + article,
  .qhi-home-benefit-grid article:nth-child(3),
  .qhi-home-benefit-grid article:nth-child(4) {
    border-top: 1px solid #e0e8f2;
    border-left: 0;
  }
}

@media (max-width: 390px) {
  .qhi-home-page .topbar .brand .brand-logo {
    width: 92px;
  }

  .qhi-home-page .topbar .actions .btn {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 10px;
  }

  .qhi-home-page .topbar .nav .nav-link {
    font-size: 10px;
  }

  .qhi-home-hero-actions {
    grid-template-columns: 1fr;
  }
}
