/* ===== Base ===== */
:root {
  --bg: #010101;
  --purple: #4e52de;
  --purple-deep: #5f4ede;
  --text: #ffffff;
  --text-60: rgba(255, 255, 255, 0.6);
  --text-70: rgba(255, 255, 255, 0.7);
  --text-90: rgba(255, 255, 255, 0.9);
  --pill: radial-gradient(circle at 50% 50%, #5848d3 0%, #4539a6 25%, #322a79 50%, #1f1c4c 75%, #151436 87.5%, #0c0d1f 100%);
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
}

/* ===== Fixed nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 74px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.nav-inner {
  position: relative;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-logo {
  width: 40px;
  height: 40px;
}

.nav-brand-name {
  font-size: 20px;
  font-weight: 600;
}

.nav-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.nav-link.is-active,
.nav-link:hover {
  color: #fff;
  font-weight: 600;
}

.nav-cta {
  margin-left: auto;
  width: 156px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 80px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--pill);
  transition: filter 0.2s ease;
}

.nav-cta:hover {
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: radial-gradient(100% 43.75% at 50% 0%, #5848D3 0%);
}

.nav-toggle {
  display: none;
  margin-left: 16px;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 960px;
  background: url('./images/top_bg.webp') center top / cover no-repeat, var(--bg);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  min-height: 960px;
  padding: 199px 50px 0;
  display: flex;
  align-items: flex-start;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 603px;
  max-width: 100%;
  margin-left: 310px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-brand-logo {
  width: 52px;
  height: 52px;
}

.hero-brand-name {
  font-size: 26px;
  font-weight: 700;
}

.hero-title {
  margin-top: 70px;
  font-size: 70px;
  font-weight: 600;
  line-height: normal;
  background: linear-gradient(90deg, #fff 0%, #8c8c8c 87.148%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 24px;
  width: 579px;
  max-width: 100%;
  font-size: 26px;
  line-height: 38px;
  color: var(--text-60);
}

.hero-avatars {
  margin-top: 40px;
  width: 245px;
  height: auto;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 1189px;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

/* ===== Buttons ===== */
.btn-primary {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  padding: 11px 50px;
  border-radius: 70px;
  background: var(--purple);
  font-size: 22px;
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-primary .btn-icon {
  width: 24px;
  height: 24px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 432px;
  max-width: 100%;
  height: 74px;
  padding: 14px 40px;
  border-radius: 50px;
  background: #fff;
  color: var(--purple);
  font-family: 'Poppins', 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(78, 82, 222, 0.35);
}

.btn-light .btn-icon {
  width: 28px;
  height: 28px;
  filter: invert(29%) sepia(79%) saturate(2476%) hue-rotate(228deg) brightness(92%) contrast(95%);
}

/* ===== Features ===== */
.features {
  max-width: var(--shell);
  margin: 0 auto;
  scroll-margin-top: 74px;
}

.features-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  height: 56px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--pill);
  font-size: 22px;
  font-weight: 600;
}

.features-grid {
  margin-top: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 40px 38px;
}

.feature-num,
.feature-title {
  display: block;
  font-size: 24px;
  font-weight: 400;
}

.feature-title {
  margin-top: 30px;
}

.feature-text {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-60);
}

.feature-side {
  width: 412px;
  min-height: 281px;
  margin-top: 69px;
  background: center / cover no-repeat;
  backdrop-filter: blur(46px);
  box-shadow: 0px 0px 11px 0px #F2F2F2 inset;
  box-shadow: 0px 0px 3px 0px #FFFFFF inset;
  box-shadow: -2px -2px 0.5px -2px #FFFFFF inset;
  box-shadow: 1px 1px 0.5px -1px #FFFFFF inset;
  box-shadow: -1px -1px 0px -0.5px #262626 inset;
  box-shadow: 2px 1px 0px -1px #3B3B3B inset;


}

