:root {
  --ink: #06120b;
  --ink-soft: #0a1d12;
  --panel: rgba(8, 26, 15, 0.88);
  --lime: #9bdc28;
  --lime-soft: #d8ff9a;
  --white: #f8fbf7;
  --muted: #b4c0b7;
  --line: rgba(180, 242, 66, 0.26);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--ink);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 45%, rgba(99, 178, 28, 0.17), transparent 31rem),
    linear-gradient(145deg, #020805 0%, #07170d 48%, #020805 100%);
  font-family: Inter, Montserrat, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.36;
  background-image: url("media/topography.svg");
  background-size: 760px 760px;
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.4)),
    radial-gradient(circle at center, transparent 25%, rgba(1, 7, 4, 0.45) 100%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(65px);
  pointer-events: none;
}

.ambient--one {
  top: -7rem;
  left: -6rem;
  background: var(--lime);
}

.ambient--two {
  right: -8rem;
  bottom: -6rem;
  background: #4da83b;
}

.page-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding:
    max(10px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
}

.review-badge {
  position: relative;
  isolation: isolate;
  width: min(100%, 570px);
  padding: 16px clamp(16px, 5vw, 34px) 18px;
  overflow: hidden;
  border: 1px solid rgba(184, 240, 81, 0.24);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(18, 45, 26, 0.78), rgba(3, 13, 7, 0.96)),
    repeating-linear-gradient(95deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 4px);
  box-shadow:
    var(--shadow),
    inset 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px rgba(154, 220, 40, 0.12);
  text-align: center;
}

.review-badge::before {
  position: absolute;
  top: -8rem;
  left: 50%;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(168, 235, 62, 0.12);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  box-shadow:
    0 0 0 3rem rgba(126, 206, 36, 0.025),
    0 0 0 7rem rgba(126, 206, 36, 0.018);
}

.brand {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
}

.brand__logo {
  display: block;
  width: clamp(92px, 25vw, 118px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.intro {
  margin-top: -3px;
}

.section-mark {
  display: grid;
  width: min(86%, 345px);
  margin: 0 auto 6px;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 12px;
}

.section-mark span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161, 225, 44, 0.85));
}

.section-mark span:last-child {
  background: linear-gradient(90deg, rgba(161, 225, 44, 0.85), transparent);
}

.section-mark svg {
  width: 22px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8.7vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 em {
  color: var(--lime);
  font-style: normal;
}

.stars {
  display: flex;
  justify-content: center;
  margin: 10px 0 8px;
  gap: clamp(7px, 2.4vw, 13px);
}

.stars svg {
  width: clamp(20px, 5.8vw, 28px);
  fill: var(--lime);
  filter: drop-shadow(0 0 8px rgba(155, 220, 40, 0.26));
}

.intro__question,
.intro__copy {
  margin: 0;
}

.intro__question {
  font-size: clamp(1.15rem, 4.8vw, 1.55rem);
  font-weight: 760;
}

.intro__copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(0.86rem, 3.7vw, 1rem);
}

.review-action {
  margin-top: 13px;
}

.qr-stage {
  position: relative;
  display: grid;
  width: min(300px, calc(100vw - 40px));
  min-height: min(284px, calc(100vw - 56px));
  margin: 0 auto;
  place-items: center;
}

.qr-stage::before {
  position: absolute;
  inset: 7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 220, 40, 0.2), rgba(155, 220, 40, 0.05) 50%, transparent 70%);
  content: "";
  filter: blur(10px);
}

.qr-orbit {
  position: absolute;
  border: 1px solid rgba(155, 220, 40, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.qr-orbit::before,
.qr-orbit::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime-soft);
  box-shadow: 0 0 10px var(--lime);
  content: "";
}

.qr-orbit::before {
  top: 12%;
  left: 14%;
}

.qr-orbit::after {
  right: 7%;
  bottom: 24%;
}

.qr-orbit--outer {
  inset: 2%;
  animation: orbit 24s linear infinite;
}

.qr-orbit--inner {
  inset: 8%;
  border-style: dashed;
  opacity: 0.7;
  animation: orbit 30s linear infinite reverse;
}

.corner {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-color: var(--lime-soft);
  opacity: 0.86;
  filter: drop-shadow(0 0 6px rgba(155, 220, 40, 0.28));
  pointer-events: none;
}

