:root {
  --midnight: #0F1219;
  --ink: #161B27;
  --electric: #087BFF;
  --deep-blue: #0756C7;
  --ice: #C8E6FF;
  --off-white: #F7F7F8;
  --muted: #9DA8BA;
  --line: rgba(247, 247, 248, 0.10);
  --line-strong: rgba(247, 247, 248, 0.16);
  --surface: rgba(22, 27, 39, 0.76);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--midnight);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 8%, rgba(8, 123, 255, .12), transparent 30rem),
    radial-gradient(circle at 90% 85%, rgba(7, 86, 199, .10), transparent 28rem),
    var(--midnight);
  color: var(--off-white);
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  opacity: .12;
}

.ambient--one {
  top: -14rem;
  right: -10rem;
  background: var(--electric);
}

.ambient--two {
  bottom: -18rem;
  left: -12rem;
  background: var(--deep-blue);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
}

.card {
  overflow: hidden;
  position: relative;
  padding: clamp(24px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 35%),
    rgba(15, 18, 25, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(24px, 6vw, 54px);
  width: 86px;
  height: 2px;
  background: linear-gradient(90deg, var(--electric), var(--deep-blue));
}

.brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.brand__logo {
  display: block;
  width: min(265px, 60vw);
  border-radius: 15px;
  overflow: hidden;
}

.brand__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.brand__eyebrow,
.identity__kicker,
.tap-panel__label,
.qr-modal__label {
  color: var(--ice);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .19em;
}

.brand__eyebrow {
  padding-top: 8px;
  text-align: right;
  opacity: .72;
}

.identity {
  padding: clamp(58px, 12vw, 96px) 0 38px;
}

.identity__kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 5px rgba(8, 123, 255, .08);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(54px, 13vw, 96px);
  line-height: .91;
  letter-spacing: -.06em;
  font-weight: 700;
}

.role {
  margin: 28px 0 0;
  color: var(--off-white);
  font-size: clamp(17px, 4vw, 21px);
  font-weight: 500;
}

.role span {
  margin: 0 7px;
  color: var(--electric);
}

.intro {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 11px;
  margin-bottom: 34px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--off-white);
  color: var(--midnight);
}

.button--secondary {
  background: rgba(255,255,255,.035);
  border-color: var(--line-strong);
}

.button__icon {
  color: var(--electric);
  font-size: 20px;
  line-height: 1;
}

.button--primary .button__icon {
  color: var(--deep-blue);
}

.links {
  border-top: 1px solid var(--line);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .18s ease, background .18s ease;
}

.link-row:hover {
  padding-left: 8px;
}

.link-row small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.link-row strong {
  font-size: 15px;
  font-weight: 500;
}

.arrow {
  color: var(--electric);
  font-size: 18px;
}

.tap-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  margin-top: 42px;
  padding: 23px;
  border: 1px solid rgba(8, 123, 255, .18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(8, 123, 255, .09), rgba(8, 123, 255, .01) 55%),
    rgba(255,255,255,.02);
}

.tap-panel h2 {
  margin: 8px 0 7px;
  font-size: clamp(23px, 6vw, 31px);
  letter-spacing: -.035em;
}

.tap-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tap-panel p strong {
  color: var(--off-white);
  font-weight: 500;
}

.qr-button {
  width: 100px;
  height: 100px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--off-white);
  cursor: pointer;
  transition: transform .18s ease;
}

.qr-button:hover {
  transform: scale(1.03);
}

.qr-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  color: rgba(247,247,248,.42);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.footer__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.qr-modal {
  width: min(calc(100% - 32px), 390px);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 0;
  background: var(--ink);
  color: var(--off-white);
  box-shadow: var(--shadow);
}

.qr-modal::backdrop {
  background: rgba(4, 6, 10, .78);
  backdrop-filter: blur(10px);
}

.qr-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 24px;
}

.qr-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 28px 30px;
  text-align: center;
}

.qr-modal__content img {
  width: 230px;
  max-width: 78vw;
  margin: 18px 0 20px;
  padding: 13px;
  border-radius: 18px;
  background: var(--off-white);
}

.qr-modal__content strong {
  font-size: 18px;
}

.qr-modal__content span:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--off-white);
  box-shadow: 0 12px 35px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .card {
    border-radius: 24px;
  }

  .brand {
    align-items: center;
  }

  .brand__eyebrow {
    display: none;
  }

  .brand__logo {
    width: min(245px, 72vw);
  }

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

  .tap-panel {
    grid-template-columns: 1fr auto;
    padding: 18px;
  }

  .qr-button {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 410px) {
  .tap-panel {
    grid-template-columns: 1fr;
  }

  .qr-button {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .qr-button img {
    max-width: 160px;
    margin: auto;
  }
}

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