:root {
  color-scheme: dark;
  --bg: #050b0d;
  --surface: #0d1518;
  --surface-2: #142025;
  --surface-soft: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(0,214,191,.34);
  --text: #f8fafc;
  --muted: #a8b5ba;
  --subtle: #718188;
  --green: #2ed47a;
  --teal: #00d6bf;
  --danger: #ff5a65;
  --warning: #f6b93b;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 34px 110px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(46,212,122,.16), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(0,214,191,.11), transparent 28%),
    linear-gradient(135deg, #050b0d 0%, #0a1115 52%, #071715 100%);
  font-family: Inter, Aptos, "Segoe UI", Roboto, Arial, sans-serif;
}

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

.page {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 52px;
}

.page::before,
.page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.page::before {
  width: 620px;
  height: 620px;
  right: -210px;
  top: 70px;
  border: 1px solid rgba(0,214,191,.17);
  transform: rotate(37deg);
}

.page::after {
  width: 760px;
  height: 760px;
  left: -400px;
  bottom: -430px;
  border: 1px solid rgba(46,212,122,.12);
  transform: rotate(-18deg);
}

.topbar,
.hero,
.shell,
.stage-footer {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  font-size: 14px;
  font-weight: 750;
}

.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 72px;
  align-items: center;
}

.hero.wide {
  grid-template-columns: 1fr;
  min-height: auto;
  padding: 24px 0 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #8df4cb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--teal);
}

h1 {
  max-width: 780px;
  margin: 20px 0 0;
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: .94;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

h3 { margin: 0; font-size: 20px; line-height: 1.2; }

p {
  color: var(--muted);
  line-height: 1.45;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 21px;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
}

.panel {
  padding: 26px;
}

.geo-panel {
  position: relative;
  border-color: var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.button,
button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  padding: 0 20px;
  color: #06140e;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

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

.button.danger,
button.danger { color: #fff; background: #b42318; }

label {
  display: grid;
  gap: 8px;
  color: #e9f6f2;
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(255,255,255,.075);
  font: inherit;
  outline: 0;
}

select {
  color-scheme: dark;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8b5ba' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

select option,
select optgroup {
  background-color: #101c20;
  color: #f8fafc;
}

textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(0,214,191,.62); }

:where(a, button, .button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; }
.full { grid-column: 1 / -1; }

.status { min-height: 22px; color: var(--muted); font-size: 14px; }
.status.error { color: var(--danger); }
.status.success { color: #8df4cb; }

.qr-card {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
}

.qr-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
}

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

.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--subtle);
  font-size: 13px;
}

.line {
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,214,191,.65), transparent);
}

.hidden { display: none !important; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page { width: min(100% - 28px, 1240px); padding-top: 24px; }
  .topbar, .stage-footer { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 40px; }
  .lead { font-size: 18px; }
  .panel { padding: 20px; }
}

