:root {
  color-scheme: light;
  --ink: #17172b;
  --muted: #616175;
  --paper: #fffdf8;
  --soft: #f4f3ff;
  --line: #dddaf2;
  --theme-light: #5856D6;
  --theme-dark: #989FFF;
  --coral: #e95e50;
  --wood: #9a643e;
  --gold: #d8972d;
  --shadow: 0 18px 48px rgba(23, 23, 43, 0.16);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  background: #181742;
  color: #fffdf8;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("assets/teak-hero.png");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.02);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(18, 17, 54, 0.9) 0%, rgba(18, 17, 54, 0.72) 38%, rgba(18, 17, 54, 0.2) 100%),
    linear-gradient(0deg, rgba(18, 17, 54, 0.34) 0%, rgba(18, 17, 54, 0) 46%);
}

.nav {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav__link {
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(255, 253, 248, 0.08);
  backdrop-filter: blur(12px);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 10vw, 116px) 0 clamp(48px, 7vw, 84px);
}

.eyebrow,
.section__kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffbf82;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
}

.hero__actions,
.mailbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button:focus-visible,
.nav__link:focus-visible,
.brand:focus-visible,
.mailbox__address:focus-visible {
  outline: 3px solid rgba(88, 86, 214, 0.45);
  outline-offset: 3px;
}

.button--primary {
  background: #fffdf8;
  color: var(--theme-light);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.button--secondary {
  color: #fffdf8;
  border: 1px solid rgba(255, 253, 248, 0.5);
  background: rgba(255, 253, 248, 0.1);
}

.button--copy {
  background: #fffdf8;
  color: var(--theme-light);
}

.button--mail {
  color: #fffdf8;
  border: 1px solid rgba(255, 253, 248, 0.42);
}

.section {
  padding: clamp(54px, 8vw, 96px) 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  background: #181742;
  color: #fffdf8;
}

.section__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section__heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.section__heading p,
.intro p,
.redeem p {
  color: var(--muted);
}

.section--dark .section__kicker {
  color: #ffbf82;
}

.section--dark p {
  color: rgba(255, 253, 248, 0.76);
}

.intro {
  padding-top: clamp(40px, 6vw, 70px);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro__grid p:last-child {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rule {
  min-height: 162px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.75);
  box-shadow: 0 10px 24px rgba(23, 23, 43, 0.06);
}

.rule p,
.reward p {
  margin-bottom: 0;
  color: var(--muted);
}

.rule__badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.rule__badge--ok {
  background: var(--theme-light);
}

.rule__badge--no {
  background: var(--coral);
}

.rule--warning {
  border-color: rgba(233, 94, 80, 0.24);
  background: rgba(255, 246, 242, 0.78);
}

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

.reward {
  position: relative;
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 23, 43, 0.08);
}

.reward__metric {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(88, 86, 214, 0.11);
  color: var(--theme-light) !important;
  font-size: 0.88rem;
  font-weight: 900;
}

.reward h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--ink);
}

.reward--featured {
  border-color: rgba(88, 86, 214, 0.35);
  box-shadow: var(--shadow);
}

.reward--gold {
  border-color: rgba(216, 151, 45, 0.42);
  background: #fffaf0;
}

.reward--gold .reward__metric {
  background: rgba(216, 151, 45, 0.16);
  color: #7c5216 !important;
}

.redeem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
}

.mailbox {
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.mailbox__label {
  margin-bottom: 8px;
  color: rgba(255, 253, 248, 0.62) !important;
  font-size: 0.84rem;
  font-weight: 800;
}

.mailbox__address {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 20px;
  color: #fffdf8;
  font-size: clamp(1.14rem, 3vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mailbox__hint {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.footer {
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  background: #f0ebe3;
  font-size: 0.9rem;
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .hero {
    min-height: 78svh;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(18, 17, 54, 0.86) 0%, rgba(18, 17, 54, 0.7) 52%, rgba(18, 17, 54, 0.46) 100%),
      linear-gradient(0deg, rgba(18, 17, 54, 0.24), rgba(18, 17, 54, 0));
  }

  .hero__media {
    background-position: 64% center;
  }

  .intro__grid,
  .rules,
  .rewards,
  .redeem {
    grid-template-columns: 1fr;
  }

  .rules,
  .rewards {
    gap: 12px;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }

  .nav {
    width: min(100% - 24px, 1120px);
    padding-top: 16px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .nav__link {
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  .hero__content,
  .section__inner {
    width: min(100% - 24px, 1120px);
  }

  .hero__content {
    padding-bottom: 42px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11vw, 3.05rem);
    line-height: 1.02;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .rule {
    min-height: auto;
    padding: 18px;
  }

  .reward {
    min-height: 178px;
    padding: 22px;
  }

  .mailbox {
    padding: 22px;
  }
}
