.welcome-page {
  --welcome-bg: #f3f6f7;
  --welcome-surface: #ffffff;
  --welcome-ink: #172025;
  --welcome-muted: #6d7a80;
  --welcome-line: #d8e0e3;
  --welcome-blue: #039ed7;
  min-height: var(--viewport-height);
  overflow-x: hidden;
  background: var(--welcome-bg);
  color: var(--welcome-ink);
  font-family: "Manrope", sans-serif;
}

.welcome-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 27%, rgba(3,158,215,.07), transparent 24rem),
    linear-gradient(rgba(23,32,37,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,32,37,.025) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.welcome-shell {
  width: 100%;
  min-height: var(--viewport-height);
  padding-top: max(18px, calc(var(--safe-top) + 12px));
  padding-right: max(20px, calc(var(--safe-right) + 20px));
  padding-bottom: max(18px, calc(var(--safe-bottom) + 12px));
  padding-left: max(20px, calc(var(--safe-left) + 20px));
  display: flex;
  flex-direction: column;
}

.welcome-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand-crop {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-crop img {
  width: 43px;
  max-width: none;
}

.help-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--welcome-line);
  border-radius: 50%;
  background: rgba(255,255,255,.52);
  color: var(--welcome-muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}

.help-button:hover {
  color: var(--welcome-blue);
  border-color: rgba(3,158,215,.45);
  background: var(--welcome-surface);
}

.help-button:active { transform: scale(.94); }
.help-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.welcome-content {
  width: 100%;
  max-width: 430px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.bird-stage {
  width: min(77vw, 318px);
  aspect-ratio: 1;
  margin: 2px auto -11px;
  display: grid;
  place-items: center;
  position: relative;
}

.bird-stage::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.98) 0 32%, rgba(255,255,255,.54) 54%, transparent 72%);
}

.bird-stage img {
  width: 86%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 23px 19px rgba(31,45,51,.13));
  animation: birdFloat 5.2s ease-in-out infinite;
}

.bird-shadow {
  width: 39%;
  height: 8%;
  position: absolute;
  z-index: 1;
  left: 32%;
  bottom: 13%;
  border-radius: 50%;
  background: rgba(37,50,56,.16);
  filter: blur(13px);
  animation: shadowBreathe 5.2s ease-in-out infinite;
}

.bird-orbit {
  position: absolute;
  border: 1px solid rgba(70,92,102,.13);
  border-radius: 50%;
}

.bird-orbit-outer { inset: 4%; animation: orbit 22s linear infinite; }
.bird-orbit-inner { inset: 19%; border-style: dashed; animation: orbit 29s linear reverse infinite; }

.bird-orbit-outer::before,
.bird-orbit-inner::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: 50%;
  top: -2px;
  border-radius: 50%;
  background: #a5b0b5;
}

@keyframes birdFloat {
  0%, 100% { transform: translateY(4px) rotate(-.8deg); }
  50% { transform: translateY(-7px) rotate(.8deg); }
}

@keyframes shadowBreathe {
  0%, 100% { transform: scale(.92); opacity: .65; }
  50% { transform: scale(1.08); opacity: .35; }
}

@keyframes orbit { to { transform: rotate(360deg); } }

.welcome-copy { text-align: center; position: relative; z-index: 3; }

.welcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--welcome-blue);
  font: 500 8px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.welcome-kicker i { width: 22px; height: 1px; background: currentColor; }

