:root {
  --red-950: #210000;
  --red-900: #370000;
  --red-800: #5d0000;
  --red-700: #850500;
  --red-600: #b71308;
  --gold-100: #fff7c7;
  --gold-300: #ffd96a;
  --gold-400: #f4b92c;
  --gold-500: #d99408;
  --cream: #fff8df;
  --muted: #d6bfa0;
  --line: rgba(255, 214, 93, .24);
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--red-950);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 177, 0, .22), transparent 31rem),
    radial-gradient(circle at 0 42%, rgba(188, 15, 5, .24), transparent 22rem),
    linear-gradient(180deg, #430000 0%, #1e0000 42%, #0f0000 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 14px calc(126px + env(safe-area-inset-bottom));
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px 2px;
}

.brand-mark {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 225, 126, .65);
  border-radius: 14px;
  color: var(--gold-300);
  font-size: 21px;
  background: linear-gradient(145deg, rgba(255, 220, 87, .22), rgba(118, 0, 0, .7));
  box-shadow: inset 0 0 22px rgba(255, 177, 0, .13), 0 8px 24px rgba(0,0,0,.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: .11em;
  color: var(--gold-300);
}

.brand-copy span {
  margin-top: 5px;
  color: #dfcaa8;
  font-size: 11px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: #edd8bd;
  font-size: 11px;
  background: rgba(29, 0, 0, .5);
  backdrop-filter: blur(10px);
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #44df73;
  box-shadow: 0 0 0 4px rgba(68, 223, 115, .1), 0 0 12px rgba(68, 223, 115, .8);
}

.section-card {
  position: relative;
  padding: 26px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 214, 93, .08), transparent 32%),
    linear-gradient(180deg, rgba(116, 0, 0, .82), rgba(39, 0, 0, .9));
  box-shadow: var(--shadow);
}

.section-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 191, 36, .12);
  filter: blur(8px);
}

.eyebrow {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto 13px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 220, 112, .28);
  border-radius: 999px;
  color: var(--gold-300);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  background: rgba(49, 0, 0, .56);
}

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

.hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  text-align: center;
  font-size: clamp(29px, 8.8vw, 60px);
  line-height: 1.13;
  letter-spacing: -.025em;
  text-shadow: 0 4px 22px rgba(0,0,0,.55);
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(180deg, #fff5b9 0%, #ffcf45 52%, #b86d00 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 3px 6px rgba(65, 0, 0, .8));
}

.hero > p {
  position: relative;
  z-index: 1;
  max-width: 550px;
  margin: 0 auto 21px;
  padding: 0 8px;
  text-align: center;
  color: #dfc8a8;
  font-size: 13px;
  line-height: 1.65;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 112, .35);
  border-radius: 20px;
  background: #280000;
  box-shadow: 0 18px 45px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.035);
}

.image-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 42px rgba(78, 0, 0, .24);
}

.hero-frame {
  border-radius: 21px;
}

.benefit-strip {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 10px;
  margin: 16px 0 34px;
  padding: 16px 11px;
  border: 1px solid rgba(255, 214, 93, .14);
  border-radius: 18px;
  background: rgba(54, 0, 0, .58);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}

.benefit-strip div {
  min-width: 0;
  text-align: center;
}

.benefit-strip div:nth-of-type(3) {
  display: none;
}

.benefit-strip i:nth-of-type(2) {
  display: none;
}

.benefit-strip i {
  width: 1px;
  height: 30px;
  background: linear-gradient(transparent, rgba(255, 220, 102, .45), transparent);
}

.benefit-strip b,
.benefit-strip span {
  display: block;
}

.benefit-strip b {
  color: var(--gold-300);
  font-size: 12px;
}

.benefit-strip span {
  margin-top: 4px;
  color: #bda98d;
  font-size: 10px;
  white-space: nowrap;
}

.gallery-section {
  padding: 0 2px;
}

.section-heading {
  margin-bottom: 18px;
  text-align: center;
}

.section-heading span {
  color: var(--gold-400);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: 25px;
  line-height: 1.25;
}

.promo-card {
  position: relative;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid rgba(255, 214, 93, .2);
  border-radius: 27px;
  background: linear-gradient(145deg, rgba(255, 214, 93, .09), rgba(77, 0, 0, .62));
  box-shadow: var(--shadow);
}

.promo-card .image-frame {
  border-radius: 20px;
}

