:root {
  --ink: #090b0f;
  --surface: #11151d;
  --surface-raised: #171c26;
  --paper: #ffffff;
  --paper-muted: #f3f6fa;
  --text: #151922;
  --muted: #687080;
  --line: #e2e7ee;
  --blue: #1685ff;
  --blue-deep: #1168dd;
  --blue-hover: #0873e6;
  --focus: #84bcff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--blue);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.config-error {
  margin: 0;
  padding: 18px;
  color: #7a1f1f;
  background: #ffe8e8;
  text-align: center;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: #ffffff;
  background: rgba(5, 7, 11, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: inherit;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--blue);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(22, 133, 255, 0.22);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--blue-hover);
}

.button svg,
.toast svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Company page */

.company-hero {
  min-height: min(720px, 86vh);
  display: grid;
  place-items: center;
  color: #ffffff;
  background-color: #02050a;
  background-image: var(--company-hero-image);
  background-position: center bottom;
  background-size: cover;
}

.company-hero__content {
  padding: 132px 0 76px;
  text-align: center;
}

.company-hero h1 {
  margin: 0;
  font-size: 70px;
  line-height: 1.12;
  letter-spacing: 0;
}

.company-hero p {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 28px;
  line-height: 1.5;
}

.company-intro,
.company-culture,
.company-strength {
  background: var(--paper);
}

.company-section-heading {
  padding: 86px 0 38px;
}

.company-section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: 0;
}

.company-intro__panel {
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 56px;
  padding: 46px 58px;
  color: #ffffff;
  background: var(--blue-deep);
}

.company-intro__panel > p {
  max-width: 830px;
  margin: 0;
  font-size: 18px;
  line-height: 2;
}

.company-intro__panel img {
  width: 150px;
  justify-self: center;
}

.company-culture {
  padding-bottom: 4px;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.culture-grid article {
  min-height: 250px;
  padding: 44px 36px;
  background: #f4f8ff;
}

.culture-grid article:nth-child(even) {
  background: #e8f1ff;
}

.culture-grid h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.culture-grid p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.company-strength {
  padding-bottom: 96px;
}

.strength-list {
  display: grid;
  gap: 28px;
}

.strength-item {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  background: var(--paper-muted);
  border: 1px solid var(--line);
}

.strength-item--reverse .strength-item__copy {
  order: 2;
}

.strength-item__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
}

.strength-item h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.strength-item p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.strength-item__media {
  min-height: 390px;
  background: var(--surface);
}

.strength-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strength-item__media.is-missing,
.product-preview__media.is-missing,
.company-intro__panel.is-missing {
  background: var(--surface-raised);
}

.product-preview {
  overflow: hidden;
  color: #ffffff;
  background: var(--surface);
}

.product-preview__inner {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 70px;
  padding-block: 76px;
}

.product-preview__copy h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.2;
}

.product-preview__copy > p:not(:first-child) {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.9;
}

.product-preview__media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.product-preview__media img {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

/* Product page */

.store-hero {
  position: relative;
  min-height: min(760px, 86vh);
  display: grid;
  align-items: start;
  isolation: isolate;
  color: #ffffff;
  background: var(--ink);
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(4, 6, 10, 0.7) 0%, rgba(4, 6, 10, 0.3) 46%, rgba(4, 6, 10, 0.04) 100%),
    var(--store-hero-image);
  background-position: center;
  background-size: cover;
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 36%;
  background: linear-gradient(0deg, rgba(4, 6, 10, 0.78), rgba(4, 6, 10, 0));
}

.store-hero__content {
  padding: 140px 0 70px;
}

.store-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: 76px;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: pre-line;
}

.store-hero__description {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.8;
}

.section-heading {
  padding: 84px 0 44px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: 46px;
  line-height: 1.2;
  letter-spacing: 0;
}

.features {
  padding-bottom: 96px;
}

.feature {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.feature--reverse .feature__media {
  order: 2;
}

.feature__media {
  height: 410px;
  min-height: 410px;
  overflow: hidden;
  background: var(--surface);
}

.feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature__media.is-missing {
  background: var(--surface-raised);
}

.feature__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px;
}

.feature__copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--blue);
}

.feature h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.feature p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.download-cta {
  color: #ffffff;
  background: var(--surface);
}

.download-cta__inner {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
}

.download-cta__copy {
  max-width: 680px;
}

.download-cta h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0;
}

.download-cta p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

.button--secondary {
  flex: 0 0 auto;
  margin-top: 0;
}

.contact {
  padding: 72px 0;
  background: var(--paper-muted);
}

.contact h2 {
  margin: 0 0 24px;
  font-size: 36px;
}

.contact p {
  margin: 8px 0;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.58);
  background: var(--ink);
}

.site-footer__entries {
  min-height: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: inherit;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  min-width: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
  color: #ffffff;
  background: #202632;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.toast button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
}

@media (max-width: 960px) {
  .company-hero h1 {
    font-size: 58px;
  }

  .culture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strength-item__copy,
  .feature__copy {
    padding: 48px;
  }

  .product-preview__inner {
    gap: 42px;
  }

  .store-hero h1 {
    font-size: 62px;
  }

  .download-cta h2 {
    font-size: 40px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header__inner {
    min-height: 62px;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .company-hero {
    min-height: 680px;
    background-position: 56% bottom;
  }

  .company-hero__content {
    padding: 124px 0 70px;
  }

  .company-hero h1 {
    font-size: 44px;
  }

  .company-hero p {
    margin-top: 20px;
    font-size: 20px;
  }

  .company-section-heading {
    padding: 62px 0 30px;
  }

  .company-section-heading h2 {
    font-size: 28px;
  }

  .company-intro__panel {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 28px;
  }

  .company-intro__panel > p {
    font-size: 16px;
    line-height: 1.9;
  }

  .company-intro__panel img {
    width: 96px;
    justify-self: end;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .culture-grid article {
    min-height: 0;
    padding: 34px 28px;
  }

  .culture-grid h3 {
    margin-top: 18px;
  }

  .company-strength {
    padding-bottom: 64px;
  }

  .strength-item,
  .feature {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .strength-item--reverse .strength-item__copy,
  .feature--reverse .feature__media {
    order: 0;
  }

  .strength-item__media,
  .feature__media {
    height: auto;
    min-height: 230px;
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .strength-item__copy {
    padding: 36px 28px 42px;
  }

  .strength-item h3 {
    font-size: 27px;
  }

  .product-preview__inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 64px;
  }

  .product-preview__copy h2 {
    font-size: 36px;
  }

  .product-preview__media {
    order: -1;
  }

  .store-hero {
    min-height: 720px;
    align-items: start;
  }

  .store-hero::before {
    background-image:
      linear-gradient(0deg, rgba(4, 6, 10, 0.96) 0%, rgba(4, 6, 10, 0.58) 72%, rgba(4, 6, 10, 0.42) 100%),
      var(--store-hero-image);
    background-position: 50% center;
  }

  .store-hero__content {
    padding: 132px 0 76px;
  }

  .store-hero h1 {
    max-width: 360px;
    font-size: 44px;
  }

  .store-hero__description {
    font-size: 16px;
    line-height: 1.75;
  }

  .section-heading {
    padding: 62px 0 34px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .features {
    padding-bottom: 64px;
  }

  .feature {
    margin-bottom: 18px;
  }

  .feature__copy {
    padding: 32px 26px 38px;
  }

  .feature h3 {
    font-size: 27px;
  }

  .download-cta__inner {
    min-height: 390px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding-block: 64px;
  }

  .download-cta h2 {
    font-size: 34px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .company-hero {
    min-height: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
