:root {
  --ink: #172026;
  --muted: #647173;
  --paper: #f6f2eb;
  --surface: #fffaf2;
  --line: rgba(23, 32, 38, 0.12);
  --teal: #0e7a70;
  --teal-dark: #07564f;
  --mint: #cfeee6;
  --coral: #e65f43;
  --gold: #d8a331;
  --blue: #2468a9;
  --violet: #6d5bd0;
  --shadow: 0 24px 70px rgba(22, 25, 28, 0.2);
  --soft-shadow: 0 12px 30px rgba(42, 46, 50, 0.11);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #ede7dc;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font);
  background:
    linear-gradient(135deg, rgba(14, 122, 112, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(230, 95, 67, 0.11), transparent 34%),
    #ede7dc;
}

.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.88;
}

.ambient-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(23, 32, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 38, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(120deg, transparent, #000 18%, #000 72%, transparent);
}

.ambient-mesh span {
  position: absolute;
  width: 42vw;
  height: 22vh;
  border: 1px solid rgba(255, 250, 242, 0.38);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.14) 0 2px, transparent 2px 11px),
    linear-gradient(135deg, rgba(14, 122, 112, 0.13), rgba(216, 163, 49, 0.09));
  transform: rotate(-11deg);
  animation: panelDrift 18s ease-in-out infinite alternate;
}

.ambient-mesh span:nth-child(1) {
  top: 6%;
  right: -12%;
}

.ambient-mesh span:nth-child(2) {
  left: -18%;
  bottom: 10%;
  animation-delay: -7s;
  transform: rotate(10deg);
}

.ambient-mesh span:nth-child(3) {
  right: 24%;
  bottom: -10%;
  width: 26vw;
  height: 16vh;
  animation-delay: -3s;
}

@keyframes panelDrift {
  from {
    translate: 0 0;
  }
  to {
    translate: 22px -18px;
  }
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(14, 122, 112, 0.28);
  outline-offset: 2px;
}

svg {
  display: block;
}

.experience {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(330px, 420px);
  gap: 34px;
  align-items: center;
}

.desktop-panel {
  display: grid;
  gap: 26px;
  align-content: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fffaf2;
  background: linear-gradient(145deg, var(--teal), #273a42 72%);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: var(--soft-shadow);
}

.brand-lockup p,
.brand-lockup strong,
.desktop-brief h1,
.desktop-brief p {
  margin: 0;
}

.brand-lockup p,
.operating-strip,
.desktop-metrics span,
.eyebrow,
.section-heading span,
.top-section span,
.hero-copy span,
.wallet-card-content span,
.task-card span,
.message span,
.portfolio-row span,
.balance-card span,
.simulation-grid span,
.privacy-log span,
.identity-ribbon span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-lockup strong {
  display: block;
  max-width: 360px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.operating-strip {
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operating-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(23, 32, 38, 0.13);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.62);
}

.desktop-brief {
  max-width: 610px;
}

.desktop-brief h1 {
  font-size: clamp(2.45rem, 6vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.desktop-brief p {
  max-width: 540px;
  margin-top: 22px;
  color: #4c585b;
  font-size: 1.05rem;
  line-height: 1.65;
}

.desktop-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 560px;
}

.desktop-metrics div {
  padding: 16px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.65);
}

.desktop-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.desktop-orchestration {
  max-width: 560px;
  display: grid;
  gap: 8px;
}

.desktop-orchestration div {
  min-height: 54px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 38, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.74), rgba(255, 250, 242, 0.42)),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(14, 122, 112, 0.08) 13px 14px);
}

.desktop-orchestration span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desktop-orchestration strong {
  text-align: right;
}

.phone-shell {
  width: min(100%, 410px);
  height: min(880px, calc(100vh - 32px));
  min-height: 720px;
  margin-left: auto;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  overflow: hidden;
  border: 10px solid #11181d;
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
  position: relative;
  perspective: 1200px;
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 112px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #11181d;
  z-index: 5;
}

.phone-shell::after {
  display: none;
}

@keyframes phoneSheen {
  0%,
  54% {
    transform: translateX(-115%);
  }
  72%,
  100% {
    transform: translateX(115%);
  }
}

.status-bar {
  height: 42px;
  padding: 12px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #263238;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-icons svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.battery {
  width: 21px;
  height: 11px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
}

