:root {
  color-scheme: dark;
  --black: #050505;
  --surface: #0c0c0c;
  --surface-raised: #111313;
  --mint: #cff0ec;
  --mint-bright: #e5fffb;
  --mint-soft: #a8d9d3;
  --text: #f4f7f6;
  --muted: #91a09c;
  --line: rgba(207, 240, 236, 0.16);
  --line-bright: rgba(207, 240, 236, 0.35);
  --danger: #f6d6ad;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(85, 171, 159, 0.12), transparent 30rem),
    radial-gradient(circle at 12% 56%, rgba(207, 240, 236, 0.07), transparent 24rem),
    var(--black);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #05100f;
  background: var(--mint);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.signal-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(207, 240, 236, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 240, 236, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.site-header,
.site-footer,
.wallet-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-lockup img {
  width: 40px;
  height: 40px;
}

.brand-lockup em {
  color: var(--mint-soft);
  font-style: normal;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--mint);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verified-pill > span {
  display: grid;
  width: 16px;
  height: 16px;
  color: #07110f;
  background: var(--mint);
  border-radius: 50%;
  place-items: center;
}

.wallet-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.82fr);
  gap: 48px 76px;
  align-items: center;
  padding: 78px 0 68px;
}

.intro {
  align-self: start;
  padding-top: 36px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--mint-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--mint-soft);
  box-shadow: 0 0 12px var(--mint-soft);
}

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

h1 {
  max-width: 700px;
  margin-bottom: 30px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4rem, 7.8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--mint);
  font-weight: 400;
}

.lede {
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.65;
}

.lede strong {
  color: var(--text);
  font-weight: 500;
}

.receive-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(150deg, rgba(207, 240, 236, 0.07), transparent 44%),
    var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: 36px;
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.receive-card::before {
  position: absolute;
  top: -130px;
  right: -140px;
  width: 330px;
  height: 330px;
  content: "";
  background: rgba(130, 229, 215, 0.09);
  border-radius: 50%;
  filter: blur(70px);
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.micro-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.card-topline h2 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.network-badge small {
  display: block;
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.network-orbit {
  display: block;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, var(--mint) 0 3px, transparent 4px),
    conic-gradient(from 10deg, transparent, var(--mint), transparent 62%);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(207, 240, 236, 0.25);
}

.qr-stage {
  display: grid;
  justify-items: center;
  padding: 34px 0 24px;
}

.qr-frame {
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 1;
  padding: 17px;
  background: #eefaf8;
  border-radius: 24px;
  box-shadow: 0 0 0 8px rgba(207, 240, 236, 0.035), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.qr-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  background: #050505;
  border: 6px solid #eefaf8;
  border-radius: 20px;
  transform: translate(-50%, -50%);
  place-items: center;
}

.qr-logo img {
  width: 46px;
  height: 46px;
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--mint-soft);
  border-style: solid;
}

.corner-a {
  top: -10px;
  left: -10px;
  border-width: 1px 0 0 1px;
  border-radius: 7px 0 0;
}

.corner-b {
  top: -10px;
  right: -10px;
  border-width: 1px 1px 0 0;
  border-radius: 0 7px 0 0;
}

.corner-c {
  right: -10px;
  bottom: -10px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 7px;
}

.corner-d {
  bottom: -10px;
  left: -10px;
  border-width: 0 0 1px 1px;
  border-radius: 0 0 0 7px;
}

.qr-stage > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.qr-stage > p strong {
  color: var(--text);
  font-weight: 500;
}

.address-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 16px 16px 16px 18px;
  background: #080a0a;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.address-panel .micro-label {
  grid-column: 1;
  margin: 0;
}

.address-panel code {
  grid-column: 1;
  overflow: hidden;
  color: var(--mint-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--mint);
  background: rgba(207, 240, 236, 0.08);
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  cursor: pointer;
  place-items: center;
}

.icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.network-guard {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 13px;
  padding: 13px 15px;
  color: var(--danger);
  background: rgba(246, 214, 173, 0.04);
  border: 1px solid rgba(246, 214, 173, 0.18);
  border-radius: 16px;
}

.guard-mark {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  place-items: center;
}

.network-guard strong {
  display: block;
  margin-bottom: 2px;
  color: #f6e6d1;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.network-guard p {
  margin: 0;
  color: #b9aca0;
  font-size: 0.68rem;
  line-height: 1.45;
}

.network-guard code {
  color: #f6e6d1;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 18px;
}

.button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #07110f;
  background: var(--mint);
  border: 1px solid var(--mint);
}

.button-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-bright);
}

.explorer-link {
  display: flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration-color: rgba(145, 160, 156, 0.45);
  text-underline-offset: 4px;
}

.safety-copy {
  display: grid;
  grid-column: 1;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  align-self: end;
  max-width: 620px;
  margin-top: -120px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.safety-index {
  color: var(--mint-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.safety-copy h2 {
  margin-bottom: 9px;
  font-size: 0.92rem;
}

.safety-copy p {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}

.safety-copy strong {
  color: var(--text);
}

.safety-copy .no-return {
  margin-bottom: 0;
  color: #77837f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 36px;
  color: #66736f;
  border-top: 1px solid var(--line);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  color: var(--mint-soft);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 48px);
  padding: 12px 16px;
  color: #06100e;
  background: var(--mint);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

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

.button:hover,
.icon-button:hover,
.explorer-link:hover {
  filter: brightness(1.1);
}

.button:focus-visible,
.icon-button:focus-visible,
.explorer-link:focus-visible,
.brand-lockup:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .wallet-shell {
    grid-template-columns: 1fr;
    gap: 42px;
    width: min(680px, calc(100% - 40px));
    padding-top: 54px;
  }

  .intro {
    padding-top: 0;
  }

  h1 {
    font-size: clamp(4rem, 15vw, 6.6rem);
  }

  .receive-card {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .safety-copy {
    grid-row: 3;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .wallet-shell {
    width: calc(100% - 28px);
  }

  .site-header {
    min-height: 76px;
  }

  .verified-pill {
    padding: 7px 9px;
    font-size: 0.58rem;
  }

  .verified-pill > span {
    width: 14px;
    height: 14px;
  }

  .wallet-shell {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .lede {
    font-size: 0.98rem;
  }

  .receive-card {
    padding: 23px 18px;
    border-radius: 28px;
  }

  .network-badge {
    padding: 8px 9px;
    font-size: 0.65rem;
  }

  .network-orbit {
    width: 22px;
    height: 22px;
  }

  .qr-frame {
    width: min(76vw, 270px);
  }

  .address-panel code {
    font-size: 0.68rem;
  }

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

  .safety-copy {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 30px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}

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