:root {
  --black: #111111;
  --ink: #202020;
  --yellow: #ffd21f;
  --yellow-deep: #f6b900;
  --white: #ffffff;
  --soft: #fff8d9;
  --line-green: #06c755;
  --border: rgba(17, 17, 17, 0.14);
  --shadow: 0 18px 48px rgba(17, 17, 17, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--yellow);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.hero {
  display: grid;
  gap: 28px;
  min-height: 78vh;
  align-items: center;
  padding: 22px 0 28px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 12px;
  color: var(--yellow);
  background: var(--black);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 14px;
  color: var(--black);
  font-size: clamp(2.35rem, 14vw, 5rem);
  line-height: 1.08;
  font-weight: 900;
}

.subtitle {
  margin-bottom: 24px;
  color: var(--black);
  font-size: clamp(1.25rem, 6vw, 2rem);
  line-height: 1.35;
  font-weight: 800;
}

.cta-button,
.submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cta-button {
  color: var(--white);
  background: var(--line-green);
  box-shadow: 0 12px 28px rgba(6, 199, 85, 0.26);
}

.submit-button {
  margin-top: 8px;
  color: var(--yellow);
  background: var(--black);
}

.cta-button:hover,
.submit-button:hover {
  transform: translateY(-2px);
}

.cta-button:focus-visible,
.submit-button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.promo-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 330px);
  min-height: 430px;
  padding: 44px 24px 26px;
  overflow: hidden;
  color: var(--black);
  background: var(--white);
  border: 10px solid var(--black);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: auto -34px -70px auto;
  width: 190px;
  height: 190px;
  background: var(--yellow);
  border: 9px solid var(--black);
  border-radius: 50%;
}

.phone-top {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 82px;
  height: 8px;
  background: var(--black);
  border-radius: 999px;
  transform: translateX(-50%);
}

.chat-line,
.gift-badge {
  position: relative;
  z-index: 1;
  border: 4px solid var(--black);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 7px 7px 0 var(--black);
}

.chat-line {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 14px 16px;
  font-size: 1.05rem;
}

.chat-line-dark {
  color: var(--yellow);
  background: var(--black);
}

.chat-line-yellow {
  margin-left: auto;
  background: var(--yellow);
}

.gift-badge {
  display: grid;
  width: 176px;
  height: 116px;
  margin: 58px auto 0;
  place-items: center;
  background: var(--yellow);
  font-size: 2.45rem;
  transform: rotate(-4deg);
}

.steps-section,
.form-section {
  margin-top: 18px;
  padding: 24px 18px;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--black);
}

h2 {
  margin-bottom: 18px;
  color: var(--black);
  font-size: 1.45rem;
  line-height: 1.3;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--soft);
  border: 2px solid var(--black);
  border-radius: 8px;
  font-weight: 800;
}

.step-number {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--yellow);
  background: var(--black);
  border-radius: 50%;
  font-weight: 900;
}

.gift-form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 50px;
  margin-bottom: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--soft);
  border: 2px solid var(--black);
  border-radius: 8px;
  font: inherit;
}

.form-message {
  min-height: 28px;
  margin: 8px 0 0;
  color: var(--black);
  font-weight: 900;
}

.form-message.is-visible {
  padding: 12px;
  background: var(--yellow);
  border: 2px solid var(--black);
  border-radius: 8px;
}

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

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: 44px;
  }

  .cta-button {
    width: auto;
    min-width: 260px;
    padding-inline: 26px;
  }

  .steps-section,
  .form-section {
    padding: 30px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps li {
    align-items: flex-start;
    min-height: 132px;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1.08rem;
  }

  .gift-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
  }

  .gift-form label {
    grid-row: 1;
  }

  .gift-form input {
    grid-row: 2;
  }

  .submit-button {
    grid-column: 1 / -1;
    width: min(100%, 320px);
  }

  .form-message {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: 72vh;
  }
}