.battery span {
  width: 72%;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
}

.app-header {
  height: 62px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.signal-rail {
  margin: 0 18px 8px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 32, 38, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.72);
  box-shadow: 0 8px 20px rgba(20, 26, 31, 0.05);
}

.signal-line {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.1);
}

.signal-line span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  animation: signalRun 2.6s ease-in-out infinite alternate;
}

.signal-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 7px;
}

.signal-labels span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes signalRun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(108%);
  }
}

.header-title {
  min-width: 0;
  text-align: center;
}

.header-title span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 5px 14px rgba(20, 26, 31, 0.06);
  cursor: pointer;
  position: relative;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-button.compact {
  width: 36px;
  height: 36px;
}

.icon-button.light {
  color: #fffaf2;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
}

.icon-button.send {
  flex: 0 0 auto;
  color: #fffaf2;
  border-color: transparent;
  background: var(--teal);
}

.has-dot::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--coral);
}

.app-screen {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 16px 18px;
  scrollbar-width: none;
}

.app-screen::-webkit-scrollbar {
  display: none;
}

.view {
  display: none;
  animation: rise 260ms ease both;
}

.view.is-active {
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel {
  min-height: 202px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 102px;
  gap: 14px;
  align-items: center;
  border-radius: var(--radius);
  color: #fffaf2;
  background:
    linear-gradient(145deg, #07564f, #1c2b31 58%, #69472f),
    #12242a;
  box-shadow: var(--soft-shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-panel::before,
.ai-hero::before,
.product-card::before,
.wallet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.1) 46%, transparent 54% 100%);
  transform: translateX(-120%);
  animation: surfaceSheen 5.8s ease-in-out infinite;
}

.hero-panel::before {
  display: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px 18px;
  height: 36px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.18) 0 4px, transparent 4px 11px);
  opacity: 0.52;
  z-index: 0;
}

.hero-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.52;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 250, 242, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(135deg, transparent, #000 26%, #000 88%);
}

.hero-copy,
.serenity-gauge {
  position: relative;
  z-index: 2;
}

.hero-flow::after {
  content: "";
  position: absolute;
  inset: 24px 22px;
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 8px;
}

.hero-flow span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(216, 163, 49, 0.14);
  animation: nodePulse 2.5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.hero-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: var(--radius);
  color: #fffaf2;
  background: rgba(255, 250, 242, 0.12);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

