/* aipivot.cn — Landing */

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

:root {
  --paper: #fdebd8;
  --cream: #fdebd8;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.92);
  --ink-mute: rgba(255, 255, 255, 0.72);
  --rule: rgba(255, 255, 255, 0.45);
  --serif: "Cormorant Garamond", "Times New Roman", "Songti SC", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper);
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Artwork stage ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #fdebd8;
}

.bg-poster {
  position: absolute;
  inset: 0;
  background-color: #fdebd8;
  background-image: url("202383001.jpg");
  background-size: cover;
  background-position: center;
  animation: bg-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/*
 * Soft cream paper wash (#fdebd8) — not kraft orange.
 * soft-light keeps art visible while pulling toward parchment.
 */
.bg-cream {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(253, 235, 216, 0.42) 0%,
      rgba(253, 235, 216, 0.28) 45%,
      rgba(253, 235, 216, 0.38) 100%
    ),
    radial-gradient(
      ellipse 52% 44% at 50% 48%,
      rgba(253, 235, 216, 0.22) 0%,
      rgba(40, 28, 20, 0.12) 70%,
      rgba(30, 22, 16, 0.18) 100%
    ),
    radial-gradient(
      ellipse 90% 80% at 50% 50%,
      transparent 50%,
      rgba(60, 42, 30, 0.14) 100%
    );
  mix-blend-mode: soft-light;
  animation: cream-in 2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.bg-overlay {
  --overlay-strength: 0.44;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: rgba(12, 10, 8, var(--overlay-strength));
  background-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.2) 100%
  );
  animation: veil-in 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Soft warm cursor trail (canvas) */
#wet-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(255, 248, 235, 0.9);
  box-shadow: 0 0 6px rgba(255, 236, 210, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform, opacity;
}

#cursor.is-on {
  opacity: 1;
  transform: translate3d(var(--x), var(--y), 0);
}

/* ---------- Corner redeem entry ---------- */
.corner-redeem {
  position: fixed;
  top: 1.15rem;
  right: 1.25rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem 0.55rem 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  animation: rise-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: none;
  pointer-events: auto;
}

.corner-redeem-q {
  color: rgba(255, 255, 255, 0.62);
}

.corner-redeem-go {
  color: rgba(255, 248, 235, 0.95);
  font-weight: 500;
}

.corner-redeem-arrow {
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.corner-redeem:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 248, 235, 0.5);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(253, 235, 216, 0.1);
  transform: translateY(-1px);
}

.corner-redeem:hover .corner-redeem-q {
  color: rgba(255, 255, 255, 0.8);
}

.corner-redeem:hover .corner-redeem-arrow {
  transform: translateX(2px);
}

.corner-redeem:focus-visible {
  outline: 2px solid rgba(255, 248, 235, 0.85);
  outline-offset: 3px;
}

/* ---------- Content ---------- */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.75rem 2.5rem;
  max-width: 40rem;
  background: none;
  border: none;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35));
}

/* Staggered load-in */
.content .brand,
.content .divider,
.content .message,
.content .message-zh,
.content .cta-row {
  opacity: 0;
  animation: rise-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* api-stage has its own delay via .api-stage rule */

.content .brand {
  animation-delay: 0.3s;
}

.content .divider {
  animation-delay: 0.5s;
}

.content .message {
  animation-delay: 0.65s;
}

.content .message-zh {
  animation-delay: 0.8s;
}

.content .cta-row {
  animation-delay: 1.05s;
}

.content .colophon {
  opacity: 0;
  animation: rise-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 1.35s both;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.logo {
  display: block;
  width: clamp(88px, 16vw, 128px);
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.domain {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.1;
  font-variant-ligatures: none;
  white-space: nowrap;
}

/* AI — gilded light, soft shimmer */
.domain-ai {
  position: relative;
  display: inline-block;
  padding-right: 0.04em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.06em;
  background-image: linear-gradient(
    115deg,
    #fffef8 0%,
    #fdebd8 22%,
    #fff 40%,
    #f0d4a8 58%,
    #fff8eb 78%,
    #fdebd8 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75))
    drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 22px rgba(253, 235, 216, 0.35));
  animation:
    ai-shimmer 7s ease-in-out infinite,
    ai-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* Pivot — carved marble weight, quiet solid */
.domain-pivot {
  position: relative;
  display: inline-block;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.75),
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(0, 0, 0, 0.35);
  animation: pivot-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
}

.domain-pivot::after {
  content: "";
  position: absolute;
  left: 0.06em;
  right: 0.02em;
  bottom: 0.06em;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 18%,
    rgba(255, 248, 235, 0.7) 50%,
    rgba(255, 255, 255, 0.55) 82%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  animation: pivot-rule 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both;
}

@keyframes ai-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes ai-in {
  from {
    opacity: 0;
    transform: translateY(14px) skewX(-4deg);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75)) blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewX(0);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75))
      drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4))
      drop-shadow(0 0 22px rgba(253, 235, 216, 0.35));
  }
}

