:root {
  color-scheme: light dark;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-strong: #eef3f0;
  --text: #17201c;
  --muted: #5b6862;
  --border: #d9e1dd;
  --accent: #0f766e;
  --accent-strong: #124f4a;
  --focus: #b45309;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.09);
  --radius: 8px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101613;
    --surface: #17201c;
    --surface-strong: #1f2b26;
    --text: #eef3f0;
    --muted: #aab8b1;
    --border: #33433d;
    --accent: #5eead4;
    --accent-strong: #99f6e4;
    --focus: #facc15;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.nav {
  display: flex;
  width: min(100% - 2rem, var(--max));
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
}

.brand,
.nav a,
.text-link,
.language-row a {
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links,
.action-row,
.status-row,
.language-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.nav-links a,
.language-row a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.45rem 0.6rem;
}

.nav-links a:hover,
.language-row a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

.nav-strong {
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero,
.section,
.qr-shell {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 28rem;
  align-items: center;
  padding: 5rem 0 3rem;
}

.hero-gateway {
  min-height: 32rem;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.lead {
  max-width: 58rem;
  color: var(--muted);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.45;
}

.section {
  padding: 2rem 0 5rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card,
.qr-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card p:last-child,
.qr-card p:last-child {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 0.4rem 0.7rem;
}

.chip.muted {
  color: var(--muted);
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button.pending {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--muted);
}

.button.full {
  width: 100%;
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.qr-page {
  min-height: 100vh;
}

.qr-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem 0;
}

.qr-card {
  width: min(100%, 34rem);
  padding: clamp(1.4rem, 5vw, 2.4rem);
}

.qr-card h1 {
  font-size: clamp(2.4rem, 10vw, 4.5rem);
}

.qr-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 0;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0 2rem;
  }

  .cards-2,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .action-row .button {
    width: 100%;
  }
}