.welcome-copy h1 {
  margin: 16px 0 13px;
  font-size: clamp(41px, 11.9vw, 54px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 600;
}

.welcome-copy h1 span { color: var(--welcome-blue); }

.welcome-copy p {
  max-width: 342px;
  margin: 0 auto;
  color: var(--welcome-muted);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: -.012em;
}

.welcome-actions {
  margin-top: 29px;
  display: grid;
  gap: 11px;
}

.wallet-action {
  width: 100%;
  min-height: 72px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease;
}

.wallet-action::before {
  content: "";
  width: 120px;
  height: 120px;
  position: absolute;
  top: 50%;
  left: var(--tap-x, 50%);
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  transform: translate(-50%,-50%) scale(0);
  opacity: 0;
  transition: transform .45s ease, opacity .5s ease;
  pointer-events: none;
}

.wallet-action.is-pressed::before { transform: translate(-50%,-50%) scale(2.2); opacity: 1; }
.wallet-action:hover { transform: translateY(-2px); }
.wallet-action:active { transform: scale(.985); }

.wallet-action-primary {
  border: 1px solid var(--welcome-blue);
  background: var(--welcome-blue);
  color: white;
  box-shadow: 0 13px 30px rgba(3,158,215,.22);
}

.wallet-action-primary:hover { box-shadow: 0 17px 38px rgba(3,158,215,.28); }

.wallet-action-secondary {
  border: 1px solid var(--welcome-line);
  background: rgba(255,255,255,.78);
  color: var(--welcome-ink);
  box-shadow: 0 7px 25px rgba(32,45,51,.055);
  backdrop-filter: blur(12px);
}

.wallet-action-secondary::before { background: rgba(3,158,215,.08); }
.wallet-action-secondary:hover { border-color: rgba(3,158,215,.34); box-shadow: 0 11px 30px rgba(32,45,51,.09); }

.action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.wallet-action-primary .action-icon { background: rgba(255,255,255,.15); }
.wallet-action-secondary .action-icon { color: var(--welcome-blue); background: rgba(3,158,215,.09); }
.action-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.action-copy { min-width: 0; display: block; position: relative; z-index: 1; }
.action-copy strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.action-copy small { display: block; margin-top: 4px; opacity: .68; font-size: 9px; }
.action-arrow { display: grid; place-items: center; font: 500 16px/1 "DM Mono", monospace; position: relative; z-index: 1; transition: transform .2s ease; }
.wallet-action:hover .action-arrow { transform: translate(2px,-2px); }

.welcome-footer {
  max-width: 430px;
  width: 100%;
  margin: 27px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a959a;
  font: 500 7px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.network-status { display: flex; align-items: center; gap: 7px; }
.network-status i { width: 6px; height: 6px; border-radius: 50%; background: #35a76f; box-shadow: 0 0 0 4px rgba(53,167,111,.1); }

.welcome-enter {
  animation: welcomeEnter .72s var(--delay, 0ms) cubic-bezier(.2,.75,.2,1) both;
}

@keyframes welcomeEnter {
  from { opacity: .001; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.modal-scrim {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(14,21,25,.28);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(2px);
  transition: opacity .3s ease, visibility .3s ease;
}

.about-sheet {
  position: fixed;
  z-index: 21;
  left: max(12px, var(--safe-left));
  right: max(12px, var(--safe-right));
  bottom: 0;
  max-width: 460px;
  margin: auto;
  padding: 12px 24px calc(28px + var(--safe-bottom));
  border: 1px solid var(--welcome-line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--welcome-surface);
  box-shadow: 0 -20px 60px rgba(20,32,38,.15);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .42s cubic-bezier(.18,.8,.2,1), visibility .42s;
}

body.sheet-open { overflow: hidden; }
body.sheet-open .modal-scrim { opacity: 1; visibility: visible; }
body.sheet-open .about-sheet { transform: none; visibility: visible; }

.sheet-handle { width: 38px; height: 4px; margin: 0 auto 19px; border-radius: 4px; background: var(--welcome-line); }
.sheet-close { width: 44px; height: 44px; position: absolute; right: 12px; top: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--welcome-bg); color: var(--welcome-muted); font-size: 20px; cursor: pointer; }
.sheet-label { color: var(--welcome-blue); font: 500 8px/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.about-sheet h2 { max-width: 340px; margin: 14px 0 12px; font-size: 28px; line-height: 1.05; letter-spacing: -.045em; }
.about-sheet p { margin: 0; color: var(--welcome-muted); font-size: 12px; line-height: 1.65; }
.about-sheet a { min-height: 48px; margin-top: 23px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--welcome-line); border-radius: 12px; color: var(--welcome-ink); font-size: 10px; font-weight: 700; }
.about-sheet a span { color: var(--welcome-blue); }

.action-toast {
  min-width: 260px;
  min-height: 58px;
  padding: 10px 14px;
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(21px + var(--safe-bottom));
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--welcome-line);
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 50px rgba(25,38,44,.17);
  backdrop-filter: blur(15px);
  opacity: 0;
  transform: translate(-50%, 25px);
  visibility: hidden;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
}

.action-toast.is-visible { opacity: 1; transform: translate(-50%,0); visibility: visible; }
.toast-check { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: #259d68; }
.action-toast strong { display: block; font-size: 10px; }
.action-toast small { display: block; margin-top: 3px; color: var(--welcome-muted); font-size: 8px; }

@media (min-width: 760px) {
  .welcome-shell { padding: 30px clamp(36px, 6vw, 90px); }
  .welcome-header { max-width: 1220px; width: 100%; margin: 0 auto; }
  .welcome-content {
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(390px, .8fr);
    grid-template-rows: auto auto;
    column-gap: clamp(60px, 9vw, 130px);
    align-items: center;
  }
  .bird-stage { width: min(44vw, 470px); grid-row: 1 / 3; margin: 0; }
  .welcome-copy { align-self: end; text-align: left; }
  .welcome-copy h1 { font-size: clamp(55px, 6.2vw, 78px); }
  .welcome-copy p { margin-left: 0; font-size: 14px; }
  .welcome-actions { align-self: start; margin-top: 32px; }
  .welcome-footer { max-width: 1220px; }
  .wallet-action { min-height: 77px; }
}

/* Dynamic Island iPhones in landscape: keep content between the side sensor areas. */
@media (orientation: landscape) and (max-height: 520px) {
  .welcome-shell {
    min-height: var(--viewport-height);
    height: auto;
    padding-top: max(10px, calc(var(--safe-top) + 8px));
    padding-right: max(24px, calc(var(--safe-right) + 18px));
    padding-bottom: max(10px, calc(var(--safe-bottom) + 8px));
    padding-left: max(24px, calc(var(--safe-left) + 18px));
  }
  .welcome-header { min-height: 36px; }
  .help-button { width: 40px; height: 40px; }
  .welcome-content {
    max-width: 790px;
    margin-block: 8px;
    display: grid;
    grid-template-columns: minmax(220px,.75fr) minmax(330px,1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(34px,7vw,80px);
    align-items: center;
  }
  .bird-stage { width: min(46vh,240px); grid-row: 1 / 3; margin: 0 auto; }
  .welcome-copy { align-self: end; text-align: left; }
  .welcome-kicker { font-size: 7px; }
  .welcome-copy h1 { margin: 9px 0 7px; font-size: clamp(31px,7vh,40px); }
  .welcome-copy p { max-width: 410px; margin-left: 0; font-size: 10px; line-height: 1.45; }
  .welcome-actions { align-self: start; margin-top: 13px; grid-template-columns: 1fr 1fr; gap: 8px; }
  .wallet-action { min-height: 59px; padding: 8px 10px; grid-template-columns: 34px 1fr 18px; gap: 8px; border-radius: 13px; }
  .action-icon { width: 34px; height: 34px; }
  .action-copy strong { font-size: 9px; }
  .action-copy small { display: none; }
  .welcome-footer { max-width: 790px; margin-top: 4px; }
}

@media (max-height: 760px) and (max-width: 759px) {
  .welcome-shell { padding-top: calc(12px + var(--safe-top)); padding-bottom: calc(12px + var(--safe-bottom)); }
  .bird-stage { width: min(61vw, 245px); margin-top: -4px; margin-bottom: -12px; }
  .welcome-copy h1 { font-size: 39px; margin-block: 12px 10px; }
  .welcome-copy p { font-size: 11px; line-height: 1.5; }
  .welcome-actions { margin-top: 19px; gap: 8px; }
  .wallet-action { min-height: 63px; }
  .action-icon { width: 37px; height: 37px; }
  .welcome-footer { margin-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-enter { opacity: 1; transform: none; animation: none; }
  .bird-stage img, .bird-shadow, .bird-orbit { animation: none; }
}

/* Mobile readability: preserve the Concept 01 hierarchy without micro-copy. */
.welcome-kicker { font-size: 11px; }
.welcome-copy p { font-size: 16px; line-height: 1.6; }
.action-copy strong { font-size: 15px; }
.action-copy small { font-size: 12px; line-height: 1.35; }
.welcome-footer { font-size: 11px; line-height: 1.35; }
.sheet-label { font-size: 11px; }
.about-sheet p { font-size: 16px; line-height: 1.6; }
.about-sheet a { font-size: 14px; }
.action-toast strong { font-size: 14px; }
.action-toast small { font-size: 12px; line-height: 1.35; }

@media (orientation: landscape) and (max-height: 520px) {
  .welcome-kicker { font-size: 11px; }
  .welcome-copy p { font-size: 14px; line-height: 1.45; }
  .action-copy strong { font-size: 14px; }
}

@media (max-height: 760px) and (max-width: 759px) {
  .welcome-copy p { font-size: 14px; line-height: 1.5; }
  .action-copy strong { font-size: 14px; }
  .action-copy small { font-size: 11px; }
}
