/* 本文件保存 VYS 静态首页的布局、响应式设计与视觉样式。 */

:root {
  --black: #050506;
  --white: #f2f2ee;
  --muted: rgba(242, 242, 238, .5);
  --line: rgba(242, 242, 238, .14);
  --blue: #315cff;
  --ease: cubic-bezier(.2, .75, .2, 1);
}
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
  background: var(--black);
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  color: var(--white);
  background:
    radial-gradient(
      circle at 78% 43%,
      #12141c 0%,
      #090a0e 29%,
      var(--black) 67%
    );
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

a {
  -webkit-tap-highlight-color: transparent;
}

#optical-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(5,5,6,.975) 0%,
      rgba(5,5,6,.82) 30%,
      rgba(5,5,6,.08) 70%,
      rgba(5,5,6,.24) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5,5,6,.34),
      transparent 23%,
      transparent 70%,
      rgba(5,5,6,.56)
    );
}

.page {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 82px minmax(0, 1fr) 68px;
  padding-left: max(clamp(24px, 4.5vw, 82px), env(safe-area-inset-left));
  padding-right: max(clamp(24px, 4.5vw, 82px), env(safe-area-inset-right));
}

header {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.055em;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  overflow: hidden;
  display: block;
  background:
    linear-gradient(
      135deg,
      #6b86ff 0%,
      var(--blue) 55%,
      #1736bb 100%
    );
  box-shadow: 0 0 24px rgba(49,92,255,.22);
}

.brand-mark::after {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 18px;
  height: 18px;
  content: "";
  background: var(--black);
  transform: rotate(45deg);
}

.header-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 480;
  letter-spacing: .035em;
  white-space: nowrap;
}

.beta-state {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 480;
  white-space: nowrap;
}

.beta-state::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 15px rgba(49,92,255,.7);
}

main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding-block: clamp(30px, 4.8vh, 64px);
}

.hero {
  min-width: 0;
  align-self: center;
}

h1 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: clamp(82px, 11.1vw, 192px);
  font-weight: 520;
  line-height: .79;
  letter-spacing: -.077em;
}

.headline-line {
  display: block;
  width: 100%;
  white-space: nowrap;
}

.headline-second {
  display: flex;
  align-items: baseline;
  gap: .2em;
  margin-left: clamp(4vw, 8vw, 138px);
}

.headline-accent {
  color: transparent;
  background:
    linear-gradient(
      112deg,
      #f2f2ee 0%,
      #d4d9f4 25%,
      #96a7ff 58%,
      var(--blue) 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
}

.bottom {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 470px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 380;
  line-height: 1.62;
  letter-spacing: -.01em;
}

.testflight {
  min-width: 242px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(242,242,238,.46);
  font-size: 16px;
  font-weight: 520;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.arrow {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: var(--black);
  background: var(--white);
  font-size: 21px;
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    transform 260ms var(--ease);
}

.testflight:hover {
  border-color: var(--blue);
}

.testflight:hover .arrow {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
  transform: rotate(45deg);
}

.testflight:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 8px;
}

footer {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  color: rgba(242,242,238,.4);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 480;
}

.footer-brand {
  letter-spacing: .04em;
}

.platforms {
  white-space: nowrap;
  letter-spacing: .035em;
}

.telegram {
  justify-self: end;
  white-space: nowrap;
  transition: color 180ms ease;
}

.telegram:hover {
  color: var(--white);
}

@media (max-width: 820px) {
  .page {
    grid-template-rows:
      70px
      minmax(0, 1fr)
      calc(60px + env(safe-area-inset-bottom));
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }

  header {
    grid-template-columns: 1fr auto;
  }

  .header-title {
    display: none;
  }

  .brand {
    font-size: 22px;
  }

  .beta-state {
    font-size: 13px;
  }

  main {
    min-height: 0;
    padding-block: 26px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 78px);
    line-height: .8;
    letter-spacing: -.07em;
  }

  .headline-second {
    display: block;
    margin-top: .13em;
    margin-left: 0;
  }

  .headline-second > span {
    display: block;
    width: max-content;
    max-width: 100%;
  }

  .headline-accent {
    margin-top: .035em;
    margin-left: 23vw;
  }

  .bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .description {
    max-width: 340px;
    font-size: 17px;
    line-height: 1.56;
  }

  .testflight {
    width: 100%;
    min-width: 0;
    font-size: 15px;
  }

  footer {
    grid-template-columns: 1fr auto;
    font-size: 12px;
  }

  .platforms {
    display: none;
  }

  .shade {
    background:
      linear-gradient(
        90deg,
        rgba(5,5,6,.9) 0%,
        rgba(5,5,6,.54) 43%,
        rgba(5,5,6,.1) 100%
      ),
      linear-gradient(
        180deg,
        rgba(5,5,6,.32),
        transparent 56%,
        rgba(5,5,6,.65)
      );
  }
}

@media (max-width: 370px) {
  .page {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  h1 {
    font-size: clamp(48px, 16.5vw, 61px);
  }

  .headline-accent {
    margin-left: 20vw;
  }

  .description {
    font-size: 16px;
  }

  .arrow {
    width: 48px;
    height: 48px;
  }
}

@media (max-height: 700px) and (min-width: 821px) {
  .page {
    grid-template-rows: 68px minmax(0, 1fr) 58px;
  }

  main {
    padding-block: 22px;
  }

  h1 {
    font-size: clamp(74px, 9.8vw, 152px);
  }
}

@media (max-height: 620px) and (max-width: 820px) {
  .page {
    min-height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
