:root {
  color-scheme: dark;
  --page: #0b0d19;
  --text: #f3f4ff;
  --muted: #b3b7cd;
  --accent: #a8aaff;
  --button-text: #10112b;
  --button-color: #aaa7ff;
  --max-width: 1200px;
  --gutter: clamp(22px, 5vw, 68px);
  --header-height: 72px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  line-height: 1.65;
}

h1, h2, h3, p, ul {
  margin: 0;
}

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

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

:focus-visible {
  outline: 2px solid #c3baff;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 16px;
  padding: 8px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--button-color);
  color: var(--button-text);
}

.skip-link:focus {
  transform: none;
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgb(11 13 25 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

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

.site-nav a, .footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover, .footer-links a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  min-height: 50px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.button-icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.button-primary {
  background: var(--button-color);
  color: var(--button-text);
  box-shadow: 0 8px 30px rgb(126 108 255 / 18%);
}

.button-primary:hover {
  background: #c3bdff;
  box-shadow: 0 10px 30px rgb(143 121 255 / 29%);
}

.button-secondary, .button-header {
  background: #1d2037;
}

.button-secondary:hover, .button-header:hover {
  background: #292e4e;
}

.button-header {
  justify-self: end;
  min-height: 40px;
  gap: 7px;
  padding: 7px 13px;
  color: #dedaff;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 55%, #232959 0, transparent 47%),
    radial-gradient(ellipse at 105% 4%, #302049 0, transparent 47%),
    var(--page);
}

.hero-layout {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  min-height: 632px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 52px;
}

.hero h1 {
  font-size: clamp(40px, 5.25vw, 78px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero h1 span {
  display: block;
  margin-top: 5px;
  color: var(--accent);
}

@supports (background-clip: text) {
  .hero h1 span {
    width: fit-content;
    padding-right: 0.06em;
    background: linear-gradient(100deg, #8db5ff 5%, #a7a5ff 52%, #ceabff 100%);
    background-clip: text;
    color: transparent;
  }
}

.hero-copy p {
  max-width: 33em;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-art {
  position: relative;
  height: 568px;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  inset: 11% 0 5% 8%;
  transform: rotate(-15deg);
  border-radius: 46% 54% 62% 38% / 54% 52% 48% 46%;
  background: radial-gradient(ellipse at 37% 23%, #5e4ba0, #2e3b79 52%, transparent 74%);
  opacity: 0.56;
  content: "";
}

.phone {
  overflow: hidden;
  padding: clamp(4px, 0.45vw, 6px);
  border: 1px solid #757a99;
  border-radius: 13% / 6%;
  background: #161a2b;
  box-shadow: 0 24px 42px rgb(4 5 16 / 55%), inset 0 0 0 1px #393e55;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 10% / 4.6%;
}

.hero-art .phone {
  position: absolute;
}

.phone-front {
  z-index: 1;
  top: 3%;
  left: 19%;
  width: min(41%, 246px);
  transform: rotate(-9deg);
}

.phone-back {
  top: 15%;
  right: 7%;
  width: min(35%, 214px);
  transform: rotate(10deg);
}

.section {
  padding-block: clamp(60px, 7vw, 105px);
}

h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.extensions-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: clamp(26px, 5vw, 74px);
}

.section-copy > p, .feature-copy p, .download-copy p {
  max-width: 32em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.store-panel {
  max-width: 410px;
  margin-top: 23px;
}

.store-label {
  color: #dedff6;
  font-size: 14px;
  font-weight: 650;
}

.store-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block: 14px;
  padding: 0;
  list-style: none;
}

.store-list li {
  padding: 8px 5px;
  border-radius: 8px;
  background: #1c2038;
  color: #e7e8fc;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 650;
  text-align: center;
}

.store-note {
  color: var(--muted);
  font-size: 14px;
}

.extension-art {
  width: min(100%, 490px);
  height: auto;
  justify-self: center;
}

.experience {
  padding-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--feature-background);
}

.feature-copy {
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 0;
}

.feature-copy h3 {
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.3;
}

.feature-copy p {
  margin-top: 8px;
}

.feature-visual {
  position: relative;
  display: flex;
  min-height: 225px;
  align-items: end;
  justify-content: center;
  overflow: hidden;
  margin-top: 9px;
}

.feature-home {
  --feature-background: #141a32;
}

.feature-assistant {
  --feature-background: #1b1630;
}

.feature-video {
  --feature-background: #171832;
}

.feature-art {
  width: min(100%, 350px);
  height: auto;
}

.feature-visual .phone {
  position: absolute;
  top: 32px;
  right: 12%;
  width: min(41%, 153px);
  transform: rotate(10deg);
  transform-origin: center top;
}

.feature-assistant .feature-art {
  position: relative;
  right: 14%;
  width: min(80%, 260px);
}

.download {
  padding-top: 0;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 56px);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 90% 130%, #3e2d67, transparent 62%),
    linear-gradient(110deg, #171e3c, #201936);
}

.download-copy p {
  color: #c0c4dd;
}

.site-footer {
  background: #0e101e;
}

.footer-inner {
  display: flex;
  min-height: 96px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 24px;
}

.footer-inner .brand {
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

@media (max-width: 1050px) {
  .hero-layout {
    min-height: 550px;
  }

  .hero-art {
    height: clamp(380px, 53vw, 535px);
  }

  .phone-front {
    left: 13%;
    width: 48%;
  }

  .phone-back {
    right: 4%;
    width: 39%;
  }
}

@media (max-width: 800px) {
  .extensions-layout {
    gap: 15px;
  }

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

  .feature-video {
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .feature-video .feature-copy {
    padding-bottom: 20px;
  }

  .download-panel {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
    --header-height: 62px;
  }

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

  .site-nav {
    display: none;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .header-inner .brand img {
    width: 32px;
    height: 32px;
  }

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

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding-block: 47px 22px;
  }

  .hero h1 {
    font-size: clamp(40px, 10vw, 60px);
  }

  .hero-copy p {
    margin-top: 17px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 23px;
  }

  .hero-actions .button {
    gap: 6px;
    padding-inline: 11px;
  }

  .hero-art {
    width: min(100%, 515px);
    height: clamp(330px, 101vw, 512px);
    margin-inline: auto;
  }

  .phone-front {
    top: 6%;
    left: 15%;
    width: 46%;
  }

  .phone-back {
    top: 18%;
    right: 8%;
    width: 34%;
  }

  .extensions-layout {
    grid-template-columns: 1fr;
  }

  .extension-art {
    width: min(100%, 390px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-video {
    grid-column: auto;
    grid-template-columns: none;
  }

  .feature-video .feature-copy {
    padding-bottom: 0;
  }

  .footer-links {
    column-gap: 17px;
  }
}

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

  .button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .hero h1 span {
    background: none;
    color: CanvasText;
  }
}
