:root {
  --teal: #1aa7a0;
  --teal-deep: #12807a;
  --danger: #e11d2e;
  --ok: #0f9d58;
  --gold: #f0c43a;
  --text: #1f2a37;
  --muted: #7a8694;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #050b14;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #07111d;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 290px;
  padding: 54px 18px 42px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/bg-hero.jpg") center top / cover no-repeat;
  transform: scale(1.02);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 20, 0.18) 0%, rgba(4, 10, 20, 0.08) 42%, rgba(7, 17, 29, 0.55) 78%, #07111d 100%),
    radial-gradient(520px 220px at 50% 18%, rgba(80, 190, 255, 0.12), transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.55s ease both;
}

.hero__title {
  margin: 0 auto 28px;
  max-width: 10em;
  text-align: center;
  font-size: clamp(26px, 7.2vw, 30px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    0 0 12px rgba(90, 220, 255, 0.55),
    0 0 28px rgba(60, 180, 255, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.45);
}

.search {
  display: grid;
  grid-template-columns: 1fr 46px 46px;
  gap: 8px;
  align-items: center;
}

.search__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 0.02em;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.search__input::placeholder {
  color: #9aa3ad;
}

.search__btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.search__btn svg {
  width: 22px;
  height: 22px;
}

.search__btn--query {
  background: linear-gradient(180deg, #22b7af 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 167, 160, 0.35);
}

.search__btn--query:active {
  background: var(--teal-deep);
}

.search__btn--scan {
  background: rgba(8, 18, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.result {
  margin: -6px 14px 16px;
  position: relative;
  z-index: 2;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation: fadeUp 0.35s ease both;
}

.result__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 14px;
}

.result--ok .result__head {
  background: linear-gradient(180deg, rgba(15, 157, 88, 0.12), rgba(15, 157, 88, 0.02));
}

.result--warn .result__head {
  background: linear-gradient(180deg, rgba(225, 29, 46, 0.1), rgba(225, 29, 46, 0.02));
}

.result__badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
}

.result--ok .result__badge {
  background: linear-gradient(180deg, #2fcf7a 0%, #0f9d58 100%);
  box-shadow: 0 8px 16px rgba(15, 157, 88, 0.28);
}

.result--warn .result__badge {
  background: linear-gradient(180deg, #ff5a5a 0%, #e11d2e 100%);
  box-shadow: 0 8px 16px rgba(225, 29, 46, 0.28);
}

.result__badge svg {
  width: 20px;
  height: 20px;
}

.result__copy {
  min-width: 0;
  flex: 1;
}

.result__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.result--ok .result__label {
  color: #0f9d58;
}

.result--warn .result__label {
  color: #e11d2e;
}

.result__text {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: #1a2433;
}

.result__meta {
  margin: 0;
  padding: 4px 8px 10px;
  display: grid;
  gap: 0;
}

.result__row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0 8px;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.result__row:nth-child(odd) {
  background: #f3f6f9;
}

.result__row span {
  color: #8090a1;
}

.result__row strong {
  color: #1f2c3a;
  font-weight: 600;
  word-break: break-all;
  text-align: right;
}

.follow {
  margin: 0 14px 16px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(5, 14, 26, 0.72), rgba(5, 14, 26, 0.55)),
    url("assets/bg-hero.jpg") center 70% / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.follow__qr {
  width: 86px;
  height: 86px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

.follow__qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.follow__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.follow__sub {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.promo-video {
  margin: 0 14px 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #05080f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  line-height: 0;
  aspect-ratio: 16 / 9;
}

.promo-video[hidden],
.detail[hidden] {
  display: none !important;
}

.promo-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
  background: #05080f;
}

.detail {
  background: #05080f;
  line-height: 0;
}

.detail__img {
  display: block;
  width: 100%;
  height: auto;
}

.about {
  padding: 20px 18px 28px;
  background: #0a1422;
  color: #c7d2de;
  font-size: 13px;
  line-height: 1.7;
}

.about h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.about__name {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 600;
}

.about p {
  margin: 0 0 4px;
}

.about__icp {
  margin-top: 12px !important;
  color: #7f8b99;
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  z-index: 50;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 13px;
  text-align: center;
  animation: fadeUp 0.25s ease both;
}

.toast[hidden] {
  display: none !important;
}

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

@media (min-width: 480px) {
  body {
    padding: 24px 0;
  }

  .page {
    border-radius: 16px;
    min-height: calc(100vh - 48px);
  }

  .toast {
    transform: translateX(-50%);
  }
}
