:root {
  --color-primary: #5333a6;
  --color-primary-dark: #452a93;
  --color-primary-light: #7a52c5;
  --color-accent: #b47edb;
  --color-gold: #ffbf32;
  --color-bg-soft: #f7f3fc;
  --color-border: #e6def2;
  --color-text-main: #1f1744;
  --color-text-secondary: #5f567a;
  --color-text-muted: #8b82a8;
  --gradient-primary: linear-gradient(135deg, #5333a6 0%, #7a52c5 55%, #b47edb 100%);
  --shadow-purple: 0 16px 40px rgba(83, 51, 166, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text-main);
  background: #ffffff;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px clamp(22px, 5vw, 76px);
  color: #ffffff;
}

.brand,
.video-link,
.steps,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: block;
  width: 43px;
  height: 43px;
  padding: 5px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(18, 8, 63, 0.18);
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #ffffff;
  font-size: 25px;
}

.brand small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(24px, 5vw, 82px);
  align-items: center;
  padding: 124px clamp(22px, 6vw, 92px) 172px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(20, 35, 120, 0.94) 0%, rgba(83, 51, 166, 0.92) 48%, rgba(181, 58, 238, 0.9) 100%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.14), transparent 23%),
    radial-gradient(circle at 85% 68%, rgba(255, 191, 50, 0.16), transparent 20%),
    linear-gradient(90deg, rgba(31, 23, 68, 0.32), rgba(31, 23, 68, 0));
  pointer-events: none;
}

.hero-content,
.phone-stage,
.hero-wave {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-primary-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(46px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.78;
}

.video-link {
  gap: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.video-link span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding-left: 3px;
  color: var(--color-primary);
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(24, 12, 74, 0.22);
}

.phone-stage {
  display: grid;
  justify-items: center;
  align-self: end;
  padding-top: 20px;
}

.phone-image {
  display: block;
  width: auto;
  max-width: min(520px, 46vw);
  height: min(760px, 82vh);
  filter: drop-shadow(0 34px 70px rgba(8, 7, 19, 0.38));
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 180px;
  fill: #ffffff;
}

.section,
.activity {
  padding: 94px clamp(20px, 6vw, 92px);
}

.activity {
  margin-top: -12px;
  background: #ffffff;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading.centered {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p,
.activity-card p,
.product-grid p,
.steps p,
.contact p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.activity-grid,
.product-grid {
  display: grid;
  gap: 20px;
}

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

.activity-card,
.product-grid article,
.steps article {
  background:
    radial-gradient(circle at top right, rgba(180, 126, 219, 0.22), transparent 35%),
    #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(69, 42, 147, 0.08);
}

.activity-card {
  min-height: 260px;
  padding: 28px;
}

.activity-card.large,
.activity-card.wide {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 191, 50, 0.18), transparent 24%),
    linear-gradient(135deg, #452a93 0%, #5333a6 50%, #7a52c5 100%);
}

.activity-card.large,
.activity-card.wide {
  grid-column: span 2;
}

.activity-card.large h3,
.activity-card.large p,
.activity-card.wide h3,
.activity-card.wide p {
  color: #ffffff;
}

.card-kicker {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 50px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: var(--gradient-primary);
  border-radius: 15px;
}

.activity-card.large .card-kicker,
.activity-card.wide .card-kicker {
  color: var(--color-primary-dark);
  background: #ffffff;
}

.activity-card h3,
.product-grid h3,
.steps h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.products {
  background: linear-gradient(135deg, #f7f3fc 0%, #efe5fa 45%, #ffffff 100%);
}

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

.product-grid article {
  min-height: 190px;
  padding: 26px;
}

.product-grid article span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--color-primary-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.steps article {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 230px;
  padding: 24px;
}

.steps span {
  flex: 0 0 auto;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  color: #ffffff;
  font-weight: 900;
  background: var(--gradient-primary);
  border-radius: 14px;
}

.steps h3 {
  min-height: 32px;
}

.steps p {
  min-height: 62px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 clamp(20px, 6vw, 92px) 80px;
  padding: 48px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 191, 50, 0.22), transparent 32%),
    linear-gradient(135deg, #452a93 0%, #5333a6 48%, #7a52c5 100%);
  border-radius: 32px;
  box-shadow: var(--shadow-purple);
}

.contact p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  min-width: 188px;
  height: 64px;
  padding: 0 24px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 16px;
}

.button.inverse {
  color: var(--color-primary);
  background: #ffffff;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 24px;
}

.qr-modal:target {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 52, 0.68);
  backdrop-filter: blur(12px);
}

.qr-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 34px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(180, 126, 219, 0.2), transparent 34%),
    #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(18, 10, 52, 0.3);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1;
  background: var(--color-bg-soft);
  border-radius: 50%;
}

.qr-logo {
  width: 58px;
  height: 58px;
  padding: 7px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(83, 51, 166, 0.14);
}

.qr-card h2 {
  margin-bottom: 18px;
  color: var(--color-text-main);
  font-size: 34px;
}

.qr-code {
  display: block;
  width: min(300px, 82vw);
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(83, 51, 166, 0.12);
}

.qr-code > rect:first-child,
.qr-white {
  fill: #ffffff;
}

.qr-bg {
  fill: #f7f3fc;
}

.qr-dark {
  fill: #1f1744;
}

.qr-purple {
  fill: #5333a6;
}

.qr-accent {
  fill: #9e6cd3;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 6vw, 92px);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 150px;
  }

  .phone-stage {
    justify-items: start;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
    padding: 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 23px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 142px 18px 130px;
  }

  h1 {
    font-size: 41px;
  }

  .phone-stage {
    justify-items: center;
  }

  .phone-image {
    width: min(360px, 92vw);
    max-width: 92vw;
    height: auto;
  }

  .hero-wave {
    height: 96px;
  }

  .section,
  .activity {
    padding: 64px 18px;
  }

  .activity-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .activity-card.large,
  .activity-card.wide {
    grid-column: auto;
  }

  .contact,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 18px;
  }

  .steps article {
    width: 100%;
    min-height: 188px;
    padding: 24px;
  }

  .steps h3 {
    min-height: 30px;
  }

  .steps p {
    min-height: 54px;
  }

  .contact {
    margin: 0 18px 54px;
    padding: 30px 22px;
    border-radius: 24px;
  }

  .button {
    width: 188px;
    min-width: 188px;
    height: 64px;
  }
}