@keyframes surfaceSheen {
  0%,
  58% {
    transform: translateX(-120%);
  }
  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.hero-copy h2,
.top-section h2,
.ai-hero h2 {
  margin: 8px 0 0;
  font-size: 1.56rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p,
.top-section p,
.ai-hero p,
.product-card p,
.recommendation-item p,
.task-card p,
.message p,
.credential-list p,
.privacy-log p,
.timeline-step p {
  margin: 8px 0 0;
  color: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-copy p {
  max-width: 190px;
  color: rgba(255, 250, 242, 0.72);
}

.hero-copy .eyebrow,
.ai-hero .eyebrow {
  color: rgba(255, 250, 242, 0.72);
}

.serenity-gauge {
  width: 102px;
  height: 122px;
  display: grid;
  place-items: center;
  position: relative;
}

.serenity-gauge svg {
  width: 102px;
  height: 102px;
  transform: rotate(-90deg);
}

.serenity-gauge circle {
  fill: none;
  stroke-width: 10;
}

.serenity-gauge .track {
  stroke: rgba(255, 250, 242, 0.2);
}

.serenity-gauge .progress {
  stroke: var(--gold);
  stroke-dasharray: 251 289;
  stroke-linecap: round;
  animation: gaugeIgnite 1.8s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

@keyframes gaugeIgnite {
  from {
    stroke-dasharray: 0 289;
  }
  to {
    stroke-dasharray: 251 289;
  }
}

.serenity-gauge strong {
  position: absolute;
  top: 39px;
  font-size: 1.72rem;
}

.serenity-gauge span {
  position: absolute;
  top: 69px;
  color: rgba(255, 250, 242, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
}

.identity-ribbon {
  margin-top: 12px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(14, 122, 112, 0.2);
  border-radius: var(--radius);
  background: #e8f5ee;
  position: relative;
  overflow: hidden;
}

.identity-ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(14, 122, 112, 0.12), transparent);
  transform: translateX(-100%);
  animation: sweep 4.8s ease-in-out infinite;
}

.identity-ribbon strong {
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
}

.text-button,
.ghost-button,
.product-switcher button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.82);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.text-button {
  padding: 0 12px;
  color: var(--teal-dark);
  border-color: rgba(14, 122, 112, 0.22);
  background: rgba(255, 250, 242, 0.8);
}

.ghost-button {
  padding: 0 12px;
}

.trust-switchboard {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.trust-switchboard button {
  min-height: 66px;
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: start;
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.9);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 20px rgba(20, 26, 31, 0.055);
}

.switch-light {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(14, 122, 112, 0.48);
  animation: switchPulse 1.8s ease-in-out infinite;
}

.switch-light.blue {
  background: var(--blue);
  box-shadow: 0 0 16px rgba(36, 104, 169, 0.45);
  animation-delay: -0.45s;
}

.switch-light.gold {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(216, 163, 49, 0.42);
  animation-delay: -0.9s;
}

.trust-switchboard strong {
  margin-top: 5px;
  font-size: 0.88rem;
}

.trust-switchboard small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes switchPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scaleX(0.72);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.quick-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions button {
  min-height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(20, 26, 31, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-actions button:hover,
.service-card:hover,
.timeline-step:hover,
.trust-switchboard button:hover,
.wow-strip button:hover {
  border-color: rgba(14, 122, 112, 0.28);
  box-shadow: 0 14px 30px rgba(20, 26, 31, 0.1);
  transform: translateY(-2px);
}

.quick-actions svg,
.bottom-nav svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.quick-actions span,
.bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  color: #364449;
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 9px 24px rgba(20, 26, 31, 0.055);
}

.case-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.case-header span,
.case-note,
.product-meta dt,
.regulatory-grid span,
.investor-profile span,
.compliance-ledger span,
.connector-status p {
  color: var(--muted);
}

.case-header span,
.regulatory-grid span,
.investor-profile span,
.compliance-ledger span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-header h3 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.case-status {
  height: fit-content;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(14, 122, 112, 0.13);
  font-size: 0.72rem;
  white-space: nowrap;
}

.case-progress {
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.1);
}

.case-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.case-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.case-steps div {
  min-width: 0;
}

.case-steps span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 32, 38, 0.16);
  border-radius: 50%;
  background: #f2ece2;
}

.case-steps .is-done span {
  border-color: transparent;
  background: var(--teal);
}

.case-steps .is-done span::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fffaf2;
  border-bottom: 2px solid #fffaf2;
  transform: rotate(-45deg);
}

.case-steps p {
  margin: 6px 0 0;
  color: #4c585b;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.22;
}

.case-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.section-block,
.subscription-tool {
  margin-top: 14px;
}

.section-heading {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h3 {
  margin: 2px 0 0;
  font-size: 1.06rem;
  line-height: 1.1;
}

.recommendation-list,
.agent-tasks,
.credential-list,
.privacy-log {
  display: grid;
  gap: 10px;
}

.recommendation-item,
.task-card,
.credential-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(20, 26, 31, 0.055);
}

.recommendation-item h4,
.task-card h3,
.credential-list h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.16;
}

.recommendation-item p,
.credential-list p,
.timeline-step p,
.task-card p {
  color: #647173;
  font-size: 0.79rem;
}

.recommendation-icon,
.credential-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fffaf2;
  background: var(--teal);
}

.recommendation-icon.coral {
  background: var(--coral);
}

.credential-icon.gold {
  background: var(--gold);
}

.recommendation-icon svg,
.credential-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #5d4b13;
  background: rgba(216, 163, 49, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.pill.positive {
  color: var(--teal-dark);
  background: rgba(14, 122, 112, 0.15);
}

.balance-card {
  min-height: 134px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 136px;
  gap: 14px;
  align-items: end;
  border-radius: var(--radius);
  color: #fffaf2;
  background: linear-gradient(132deg, #273a42, #0e7a70 64%, #9a6a24);
}

.balance-card span {
  color: rgba(255, 250, 242, 0.72);
}

.balance-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  letter-spacing: 0;
}

.mini-chart {
  height: 92px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  align-items: end;
}

.mini-chart span {
  width: 100%;
  min-height: 12px;
  border-radius: 5px 5px 2px 2px;
  background: rgba(255, 250, 242, 0.82);
}

.portfolio-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.portfolio-row div,
.simulation-grid div {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.88);
}

