:root {
  color-scheme: dark;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #12091f;
  color: #fff;
  --night: #12091f;
  --magenta: #e91e8c;
  --cyan: #48b9f8;
  --orange: #ff9f40;
  --soft: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--night); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 5%, rgba(233, 30, 140, 0.26), transparent 31rem),
    radial-gradient(circle at 92% 24%, rgba(72, 185, 248, 0.20), transparent 28rem),
    linear-gradient(145deg, #12091f 0%, #20103b 48%, #0c1730 100%);
}

button, input { font: inherit; }

.bua-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bua-atmosphere::before, .bua-atmosphere::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50% 50% 50% 12%;
}
.bua-atmosphere::before { width: 16rem; height: 16rem; top: 17%; left: -8rem; transform: rotate(-28deg); }
.bua-atmosphere::after { width: 11rem; height: 11rem; right: -5rem; bottom: 12%; transform: rotate(24deg); }

.bua-glow {
  position: absolute;
  width: min(46vw, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.27;
  animation: glowDrift 16s ease-in-out infinite alternate;
}
.bua-glow-magenta { top: -18%; left: -7%; background: var(--magenta); }
.bua-glow-cyan { right: -12%; bottom: -22%; background: var(--cyan); animation-delay: -7s; }

.bua-ribbon {
  position: absolute;
  width: 42rem;
  height: 7rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  transform: rotate(-24deg);
  opacity: 0.45;
}
.bua-ribbon-one {
  top: 12%;
  right: -24rem;
  box-shadow: inset 0 1px 0 rgba(72, 185, 248, 0.24), 0 -1px 34px rgba(72, 185, 248, 0.09);
  animation: ribbonBreathe 10s ease-in-out infinite;
}
.bua-ribbon-two {
  bottom: 8%;
  left: -25rem;
  border-color: rgba(233, 30, 140, 0.22);
  animation: ribbonBreathe 12s ease-in-out -4s infinite reverse;
}

.bua-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 76rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex;
  flex-direction: column;
}

.bua-header {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.75rem 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.wordmark-emblem {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.32));
  animation: logoFloat 4.5s ease-in-out infinite;
}
.wordmark-emblem img { width: 100%; height: 100%; object-fit: contain; display: block; }

.quiet-link, .help-link {
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 0.24em;
  text-decoration-color: rgba(72, 185, 248, 0.55);
}
.quiet-link:hover, .help-link:hover { color: #fff; text-decoration-color: var(--cyan); }

.bua-landing { width: 100%; animation: stageIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) both; }

.bua-hero {
  min-height: min(42rem, calc(100vh - 10rem));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(24rem, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
}

.bua-hero-copy { position: relative; z-index: 2; padding: 2rem 0 2.5rem; }

.recognition-line {
  min-height: 3.4rem;
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--magenta);
  color: #f5b2db;
  font-size: clamp(0.96rem, 1.8vw, 1.16rem);
  font-weight: 600;
  line-height: 1.5;
  transition: opacity 240ms ease, transform 240ms ease;
}
.recognition-line.is-changing { opacity: 0; transform: translateY(-5px); }

.bua-hero h1 { max-width: 13ch; font-size: clamp(3rem, 5.5vw, 5.2rem); }
.bua-hero .lead { max-width: 36rem; }

.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-actions .button { width: auto; min-width: 12.5rem; padding-inline: 1.8rem; }
.hero-actions .help-link { margin: 0; }

.bua-illustration {
  position: relative;
  min-width: 0;
  margin: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bua-illustration::before {
  content: "";
  position: absolute;
  inset: 12% 5% 9% 14%;
  border: 1px solid rgba(72, 185, 248, 0.18);
  border-radius: 48% 52% 43% 57%;
  transform: rotate(-5deg);
  animation: illustrationOrbit 12s ease-in-out infinite;
}

.bua-illustration img {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2rem 3.5rem rgba(0, 0, 0, 0.36));
}

.bua-illustration figcaption {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 8%;
  max-width: 16rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: right;
}

