:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  background: #061225;
  color: #fff8e7;
  --gold: #c8a14a;
  --gold-light: #f0cf79;
  --panel: rgba(8, 25, 53, 0.92);
  --line: rgba(200, 161, 74, 0.34);
  --muted: #cfc7b4;
  --green: #70d49b;
  --blue: #7bb7ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 8%, rgba(233, 201, 102, 0.18), transparent 15%),
    radial-gradient(circle at 10% 90%, rgba(191, 142, 45, 0.16), transparent 22%),
    linear-gradient(150deg, #10284b 0%, #081a37 44%, #040d1d 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 36px);
  border-bottom: 1px solid rgba(200, 161, 74, 0.28);
  background: rgba(5, 18, 38, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.wordmark,
.partner-link,
.nav-links a,
#venueQrLink {
  color: inherit;
  text-decoration: none;
}

.wordmark span,
.copy,
.hint,
label,
#brandMeta,
footer,
.mini-label,
.offer-box span {
  color: var(--muted);
}

.wordmark span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.menu-button {
  display: none;
}

main {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 36px) 48px;
  display: grid;
  gap: 18px;
}

.hero {
  min-height: 52vh;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(20px, 5vw, 48px);
  padding: 18px 0 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 19px;
  margin-bottom: 14px;
}

.copy {
  max-width: 690px;
  margin-top: 16px;
  line-height: 1.6;
  font-size: 17px;
}

.panel,
.id-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px;
}

.id-panel {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.id-panel h2 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.02;
  margin: 12px 0 8px;
}

.offer-box {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 248, 231, 0.14);
}

.offer-box strong {
  color: var(--green);
  font-size: 20px;
  line-height: 1.25;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 18px;
}

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

.steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
  color: #fff8e7;
  line-height: 1.48;
}

.qr-card {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.business-profile {
  display: grid;
  gap: 14px;
  align-content: start;
}

.business-profile h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 4vw, 34px);
}

.business-profile p {
  line-height: 1.5;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-links a {
  min-height: 34px;
  border: 1px solid rgba(255, 248, 231, 0.16);
  border-radius: 8px;
  color: #fff8e7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 248, 231, 0.05);
}

.promo-section {
  display: grid;
  gap: 12px;
}

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

.promo-card {
  border: 1px solid rgba(255, 248, 231, 0.14);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: rgba(255, 248, 231, 0.04);
}

.promo-card h3 {
  margin: 4px 0 0;
  font-size: 19px;
  line-height: 1.2;
}

.promo-card p {
  line-height: 1.45;
}

.coupon-code {
  width: fit-content;
  border: 1px solid rgba(112, 212, 155, 0.42);
  border-radius: 8px;
  color: #0d1c13;
  background: var(--green);
  padding: 8px 10px;
  font-size: 18px;
}

.promo-actions {
  display: grid;
  gap: 8px;
}

.promo-actions span {
  color: var(--muted);
  font-size: 13px;
}

.qr-card img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

#venueQrLink {
  color: var(--blue);
  overflow-wrap: anywhere;
  line-height: 1.3;
}

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

.partner-link {
  min-height: 112px;
  border: 1px solid rgba(255, 248, 231, 0.14);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  background: rgba(255, 248, 231, 0.04);
}

.partner-link strong {
  font-size: 18px;
}

.partner-link span {
  color: var(--muted);
  line-height: 1.35;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

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

input {
  min-height: 46px;
  border: 1px solid rgba(255, 248, 231, 0.18);
  border-radius: 8px;
  background: #07162f;
  color: #fff8e7;
  padding: 0 12px;
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

button,
.secondary,
.button-link {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

button,
.button-link {
  background: var(--gold);
  color: #120f07;
}

.secondary {
  border-color: rgba(200, 161, 74, 0.52);
  color: #fff8e7;
}

output {
  display: block;
  margin-top: 14px;
  color: var(--green);
  line-height: 1.45;
}

.result {
  min-height: 44px;
}

.result strong,
.result span,
.result small {
  display: block;
}

.result strong {
  font-size: 26px;
}

.result small {
  margin-top: 6px;
  color: var(--muted);
}

.warning {
  color: #f6b26b;
}

.scanner-panel,
.tool-panel {
  display: grid;
  gap: 14px;
}

video {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

code {
  color: #f1cd72;
}

footer {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px) 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .hero,
  .section-grid,
  .portal-grid,
  .tool-grid,
  .partner-list,
  .promo-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
  }

  .nav-links[data-open] {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .id-panel {
    min-height: 240px;
  }
}