.portfolio-row strong,
.simulation-grid strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.wow-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wow-strip button {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.94), rgba(232, 245, 238, 0.92)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(14, 122, 112, 0.08) 12px 13px);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.wow-strip button span {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fffaf2;
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
}

.wow-strip button:nth-child(2) span {
  background: var(--coral);
}

.wow-strip strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.12;
}

.wow-strip p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.bottom-nav {
  min-height: 76px;
  padding: 9px 10px 13px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.96);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.bottom-nav button.is-active {
  color: #fffaf2;
  background: var(--teal-dark);
}

.bottom-nav button.is-active span {
  color: #fffaf2;
}

.top-section {
  padding: 10px 2px 14px;
}

.top-section h2 {
  margin-top: 8px;
  color: var(--ink);
}

.top-section p {
  color: #647173;
}

.service-search {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-search svg {
  width: 19px;
  height: 19px;
  fill: var(--muted);
}

.service-search input,
.agent-command input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.service-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-card {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(20, 26, 31, 0.05);
  cursor: pointer;
  text-align: left;
}

.service-card svg {
  width: 24px;
  height: 24px;
  fill: var(--service-color, var(--teal));
}

.service-card h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.12;
}

.service-card p {
  margin: 6px 0 0;
  color: #647173;
  font-size: 0.75rem;
  line-height: 1.35;
}

.product-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.72);
}

.product-switcher button {
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  background: transparent;
}

.product-switcher button.is-selected {
  color: #fffaf2;
  background: var(--teal-dark);
}

.product-card {
  min-height: 168px;
  margin-top: 12px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  border-radius: var(--radius);
  color: #fffaf2;
  background: linear-gradient(142deg, #172026, #0e7a70 78%);
  position: relative;
  overflow: hidden;
}

.product-card h3 {
  margin: 12px 0 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.product-card p {
  color: rgba(255, 250, 242, 0.72);
}

.product-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product-meta div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.09);
}

.product-meta dt {
  color: rgba(255, 250, 242, 0.62);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-meta dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #fffaf2;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.18;
}

.regulatory-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 9px 24px rgba(20, 26, 31, 0.055);
}

.regulatory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 8px;
}

.regulatory-grid div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: #f7f1e8;
}

.regulatory-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.16;
}

.regulatory-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.34;
}

.risk-meter {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.risk-meter span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.24);
}

.risk-meter span:nth-child(-n + 3) {
  background: var(--gold);
}

.subscription-tool {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.proof-scan-card {
  min-height: 178px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(14, 122, 112, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f9fbf7, #e8f5ee);
  box-shadow: 0 9px 24px rgba(20, 26, 31, 0.06);
}

.investor-profile {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
}

.investor-profile strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.investor-profile p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-bars {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.profile-bars span {
  min-width: 66px;
  height: 22px;
  display: grid;
  align-items: center;
  justify-content: end;
  padding: 0 8px;
  border-radius: 999px;
  color: #fffaf2;
  background: var(--teal);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.profile-bars span:nth-child(2) {
  background: var(--blue);
}

.profile-bars span:nth-child(3) {
  background: var(--gold);
}

.scan-viewport {
  height: 136px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(7, 86, 79, 0.96), rgba(23, 32, 38, 0.98)),
    #172026;
  position: relative;
}

.scan-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 250, 242, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  animation: gridShift 3.5s linear infinite;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(216, 163, 49, 0.7), 0 0 0 999px rgba(216, 163, 49, 0.04);
  animation: scanTravel 2.2s ease-in-out infinite;
}

.scan-chip {
  position: absolute;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 999px;
  color: #fffaf2;
  background: rgba(255, 250, 242, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.chip-a {
  top: 22px;
  left: 16px;
}

.chip-b {
  top: 64px;
  right: 13px;
}

.chip-c {
  left: 28px;
  bottom: 18px;
}

.scan-copy span {
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scan-copy strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.15;
}

.scan-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.38;
}

@keyframes scanTravel {
  0%,
  100% {
    transform: translateY(8px);
  }
  50% {
    transform: translateY(118px);
  }
}

@keyframes gridShift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 22px 22px;
  }
}

.subscription-tool output {
  font-size: 1.25rem;
  font-weight: 900;
}

input[type="range"] {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--teal) 0 var(--range-progress, 22%), rgba(23, 32, 38, 0.12) var(--range-progress, 22%) 100%);
  accent-color: var(--teal);
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid #fffaf2;
  border-radius: 50%;
  background: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(7, 86, 79, 0.28);
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fffaf2;
  border-radius: 50%;
  background: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(7, 86, 79, 0.28);
}

