:root {
  color-scheme: dark;
  font-family: ui-sans-serif, "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background: #090909;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: #fff;
  background: #090909;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: #090909;
  background-image: url("assets/banner-desktop.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 41%, transparent 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 28%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.page-shell {
  width: min(1392px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px 0 46px;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 58px;
}

.brand {
  display: block;
  width: clamp(118px, 8.1vw, 142px);
  height: auto;
}

.hero-copy {
  width: min(570px, 45vw);
  margin-top: clamp(126px, 20vh, 208px);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 3.25vw, 61px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.012em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}

h1 span {
  display: block;
}

.consultation-cta {
  display: flex;
  width: min(500px, 100%);
  min-height: 98px;
  margin: 44px 0 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(105deg, #ff484e 0%, #ff7655 100%);
  box-shadow: 0 16px 42px rgba(255, 63, 67, 0.23);
  font-size: clamp(32px, 2.5vw, 45px);
  font-weight: 800;
  letter-spacing: 0.012em;
  line-height: 1;
  text-align: center;
  user-select: none;
  font-family: inherit;
  cursor: pointer;
}

.consultation-cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.ugphone-trial-modal[hidden] {
  display: none;
}

.ugphone-trial-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(4px);
}

.ugphone-trial-card {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.ugphone-trial-title {
  margin: 0 36px 18px;
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.ugphone-trial-qr {
  display: block;
  width: min(340px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.ugphone-trial-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #286fe8;
  background: #eef4ff;
  font-size: 26px;
  line-height: 36px;
  cursor: pointer;
}

.ugphone-trial-close:focus-visible {
  outline: 3px solid rgba(40, 111, 232, 0.42);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    background-image: url("assets/banner-mobile.png");
    background-position: center top;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 32%, rgba(0, 0, 0, 0.35));
  }

  .page-shell {
    width: min(100% - 32px, 680px);
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 22px 0 24px;
  }

  .brand {
    width: 120px;
  }

  .hero-copy {
    width: 100%;
    margin: 0;
    align-self: end;
    text-align: center;
  }

  h1 {
    font-size: clamp(31px, 8.5vw, 48px);
    letter-spacing: 0.02em;
  }

  .consultation-cta {
    min-height: 70px;
    margin: 28px auto 0;
    border-radius: 14px;
    font-size: clamp(27px, 7vw, 38px);
  }

  .ugphone-trial-card {
    padding: 24px 18px 20px;
  }

  .ugphone-trial-title {
    font-size: 21px;
  }
}

@media (max-width: 900px) and (max-height: 600px) {
  .page-shell {
    padding: 12px 0 14px;
  }

  .site-header {
    min-height: 44px;
  }

  .brand {
    width: 100px;
  }

  h1 {
    font-size: clamp(26px, 6.2vw, 34px);
    line-height: 1.12;
  }

  .consultation-cta {
    min-height: 54px;
    margin-top: 16px;
    font-size: clamp(23px, 5.4vw, 29px);
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .page-shell {
    padding-top: 20px;
  }

  .hero-copy {
    margin-top: 92px;
  }

  .consultation-cta {
    min-height: 78px;
    margin-top: 30px;
  }
}

@media (max-height: 420px) and (min-width: 901px) {
  .page-shell {
    padding: 10px 0 12px;
  }

  .site-header {
    min-height: 38px;
  }

  .brand {
    width: 96px;
  }

  .hero-copy {
    margin-top: 24px;
  }

  h1 {
    font-size: 29px;
    line-height: 1.12;
  }

  .consultation-cta {
    min-height: 52px;
    margin-top: 16px;
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
