:root {
  --ink: #140900;
  --ink-soft: #211000;
  --cream: #fff9e8;
  --gold: #ffd32a;
  --gold-deep: #ffaf00;
  --orange: #ff6b00;
  --telegram: #229ed9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  background: #1b0b00;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background-image: url("assets/shandin-hero-desktop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 58% center;
  transform: translateX(7%);
  animation: heroReveal 1.15s cubic-bezier(.2,.8,.2,1) both;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 56%;
  background: linear-gradient(
    90deg,
    rgba(20, 9, 0, .72) 0%,
    rgba(20, 9, 0, .54) 48%,
    rgba(20, 9, 0, .18) 78%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 64%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 64%, transparent 100%);
  pointer-events: none;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(20, 9, 0, .98) 0%, rgba(20, 9, 0, .91) 26%, rgba(20, 9, 0, .58) 43%, rgba(20, 9, 0, .08) 70%),
    linear-gradient(180deg, rgba(20, 9, 0, .2) 0%, transparent 45%, rgba(20, 9, 0, .78) 100%);
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.ambient-one {
  width: 320px;
  height: 320px;
  left: -180px;
  top: 15%;
  background: rgba(255, 125, 0, .28);
}

.ambient-two {
  width: 340px;
  height: 180px;
  left: 25%;
  bottom: -120px;
  background: rgba(255, 199, 0, .22);
}

.hero-shell {
  width: min(100% - 48px, 1200px);
  min-height: 88svh;
  margin: 0 auto;
  padding: 70px 0 58px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(610px, 50vw);
  animation: copyIn .8s .12s cubic-bezier(.2,.8,.2,1) both;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(46px, 5.1vw, 78px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 760;
  text-wrap: balance;
  text-shadow: 0 5px 30px rgba(0, 0, 0, .28);
}

h1 span {
  color: var(--gold);
  background: linear-gradient(100deg, #fff1a2 0%, var(--gold) 43%, #ff8a00 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 525px;
  margin: 24px 0 0;
  color: rgba(255, 249, 232, .78);
  font-size: 17px;
  line-height: 1.65;
}

.benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 28px 0 30px;
  padding: 0;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 249, 232, .88);
  font-size: 13px;
  font-weight: 560;
}

.check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid rgba(255, 211, 42, .36);
  border-radius: 6px;
  background: rgba(255, 211, 42, .13);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 510px);
  min-height: 78px;
  padding: 12px 18px 12px 13px;
  overflow: hidden;
  border: 1px solid rgba(174, 228, 255, .72);
  border-radius: 20px;
  background: linear-gradient(110deg, #36b8ef 0%, var(--telegram) 48%, #147fc5 100%);
  box-shadow: 0 18px 55px rgba(34, 158, 217, .32), inset 0 1px 0 rgba(255, 255, 255, .44);
  color: #fff;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.cta::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -28%;
  width: 25%;
  height: 240%;
  background: rgba(255, 255, 255, .48);
  transform: rotate(22deg);
  animation: shine 4s 1.2s ease-in-out infinite;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 70px rgba(34, 158, 217, .46), inset 0 1px 0 rgba(255, 255, 255, .56);
}

.cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 15px;
  background: #fff;
  color: var(--telegram);
  box-shadow: 0 8px 18px rgba(8, 69, 104, .22);
}

.telegram-icon {
  width: 27px;
  height: 27px;
}

.cta-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cta-copy small {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .18em;
}

.cta-copy strong {
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: -.025em;
}

.cta-arrow {
  font-size: 25px;
  transition: transform .25s ease;
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0 10px;
  color: rgba(255, 249, 232, .48);
  font-size: 11px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 23px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 4px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: scroll 1.8s ease-in-out infinite;
}

.site-footer {
  border-top: 1px solid rgba(255, 211, 42, .12);
  background: #100700;
}

.footer-inner {
  width: min(100% - 48px, 1200px);
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr auto;
  align-items: center;
  gap: 38px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 211, 42, .3);
  border-radius: 12px;
  background: rgba(255, 211, 42, .1);
  color: var(--gold);
  font-weight: 850;
}

.footer-brand div,
.footer-security p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.footer-brand strong,
.footer-security strong {
  color: rgba(255, 249, 232, .9);
  font-size: 12px;
}

.footer-brand small,
.footer-security p {
  color: rgba(255, 249, 232, .45);
  font-size: 10px;
  line-height: 1.5;
}

.footer-security {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 450px;
}

.footer-security > span {
  color: var(--gold);
  font-size: 22px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 249, 232, .4);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-legal strong {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(255, 211, 42, .25);
  border-radius: 50%;
  color: var(--gold);
  font-size: 11px;
}

@keyframes heroReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes copyIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0%, 55% { left: -28%; }
  75%, 100% { left: 118%; }
}

@keyframes scroll {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@media (max-width: 900px) {
  .hero-copy {
    width: min(560px, 62vw);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 26px 0;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    padding-top: 95vw;
  }

  .hero-image {
    inset: 0 0 auto 0;
    width: 100%;
    height: 100vw;
    aspect-ratio: 1 / 1;
    background-image: url("assets/shandin-hero-square.png");
    background-size: 100% auto;
    background-position: center top;
    transform: none;
  }

  .hero-image::before {
    display: none;
  }

  .hero-image::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -36px;
    left: 0;
    height: 108px;
    background: linear-gradient(
      180deg,
      rgba(20, 9, 0, 0) 0%,
      rgba(20, 9, 0, .2) 38%,
      rgba(20, 9, 0, .74) 78%,
      var(--ink) 100%
    );
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 100%);
    pointer-events: none;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(20, 9, 0, 0) 0%, rgba(20, 9, 0, 0) 76%, rgba(20, 9, 0, .5) 91%, var(--ink) 100%),
      linear-gradient(90deg, rgba(20, 9, 0, .08), transparent 28%, transparent 76%, rgba(20, 9, 0, .08));
  }

  .hero-shell {
    width: min(100% - 32px, 560px);
    min-height: auto;
    padding: 0 0 46px;
    align-items: flex-start;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .lead {
    margin-top: 20px;
    font-size: 15px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
  }

  .cta {
    min-height: 72px;
    border-radius: 18px;
  }

  .cta-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .cta-arrow {
    display: none;
  }

  .trust-note {
    margin-left: 2px;
    line-height: 1.45;
  }

  .scroll-cue {
    display: none;
  }

  .footer-inner {
    width: min(100% - 32px, 560px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0 34px;
  }

  .footer-legal {
    grid-column: auto;
    flex-wrap: wrap;
  }
}

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