.access-dock {
  width: min(100%, 48rem);
  margin: -0.6rem 0 1rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.access-disclosure {
  border: 0;
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: left;
}
.access-disclosure span { color: rgba(185, 233, 255, 0.72); text-decoration: underline; text-underline-offset: 0.2em; }
.access-disclosure:hover { color: rgba(255, 255, 255, 0.68); }

.access-dock .access-code {
  grid-template-columns: minmax(12rem, 1fr) auto;
  align-items: end;
  gap: 0.65rem 0.8rem;
  margin-top: 0.65rem;
  padding: 0.8rem;
}
.access-dock .access-code:not([hidden]) { display: grid; }
.access-dock .access-code .button { width: auto; min-width: 7rem; margin: 0; }
.access-dock .access-code p { grid-column: 1 / -1; margin: 0; }
.access-dock .preview-note { margin: 0.65rem 0 0; }

.bua-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 47rem);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 4.25rem);
  border: 1px solid transparent;
  border-radius: 1.75rem;
  background:
    linear-gradient(150deg, rgba(31, 16, 58, 0.94), rgba(14, 19, 43, 0.91)) padding-box,
    linear-gradient(135deg, rgba(233, 30, 140, 0.72), rgba(255, 255, 255, 0.13) 45%, rgba(72, 185, 248, 0.66)) border-box;
  box-shadow: 0 2rem 6rem rgba(3, 1, 12, 0.46), 0 0 42px rgba(132, 54, 209, 0.13);
  backdrop-filter: blur(20px);
}
.bua-card:not([hidden]) { animation: stageIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bua-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 17rem;
  height: 17rem;
  top: -11rem;
  right: -7rem;
  border-radius: 50%;
  background: rgba(72, 185, 248, 0.16);
}