.simulation-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.timeline {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.timeline-step {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.timeline-step > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fffaf2;
  background: #273a42;
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline-step.done > span {
  background: var(--teal);
}

.timeline-step.active {
  border-color: rgba(216, 163, 49, 0.56);
  background: #fff7de;
}

.timeline-step.active > span {
  background: var(--gold);
}

.timeline-step strong {
  display: block;
  font-size: 0.96rem;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  color: #fffaf2;
  background: var(--teal-dark);
  box-shadow: 0 14px 26px rgba(7, 86, 79, 0.22);
  cursor: pointer;
  font-weight: 900;
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ai-hero {
  min-height: 190px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 16px;
  align-items: center;
  border-radius: var(--radius);
  color: #fffaf2;
  background: linear-gradient(142deg, #172026, #2468a9 68%, #6d5bd0);
  position: relative;
  overflow: hidden;
}

.ai-radar {
  position: absolute;
  inset: 18px 12px auto auto;
  width: 118px;
  height: 118px;
  opacity: 0.52;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 250, 242, 0.28) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 250, 242, 0.2) 50%, transparent 51%);
}

.ai-radar::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, rgba(216, 163, 49, 0.95), transparent);
  transform-origin: left center;
  animation: radarSweep 3.2s linear infinite;
}

.ai-radar span {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 50%;
}

.ai-radar span:nth-child(2) {
  inset: 36px;
}

.ai-radar span:nth-child(3) {
  inset: 54px;
}

@keyframes radarSweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ai-hero p {
  color: rgba(255, 250, 242, 0.74);
}

.agent-tasks {
  margin-top: 12px;
}

.agent-cockpit {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(36, 104, 169, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #f5f9fb, #fffaf2),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(36, 104, 169, 0.08) 16px 17px);
  box-shadow: 0 9px 24px rgba(20, 26, 31, 0.06);
}

.cockpit-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cockpit-header span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cockpit-header strong {
  max-width: 170px;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.16;
}

.agent-lanes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.agent-lanes div {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
  align-items: center;
}

.agent-lanes span {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.1);
  position: relative;
}

.agent-lanes span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  animation: laneRun 2.4s ease-in-out infinite alternate;
}

.agent-lanes div:nth-child(2) span::after {
  animation-delay: -0.5s;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.agent-lanes div:nth-child(3) span::after {
  animation-delay: -0.9s;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.agent-lanes div:nth-child(4) span::after {
  animation-delay: -1.3s;
  background: linear-gradient(90deg, var(--coral), var(--blue));
}

.agent-lanes p {
  margin: 0;
  color: #4c585b;
  font-size: 0.76rem;
  font-weight: 850;
}

@keyframes laneRun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(118%);
  }
}

.task-card {
  grid-template-columns: auto 1fr;
}

.task-card.is-running {
  border-color: rgba(36, 104, 169, 0.35);
  background: #eef6fb;
}

.task-status {
  width: 13px;
  height: 54px;
  border-radius: 999px;
  background: var(--blue);
  position: relative;
}

.task-status::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fffaf2;
  transform: translateX(-50%);
}

.task-status.waiting {
  background: var(--gold);
}

.task-status.done {
  background: var(--teal);
}