.promo-number {
  position: absolute;
  z-index: 4;
  top: 17px;
  left: 17px;
  min-width: 40px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 232, 154, .6);
  border-radius: 11px;
  color: #441300;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(180deg, #fff2a4, #daa00e);
  box-shadow: 0 5px 18px rgba(0,0,0,.38);
}

.trust-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
  margin: 33px 2px 0;
  padding: 18px;
  border: 1px solid rgba(255, 215, 99, .22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(142, 8, 0, .7), rgba(45, 0, 0, .8));
}

.shield {
  width: 47px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #4d1500;
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(145deg, #fff0a0, #d78d00);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.trust-card h2 {
  margin-bottom: 4px;
  color: #ffe98f;
  font-size: 16px;
}

.trust-card p {
  margin-bottom: 0;
  color: #d6bea0;
  font-size: 11px;
  line-height: 1.55;
}

footer {
  padding: 28px 15px 10px;
  text-align: center;
  color: #896e5c;
}

footer p {
  margin-bottom: 8px;
  font-size: 10px;
  line-height: 1.55;
}

footer small {
  font-size: 10px;
}

.sticky-cta {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(17, 0, 0, .76) 28%, rgba(17, 0, 0, .96) 100%);
  pointer-events: none;
}

.register-button {
  position: relative;
  width: min(100%, 620px);
  min-height: 67px;
  margin: 0 auto;
  padding: 9px 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #fff0a2;
  border-radius: 20px;
  color: #451300;
  text-decoration: none;
  background: linear-gradient(180deg, #fff2a7 0%, #ffc62e 46%, #d98700 100%);
  box-shadow:
    0 12px 28px rgba(255, 156, 0, .24),
    0 9px 28px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.8);
  pointer-events: auto;
  transform: translateZ(0);
  transition: transform .18s ease, filter .18s ease;
}

.register-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -25%;
  width: 20%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: rotate(20deg);
  animation: shine 3.8s ease-in-out infinite;
}

.register-button:active {
  transform: scale(.985);
}

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

.line-dot {
  width: 42px;
  aspect-ratio: 1;
  border: 2px solid rgba(50, 80, 0, .2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 36%, #eaffd1 0 7%, transparent 8%),
    #08b94e;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.16), 0 5px 13px rgba(58, 83, 0, .25);
}

.line-dot::after {
  content: "LINE";
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: white;
  font: 800 8px/1 system-ui, sans-serif;
}

.button-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.button-text small {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 700;
  opacity: .72;
}

.button-text strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.arrow {
  width: 35px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(93, 35, 0, .16);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  background: rgba(255,255,255,.22);
}

@keyframes shine {
  0%, 45% { left: -25%; opacity: 0; }
  55% { opacity: 1; }
  75%, 100% { left: 120%; opacity: 0; }
}

@media (min-width: 600px) {
  .page-shell {
    padding-inline: 24px;
  }

  .topbar {
    padding-block: 18px;
  }

  .brand-mark {
    width: 50px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .section-card {
    padding: 42px 30px 30px;
  }

  .hero > p {
    font-size: 15px;
  }

  .benefit-strip {
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    padding: 19px 16px;
  }

  .benefit-strip div:nth-of-type(3),
  .benefit-strip i:nth-of-type(2) {
    display: block;
  }

  .benefit-strip b {
    font-size: 14px;
  }

  .benefit-strip span {
    font-size: 11px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .promo-card {
    padding: 12px;
    border-radius: 32px;
  }

  .promo-card .image-frame {
    border-radius: 23px;
  }

  .promo-number {
    top: 25px;
    left: 25px;
    min-width: 50px;
    font-size: 14px;
  }

  .trust-card {
    padding: 24px;
  }

  .trust-card h2 {
    font-size: 20px;
  }

  .trust-card p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .register-button::before { animation: none; }
  .register-button { transition: none; }
}

.register-button.is-processing {
  pointer-events: none;
  cursor: wait;
  opacity: .86;
  transform: translateY(1px) scale(.995);
  filter: saturate(.78);
}

.register-button.is-processing .line-dot {
  animation: leadPulse .8s ease-in-out infinite alternate;
}

@keyframes leadPulse {
  from { transform: scale(.82); opacity: .58; }
  to { transform: scale(1.14); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .register-button.is-processing .line-dot {
    animation: none;
  }
}
