:root {
  --plum: #27072f;
  --plum-2: #481354;
  --ink: #211627;
  --muted: #736878;
  --gold: #f7b718;
  --gold-soft: #fff2c8;
  --paper: #f7f3f8;
  --white: #fff;
  --line: #e9e0ec;
  --shadow: 0 18px 48px rgba(54, 12, 61, .13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

.shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 14%, rgba(225, 64, 114, .36), transparent 28%),
    linear-gradient(145deg, #7b002f 0%, #4c083d 42%, #23052d 100%);
}

.hero::after {
  position: absolute;
  inset: auto -10% -190px;
  height: 300px;
  content: "";
  border-radius: 50%;
  background: #e50318;
  transform: rotate(-4deg);
}

.hero__glow {
  position: absolute;
  border: 1px solid rgba(247, 183, 24, .55);
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--one {
  width: 520px;
  height: 520px;
  top: -305px;
  right: -90px;
}

.hero__glow--two {
  width: 380px;
  height: 380px;
  top: -230px;
  right: -20px;
}

.hero__dots {
  position: absolute;
  top: 105px;
  right: 7vw;
  width: 150px;
  height: 120px;
  opacity: .55;
  background-image: radial-gradient(var(--gold) 2px, transparent 2px);
  background-size: 21px 21px;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
}

.festival-badge {
  width: 210px;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}

.share-portal {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: var(--white);
  background: rgba(42, 6, 50, .42);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.share-portal svg {
  width: 18px;
  fill: currentColor;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 42px 0 130px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
}

.eyebrow--dark {
  color: #a20b4b;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(44px, 8vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero__copy {
  max-width: 600px;
  margin-bottom: 34px;
  color: #eddcea;
  font-size: clamp(17px, 3.4vw, 22px);
  line-height: 1.5;
}

.hero__stats {
  display: flex;
  width: fit-content;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(37, 4, 44, .45);
  backdrop-filter: blur(12px);
}

.hero__stats div {
  display: grid;
  min-width: 132px;
  padding: 15px 20px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.hero__stats div:last-child {
  border-right: 0;
}

.hero__stats strong {
  color: var(--gold);
  font-size: 22px;
}

.hero__stats span {
  color: #eaddea;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.controls {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(105, 76, 110, .09);
  background: rgba(247, 243, 248, .92);
  backdrop-filter: blur(18px);
}

.controls .shell {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.search {
  display: flex;
  width: min(430px, 100%);
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 7px 22px rgba(49, 14, 53, .05);
}

.search svg {
  width: 21px;
  flex: 0 0 auto;
  fill: #8a798d;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.filter-row {
  display: flex;
  gap: 8px;
}

.filter {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--plum);
  color: var(--white);
  background: var(--plum);
}

.offers {
  padding-top: 56px;
  padding-bottom: 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -.035em;
}

.result-count {
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.offer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 30px rgba(48, 13, 53, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 9 / 13.7;
  overflow: hidden;
  background: #2c0a35;
}

.cover-link::after {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  content: "";
  background: linear-gradient(transparent, rgba(28, 4, 34, .35));
}

.cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.offer-card:hover .cover-link img {
  transform: scale(1.02);
}

.offer-card__content {
  padding: 18px;
}

.offer-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.offer-card__topline h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-tag {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.offer-value {
  margin-bottom: 15px;
  color: #b10d4c;
  font-size: 13px;
  font-weight: 800;
}

.offer-card__actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 9px;
}

.open-guide,
.share-guide {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  text-decoration: none;
  cursor: pointer;
}

.open-guide {
  gap: 8px;
  color: var(--white);
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.open-guide svg,
.share-guide svg {
  width: 17px;
  fill: currentColor;
}

.share-guide {
  color: var(--brand);
  background: var(--brand-soft);
}

.download-guide {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.download-guide:hover {
  color: var(--brand);
}

.empty-state {
  padding: 70px 20px;
  border: 1px dashed #d5c8d8;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.help {
  padding-bottom: 72px;
}

.help__card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border: 1px solid #eadca9;
  border-radius: 22px;
  background: var(--gold-soft);
}

.help__icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: var(--plum);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.help h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.help p {
  margin-bottom: 0;
  color: #605044;
  font-size: 14px;
  line-height: 1.55;
}

footer {
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom));
  color: #e6d8e8;
  background: var(--plum);
  text-align: center;
}

footer strong {
  color: var(--gold);
}

footer p {
  max-width: 680px;
  margin: 10px auto 0;
  font-size: 12px;
  line-height: 1.6;
}

footer .updated {
  color: #bca8c0;
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 940px) {
  .offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 520px;
  }

  .nav {
    min-height: 82px;
  }

  .festival-badge {
    width: 172px;
  }

  .share-portal span {
    display: none;
  }

  .share-portal {
    width: 46px;
    justify-content: center;
    padding: 0;
  }

  .hero__content {
    padding-top: 46px;
    padding-bottom: 130px;
  }

  .hero__stats {
    width: 100%;
  }

  .hero__stats div {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
    text-align: center;
  }

  .controls {
    position: relative;
  }

  .controls .shell {
    display: block;
    padding: 18px 0;
  }

  .search {
    width: 100%;
    margin-bottom: 12px;
  }

  .filter-row {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
  }

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

  .offer-card__content {
    padding: 14px;
  }

  .offer-card__topline {
    display: block;
  }

  .offer-card__topline h3 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .type-tag {
    display: inline-block;
  }
}

@media (max-width: 460px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    min-height: 500px;
  }

  .hero__content {
    padding-top: 36px;
  }

  h1 {
    font-size: 47px;
  }

  .hero__copy {
    max-width: 330px;
    font-size: 17px;
  }

  .hero__stats strong {
    font-size: 19px;
  }

  .hero__stats span {
    font-size: 9px;
  }

  .offers {
    padding-top: 42px;
  }

  .section-heading {
    align-items: start;
  }

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

  .result-count {
    padding-top: 28px;
    white-space: nowrap;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .offer-card {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 270px;
  }

  .cover-link {
    height: 100%;
    aspect-ratio: auto;
  }

  .offer-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
  }

  .offer-card__topline h3 {
    white-space: normal;
  }

  .offer-card__actions {
    grid-template-columns: 1fr 42px;
  }

  .open-guide {
    font-size: 11px;
  }

  .help__card {
    align-items: flex-start;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
