:root {
  color-scheme: dark;
  --bg: #10120b;
  --surface: rgba(36, 41, 26, 0.9);
  --surface-solid: #24291a;
  --text: #e4e4d0;
  --muted: #a2a875;
  --line: rgba(162, 168, 117, 0.28);
  --accent: #59653a;
  --accent-strong: #3b4428;
  --highlight: #a2a875;
  --radius: 8px;
  --page-pad: 56px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(16, 18, 11, 0.95) 0%, rgba(16, 18, 11, 0.78) 43%, rgba(16, 18, 11, 0.32) 100%),
    linear-gradient(180deg, rgba(16, 18, 11, 0.18) 0%, rgba(16, 18, 11, 0.72) 100%),
    url("tf133-background-v2.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 1fr auto;
  padding-inline: var(--page-pad);
}

.hero {
  display: grid;
  width: min(1180px, 100%);
  margin: auto;
  grid-template-columns: minmax(0, 1fr) 378px;
  gap: 92px;
  align-items: center;
  padding-block: 64px;
}

.intro {
  max-width: 660px;
}

.eyebrow,
.qr-label {
  margin: 0 0 18px;
  color: var(--highlight);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 76px;
  font-weight: 800;
  line-height: 1.02;
}

.lead {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.55;
}

.invite-link {
  display: flex;
  min-height: 50px;
  align-items: center;
  margin-top: 34px;
  padding: 0 16px;
  overflow: hidden;
  border-left: 3px solid var(--accent);
  background: rgba(36, 41, 26, 0.72);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  white-space: nowrap;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 22px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--text);
}

.button-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(16, 18, 11, 0.74);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(162, 168, 117, 0.55);
  background: rgba(59, 68, 40, 0.88);
}

.button:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.privacy-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.qr-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 75px rgba(16, 18, 11, 0.55);
  backdrop-filter: blur(18px);
}

.qr-header,
.qr-footer {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.qr-header {
  border-bottom: 1px solid var(--line);
}

.qr-header .qr-label {
  margin: 0;
  color: var(--muted);
}

.qr-number {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.qr-code {
  display: block;
  width: calc(100% - 44px);
  height: auto;
  margin: 22px;
  border-radius: 4px;
  background: var(--text);
}

.qr-footer {
  min-height: 76px;
  border-top: 1px solid var(--line);
}

.qr-footer h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.qr-footer p {
  margin: 0;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.scan-corner {
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  min-width: 150px;
  border: 1px solid var(--highlight);
  border-radius: var(--radius);
  padding: 13px 16px;
  background: var(--surface-solid);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root {
    --page-pad: 30px;
  }

  body {
    background-position: 40% center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 38px;
  }

  h1 {
    font-size: 62px;
  }

  .lead {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 20px;
  }

  body {
    background-image:
      linear-gradient(180deg, rgba(16, 18, 11, 0.72) 0%, rgba(16, 18, 11, 0.97) 72%),
      url("tf133-background-v2.png");
    background-attachment: scroll;
    background-position: 35% top;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 48px;
  }

  .intro {
    max-width: none;
  }

  h1 {
    font-size: 52px;
  }

  .lead {
    margin-top: 20px;
    font-size: 17px;
  }

  .invite-link {
    margin-top: 28px;
    font-size: 12px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .qr-panel {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .footer {
    min-height: 58px;
  }
}

@media (max-width: 390px) {
  .invite-link {
    padding-inline: 12px;
    font-size: 11px;
  }

  .qr-footer p {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