.eyebrow { margin: 0 0 1.25rem; color: #b9e9ff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; }

h1, h2 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
  background: linear-gradient(100deg, #fff 20%, #f5b2db 48%, #95e3ff 72%, #fff 88%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textSheen 14s ease-in-out 1s infinite;
}
h2 { font-size: clamp(2rem, 6vw, 3.25rem); }
h1:focus, h2:focus { outline: none; }

.lead { max-width: 38rem; margin: 1.4rem 0 2rem; color: var(--soft); font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.7; }

.button {
  width: 100%;
  min-height: 3.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .intent-button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.button-primary {
  color: #fff;
  background: linear-gradient(115deg, #c9197b, var(--magenta) 48%, #8c42d7);
  box-shadow: 0 0.8rem 2.2rem rgba(233, 30, 140, 0.33);
}
.button-primary:hover { box-shadow: 0 1rem 2.8rem rgba(233, 30, 140, 0.46); }
.button-secondary { margin-top: 0.85rem; color: #fff; border-color: rgba(72, 185, 248, 0.45); background: rgba(72, 185, 248, 0.13); }
.button-text {
  width: auto;
  min-height: auto;
  margin-top: 1.15rem;
  padding: 0.35rem 0;
  border-radius: 0;
  color: #b9e9ff;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  background: transparent;
}

.supporting-copy { margin: 1.1rem 0 1.3rem; color: rgba(255, 255, 255, 0.64); font-size: 0.91rem; line-height: 1.5; }
.preview-note { margin: -0.5rem 0 1.3rem; padding: 0.8rem 0.95rem; border-left: 3px solid var(--cyan); color: rgba(255, 255, 255, 0.72); background: rgba(72, 185, 248, 0.08); font-size: 0.82rem; line-height: 1.5; }

.access-code {
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  animation: panelOpen 0.34s ease-out both;
}
.access-code label { display: block; margin-bottom: 0.55rem; color: #fff; font-weight: 700; }
.access-code .access-code-help { margin: 0 0 0.55rem; color: rgba(255, 255, 255, 0.76); }
/* Keep the instruction clear of the browser's active-input highlight. */
.access-dock .access-code .access-code-help { margin: 0 0 0.9rem; }
.access-code input { width: 100%; min-height: 3.1rem; border: 1px solid rgba(255, 255, 255, 0.23); border-radius: 0.75rem; padding: 0.7rem 0.85rem; color: #fff; background: rgba(8, 5, 24, 0.68); }
.access-code p { margin: 0.7rem 0 0; color: rgba(255, 255, 255, 0.65); font-size: 0.84rem; line-height: 1.5; }
.access-code p a { color: rgba(185, 233, 255, 0.94); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.access-code p a:hover { color: #fff; }
.access-code p a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 0.15rem; }

.intent-list { display: grid; gap: 0.7rem; }
.intent-button {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  padding: 1rem 2.8rem 1rem 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.intent-button::after { content: "›"; position: absolute; top: 50%; right: 1.1rem; color: #96e3ff; font-size: 1.35rem; transform: translateY(-50%); }
.intent-button:hover { border-color: rgba(72, 185, 248, 0.52); background: rgba(72, 185, 248, 0.11); transform: translateX(3px); }
.intent-button-urgent { border-color: rgba(255, 159, 64, 0.48); color: #ffe1c0; background: rgba(255, 111, 60, 0.10); }
.intent-button-urgent:hover { border-color: rgba(255, 159, 64, 0.76); background: rgba(255, 111, 60, 0.17); }

.help-link { display: inline-block; margin-top: 1.55rem; }

.bua-help-card h1 { max-width: 20ch; font-size: clamp(2rem, 6vw, 3.2rem); }
.bua-help-card > p:not(.eyebrow) { color: var(--soft); line-height: 1.62; }
.bua-help-card .region { margin: 1.5rem 0 0.75rem; color: #b9e9ff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }
.bua-help-card .call {
  display: block;
  margin-top: 0.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.bua-help-card .call:hover { transform: translateX(3px); border-color: rgba(72, 185, 248, 0.55); background: rgba(72, 185, 248, 0.11); }
.bua-help-card .call.primary { border-color: rgba(255, 159, 64, 0.7); background: linear-gradient(115deg, #b73e34, #d75b36); box-shadow: 0 0.75rem 2rem rgba(215, 91, 54, 0.24); }
.bua-help-card .call span { display: block; margin-top: 0.2rem; color: rgba(255, 255, 255, 0.7); font-size: 0.84rem; font-weight: 500; }
.bua-help-card .local { margin-top: 1.4rem; }
.bua-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: auto 0 0;
  padding: 2rem 0.25rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  text-align: center;
}
.bua-footer span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0.8rem rgba(72, 185, 248, 0.8); }

@keyframes stageIn { from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes textSheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes glowDrift { from { transform: translate3d(-2%, -2%, 0) scale(0.95); } to { transform: translate3d(8%, 7%, 0) scale(1.1); } }
@keyframes ribbonBreathe { 0%, 100% { opacity: 0.28; transform: rotate(-24deg) scaleX(0.96); } 50% { opacity: 0.55; transform: rotate(-20deg) scaleX(1.04); } }
@keyframes panelOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes illustrationOrbit { 0%, 100% { transform: rotate(-5deg) scale(0.98); opacity: 0.55; } 50% { transform: rotate(2deg) scale(1.03); opacity: 1; } }

@media (max-width: 34rem) {
  .bua-shell { width: min(100% - 1.1rem, 76rem); padding-top: 0.65rem; }
  .bua-header { min-height: 4rem; padding: 0.25rem 0.45rem 1.15rem; }
  .wordmark-emblem { width: 2.65rem; height: 2.65rem; }
  .quiet-link { max-width: 9rem; text-align: right; line-height: 1.3; }
  .bua-card { padding: 2rem 1.35rem 2.25rem; border-radius: 1.35rem; }
  .bua-hero { min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .bua-hero-copy { padding: 1.3rem 0 0; }
  .bua-hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .bua-hero .lead { margin-bottom: 1.4rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-actions .button { width: 100%; }
  .bua-illustration { min-height: 18rem; margin: 0; overflow: visible; }
  .bua-illustration img { width: min(100%, 30rem); }
  .bua-illustration figcaption { display: none; }
  .access-dock { margin-top: 0.25rem; }
  .access-dock .access-code { grid-template-columns: 1fr; }
  .access-dock .access-code .button { width: 100%; }
  .access-dock .access-code p { grid-column: auto; }
  .bua-footer { padding-top: 1.4rem; }
}

@media (min-width: 34.01rem) and (max-width: 62rem) {
  .bua-hero { grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr); }
  .bua-hero h1 { font-size: clamp(3rem, 6.5vw, 4.4rem); }
}

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