.corner--tl {
  top: 7px;
  left: 7px;
  border-top: 3px solid;
  border-left: 3px solid;
  border-radius: 9px 0 0;
}

.corner--tr {
  top: 7px;
  right: 7px;
  border-top: 3px solid;
  border-right: 3px solid;
  border-radius: 0 9px 0 0;
}

.corner--bl {
  bottom: 7px;
  left: 7px;
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-radius: 0 0 0 9px;
}

.corner--br {
  right: 7px;
  bottom: 7px;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-radius: 0 0 9px;
}

.qr-quiet-zone {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(254px, calc(100vw - 78px));
  aspect-ratio: 1;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  place-items: center;
  background: #fff;
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.08),
    0 0 32px rgba(154, 220, 40, 0.28),
    0 16px 38px rgba(0, 0, 0, 0.42);
}

#qrcode {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #fff;
}

#qrcode canvas,
#qrcode img {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

#qrcode img {
  display: none;
}

.qr-error {
  margin: 0;
  color: #06120b;
  font-size: 0.76rem;
}

.scan-label {
  display: inline-flex;
  margin: 9px auto 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.24;
  text-align: left;
}

.scan-label strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 760;
}

.scan-label__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(155, 220, 40, 0.36);
  border-radius: 50%;
  place-items: center;
  background: rgba(155, 220, 40, 0.09);
}

.scan-label__icon svg {
  width: 22px;
  fill: var(--lime);
}

.review-button {
  display: grid;
  min-height: 60px;
  margin-top: 13px;
  padding: 7px 18px 7px 8px;
  border: 1px solid rgba(230, 255, 178, 0.74);
  border-radius: 999px;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  background: linear-gradient(135deg, var(--lime-soft), #a7ec2b 48%, #8bd31d);
  box-shadow:
    0 12px 28px rgba(111, 180, 25, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -4px rgba(41, 93, 10, 0.16);
  color: #071007;
  font-size: clamp(1rem, 4.5vw, 1.22rem);
  font-weight: 880;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.review-button::after {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  opacity: 0.45;
  transform: rotate(45deg);
}

.review-button__icon {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  place-items: center;
  background: #06120b;
}

.review-button__icon svg {
  width: 25px;
  fill: none;
  stroke: var(--lime-soft);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.review-button:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(111, 180, 25, 0.29),
    inset 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -4px rgba(41, 93, 10, 0.16);
}

.review-button:active {
  transform: translateY(1px);
}

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

.time-note {
  display: flex;
  margin: 9px 0 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.time-note svg {
  width: 17px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.thanks {
  display: grid;
  margin-top: 11px;
  grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
  align-items: center;
  gap: 11px;
}

.thanks > span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.thanks > span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

.thanks p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 7px;
  color: #e9efe9;
  font-size: clamp(0.8rem, 3.4vw, 0.94rem);
}

.thanks svg {
  width: 19px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.thanks strong {
  color: var(--lime-soft);
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 370px) {
  .page-shell {
    padding: 7px;
  }

  .review-badge {
    padding: 11px 13px 14px;
    border-radius: 27px;
  }

  .brand {
    min-height: 72px;
  }

  .brand__logo {
    width: 84px;
  }

  .section-mark {
    margin-bottom: 4px;
  }

  .stars {
    margin: 8px 0 6px;
  }

  .review-action {
    margin-top: 10px;
  }

  .qr-stage {
    width: min(278px, calc(100vw - 24px));
    min-height: min(262px, calc(100vw - 38px));
  }

  .qr-quiet-zone {
    width: min(234px, calc(100vw - 65px));
    padding: 12px;
    border-radius: 17px;
  }

  .corner {
    width: 24px;
    height: 24px;
  }

  .scan-label {
    margin-top: 7px;
  }

  .scan-label__icon {
    width: 36px;
    height: 36px;
  }

  .review-button {
    min-height: 56px;
    margin-top: 10px;
    grid-template-columns: 42px 1fr 30px;
  }

  .review-button__icon {
    width: 42px;
    height: 42px;
  }

  .thanks {
    margin-top: 8px;
  }
}

@media (min-width: 700px) {
  .page-shell {
    padding: 28px;
  }

  .review-badge {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .brand__logo {
    width: 118px;
  }

  .qr-stage {
    width: 322px;
    min-height: 304px;
  }

  .qr-quiet-zone {
    width: 270px;
  }
}

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