@keyframes pivot-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    letter-spacing: 0.16em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.04em;
  }
}

@keyframes pivot-rule {
  from {
    opacity: 0;
    transform: scaleX(0.2);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.divider {
  width: 2.5rem;
  height: 1px;
  margin: 1.35rem auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}

.message {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(0, 0, 0, 0.35);
}

.message-zh {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.18em;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.75),
    0 4px 18px rgba(0, 0, 0, 0.5);
}

/* ---------- Protocol plaque (museum label) ---------- */
.api-stage {
  margin: 1.75rem auto 0;
  width: min(100%, 28rem);
  opacity: 0;
  animation: rise-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
  pointer-events: none;
}

.api-plaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.api-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(100%, 16rem);
}

.api-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.api-diamond {
  flex: 0 0 auto;
  font-size: 0.55rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.api-body {
  padding: 0.95rem 0.5rem 0.85rem;
  min-height: 5.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s ease;
}

.api-body.is-out {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(1.5px);
}

.api-body.is-in {
  animation: api-ink-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-proto {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 1px 4px rgba(0, 0, 0, 0.7),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.api-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  max-width: 100%;
}

.api-method {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 252, 245, 0.72);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.api-sep {
  font-family: var(--serif);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.api-path,
.api-measure {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 4px 18px rgba(0, 0, 0, 0.5);
}

.api-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.api-tag {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.api-marks {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.95rem 0 0;
  padding: 0;
}

.api-mark {
  font-family: var(--serif);
  font-size: 0.62rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition:
    color 0.45s ease,
    text-shadow 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-mark.is-on {
  color: rgba(255, 248, 235, 0.92);
  text-shadow:
    0 0 10px rgba(255, 236, 210, 0.35),
    0 1px 4px rgba(0, 0, 0, 0.55);
  transform: scale(1.12);
}

@keyframes api-ink-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(1.5px);
    letter-spacing: 0.04em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: normal;
  }
}

/* ---------- CTA ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.85rem;
  pointer-events: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 999px;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: none;
}

.cta-primary {
  padding: 0.85rem 1.55rem 0.85rem 1.7rem;
  color: #1a1410;
  background: linear-gradient(
    165deg,
    rgba(255, 250, 242, 0.96) 0%,
    rgba(253, 235, 216, 0.92) 100%
  );
  border: 1px solid rgba(255, 248, 235, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cta-primary:hover {
  background: linear-gradient(
    165deg,
    #fffefb 0%,
    #fdebd8 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 12px 36px rgba(0, 0, 0, 0.34),
    0 0 40px rgba(253, 235, 216, 0.18);
  transform: translateY(-1px);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cta-ghost {
  padding: 0.8rem 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.28);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

.cta:focus-visible {
  outline: 2px solid rgba(255, 248, 235, 0.85);
  outline-offset: 3px;
}

/* ---------- Colophon (quiet end-mark under CTA) ---------- */
.colophon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
  pointer-events: none;
}

.colophon-rule {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.colophon-copy {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.colophon-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
  font-style: normal;
}

@keyframes bg-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cream-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes veil-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  #cursor {
    display: none;
  }

  .cta,
  .corner-redeem {
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-poster,
  .bg-cream,
  .bg-overlay,
  .content .brand,
  .content .divider,
  .content .message,
  .content .message-zh,
  .content .cta-row,
  .content .colophon,
  .api-stage,
  .domain-ai,
  .domain-pivot,
  .domain-pivot::after,
  .corner-redeem {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .domain-ai {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75))
      drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4))
      drop-shadow(0 0 22px rgba(253, 235, 216, 0.35));
  }

  .domain-pivot::after {
    transform: scaleX(1);
  }

  .api-body.is-out,
  .api-body.is-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  body {
    cursor: auto;
  }

  #cursor {
    display: none;
  }

  .cta {
    cursor: pointer;
  }
}

