:root {
  --bg: #f7f0e8;
  --bg-strong: #fffaf4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #1b1f3b;
  --muted: #5f6482;
  --line: rgba(27, 31, 59, 0.12);
  --brand: #d9485f;
  --brand-alt: #ffb703;
  --mint: #1f8a70;
  --shadow: 0 24px 70px rgba(31, 33, 61, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 183, 3, 0.32), transparent 28%),
    radial-gradient(circle at top right, rgba(217, 72, 95, 0.24), transparent 30%),
    linear-gradient(180deg, #fff7ef 0%, var(--bg) 100%);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-brand strong,
.site-footer h2,
h2,
h3 {
  font-family: "Fraunces", serif;
  font-weight: 700;
}

.site-brand span {
  display: grid;
}

.site-brand small {
  color: var(--muted);
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-alt) 100%);
  color: #ffffff;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(217, 72, 95, 0.08);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 36px;
}

.hero--compact {
  grid-template-columns: 1.4fr 0.8fr;
}

.hero__copy,
.hero__panel,
.section,
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero__copy {
  padding: 44px;
}

.hero__panel {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 183, 3, 0.14) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.hero__panel--thin {
  padding: 24px;
}

.eyebrow,
.pill,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(217, 72, 95, 0.1);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.hero__summary {
  max-width: 62ch;
  margin: 0;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero__metrics,
.mini-metrics,
.card-grid,
.quick-link-grid,
.faq-list,
.footer-links {
  display: grid;
  gap: 16px;
}

.hero__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.metric-card,
.mini-metric,
.content-card,
.quick-link,
.faq-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.metric-card,
.mini-metric {
  padding: 18px;
}

.metric-card span,
.mini-metric span,
.quick-link span,
.muted,
.panel-note,
.section-heading p {
  color: var(--muted);
}

.metric-card strong,
.mini-metric strong,
.quick-link strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.panel-list,
.bullet-list,
.number-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.panel-note {
  margin-top: 24px;
  font-size: 0.92rem;
}

.section {
  padding: 34px;
  margin-bottom: 24px;
}

.section--accent {
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.14) 0%, rgba(255, 255, 255, 0.84) 100%);
}

.section--archive {
  background:
    radial-gradient(circle at top left, rgba(201, 34, 34, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(230, 232, 236, 0.92) 0%, rgba(248, 248, 250, 0.96) 100%);
}

.section--spotlight {
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 183, 3, 0.26), transparent 32%),
    radial-gradient(circle at bottom right, rgba(31, 138, 112, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(217, 72, 95, 0.92) 0%, rgba(247, 164, 34, 0.94) 52%, rgba(31, 138, 112, 0.88) 100%);
  color: #fffaf6;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 24px;
  padding: 34px;
}

.spotlight h2 {
  margin: 16px 0 12px;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.spotlight p {
  max-width: 56ch;
  margin: 0;
  color: rgba(255, 250, 246, 0.88);
  font-size: 1.04rem;
}

.spotlight__meta,
.spotlight__stats {
  display: grid;
  gap: 12px;
}

.spotlight__meta {
  grid-template-columns: repeat(2, max-content);
  margin-top: 22px;
}

.spotlight__signal,
.spotlight__stat {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.spotlight__signal {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.spotlight__stats {
  align-content: center;
}

.spotlight__stat {
  padding: 18px 20px;
}

.spotlight__stat span {
  display: block;
  color: rgba(255, 250, 246, 0.72);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spotlight__stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
  color: #ffffff;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
}

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

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

.content-card,
.faq-item {
  padding: 22px;
}

.expired-card {
  padding: 22px;
  border: 1px solid rgba(185, 28, 28, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(27, 31, 59, 0.05);
}

.expired-card__top,
.expired-card__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.expired-card__top {
  margin-bottom: 16px;
}

.expired-card__note {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.expired-card__code {
  margin-bottom: 18px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge--expired {
  background: #c1121f;
  color: #ffffff;
}

.expired-card__rewards {
  margin: 0;
  padding-left: 20px;
}

.expired-card__rewards li + li {
  margin-top: 6px;
}

.content-card h3,
.faq-item h3 {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.quick-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-link {
  display: block;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-link:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 72, 95, 0.2);
  box-shadow: 0 16px 40px rgba(27, 31, 59, 0.08);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-strong);
}

tbody tr:hover {
  background: rgba(217, 72, 95, 0.04);
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(27, 31, 59, 0.04);
}

.table-cell-code {
  min-width: 280px;
}

.code-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(27, 31, 59, 0.92), rgba(69, 78, 122, 0.88));
  color: #fffaf6;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.code-pill--expired {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.88), rgba(156, 163, 175, 0.84));
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(31, 138, 112, 0.18);
  border-radius: 999px;
  background: rgba(31, 138, 112, 0.08);
  color: var(--mint);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 138, 112, 0.32);
  background: rgba(31, 138, 112, 0.14);
}

.copy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.copy-button[data-state="copied"] {
  background: rgba(31, 138, 112, 0.18);
  border-color: rgba(31, 138, 112, 0.38);
}

.copy-button[data-state="error"] {
  background: rgba(217, 72, 95, 0.12);
  border-color: rgba(217, 72, 95, 0.34);
  color: var(--brand);
}

.copy-button--expired {
  border-color: rgba(193, 18, 31, 0.18);
  background: rgba(193, 18, 31, 0.06);
  color: #b91c1c;
}

.copy-button--expired:hover {
  border-color: rgba(193, 18, 31, 0.34);
  background: rgba(193, 18, 31, 0.12);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 30px 32px;
  margin-top: 24px;
}

.footer-links {
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .hero--compact,
  .site-footer,
  .spotlight {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__metrics,
  .card-grid,
  .expired-grid,
  .quick-link-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 12px;
  }

  .site-header {
    border-radius: 28px;
    padding: 16px;
  }

  .hero__copy,
  .hero__panel,
  .section,
  .site-footer {
    padding: 24px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
  }

  .spotlight__meta {
    grid-template-columns: 1fr;
  }

  .code-cell {
    flex-wrap: wrap;
  }

  .expired-card__top,
  .expired-card__code {
    align-items: flex-start;
    flex-direction: column;
  }

  .expired-card__note {
    text-align: left;
  }

  .code-pill {
    white-space: normal;
    word-break: break-word;
  }
}