.feature-left {
  border-radius: 23px 0 0 23px;
  background: linear-gradient(0deg, rgba(21, 27, 62, 0.5), rgba(21, 27, 62, 0.5)),
radial-gradient(58.84% 107.02% at 0% 100%, rgba(108, 130, 255, 0.68) 0%, rgba(31, 35, 55, 0) 64.31%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */,
radial-gradient(20.18% 47.22% at 94.44% 59.72%, rgba(255, 53, 53, 0.13) 0%, rgba(41, 54, 141, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */,
radial-gradient(35.23% 26.13% at 14.77% 105.83%, rgba(255, 98, 0, 0.18) 0%, rgba(0, 0, 0, 0.048) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

.feature-right {
  border-radius: 0 23px 23px 0;
  background: linear-gradient(0deg, rgba(21, 27, 62, 0.5), rgba(21, 27, 62, 0.5)),
radial-gradient(64.27% 113.6% at 88.3% 40.29%, rgba(56, 79, 255, 0.89) 0%, rgba(43, 50, 69, 0) 63.51%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */,
radial-gradient(20.18% 47.22% at 94.44% 59.72%, rgba(255, 53, 53, 0.13) 0%, rgba(41, 54, 141, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */,
radial-gradient(35.23% 26.13% at 14.77% 105.83%, rgba(255, 98, 0, 0.18) 0%, rgba(0, 0, 0, 0.048) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

.feature-center {
  width: 376px;
  min-height: 350px;
  border-radius: 23px 23px 0 0;
  background: var(--purple-deep);
}

/* ===== Testimonials ===== */
.saying {
  margin-top: 140px;
  /* padding-bottom: 20px; */
  scroll-margin-top: 74px;
}

.saying-head {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.saying-head-copy {
  max-width: 800px;
}

.saying-title {
  text-align: left;
  font-size: 32px;
  opacity: 0.9;
}

.saying-sub {
  margin-top: 36px;
  font-size: 20px;
  color: var(--text-60);
}

.saying-arrows {
  display: flex;
  gap: 30px;
  flex-shrink: 0;
}

.arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.arrow:hover:not(:disabled) {
  background: #fff;
  border-color: #fff;
}

/* crush to black, then invert(0.2) lifts it to exactly rgb(51,51,51) = #333 */
.arrow:hover:not(:disabled) img {
  filter: brightness(0) invert(0.2);
}

.arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.arrow img {
  width: 18px;
  height: 15px;
  /* the svg is fill="currentColor", but an <img> renders it in its own document
     where currentColor falls back to black -- CSS color can't reach it, so force
     white with a filter instead */
  filter: brightness(0) invert(1);
}

.arrow-prev img {
  transform: rotate(180deg);
}

.saying-viewport {
  margin-top: 60px;
  overflow: hidden;
}

/* seamless-rewind helper: the loop jump must move the track AND re-assign the
   active card with no animation at all, or the cards keep resizing while the
   transform snaps and the boundary visibly flashes */
.saying-track.is-instant,
.saying-track.is-instant * {
  transition: none !important;
}

.saying-track {
  --card-w: 400px;
  --card-w-active: 480px;
  --card-gap: 40px;
  display: flex;
  align-items: flex-end;
  gap: var(--card-gap);
  /* padding-top: 30px; */
  /* track slide and card resize must share duration + easing, otherwise the
     strip is still reflowing under a moving transform and the slide stutters */
  --slide: 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  transition: transform var(--slide);
  will-change: transform;
}

.card {
  position: relative;
  flex: 0 0 auto;
  width: var(--card-w);
  min-height: 268px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: url('./images/saying_bg.png') center / cover no-repeat;
  box-shadow: inset 0 0 20px 0 rgba(255, 255, 255, 0.1);
  opacity: 0.5;
  transition: opacity var(--slide), width var(--slide), min-height var(--slide), padding var(--slide);
}

.card.is-active {
  width: var(--card-w-active);
  min-height: 324px;
  padding: 29px;
  opacity: 1;
}

.card-text {
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-60);
}

.card.is-active .card-text {
  font-size: 22px;
}

.card-foot {
  margin-top: auto;
  padding-top: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #484848;
}

.card.is-active .card-foot {
  gap: 16px;
  padding-top: 21px;
}

.card-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  transition: width var(--slide), height var(--slide);
}

.card.is-active .card-avatar {
  width: 48px;
  height: 48px;
}

.card-name {
  font-size: 16px;
  font-weight: 600;
}

.card.is-active .card-name {
  font-size: 24px;
  color: var(--text-90);
}

/* ===== CTA ===== */
.cta-container{
  position: relative;
  background: url('./images/footer_bg.webp') center top / cover no-repeat, var(--bg);
}

.cta {
  display: flex;
  justify-content: center;
  padding-bottom: 150px;
}

.cta-inner {
  width: 1260px;
  max-width: 100%;
  padding: 150px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
}

.cta-sub {
  font-family: 'Poppins', 'Outfit', sans-serif;
  font-size: 20px;
  color: var(--text-90);
  margin-top: 12px;
}

/* ===== Footer ===== */
.footer {
  /* border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%), var(--bg); */
   /* max-width: 1335px;
  margin-left: 360px; */
}

.footer-inner {
  padding: 50px 158px 116px 360px;
  display: flex;
  justify-content: space-between;
  gap: 90px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-name {
  font-size: 28px;
  font-weight: 700;
}

.app-store {
  position: relative;
  display: block;
  max-width: 236px;
}

.app-store img {
  width: 100%;
  height: auto;
}

.app-store-hov {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-store:hover .app-store-nor {
  opacity: 0;
}

.app-store:hover .app-store-hov {
  opacity: 1;
}

.footer-info{
  display: flex;
  justify-content: space-between;
  gap: 90px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 200px;
}

.footer-head {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-90);
}

.footer-link {
  font-size: 18px;
  line-height: 24px;
  color: var(--text-70);
  transition: color 0.2s ease;
}

.footer-link:hover {
   color: var(--text-90);
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  /* 邮箱是无空格长串，窄屏需要允许强制换行，否则会撑破容器 */
  overflow-wrap: anywhere;
}

.contact-row img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 10px;
  text-align: center;
}

.footer-bottom p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text-70);
}

/* ===== Responsive ===== */
@media (max-width: 1600px) {
  .hero-copy {
    margin-left: 0;
  }

  .hero-visual {
    width: 62%;
  }
}

@media (max-width: 1240px) {
  .hero-inner {
    padding-top: 160px;
    min-height: 0;
  }

  .hero {
    min-height: 0;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: 54px;
  }

  .hero-visual {
    position: static;
    width: 100%;
    margin-top: 40px;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-copy {
    width: 100%;
  }

  .features, .saying-head{
    padding: 0 20px;
  }

  .features-grid {
    /* flex-wrap: wrap;
    gap: 24px; */
  }

  .feature,
  .feature-side,
  .feature-center {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    /* border-radius: 23px; */
  }

  .cta{
    /* padding-bottom: 0; */
  }

  .cta-inner{
  }

  /* 基准样式的 360px 左内边距是桌面专用值，窄屏下必须收掉，
     否则左右内边距合计 518px，内容被挤成一条 */
  .footer-inner {
    padding: 50px 40px 80px;
  }

  .footer-info {
    flex: 1 1 auto;
    gap: 60px;
  }
}

@media (max-width: 860px) {
  .nav {
    height: 64px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-cta {
    width: 130px;
    height: 38px;
    font-size: 14px;
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    transition: max-height 0.3s ease;
  }

  .nav.is-open .nav-menu {
    max-height: 240px;
  }

  .nav-menu .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 18px;
  }

  .hero {
    background-position: center top;
    padding-bottom: 60px;
  }

  .hero-inner {
    padding: 110px 20px 0;
  }

  .hero-brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero-brand-name {
    font-size: 20px;
  }

  .hero-title {
    margin-top: 32px;
    font-size: 38px;
  }

  .hero-sub {
    margin-top: 16px;
    width: 100%;
    font-size: 18px;
    line-height: 28px;
  }

  .hero-avatars {
    margin-top: 28px;
    width: 200px;
  }

  .btn-primary {
    margin-top: 28px;
    height: 52px;
    padding: 10px 32px;
    font-size: 18px;
  }

  .btn-primary .btn-icon {
    width: 20px;
    height: 20px;
  }

  .section-title {
    font-size: 26px;
    line-height: 36px;
  }

  .features {
    padding: 0 20px;
  }

  .pill {
    width: 170px;
    height: 46px;
    font-size: 18px;
  }

  .features-grid {
    flex-wrap: wrap;
    margin-top: 36px;
    gap: 24px;
  }

  .feature {
    padding: 28px 24px;
    border-radius: 23px;
  }

  .feature-side {
    min-height: 0;
  }

  .feature-center {
    min-height: 0;
  }

  .feature-num,
  .feature-title {
    font-size: 20px;
  }

  .feature-title {
    margin-top: 20px;
  }

  .feature-text {
    font-size: 16px;
  }

  .saying {
    margin-top: 80px;
  }

  .saying-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 20px;
  }

  .saying-title {
    font-size: 24px;
    line-height: 34px;
  }

  .saying-sub {
    margin-top: 16px;
    font-size: 16px;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }

  .saying-track {
    --card-w: 78vw;
    --card-w-active: 84vw;
    --card-gap: 16px;
    gap: var(--card-gap);
    padding: 16px 0;
  }

  .card {
    /* min-height: 0; */
    padding: 20px;
  }

  .card.is-active {
    /* min-height: 0; */
    padding: 24px;
  }

  .card-text {
    font-size: 15px;
  }

  .card.is-active .card-text {
    font-size: 17px;
  }

  .card.is-active .card-name {
    font-size: 18px;
  } 

  .cta{
    padding-bottom: 0;
  }

  .cta-inner {
    padding: 80px 20px 50px;
    gap: 28px;
  }

  .cta-title {
    font-size: 26px;
  }

  .cta-sub {
    font-size: 16px;
  }

  .btn-light {
    width: 100%;
    max-width: 320px;
    height: 58px;
    font-size: 18px;
  }

  .btn-light .btn-icon {
    width: 20px;
    height: 20px;
  }

  .footer-inner {
    flex-direction: column;
    padding: 20px 20px 32px;
  }

  /* 只有 .footer-inner 转成了纵向，.footer-info 仍是 row + 90px 间距，
     窄屏上链接列和联系信息会并排互挤 */
  .footer-info {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    width: 100%;
  }

  .footer-head {
    font-size: 20px;
  }

  .footer-link {
    font-size: 16px;
  }

  .contact-row {
    font-size: 14px;
    align-items: flex-start;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}