/* ---------- Redeem page ---------- */
.page-redeem {
  overflow-x: hidden;
  overflow-y: auto;
}

.content-redeem {
  max-width: 26rem;
  width: 100%;
}

.content-redeem .brand,
.content-redeem .divider,
.content-redeem .message,
.content-redeem .message-zh,
.content-redeem .redeem-form,
.content-redeem .redeem-back {
  opacity: 0;
  animation: rise-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.content-redeem .redeem-back {
  animation-delay: 0.15s;
}

.content-redeem .brand {
  animation-delay: 0.3s;
}

.content-redeem .divider {
  animation-delay: 0.45s;
}

.content-redeem .message {
  animation-delay: 0.55s;
}

.content-redeem .message-zh {
  animation-delay: 0.65s;
}

.content-redeem .redeem-form {
  animation-delay: 0.8s;
}

.content-redeem .colophon {
  opacity: 0;
  animation: rise-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}

.brand-compact {
  gap: 0.75rem;
}

.logo-sm {
  width: clamp(64px, 12vw, 88px);
}

.redeem-back {
  margin: 0 0 1.25rem;
  text-align: center;
}

.redeem-back-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  transition: color 0.3s ease;
  cursor: none;
}

.redeem-back-link:hover {
  color: rgba(255, 248, 235, 0.95);
}

.redeem-back-link:focus-visible {
  outline: 2px solid rgba(255, 248, 235, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

.redeem-form {
  margin-top: 1.65rem;
  text-align: left;
  pointer-events: auto;
}

.redeem-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.redeem-field {
  position: relative;
}

.redeem-input {
  display: block;
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #1a1410;
  background: linear-gradient(
    165deg,
    rgba(255, 252, 247, 0.96) 0%,
    rgba(253, 235, 216, 0.94) 100%
  );
  border: 1px solid rgba(255, 248, 235, 0.55);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 8px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: text;
}

.redeem-input::placeholder {
  color: rgba(26, 20, 16, 0.42);
  letter-spacing: 0.04em;
}

.redeem-input:hover {
  border-color: rgba(255, 248, 235, 0.75);
}

.redeem-input:focus {
  border-color: rgba(255, 248, 235, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 32px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(253, 235, 216, 0.35);
}

.redeem-hint {
  margin: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.58);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.redeem-hint-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255, 248, 235, 0.78);
}

.redeem-status {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 235, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.redeem-status--error {
  color: #ffc9b8;
}

.redeem-status--ok,
.redeem-status--pending {
  color: rgba(255, 248, 235, 0.92);
}

.redeem-actions {
  margin-top: 1.35rem;
}

.redeem-actions button.cta {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.redeem-actions button.cta:disabled {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 560px) {
  .content {
    padding: 1.5rem 1.25rem 2rem;
  }

  .colophon {
    margin-top: 1.85rem;
  }

  .divider {
    margin: 1.15rem auto;
  }

  .message br {
    display: none;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .cta {
    width: 100%;
    max-width: 18rem;
  }

  .api-stage {
    width: 100%;
  }

  .api-path {
    white-space: normal;
    word-break: break-all;
    min-width: 0 !important;
    line-height: 1.4;
  }

  .api-line {
    flex-direction: column;
    gap: 0.25rem;
  }

  .api-sep {
    display: none;
  }

  .api-marks {
    gap: 0.65rem;
  }

  .content-redeem {
    max-width: 100%;
  }

  .redeem-actions .cta {
    max-width: none;
  }

  .corner-redeem {
    top: 0.85rem;
    right: 0.85rem;
    padding: 0.48rem 0.75rem 0.48rem 0.85rem;
    font-size: 0.72rem;
    gap: 0.32rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .redeem-back-link {
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-redeem .brand,
  .content-redeem .divider,
  .content-redeem .message,
  .content-redeem .message-zh,
  .content-redeem .redeem-form,
  .content-redeem .redeem-back,
  .content-redeem .colophon {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