.chat-panel {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.message {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(20, 26, 31, 0.05);
}

.message.agent {
  border: 1px solid rgba(36, 104, 169, 0.18);
}

.message.user {
  justify-self: end;
  color: #fffaf2;
  background: var(--teal-dark);
}

.message.user span,
.message.user p {
  color: rgba(255, 250, 242, 0.8);
}

.agent-command {
  min-height: 54px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compliance-ledger {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.compliance-ledger div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
}

.compliance-ledger p {
  margin: 0;
  color: #4c585b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.wallet-card {
  min-height: 188px;
  display: grid;
  grid-template-columns: 48px 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fffaf2;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.11), transparent 34%),
    linear-gradient(145deg, #172026, #0e7a70 57%, #d8a331);
  box-shadow: var(--soft-shadow);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.wallet-card.tilt-card {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.wallet-card.tilt-card:hover {
  box-shadow: 0 24px 45px rgba(7, 86, 79, 0.2);
}

.holo-band {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.4), rgba(255, 250, 242, 0.06)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.42) 0 2px, transparent 2px 7px);
  transform: translateZ(18px);
}

.wallet-lens {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 88px;
  height: 54px;
  border: 1px solid rgba(255, 250, 242, 0.25);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 250, 242, 0.22), transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.22) 0 2px, transparent 2px 8px);
  transform: translateZ(28px);
}

.wallet-lens::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(216, 163, 49, 0.75);
  animation: walletScan 2.6s ease-in-out infinite;
}

@keyframes walletScan {
  0%,
  100% {
    transform: translateY(-16px);
  }
  50% {
    transform: translateY(16px);
  }
}

.wallet-card-content {
  padding: 18px;
  align-self: end;
  transform: translateZ(34px);
}

.wallet-card-content span {
  color: rgba(255, 250, 242, 0.72);
}

.wallet-card-content strong {
  display: block;
  margin-top: 10px;
  font-size: 1.55rem;
}

.wallet-card-content p {
  margin: 8px 0 0;
  color: rgba(255, 250, 242, 0.72);
}

