:root {
  --surface-dark: #080606;
  --brand-red: #ff5157;
  --text-primary: #fff5ef;
  --text-secondary: #d8c9c4;
  --text-muted: #ffffff99;
  --line: #ffffff1f;
  --card: #ffffff0d;
  --page-x: clamp(24px, 6.666vw, 96px);
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--surface-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--surface-dark);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
}

.slides,
.slide {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
}

.slide {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.slide.is-leaving {
  transform: translateY(-28px);
}

.slide__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.68) 100%),
    rgba(0, 0, 0, 0.36);
}

.nav {
  position: relative;
  z-index: 5;
  height: 127px;
  padding: 52px var(--page-x) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.nav::after {
  content: "";
  position: absolute;
  left: var(--page-x);
  right: var(--page-x);
  bottom: 0;
  height: 1px;
  background: #ffffff24;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
}

.brand__copy {
  display: grid;
  gap: 4px;
}

.brand__copy strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.brand__copy span {
  color: #ffffff88;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #ffffffcc;
  font-size: 14px;
  white-space: nowrap;
}

.nav__links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav__links a:hover {
  color: #fff;
}

.nav__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  height: 37px;
  padding: 0 16px;
  border-radius: 9999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.nav__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 37px;
  border: 1px solid var(--brand-red);
  border-radius: 9999px;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 600;
}

.hero__content {
  position: relative;
  z-index: 3;
  min-height: 633px;
  padding: 0 var(--page-x);
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: min(660px, 53vw);
  padding-top: 122px;
}

.hero__titles,
.hero__descriptions {
  position: relative;
}

.hero__titles {
  min-height: 86px;
}

.hero__descriptions {
  min-height: 76px;
  margin-top: 20px;
}

