:root {
  --refresh-navy: #050914;
  --refresh-panel: rgba(10, 20, 37, .76);
  --refresh-line: rgba(143, 187, 255, .2);
  --refresh-gold: #e0b85a;
  --refresh-mint: #4fe0c2;
}

body {
  background:
    radial-gradient(circle at 82% 8%, rgba(38, 91, 158, .18), transparent 31rem),
    radial-gradient(circle at 10% 28%, rgba(79, 224, 194, .07), transparent 27rem),
    var(--refresh-navy);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(143, 187, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 187, 255, .08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 48rem);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  min-height: 70px;
  padding: 0 18px;
  border: 1px solid var(--refresh-line);
  border-radius: 24px;
  background: rgba(5, 9, 20, .84);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}

.site-header nav a {
  color: #a9b7cb;
  font-weight: 700;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #fff;
}

.language-switch {
  border-color: var(--refresh-line);
  background: rgba(255, 255, 255, .05);
}

.language-switch button {
  min-width: 42px;
  min-height: 42px;
  color: #9eacc0;
}

.language-switch button.active {
  color: #06101f;
  background: #f7faff;
}

.button {
  border: 1px solid rgba(143, 187, 255, .32);
  border-radius: 999px;
  background: linear-gradient(135deg, #8fbbff, #72a8ff);
  color: #06101f;
  box-shadow: 0 14px 34px rgba(61, 118, 220, .27);
}

.button-ghost {
  color: #f7faff;
  border-color: rgba(224, 184, 90, .38);
  background: rgba(224, 184, 90, .06);
}

.hero {
  position: relative;
  min-height: 760px;
  padding-top: 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 6% -6% 8% 46%;
  z-index: 0;
  border: 1px solid rgba(143, 187, 255, .14);
  border-radius: 52px;
  background:
    radial-gradient(circle at 62% 35%, rgba(79, 224, 194, .12), transparent 30%),
    linear-gradient(145deg, rgba(15, 35, 64, .72), rgba(5, 9, 20, .18));
  transform: rotate(-2deg);
}

.hero-copy,
.hero-visual,
.hero-architecture {
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-bottom: 28px;
  border-radius: 99px;
  background: var(--refresh-gold);
  box-shadow: 0 0 24px rgba(224, 184, 90, .35);
}

.hero h1,
.section-heading h2,
.feature-copy h2,
.security-intro h2,
.register-copy h2 {
  text-wrap: balance;
}

.hero .lead {
  color: #b7c4d6;
}

.hero-demo-badge {
  color: var(--refresh-gold);
  border-color: rgba(224, 184, 90, .45);
  background: rgba(5, 9, 20, .9);
}

.phone {
  border-color: #111d31;
  box-shadow:
    0 38px 90px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(224, 184, 90, .24);
}

.phone-main {
  box-shadow:
    0 42px 100px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(79, 224, 194, .3),
    0 0 52px rgba(79, 224, 194, .1);
}

.floating-proof {
  color: #f7faff;
  border-color: rgba(79, 224, 194, .35);
  background: rgba(7, 16, 29, .88);
}

.hero-architecture-item,
.step-card,
.security-card,
.signing-level,
.glossary-grid > div,
.faq-list details {
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.wallet-visual-break {
  scroll-margin-top: 96px;
  padding-block: clamp(56px, 8vw, 112px);
}

.wallet-visual-break figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(224, 184, 90, .28);
  border-radius: 36px;
  background: #050914;
  box-shadow:
    0 44px 110px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(79, 224, 194, .06),
    0 0 70px rgba(63, 127, 219, .08);
}

.wallet-visual-break figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.wallet-visual-break img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.wallet-visual-break figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 3vw, 34px);
  border-top: 1px solid rgba(143, 187, 255, .16);
  background:
    linear-gradient(90deg, rgba(224, 184, 90, .08), transparent 34%),
    #080f1c;
}

.wallet-visual-break figcaption span {
  color: var(--refresh-gold);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.wallet-visual-break figcaption strong {
  color: #f7faff;
  font-size: clamp(.95rem, 1.5vw, 1.12rem);
}

.screens-section,
.walletconnect-section {
  background:
    radial-gradient(circle at 50% 8%, rgba(45, 97, 243, .13), transparent 32rem),
    #080e18;
}

.story-screens {
  gap: clamp(28px, 4vw, 54px);
}

.screenshot-button {
  border-color: #162947;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(143, 187, 255, .22);
}

.screenshot-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.screenshot-button img {
  transition: transform .35s ease, filter .35s ease;
}

.screenshot-button:hover img {
  transform: scale(1.015);
  filter: saturate(1.06);
}

.demo-badge,
.actual-screenshot-badge {
  color: var(--refresh-gold);
  border-color: rgba(224, 184, 90, .4);
  background: rgba(5, 9, 20, .9);
}

.direct-transfer-section,
.security-section,
.glossary-section,
.faq-section {
  background: rgba(5, 9, 20, .76);
}

.phone-to-phone,
.architecture-card,
.registration-card,
.legal-card {
  box-shadow:
    0 36px 90px rgba(0, 0, 0, .42),
    inset 0 1px rgba(255, 255, 255, .035);
}

.register-section {
  background:
    radial-gradient(circle at 18% 45%, rgba(224, 184, 90, .16), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(79, 224, 194, .1), transparent 24rem),
    linear-gradient(135deg, #07101e, #102c4b 72%, #080e18);
}

.registration-card input:not([type="checkbox"]),
.registration-card select {
  min-height: 56px;
}

.form-button {
  width: 100%;
}

@media (max-width: 1120px) {
  .site-header {
    top: 8px;
  }

  .hero::before {
    inset: 40% -8% 4%;
  }
}

@media (max-width: 820px) {
  body::before {
    background-size: 46px 46px;
  }

  .site-header {
    width: calc(100% - 22px);
    min-height: 64px;
    padding: 0 12px;
    border-radius: 20px;
  }

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

  .language-switch button {
    min-width: 40px;
    min-height: 40px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero::before {
    inset: 46% -18% 3%;
    border-radius: 40px;
  }

  .hero-copy::before {
    margin-bottom: 22px;
  }

  .wallet-visual-break figure {
    border-radius: 24px;
  }

  .wallet-visual-break figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-button img {
    transition: none;
  }
}
