:root {
  color-scheme: light;
  --deep-purple: #4b145f;
  --brand-purple: #6f2a8b;
  --lavender: #d9b8f2;
  --cream: #fff7ea;
  --cream-soft: #fffaf2;
  --soft-pink: #f6e6f1;
  --text-dark: #211629;
  --accent-yellow: #f7d84a;
  --facebook-blue: #1877f2;
  --nidin-yellow: #fdce22;
  --muted: rgba(33, 22, 41, 0.68);
  --purple-border: rgba(111, 42, 139, 0.25);
  --purple-shadow: 0 8px 24px rgba(65, 18, 90, 0.18);
  --large-shadow: 0 24px 60px rgba(65, 18, 90, 0.2);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--text-dark);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--soft-pink) 56%, #f9eff7 100%);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.hero {
  position: relative;
  min-height: min(28rem, 54vh);
  display: grid;
  align-content: end;
  gap: 1.25rem;
  overflow: hidden;
  border-radius: 0 0 1.75rem 1.75rem;
  color: var(--cream-soft);
  background: var(--deep-purple);
  box-shadow: var(--large-shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(75, 20, 95, 0.12) 0%, rgba(75, 20, 95, 0.42) 42%, rgba(75, 20, 95, 0.9) 100%),
    linear-gradient(90deg, rgba(75, 20, 95, 0.92) 0%, rgba(75, 20, 95, 0.64) 42%, rgba(75, 20, 95, 0.22) 100%);
  pointer-events: none;
}

.brand-bar,
.hero-copy {
  position: relative;
  z-index: 1;
}

.brand-bar {
  position: absolute;
  inset: 1rem 1rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.42rem 0.75rem 0.42rem 0.46rem;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 999px;
  background: rgba(75, 20, 95, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.87rem;
  font-weight: 800;
}

.brand-bar img {
  width: 2rem;
  height: 2rem;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.hero-copy {
  padding: 6.25rem 1.2rem 1.2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  font-size: clamp(2.55rem, 14vw, 6.8rem);
  line-height: 0.94;
  font-weight: 950;
  text-wrap: balance;
}

.lead {
  max-width: 32rem;
  margin-top: 0.75rem;
  color: rgba(255, 250, 242, 0.9);
  font-size: 1rem;
  line-height: 1.66;
}

.links {
  display: grid;
  gap: 0.8rem;
  margin-top: -1rem;
  position: relative;
  z-index: 2;
  padding-inline: 0.85rem;
}

.action {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  align-items: center;
  min-height: 4rem;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(111, 42, 139, 0.16);
  border-radius: 1.1rem;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 8px 18px rgba(65, 18, 90, 0.08);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action:active {
  transform: scale(0.985);
}

.action:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 3px;
}

.action strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}

.action small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.action-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: rgba(217, 184, 242, 0.42);
}

.action-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: var(--brand-purple);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-icon svg path:first-child,
.action-icon svg rect {
  fill: rgba(111, 42, 139, 0.08);
}

.action-review .action-icon {
  background: #ffffff;
}

.action-review .action-icon svg {
  stroke: none;
}

.action-primary {
  grid-template-columns: 3.55rem 1fr;
  min-height: 4.85rem;
  background: var(--cream-soft);
  border-color: var(--purple-border);
  box-shadow: var(--purple-shadow);
}

.action-primary .action-icon {
  width: 3.55rem;
  height: 3.55rem;
  background: #ffffff;
}

.action-primary strong {
  font-size: 1.22rem;
  color: var(--text-dark);
}

.action-primary small {
  color: rgba(33, 22, 41, 0.72);
  font-weight: 700;
}

.action-facebook .action-icon {
  background: rgba(24, 119, 242, 0.1);
}

.action-facebook .action-icon svg,
.action-facebook .action-icon svg path {
  fill: var(--facebook-blue);
  stroke: none;
}

.action-instagram .action-icon {
  background: rgba(217, 184, 242, 0.3);
}

.action-instagram .action-icon svg {
  stroke: url("#instagram-gradient");
}

.action-instagram .action-icon svg rect,
.action-instagram .action-icon svg circle {
  fill: none;
}

.action-instagram .action-icon svg circle:last-child {
  fill: #d62976;
  stroke: none;
}

.action-order {
  background: rgba(111, 42, 139, 0.1);
  color: var(--text-dark);
  border-color: rgba(111, 42, 139, 0.22);
  box-shadow: 0 8px 18px rgba(65, 18, 90, 0.1);
}

.action-order small {
  color: var(--muted);
}

.action-order .action-icon {
  background: var(--nidin-yellow);
}

.action-order .action-icon svg {
  stroke: var(--text-dark);
}

.action-order .action-icon svg path {
  fill: none;
}

.action-review .action-icon svg .google-blue {
  fill: #4285f4;
}

.action-review .action-icon svg .google-green {
  fill: #34a853;
}

.action-review .action-icon svg .google-yellow {
  fill: #fbbc05;
}

.action-review .action-icon svg .google-red {
  fill: #ea4335;
}

.promo,
.story {
  margin-top: clamp(2.2rem, 7vw, 5rem);
  display: grid;
  gap: 1.25rem;
}

.promo {
  padding: 1.25rem;
  border-radius: 1.35rem;
  background: linear-gradient(140deg, var(--brand-purple), var(--deep-purple));
  color: var(--cream-soft);
  overflow: hidden;
}

.promo h2,
.story h2 {
  font-size: clamp(1.7rem, 8vw, 3.8rem);
  line-height: 1.05;
  font-weight: 950;
  text-wrap: balance;
}

.promo p:not(.eyebrow),
.story p:not(.eyebrow) {
  margin-top: 0.75rem;
  max-width: 35rem;
  color: rgba(255, 250, 242, 0.84);
  line-height: 1.75;
}

.promo img {
  width: min(100%, 21rem);
  justify-self: center;
  filter: drop-shadow(0 24px 24px rgba(33, 22, 41, 0.3));
}

.story {
  align-items: center;
}

.story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: var(--large-shadow);
}

.story .eyebrow {
  color: var(--brand-purple);
}

.story p:not(.eyebrow) {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (hover: hover) {
  .action:hover {
    transform: translateY(-2px);
    border-color: rgba(111, 42, 139, 0.3);
    box-shadow: 0 18px 32px rgba(65, 18, 90, 0.14);
  }
}

@media (min-width: 48rem) {
  .hero {
    min-height: 38rem;
    border-radius: 2rem;
  }

  .brand-bar {
    inset: 1.35rem 1.35rem auto;
  }

  .hero-copy {
    padding: 8rem 2rem 2.25rem;
  }

  .links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
    padding-inline: 0;
  }

  .action-primary {
    grid-column: 1 / -1;
  }

  .promo,
  .story {
    grid-template-columns: 1fr minmax(15rem, 0.72fr);
    align-items: center;
  }

  .promo {
    padding: 2rem 2rem 1rem;
  }

  .story {
    grid-template-columns: minmax(17rem, 0.82fr) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

@media (min-width: 68rem) {
  .hero-copy {
    padding-inline: 3rem;
  }

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

  .action {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 11rem;
    padding: 1rem;
  }

  .action-primary {
    grid-column: auto;
  }
}

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