.hero__title,
.hero__description {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__title.is-active,
.hero__description.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  width: min(640px, 100%);
  color: #fff;
  font-size: clamp(56px, 5.42vw, 78px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero__description {
  width: min(660px, 100%);
  color: #ffffffcc;
  font-size: clamp(20px, 1.67vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__actions {
  display: flex;
  align-items: center;
  margin-top: 124px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 0 20px 2px;
  border-radius: 9999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 18px 44px rgba(255, 81, 87, 0.2);
}

.phone-stage {
  position: absolute;
  z-index: 2;
  left: min(46.7vw, 672px);
  top: 98px;
  width: min(41.8vw, 601px);
  height: min(46vw, 662px);
  pointer-events: none;
}

.phone-stage__glow,
.phone-stage__hand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-stage__glow {
  opacity: 0.52;
}

.carousel-status {
  position: absolute;
  z-index: 4;
  right: var(--page-x);
  top: 294px;
  width: 88px;
  height: 162px;
}

.carousel-status.is-disabled {
  display: none;
}

.carousel-status__rule {
  width: 1px;
  height: 150px;
  background: #ffffff66;
}

.carousel-status__number {
  position: absolute;
  left: 43px;
  top: var(--number-y, 24px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 46px;
}

.carousel-status__controls {
  position: absolute;
  left: 16px;
  top: 24px;
  display: grid;
  gap: 18px;
}

.carousel-status__bar {
  width: 3px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #ffffff55;
  cursor: pointer;
  transition: height 220ms ease, background 220ms ease;
}

.carousel-status__bar.is-active {
  height: 46px;
  background: var(--brand-red);
}

.features {
  position: relative;
  z-index: 6;
  min-height: 400px;
  padding: 45px var(--page-x) 54px;
  background: var(--surface-dark);
  text-align: center;
}

.section-kicker {
  margin: 0;
  color: #ffffff66;
  font-size: 12px;
  line-height: 1.4;
}

.features h2 {
  margin: 14px 0 38px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 216px);
  justify-content: center;
  gap: 66px;
}

.feature-card {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  text-align: left;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__mask,
.feature-card__gradient {
  position: absolute;
  inset: 0;
}

.feature-card__mask {
  background: rgba(0, 0, 0, 0.3);
}

.feature-card__gradient {
  top: auto;
  height: 172px;
  background: linear-gradient(180deg, rgba(8, 6, 6, 0) 0%, rgba(8, 6, 6, 0.85) 66%, rgba(8, 6, 6, 0.95) 100%);
}

.feature-card__copy {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.feature-card__copy span {
  position: absolute;
  top: 0;
  left: 0;
  color: #ffffff99;
  font-family: var(--font-mono);
  font-size: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  color: #ffffff99;
  font-size: 12px;
  line-height: 1.35;
}

.site-footer {
  padding: 0 var(--page-x) 18px;
  background: var(--surface-dark);
  color: #ffffff73;
  text-align: center;
  font-size: 12px;
}

.site-footer__line {
  width: 100%;
  height: 1px;
  margin-bottom: 16px;
  background: var(--line);
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

.site-footer span {
  margin-left: 18px;
}

@media (max-width: 1024px) {
  .nav {
    height: 112px;
    padding-top: 38px;
  }

  .nav__links {
    gap: 18px;
  }

  .hero,
  .slides,
  .slide {
    min-height: 720px;
    height: 720px;
  }

  .hero__copy {
    width: min(610px, 58vw);
    padding-top: 132px;
  }

  .phone-stage {
    left: 52vw;
    width: 44vw;
  }

  .carousel-status {
    right: 28px;
  }

  .feature-grid {
    gap: 28px;
  }
}

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

  .slides,
  .slide {
    height: 760px;
  }

  .slide__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(8, 6, 6, 0.98) 100%),
      rgba(0, 0, 0, 0.32);
  }

  .nav {
    height: auto;
    min-height: 106px;
    padding-top: 26px;
    align-items: flex-start;
  }

  .nav::after {
    bottom: -16px;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand__copy strong {
    font-size: 16px;
  }

  .brand__copy span {
    font-size: 11px;
  }

  .nav__links {
    gap: 10px;
  }

  .nav__links a:not(.nav__pill):not(.nav__login) {
    display: none;
  }

  .nav__pill {
    min-width: 88px;
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .nav__login {
    width: 50px;
    height: 34px;
    font-size: 12px;
  }

  .hero__content {
    min-height: 654px;
  }

  .hero__copy {
    width: 100%;
    padding-top: 122px;
  }

  .hero__kicker {
    position: static;
    margin-bottom: 24px;
  }

  .hero__titles {
    min-height: 70px;
  }

  .hero__descriptions {
    min-height: 96px;
    margin-top: 14px;
  }

  .hero__title {
    font-size: clamp(48px, 14vw, 64px);
    width: 335px;
    max-width: calc(100vw - 40px);
  }

  .hero__description {
    font-size: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
  }

  .hero__actions {
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 106px;
  }

  .button-primary {
    height: 42px;
    min-width: 138px;
    font-size: 16px;
  }

  .phone-stage {
    left: auto;
    right: -74px;
    top: 356px;
    width: 300px;
    height: 330px;
    opacity: 0.72;
  }

  .carousel-status {
    top: 376px;
    right: 24px;
    transform: scale(0.88);
    transform-origin: right top;
  }

  .features {
    padding-top: 42px;
  }

  .feature-grid {
    grid-template-columns: minmax(216px, 280px);
    gap: 18px;
  }

  .feature-card {
    height: 286px;
  }

  .site-footer span {
    display: inline-block;
    margin-left: 10px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-x: 20px;
  }

  .nav {
    flex-direction: column;
    gap: 14px;
  }

  .nav::after {
    bottom: -10px;
  }

  .brand {
    gap: 10px;
  }

  .brand__copy span {
    display: none;
  }

  .nav__links {
    align-self: flex-start;
    gap: 8px;
  }

  .nav__login {
    display: none;
  }

  .nav__pill {
    min-width: 82px;
  }

  .hero__copy {
    padding-top: 156px;
  }

  .hero__actions span {
    max-width: 190px;
  }

  .carousel-status {
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