.connector-status {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.connector-status > div {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(216, 163, 49, 0.15);
}

.status-dot.ok {
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(14, 122, 112, 0.14);
}

.status-dot.pending {
  background: var(--gold);
}

.connector-status strong {
  display: block;
  font-size: 0.94rem;
}

.connector-status p {
  margin: 5px 0 0;
  font-size: 0.78rem;
  line-height: 1.34;
}

.wallet-code {
  width: fit-content;
  margin-top: 14px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: var(--radius);
  color: rgba(255, 250, 242, 0.86);
  background: rgba(255, 250, 242, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.credential-list {
  margin-top: 12px;
}

.credential-list article {
  grid-template-columns: auto 1fr auto;
}

.credential-list .ghost-button {
  min-width: 58px;
}

.privacy-log {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.privacy-log div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
}

.privacy-log p {
  margin: 0;
  color: #4c585b;
  font-size: 0.82rem;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(12, 18, 21, 0.42);
  backdrop-filter: blur(8px);
}

.action-sheet {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  width: min(390px, calc(100% - 28px));
  max-height: min(680px, calc(100vh - 48px));
  overflow-y: auto;
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 250, 242, 0.38);
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: var(--shadow);
  animation: sheetRise 240ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

@keyframes sheetRise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  cursor: pointer;
}

.sheet-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sheet-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-title {
  margin: 8px 44px 8px 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.sheet-copy {
  margin: 0 30px 16px 0;
  color: #647173;
  font-size: 0.92rem;
  line-height: 1.45;
}

.proof-box,
.payment-box,
.agent-box,
.biometry-box {
  display: grid;
  gap: 10px;
}

.proof-row,
.payment-row,
.biometry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f1e8;
}

.proof-row span,
.payment-row span,
.biometry-row span {
  color: #647173;
  font-size: 0.78rem;
  font-weight: 850;
}

.proof-row strong,
.payment-row strong,
.biometry-row strong {
  text-align: right;
  font-size: 0.88rem;
}

.zkp-stage,
.wero-stage,
.biometry-stage {
  min-height: 134px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fffaf2;
  background: linear-gradient(145deg, #172026, #0e7a70 66%, #d8a331);
  position: relative;
}

.zkp-stage::before,
.wero-stage::before,
.biometry-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 250, 242, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(120deg, transparent, #000 22%, #000 84%);
}

.zkp-stage::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, rgba(216, 163, 49, 0.42), transparent);
  animation: sweep 2.8s ease-in-out infinite;
}

.zkp-stage span,
.wero-stage span,
.biometry-stage span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wero-stage {
  background: linear-gradient(145deg, #172026, #d8a331 56%, #e65f43);
}

.wero-stage::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 76px;
  height: 76px;
  border: 10px solid rgba(255, 250, 242, 0.18);
  border-top-color: #fffaf2;
  border-radius: 50%;
  animation: spin 1.6s linear infinite;
}

.biometry-stage {
  background: linear-gradient(145deg, #172026, #2468a9 62%, #6d5bd0);
}

.biometry-stage::after {
  content: "";
  position: absolute;
  inset: 24px 86px 24px 24px;
  border: 2px solid rgba(255, 250, 242, 0.45);
  border-radius: 26px;
  box-shadow:
    0 0 0 8px rgba(255, 250, 242, 0.06),
    inset 0 0 26px rgba(255, 250, 242, 0.12);
  animation: biometricFrame 2.4s ease-in-out infinite;
}

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

@keyframes biometricFrame {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.hash {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.consent-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.consent-list label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  color: #4c585b;
  font-size: 0.86rem;
  line-height: 1.35;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.sheet-actions .primary-button {
  margin: 0;
}

.sheet-actions .ghost-button {
  min-height: 48px;
}

.success-pulse {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 8px auto 16px;
  border-radius: 50%;
  color: #fffaf2;
  background: var(--teal);
  box-shadow: 0 0 0 14px rgba(14, 122, 112, 0.13);
  animation: successPop 500ms cubic-bezier(0.2, 1.2, 0.25, 1) both;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.68);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-pulse svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.is-busy {
  position: relative;
  pointer-events: none;
}

.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: sweep 1.1s ease infinite;
}

@keyframes sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 40;
  width: min(360px, calc(100% - 28px));
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 14px;
  color: #fffaf2;
  background: rgba(23, 32, 38, 0.92);
  box-shadow: 0 18px 42px rgba(20, 26, 31, 0.22);
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

body.sheet-open .demo-toast {
  top: 18px;
  bottom: auto;
}

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

.demo-toast span {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 250, 242, 0.22);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 950ms linear infinite;
}

.demo-toast strong {
  font-size: 0.88rem;
  line-height: 1.22;
}

.confetti-stage {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -16px;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: var(--confetti-color, var(--gold));
  animation: confettiFall 1.25s ease-in forwards;
}

@keyframes confettiFall {
  to {
    transform: translate3d(var(--drift, 0), 108vh, 0) rotate(680deg);
    opacity: 0.2;
  }
}

body.demo-running .phone-shell {
  box-shadow: 0 24px 80px rgba(7, 86, 79, 0.38), 0 0 0 1px rgba(216, 163, 49, 0.22);
}

@media (max-width: 860px) {
  body {
    background: var(--paper);
  }

  .ambient-mesh {
    display: none;
  }

  .experience {
    min-height: 100vh;
    padding: 0;
    display: block;
  }

  .desktop-panel {
    display: none;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-shell::before {
    display: none;
  }

  .phone-shell::after {
    display: none;
  }

  .status-bar {
    padding-top: max(12px, env(safe-area-inset-top));
    height: calc(42px + env(safe-area-inset-top));
  }

  .app-screen {
    padding-inline: max(14px, env(safe-area-inset-left));
  }

  .bottom-nav {
    padding-bottom: max(13px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .hero-panel,
  .ai-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy p {
    max-width: none;
  }

  .serenity-gauge {
    justify-self: start;
    width: 94px;
    height: 100px;
  }

  .serenity-gauge svg {
    width: 94px;
    height: 94px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-row,
  .simulation-grid,
  .wow-strip,
  .proof-scan-card,
  .regulatory-grid,
  .investor-profile,
  .product-meta {
    grid-template-columns: 1fr;
  }

  .case-header {
    display: grid;
  }

  .case-status {
    width: fit-content;
  }

  .case-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-switchboard {
    grid-template-columns: 1fr;
  }

  .trust-switchboard button {
    min-height: 54px;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
  }

  .trust-switchboard small {
    grid-column: 2;
  }

  .balance-card {
    grid-template-columns: 1fr;
  }

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

  .credential-list article,
  .recommendation-item {
    grid-template-columns: auto 1fr;
  }

  .credential-list .ghost-button,
  .recommendation-item .pill {
    grid-column: 2;
    justify-self: start;
  }
}

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