:root {
  --bg: #070707;
  --panel: rgba(18, 18, 20, 0.86);
  --panel-strong: rgba(28, 25, 20, 0.94);
  --gold: #f6c650;
  --gold-strong: #ffdf7b;
  --text: #f7f3e8;
  --muted: #b9af9b;
  --line: rgba(246, 198, 80, 0.22);
  --success: #44d07b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(246, 198, 80, 0.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(124, 92, 20, 0.28), transparent 24rem),
    linear-gradient(145deg, #050505, #11100d 52%, #050505);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

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

.hero {
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 223, 123, 0.5);
  border-radius: 50%;
  color: #12100a;
  background: linear-gradient(135deg, var(--gold-strong), #bc7d16);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.topbar strong {
  display: block;
  letter-spacing: 0.08em;
}

.topbar span,
.hero-copy p,
.signal-card p,
.section-heading p,
#content-kicker {
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-strong) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.secondary-action,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-action {
  color: #171103;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  font-weight: 900;
}

.secondary-action,
.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-button:hover,
.menu-card:hover {
  transform: translateY(-2px);
}

.signal-card {
  position: relative;
  align-self: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(246, 198, 80, 0.18), transparent 42%),
    var(--panel-strong);
}

.pulse {
  width: 12px;
  height: 12px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 10px rgba(68, 208, 123, 0.12);
}

.mini-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-card h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.metric-row div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--gold-strong);
  font-size: 1.35rem;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

main {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  margin-top: 22px;
}

.menu-panel,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.menu-panel {
  padding: 24px;
}

.section-heading p,
#content-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.content-header h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.menu-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.menu-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-card span {
  color: var(--gold-strong);
}

.content-panel {
  min-height: 520px;
  padding: 24px;
}

.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.content-body {
  padding-top: 20px;
}

.text-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.20);
}

.text-card pre {
  margin: 0;
  color: #f8f2df;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.96rem/1.62 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cart-card {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 0.7fr 1.1fr 0.9fr 0.9fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.cart-item strong,
.cart-item b {
  color: var(--gold-strong);
}

.cart-item span {
  color: var(--muted);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(246, 198, 80, 0.28);
  border-radius: 20px;
  background: rgba(246, 198, 80, 0.08);
}

.cart-total span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cart-total strong {
  color: var(--gold-strong);
  font-size: 1.5rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-list {
  display: grid;
  gap: 12px;
}

.quantity-form {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(246, 198, 80, 0.20);
  border-radius: 18px;
  background: rgba(246, 198, 80, 0.06);
}

.quantity-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-strong);
  font-weight: 800;
}

.quantity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.quantity-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  outline: none;
}

.quantity-row input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 198, 80, 0.12);
}

.notice {
  color: var(--muted);
  line-height: 1.7;
}

.version-note {
  margin: 18px 0 0;
  color: rgba(185, 175, 155, 0.62);
  font-size: 0.74rem;
  text-align: right;
}

.loading,
.error {
  color: var(--muted);
}

.error {
  border-color: rgba(255, 90, 90, 0.35);
}

@media (max-width: 920px) {
  .hero-grid,
  main {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 30px 22px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .hero,
  .menu-panel,
  .content-panel {
    border-radius: 22px;
  }

  .content-header {
    display: grid;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .quantity-row {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }
}
.pix-form {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.pix-form input,
.pix-copy {
  width: 100%;
  border: 1px solid rgba(255, 214, 102, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  box-sizing: border-box;
}

.pix-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--gold);
  font-weight: 800;
}

.pix-copy {
  min-height: 130px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
}

.pix-qrcode {
  display: block;
  max-width: 240px;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  margin: 18px auto;
}
.field-help {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.pix-status-box {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 214, 102, 0.25);
  border-radius: 16px;
  color: var(--gold);
  background: rgba(255, 214, 102, 0.06);
  font-weight: 800;
}

.pix-delivery {
  margin-top: 22px;
}

.pix-delivery h3 {
  margin: 0 0 12px;
  color: var(--gold);
}

.delivery-card {
  margin: 14px 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.game-line {
  margin: 10px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
}

.delivery-card details {
  margin-top: 12px;
  color: var(--muted);
}

.delivery-card summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 800;
}

/* Mobile app preview */
@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at top, rgba(246, 198, 80, 0.12), transparent 34%),
      #050505;
  }

  .page-shell {
    width: 100%;
    padding: 0 0 28px;
  }

  .hero {
    margin: 0;
    border-radius: 0 0 28px 28px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .topbar {
    padding: 14px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    font-size: 0.9rem;
  }

  .topbar strong {
    font-size: 1rem;
  }

  .topbar span {
    font-size: 0.8rem;
  }

  .hero-grid {
    padding: 18px 16px 22px;
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .hero-copy p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-actions,
  .cart-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .primary-action,
  .secondary-action,
  .ghost-button {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  .signal-card {
    padding: 18px;
    border-radius: 22px;
  }

  .signal-card h2 {
    font-size: 1.35rem;
  }

  main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
    padding: 0 10px;
  }

  .menu-panel,
  .content-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .menu-panel {
    order: 1;
  }

  .content-panel {
    order: 2;
    min-height: auto;
  }

  .section-heading h2,
  .content-header h2 {
    font-size: 1.55rem;
  }

  .menu-grid,
  .choice-list {
    gap: 12px;
  }

  .menu-card {
    min-height: 58px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 1rem;
  }

  .content-header {
    display: grid;
    gap: 14px;
  }

  .content-body pre,
  .text-card pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .text-card,
  .cart-card,
  .delivery-card {
    border-radius: 20px;
    padding: 16px;
  }

  .quantity-form {
    padding: 14px;
    border-radius: 18px;
  }

  .pix-form input,
  .pix-copy {
    min-height: 50px;
    font-size: 1rem;
  }

  .game-line {
    font-size: 1rem;
    letter-spacing: 0.04em;
    line-height: 1.8;
  }

  .version-note {
    text-align: center;
    margin-top: 16px;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .menu-card {
    font-size: 0.96rem;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .metric-row div {
    padding: 12px;
  }
}

.content-panel--active {
  animation: contentPulse 1.2s ease;
  box-shadow: 0 0 0 3px rgba(246, 198, 80, 0.24), 0 24px 80px rgba(246, 198, 80, 0.08);
}

@keyframes contentPulse {
  0% {
    transform: translateY(0);
    border-color: rgba(246, 198, 80, 0.22);
  }
  35% {
    transform: translateY(-3px);
    border-color: rgba(246, 198, 80, 0.75);
  }
  100% {
    transform: translateY(0);
    border-color: var(--line);
  }
}
