:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --surface-muted: #e6eceb;
  --surface-dark: #111111;
  --text: #16120f;
  --muted: #65706d;
  --line: #d9e2df;
  --line-strong: #c6d2cf;
  --green: #0f8f65;
  --amber: #9a711e;
  --red: #b44e4a;
  --shadow: 0 32px 90px rgb(22 18 15 / 12%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgb(255 255 255 / 0.68), transparent 36%),
    linear-gradient(180deg, #fbfcfc 0%, var(--bg) 100%);
}

body.motion-ready [data-reveal] {
  --reveal-y: 40px;
  --reveal-scale: 0.985;
  --parallax-y: 0px;
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-y)), 0) scale(var(--reveal-scale));
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay);
}

body.motion-ready [data-reveal].is-visible {
  opacity: 1;
  --reveal-y: 0px;
  --reveal-scale: 1;
}

.parallax-object {
  --parallax-y: 0px;
  --parallax-rotate: 0deg;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y), 0) rotate(var(--parallax-rotate));
  transform-origin: center center;
}

.float-gentle {
  animation: float-gentle 8s ease-in-out infinite;
}

button,
input,
a {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.floating-nav {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1120px);
  margin: 0 auto 36px;
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 14px 40px rgb(22 18 15 / 9%);
  backdrop-filter: blur(18px);
}

.nav-brand,
.nav-actions,
.hero-actions,
.meta-line,
.panel-head,
.mini-rule-row,
.ledger-columns,
.record-row,
.section-topbar {
  display: flex;
  align-items: center;
}

.nav-brand {
  gap: 10px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.brand-dot,
.section-logo {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #111111;
}

.nav-actions {
  gap: 10px;
}

.network-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.network-badge {
  background: #111111;
  color: #ffffff;
}

.network-badge.muted {
  color: #d7d0c8;
}

.flow-page {
  display: grid;
  gap: 0;
}

.flow-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.flow-section + .flow-section {
  margin-top: -34px;
}

.section-light {
  background: transparent;
  z-index: 1;
}

.section-soft {
  background: #ede4d8;
  z-index: 2;
}

.section-dark {
  background: #111111;
  color: #f3eee7;
  z-index: 3;
}

.section-topbar {
  gap: 16px;
  width: min(100%, 820px);
  min-height: 52px;
  margin: 0 auto 38px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.56);
  box-shadow: 0 16px 36px rgb(22 18 15 / 8%);
  backdrop-filter: blur(16px);
}

.section-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgb(22 18 15 / 0.06);
}

.section-plus {
  color: rgb(22 18 15 / 0.45);
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.intro-grid,
.workspace-section {
  display: grid;
  gap: 40px;
  width: min(100%, 1240px);
  margin: 0 auto;
}

.intro-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-copy,
.story-copy,
.workspace-intro,
.feature-list,
.workspace-board,
.rules-list,
.record-list,
.story-map {
  display: grid;
}

.intro-copy {
  gap: 24px;
}

.intro-copy h1,
.story-copy h2,
.workspace-intro h2,
.ledger-intro h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0;
}

.story-copy h2,
.workspace-intro h2,
.ledger-intro h2 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
}

.lead,
.story-copy p,
.workspace-copy,
.ledger-intro p,
.feature-list article strong,
.feature-list article span,
.rule-item span,
.empty span,
.workspace-status {
  font-size: 15px;
  line-height: 1.6;
}

.lead,
.story-copy p,
.workspace-copy,
.feature-list article span,
.rule-item span,
.empty span {
  color: var(--muted);
}

.meta-line {
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.meta-line strong {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.divider {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.intro-scene {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(300px, 31vw, 408px);
  overflow: visible;
}

.scene-card-anchor {
  position: relative;
  width: min(100%, 430px);
  margin: 0 8px 0 auto;
  align-self: center;
  min-height: clamp(260px, 27vw, 340px);
}

.scene-card-shell {
  position: relative;
  isolation: isolate;
  z-index: 4;
  width: 100%;
  overflow: visible;
  will-change: transform;
}

.scene-card-shell.is-inspect-animating {
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scene-card-shell::before,
.scene-card-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scene-card-shell::before {
  content: none;
  inset: auto 10% 14px 10%;
  z-index: 0;
  height: clamp(22px, 2.6vw, 30px);
  border-radius: 999px;
  background: radial-gradient(circle at center, rgb(15 23 42 / 0.18) 0%, rgb(71 85 105 / 0.1) 44%, transparent 78%);
  filter: blur(12px);
  opacity: 0.52;
  transform: translateY(18px) scale(0.98);
}

.scene-card-shell::after {
  content: none;
}

.scene-card-shell:hover::before,
.scene-card-shell:focus-within::before {
  transform: translateY(22px) scale(1.02);
}

.scene-card-shell:hover::after,
.scene-card-shell:focus-within::after {
  transform: translateY(-4px) scale(1.02);
}

.scene-card-shell.is-pinned {
  position: fixed;
  top: var(--scene-card-pin-top, -168px);
  left: var(--scene-card-pin-left, 0px);
  z-index: 18;
  width: var(--scene-card-pin-width, 430px);
}

.scene-card-shell.is-inspecting {
  position: fixed;
  z-index: 52;
  transform-origin: top left;
}

.scene-card-shell.is-pinned::before {
  content: none;
  inset: auto 18% 8px 18%;
  height: clamp(14px, 1.8vw, 18px);
  background: radial-gradient(circle at center, rgb(15 23 42 / 0.12) 0%, rgb(71 85 105 / 0.06) 42%, transparent 80%);
  filter: blur(8px);
  opacity: 0.34;
  transform: translateY(8px) scale(0.9);
}

.scene-card-shell.is-pinned::after {
  content: none;
}

.scene-card-shell.is-inspecting::before,
.scene-card-shell.is-inspecting::after {
  content: none;
}

.scene-card-shell.is-pinned .scene-card {
  filter: drop-shadow(0 16px 24px rgb(15 23 42 / 0.1));
}

.scene-card-shell.is-pinned:hover .scene-card,
.scene-card-shell.is-pinned:focus-within .scene-card {
  filter: drop-shadow(0 20px 28px rgb(15 23 42 / 0.13));
}

.scene-card {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: visible;
  transform: translate3d(0, calc(var(--parallax-y) - 12px), 0) rotate(0deg);
  transform-origin: center center;
  filter: drop-shadow(0 16px 24px rgb(15 23 42 / 0.1));
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease;
  cursor: zoom-in;
}

.scene-card-shell:hover .scene-card,
.scene-card-shell:focus-within .scene-card {
  transform: translate3d(0, calc(var(--parallax-y) - 20px), 0) rotate(0deg);
  filter: drop-shadow(0 20px 28px rgb(15 23 42 / 0.13));
}

.scene-card-shell.is-inspecting .scene-card,
.scene-card-shell.is-inspecting:hover .scene-card,
.scene-card-shell.is-inspecting:focus-within .scene-card {
  transform: none;
  filter: drop-shadow(0 34px 70px rgb(15 23 42 / 0.18));
  cursor: default;
}

.card-inspect-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(244 247 246 / 0.74);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.card-inspect-backdrop[hidden] {
  display: none;
}

.card-inspect-backdrop.is-visible {
  opacity: 1;
}

body.is-card-inspecting {
  overflow: hidden;
}

.metal-card-ui {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(240px, 24vw, 304px);
  aspect-ratio: 600 / 380;
  padding: clamp(16px, 1.6vw, 22px);
  border: 2px solid rgb(156 163 175 / 0.72);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #d1d5db 0%, #e5e7eb 25%, #9ca3af 50%, #e5e7eb 75%, #d1d5db 100%);
  box-shadow:
    0 34px 56px rgb(22 18 15 / 0.23),
    inset 0 1px 0 rgb(255 255 255 / 0.62),
    inset 0 -1px 0 rgb(17 17 17 / 0.12);
  transition:
    min-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.metal-card-ui::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgb(0 0 0 / 0.04) 0,
      rgb(0 0 0 / 0.04) 1px,
      transparent 1px,
      transparent 2px
    );
  pointer-events: none;
  mix-blend-mode: multiply;
}

.metal-gloss {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(32deg, rgb(255 255 255 / 0.2), transparent 34%),
    linear-gradient(142deg, transparent 32%, rgb(255 255 255 / 0.18) 46%, transparent 58%);
  pointer-events: none;
}

.metal-side-accent {
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 0;
  z-index: 3;
  width: clamp(10px, 1.5vw, 16px);
  border-right: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #4b5563, #1f2937 50%, #4b5563);
  opacity: 0.86;
}

.metal-card-top,
.metal-card-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: clamp(7px, 1vw, 12px);
  min-width: 0;
}

.metal-card-top {
  align-items: flex-start;
  transition: opacity 180ms ease, transform 220ms ease, max-height 220ms ease;
}

.metal-card-bottom {
  align-items: flex-end;
  transition: opacity 180ms ease, transform 220ms ease;
}

.metal-top-insights {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.metal-balance-stack {
  display: grid;
  gap: 8px;
  width: min(56%, 182px);
  min-width: 126px;
}

.metal-sensor-stack {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.1vw, 12px);
  margin-top: 4px;
  margin-left: clamp(10px, 1.5vw, 16px);
}

.metal-chip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: clamp(27px, 4vw, 40px);
  aspect-ratio: 1.25;
  padding: 4px;
  border: 1px solid rgb(75 85 99 / 0.88);
  border-radius: 6px;
  background: linear-gradient(135deg, #a7adb7, #4b5563);
  box-shadow:
    inset 0 0 16px rgb(0 0 0 / 0.32),
    0 8px 18px rgb(17 17 17 / 0.14);
  overflow: hidden;
}

.metal-chip::before {
  content: "";
  position: absolute;
  inset: 29% 24%;
  border: 1px solid rgb(0 0 0 / 0.34);
  border-radius: 2px;
  background: rgb(17 17 17 / 0.16);
}

.metal-chip span {
  border: 1px solid rgb(0 0 0 / 0.32);
  border-radius: 2px;
  opacity: 0.5;
}

.metal-nfc {
  position: relative;
  width: clamp(17px, 2.5vw, 26px);
  height: clamp(19px, 2.5vw, 28px);
  opacity: 0.82;
}

.metal-nfc span {
  position: absolute;
  top: 50%;
  left: 0;
  border: 2px solid rgb(0 0 0 / 0.78);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  transform: translateY(-50%);
}

.metal-nfc span:nth-child(1) {
  width: 40%;
  height: 42%;
}

.metal-nfc span:nth-child(2) {
  width: 68%;
  height: 68%;
}

.metal-nfc span:nth-child(3) {
  width: 96%;
  height: 94%;
}

.metal-token-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(41px, 6vw, 64px);
  height: clamp(47px, 6.5vw, 72px);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(45deg, #a5f3fc, #f9a8d4, #fde68a, #c4b5fd, #a5f3fc);
  background-size: 200% 200%;
  animation: rainbow-flow 5s linear infinite;
  filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.16));
}

.metal-token-logo::before,
.metal-token-logo::after {
  content: "";
  position: absolute;
  background: rgb(255 255 255 / 0.32);
}

.metal-token-logo::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.metal-token-logo::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.metal-token-logo span {
  position: relative;
  z-index: 1;
  color: rgb(255 255 255 / 0.92);
  font-family: "Manrope", sans-serif;
  font-size: clamp(21px, 3.2vw, 34px);
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 4px 9px rgb(0 0 0 / 0.2);
  user-select: none;
}

.metal-screen {
  display: grid;
  align-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: clamp(50px, 5.5vw, 65px);
  padding: clamp(8px, 1vw, 10px);
  border: 2px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  box-shadow:
    inset 0 0 12px rgb(0 0 0 / 0.78),
    0 0 18px rgb(34 211 238 / 0.28);
}

.metal-screen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.metal-screen-head span,
.metal-screen-label,
.metal-address-text span,
.metal-status-inline span {
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metal-screen-head span,
.metal-screen-label {
  color: rgb(147 197 253 / 0.68);
}

.metal-screen-head strong {
  color: rgb(192 247 255 / 0.88);
  font-family: "Manrope", sans-serif;
  font-size: clamp(10px, 0.72vw, 12px);
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.metal-screen output {
  color: #22d3ee;
  font-family: "Manrope", monospace;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 0 9px rgb(34 211 238 / 0.78);
  overflow-wrap: anywhere;
}

.metal-etch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgb(17 17 17 / 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.34), rgb(214 216 220 / 0.18));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.52),
    inset 0 -1px 0 rgb(17 17 17 / 0.05);
}

.metal-etch-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: center;
}

.metal-etch-item span,
.metal-etch-item strong {
  color: rgb(17 17 17 / 0.74);
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.42);
}

.metal-etch-item span {
  font-family: "Manrope", sans-serif;
  font-size: clamp(7px, 0.58vw, 8px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.metal-etch-item strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(9px, 0.76vw, 11px);
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metal-address-block {
  display: grid;
  justify-items: start;
  min-width: 0;
  max-width: 40%;
  margin-bottom: 4px;
}

.metal-address-stack {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  min-width: 0;
}

.metal-address-text,
.metal-status-inline {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.metal-address-text span {
  color: #111111;
}

.metal-address-text strong {
  color: #111111;
  font-family: "Manrope", monospace;
  font-size: clamp(9px, 0.7vw, 10px);
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.metal-status-inline span {
  color: rgb(17 17 17 / 0.48);
}

.metal-status-inline strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(9px, 0.7vw, 10px);
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.metal-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.metal-action-button {
  min-height: 24px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.metal-connect-button {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 6px 12px rgb(17 17 17 / 0.14);
}

.metal-connect-button.is-connected,
.metal-withdraw-button {
  border: 1px solid rgb(17 17 17 / 0.16);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.6), rgb(210 214 219 / 0.52));
  color: #111111;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.72),
    0 4px 10px rgb(17 17 17 / 0.08);
}

.withdraw-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.withdraw-modal[hidden] {
  display: none;
}

.withdraw-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(15 18 24 / 0.42);
  backdrop-filter: blur(6px);
}

.withdraw-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(86vh, 920px);
  overflow: auto;
  margin: 20px;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 0.76);
  border-radius: 28px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 28px 80px rgb(17 17 17 / 0.22);
}

.withdraw-modal-head,
.withdraw-actions,
.withdraw-history-head,
.withdraw-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.withdraw-modal-kicker,
.withdraw-history-head span,
.withdraw-stat-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.withdraw-modal-head strong,
.withdraw-history-head strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.1;
}

.withdraw-modal-close {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  color: var(--text);
  cursor: pointer;
}

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

.withdraw-stat-card,
.withdraw-rule-box,
.withdraw-history {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.78);
}

.withdraw-stat-card {
  display: grid;
  gap: 10px;
  min-height: 146px;
  padding: 18px;
}

.withdraw-stat-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.withdraw-stat-card small,
.withdraw-rule-box p,
.withdraw-message,
.withdraw-empty span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.withdraw-rule-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 18px;
}

.withdraw-rule-box strong,
.withdraw-empty strong,
.withdraw-item-head strong {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.withdraw-actions {
  margin-top: 16px;
}

.withdraw-action-button {
  flex: 1 1 0;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.withdraw-action-button.secondary {
  background: rgb(17 17 17 / 0.08);
  color: var(--text);
}

.withdraw-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.withdraw-message {
  margin: 14px 0 0;
}

.withdraw-history {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
}

.withdraw-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.withdraw-item,
.withdraw-empty {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.7);
}

.withdraw-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.account-state {
  color: var(--muted);
}

.account-state.is-ok {
  color: var(--green);
}

.account-state.is-warn {
  color: var(--amber);
}

.account-state.is-error {
  color: var(--red);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding-top: 92px;
}

.story-map {
  position: relative;
  min-height: 720px;
}

.story-shape {
  position: absolute;
  background: #1a1714;
  opacity: 0.96;
}

.shape-a {
  top: 160px;
  left: 40px;
  width: 160px;
  height: 180px;
  clip-path: polygon(10% 0, 100% 15%, 88% 100%, 0 80%);
}

.shape-b {
  top: 360px;
  left: 220px;
  width: 220px;
  height: 220px;
  clip-path: polygon(8% 10%, 90% 0, 100% 100%, 0 90%);
}

.story-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b8aca0;
}

.dot-a { top: 118px; left: 120px; }
.dot-b { top: 286px; left: 298px; }
.dot-c { top: 520px; left: 180px; }

.story-path {
  position: absolute;
  border: 1px dashed #c8bcaf;
  border-radius: 999px;
}

.path-a {
  top: 110px;
  left: 110px;
  width: 220px;
  height: 220px;
  border-right: 0;
  border-bottom: 0;
}

.path-b {
  top: 290px;
  left: 120px;
  width: 180px;
  height: 200px;
  border-left: 0;
  border-top: 0;
}

.story-card {
  position: absolute;
  padding: 10px;
  border-radius: 8px;
  background: #f7f2ea;
  box-shadow: 0 20px 34px rgb(22 18 15 / 0.12);
}

.story-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.rule-visual-card {
  display: grid;
  align-content: end;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 16px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.88), rgb(255 255 255 / 0.58)),
    linear-gradient(135deg, #e6f4ed, #d8e7f6);
}

.rule-visual-card,
.rule-visual-card.theme-light {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.88), rgb(255 255 255 / 0.58)),
    linear-gradient(135deg, #e6f4ed, #d8e7f6);
}

.rule-visual-card.accent,
.rule-visual-card.theme-accent {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.86), rgb(255 255 255 / 0.52)),
    linear-gradient(135deg, #e5eefc, #eaf2df);
}

.rule-visual-card.dark,
.rule-visual-card.theme-dark {
  background: linear-gradient(135deg, #171c21, #335044);
  color: #ffffff;
}

.rule-visual-card.theme-sage {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.56)),
    linear-gradient(135deg, #edf5ea, #d7e3d6);
}

.rule-visual-card.theme-sunset {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.52)),
    linear-gradient(135deg, #fae8d7, #f3d1d6);
}

.rule-visual-card span,
.rule-visual-card small {
  color: rgb(22 18 15 / 0.64);
  font-size: 12px;
  font-weight: 700;
}

.rule-visual-card.dark span,
.rule-visual-card.dark small,
.rule-visual-card.theme-dark span,
.rule-visual-card.theme-dark small {
  color: rgb(255 255 255 / 0.72);
}

.rule-visual-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.card-top {
  top: 24px;
  left: 150px;
  width: 160px;
  height: 200px;
  --parallax-rotate: -5deg;
}

.card-right {
  top: 210px;
  right: 16px;
  width: 170px;
  height: 220px;
  --parallax-rotate: 4deg;
}

.card-bottom {
  bottom: 24px;
  left: 160px;
  width: 210px;
  height: 160px;
  --parallax-rotate: 3deg;
}

.story-copy {
  gap: 22px;
  align-self: center;
  padding-top: 42px;
}

.feature-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.feature-list article {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(255 255 255 / 0.8);
  box-shadow: var(--shadow);
}

.feature-list article.feature-tone-neutral {
  background: rgb(255 255 255 / 0.8);
}

.feature-list article.feature-tone-soft {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(245 248 247 / 0.86));
}

.feature-list article.feature-tone-accent {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.88), rgb(233 244 242 / 0.86));
}

.feature-list article.feature-tone-sage {
  background:
    linear-gradient(180deg, rgb(244 249 245 / 0.95), rgb(226 238 228 / 0.92));
}

.feature-list article.feature-tone-ink {
  background: linear-gradient(135deg, #18201e, #2d3e39);
  border-color: rgb(24 32 30 / 0.3);
}

.feature-card-a {
  grid-column: span 2;
  transform: translateY(18px);
}

.feature-card-b {
  grid-column: span 2;
}

.feature-card-c {
  grid-column: span 2;
  transform: translateY(-18px);
}

.feature-list article strong {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.feature-list article span {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.feature-list article.feature-tone-ink strong,
.feature-list article.feature-tone-ink span,
.feature-list article.feature-tone-ink .feature-card-caption {
  color: #f4f7f6;
}

.feature-card-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.workspace-section {
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  align-items: start;
  padding: 92px 0 72px;
}

.workspace-intro {
  position: sticky;
  top: 120px;
  gap: 18px;
}

.workspace-board {
  gap: 18px;
  position: relative;
  transform: translateY(24px);
}

.board-main,
.board-side {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgb(255 255 255 / 0.82);
  box-shadow: var(--shadow);
}

.board-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.panel-layer {
  position: relative;
}

.panel-layer-main {
  z-index: 2;
  transform: translateX(-10px);
}

.panel-layer-side {
  z-index: 1;
  transform: translateX(48px) translateY(-26px);
}

.panel-head {
  justify-content: space-between;
  gap: 12px;
}

.panel-head h3,
.rule-item strong,
.record-main strong {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.workspace-status {
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
}

.workspace-status.info {
  background: rgb(17 17 17 / 0.08);
  color: var(--muted);
}

.workspace-status.ok {
  background: rgb(47 140 91 / 0.14);
  color: var(--green);
}

.workspace-status.warn {
  background: rgb(169 119 47 / 0.14);
  color: var(--amber);
}

.workspace-status.error {
  background: rgb(180 78 74 / 0.14);
  color: var(--red);
}

.deposit-form,
.rules-list,
.record-list {
  display: grid;
  gap: 10px;
}

.deposit-form label,
.mini-rule-row span,
.rule-item span,
.record-main span,
.ledger-columns span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.amount-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  border-radius: 20px;
  background: var(--surface);
}

.amount-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.amount-field span {
  padding: 0 18px;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

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

.quick-amount {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.quick-amount.is-active {
  background: #111111;
  color: #ffffff;
}

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

.plan-option {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.plan-option span,
.plan-option small,
.plan-preview span,
.plan-preview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.plan-option strong {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.plan-option.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.plan-option.is-active span,
.plan-option.is-active small {
  color: rgb(255 255 255 / 0.68);
}

.plan-preview {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.7);
}

.plan-preview strong {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.mini-rule-row {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 0;
}

.mini-rule-row strong {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.submit-button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.rule-item {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
}

.rule-item-inline {
  gap: 8px;
}

.rule-item-span-2 {
  grid-column: 1 / -1;
}

.referral-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.rule-item-inline strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.copy-feedback {
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.copy-feedback.is-error {
  color: var(--red);
}

.status-pill {
  background: rgb(17 17 17 / 0.08);
  color: var(--muted);
}

.status-pill.is-ok {
  background: rgb(47 140 91 / 0.14);
  color: var(--green);
}

.status-pill.is-warn {
  background: rgb(169 119 47 / 0.14);
  color: var(--amber);
}

.status-pill.is-error {
  background: rgb(180 78 74 / 0.14);
  color: var(--red);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: rgb(17 17 17 / 0.08);
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.tag.is-ok {
  background: rgb(47 140 91 / 0.14);
  color: var(--green);
}

.tag.is-warn {
  background: rgb(169 119 47 / 0.14);
  color: var(--amber);
}

.tag.is-error {
  background: rgb(180 78 74 / 0.14);
  color: var(--red);
}

.ledger-section {
  display: grid;
  gap: 26px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 96px 0 86px;
}

.ledger-intro {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin-left: auto;
  text-align: right;
}

.ledger-intro .eyebrow,
.ledger-intro p,
.ledger-columns span,
.record-main span,
.record-hash,
.empty span {
  color: var(--muted);
}

.ledger-intro h2 {
  color: var(--text);
}

.ledger-table {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 18px 44px rgb(22 18 15 / 6%);
}

.daily-interest-panel {
  display: grid;
  gap: 18px;
}

.daily-interest-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.daily-interest-panel-head .eyebrow,
.daily-interest-panel-note {
  color: var(--muted);
}

.daily-interest-panel-head h3 {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.daily-interest-panel-note {
  font-size: 12px;
  font-weight: 700;
}

.daily-interest-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.daily-interest-summary-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(255 255 255 / 0.88);
}

.daily-interest-summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.daily-interest-summary-card strong {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.daily-interest-table-panel {
  padding-top: 18px;
}

.daily-interest-columns,
.daily-interest-row {
  grid-template-columns: minmax(120px, 1.2fr) minmax(120px, 0.9fr) minmax(100px, 0.9fr) minmax(100px, 0.9fr);
}

.team-reward-columns,
.team-reward-row {
  grid-template-columns: minmax(140px, 1.25fr) minmax(120px, 0.9fr) minmax(100px, 0.75fr) minmax(120px, 1fr);
}

.term-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.term-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 18px 44px rgb(22 18 15 / 6%);
}

.term-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.term-panel-head .eyebrow,
.term-entry-meta span {
  color: var(--muted);
}

.term-panel-head h3,
.term-panel-head strong,
.term-panel-metric strong,
.term-entry-head strong {
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

.term-panel-head h3 {
  font-size: 24px;
  font-weight: 800;
}

.term-panel-head strong {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  text-align: right;
}

.term-panel-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.term-panel-metric {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.9);
}

.term-panel-metric span {
  color: var(--muted);
  font-size: 12px;
}

.term-panel-metric strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.term-panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.term-entry-list {
  display: grid;
  gap: 10px;
}

.term-entry-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
}

.term-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.term-entry-head strong {
  font-size: 18px;
  font-weight: 800;
}

.term-entry-meta {
  display: grid;
  gap: 6px;
}

.term-entry-meta span {
  font-size: 12px;
  line-height: 1.5;
}

.closing-section {
  display: grid;
  gap: 34px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 108px 0 56px;
}

.closing-shell {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 64px 24px 54px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.closing-shell h2 {
  max-width: 760px;
  color: #f6f0e8;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  text-align: center;
}

.closing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: #3041ff;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 40px rgb(48 65 255 / 0.24);
}

.closing-price {
  color: #bdb3a6;
  font-size: 14px;
}

.closing-price span {
  color: #f6f0e8;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.site-footer div {
  display: grid;
  gap: 12px;
}

.site-footer span,
.site-footer a {
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

.ledger-columns {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 0.9fr) minmax(88px, 0.7fr) minmax(86px, 0.7fr);
  gap: 10px;
  padding: 0 6px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.record-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 0.9fr) minmax(88px, 0.7fr) minmax(86px, 0.7fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 18px 6px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.record-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.record-main strong {
  color: var(--text);
}

.record-hash {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.empty {
  display: grid;
  gap: 6px;
  padding: 32px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 26px;
  background: rgb(255 255 255 / 0.7);
  text-align: center;
}

.empty strong {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes rainbow-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 1080px) {
  .flow-section + .flow-section {
    margin-top: -20px;
  }

  .intro-grid,
  .story-section,
  .workspace-section {
    grid-template-columns: 1fr;
  }

  .workspace-intro {
    position: static;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-board {
    transform: none;
  }

  .feature-card-a,
  .feature-card-b,
  .feature-card-c,
  .panel-layer-main,
  .panel-layer-side {
    transform: none;
  }

  .board-side {
    gap: 10px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .ledger-intro {
    margin-left: 0;
    text-align: left;
  }

  .daily-interest-summary-grid {
    grid-template-columns: 1fr;
  }

  .term-panels {
    grid-template-columns: 1fr;
  }

  .term-panel-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 12px;
  }

  .flow-section {
    padding: 56px 0;
  }

  .floating-nav {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    margin-bottom: 22px;
    padding: 12px;
    border-radius: 24px;
  }

  .nav-brand {
    min-width: 0;
    font-size: 14px;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  .section-topbar {
    min-height: 44px;
    margin-bottom: 20px;
    padding: 0 12px;
  }

  .intro-grid,
  .story-section,
  .workspace-section,
  .ledger-section,
  .closing-section {
    gap: 20px;
  }

  .intro-copy,
  .story-copy,
  .workspace-intro,
  .ledger-intro {
    gap: 14px;
  }

  .intro-copy h1,
  .story-copy h2,
  .workspace-intro h2,
  .ledger-intro h2 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 0.98;
  }

  .lead,
  .story-copy p,
  .workspace-copy,
  .ledger-intro p {
    font-size: 14px;
    line-height: 1.55;
  }

  .meta-line {
    gap: 8px;
  }

  .meta-line .divider {
    display: none;
  }

  .meta-line span,
  .meta-line strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.78);
  }

  .intro-scene {
    min-height: clamp(280px, 72vw, 360px);
    gap: 12px;
  }

  .scene-card-anchor {
    width: min(430px, calc(100vw - 48px));
    margin-inline: auto;
    min-height: clamp(260px, 72vw, 340px);
  }

  .circle-number {
    display: none;
  }

  .scene-card {
    width: 100%;
    margin-inline: auto;
    transform-origin: center center;
  }

  .metal-card-ui {
    min-height: 0;
  }

  .story-section {
    padding-top: 56px;
  }

  .story-map {
    min-height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .story-shape,
  .story-path,
  .story-dot {
    display: none;
  }

  .story-card {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .card-top,
  .card-right,
  .card-bottom {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    --parallax-rotate: 0deg;
  }

  .rule-visual-card {
    min-height: 118px;
    padding: 14px;
    border-radius: 20px;
  }

  .rule-visual-card strong {
    font-size: 28px;
  }

  .feature-list,
  .quick-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-list article {
    min-height: 112px;
    padding: 16px;
  }

  .feature-card-a,
  .feature-card-b,
  .feature-card-c {
    grid-column: span 1;
  }

  .feature-list article:last-child {
    grid-column: 1 / -1;
  }

  .feature-list article span {
    font-size: 21px;
  }

  .plan-option {
    min-height: 102px;
  }

  .plan-option strong {
    font-size: 28px;
  }

  .workspace-status {
    min-height: 40px;
    font-size: 13px;
  }

  .amount-field {
    min-height: 58px;
  }

  .amount-field input {
    font-size: 28px;
  }

  .board-side {
    gap: 10px;
    padding: 18px;
  }

  .rule-item {
    min-height: 78px;
    padding: 12px 14px;
  }

  .ledger-intro {
    gap: 12px;
  }

  .ledger-table {
    padding: 18px;
    border-radius: 24px;
  }

  .closing-shell {
    justify-items: start;
    gap: 14px;
    padding: 36px 0 24px;
  }

  .closing-shell h2 {
    text-align: left;
  }

  .closing-cta {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
  }

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

  .floating-nav {
    top: 12px;
    width: 100%;
    gap: 12px;
    margin: 0 auto 24px;
    padding: 12px 14px;
    border-radius: 24px;
    background: rgb(255 255 255 / 0.72);
    box-shadow:
      0 22px 44px rgb(22 18 15 / 0.12),
      inset 0 1px 0 rgb(255 255 255 / 0.6);
    backdrop-filter: blur(22px);
  }

  .scene-card-anchor {
    width: 100%;
    margin: 0;
    min-height: clamp(240px, 78vw, 320px);
  }

  .scene-card-shell.is-inspecting {
    width: calc(100vw - 20px);
  }

  .nav-brand {
    gap: 8px;
    font-size: 12px;
  }

  .brand-dot {
    width: 8px;
    height: 8px;
  }

  .nav-actions {
    gap: 8px;
  }

  .network-badge {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .feature-list {
    gap: 10px;
    margin-top: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-list article {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    align-items: start;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
  }

  .feature-list article strong {
    grid-area: auto;
    font-size: 13px;
  }

  .feature-list article span {
    grid-area: auto;
    align-self: auto;
    font-size: 19px;
    line-height: 1;
    text-align: left;
  }

  .scene-card {
    width: 100%;
    transform: translate3d(0, calc(var(--parallax-y) - 6px), 0) rotate(0deg);
    transform-origin: center center;
  }

  .metal-card-ui {
    width: 100%;
    min-height: clamp(224px, 72vw, 292px);
    aspect-ratio: auto;
    padding: 14px;
    border-radius: 20px;
  }

  .metal-side-accent {
    width: 14px;
  }

  .metal-sensor-stack {
    gap: 10px;
    margin-top: 2px;
    margin-left: 12px;
  }

  .metal-chip {
    width: 44px;
    padding: 5px;
    border-radius: 8px;
  }

  .metal-chip span {
    border-width: 1px;
  }

  .metal-nfc {
    width: 28px;
    height: 34px;
  }

  .metal-nfc span {
    border-width: 1.5px;
  }

  .metal-token-logo {
    display: none;
  }

  .metal-card-ui::before {
    content: "T";
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 76px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(45deg, #a5f3fc, #f9a8d4, #fde68a, #c4b5fd, #a5f3fc);
    background-size: 200% 200%;
    color: rgb(255 255 255 / 0.96);
    font-family: "Manrope", sans-serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 4px 9px rgb(0 0 0 / 0.2);
    animation: rainbow-flow 5s linear infinite;
  }

  .metal-token-logo span {
    font-size: 34px;
  }

  .metal-card-top,
  .metal-card-bottom {
    gap: 10px;
  }

  .metal-card-bottom {
    align-items: flex-end;
  }

  .metal-top-insights {
    width: 100%;
  }

  .metal-balance-stack {
    width: min(58%, 220px);
    gap: 7px;
  }

  .metal-screen {
    min-width: 0;
    min-height: 76px;
    padding: 10px;
    border-radius: 10px;
  }

  .metal-etch-grid {
    gap: 4px;
    width: 100%;
    padding: 6px 7px;
  }

  .metal-etch-item span {
    font-size: 7px;
  }

  .metal-etch-item strong {
    font-size: 10px;
  }

  .metal-screen-head span,
  .metal-address-text span,
  .metal-status-inline span,
  .metal-screen-label {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .metal-screen-head {
    gap: 8px;
  }

  .metal-screen-head strong {
    font-size: 11px;
  }

  .metal-screen output {
    font-size: clamp(19px, 6.4vw, 26px);
  }

  .metal-address-block {
    max-width: 34%;
    margin-bottom: 2px;
  }

  .metal-address-stack {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .metal-address-text strong {
    font-size: 9px;
  }

  .metal-status-inline strong {
    font-size: 10px;
  }

  .metal-action-row {
    gap: 5px;
  }

  .metal-action-button {
    min-height: 22px;
    padding: 0 8px;
    font-size: 9px;
  }

  .withdraw-modal-panel {
    width: calc(100% - 20px);
    max-height: calc(100vh - 24px);
    margin: 10px;
    padding: 16px;
    border-radius: 24px;
  }

  .withdraw-modal-grid {
    grid-template-columns: 1fr;
  }

  .withdraw-stat-card {
    min-height: 122px;
    padding: 16px;
  }

  .withdraw-stat-card strong {
    font-size: 24px;
  }

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

  .meta-line {
    gap: 6px;
  }

  .meta-line span,
  .meta-line strong {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .story-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-bottom {
    grid-column: 1 / -1;
  }

  .rule-visual-card {
    min-height: 102px;
  }

  .rule-visual-card strong {
    font-size: 24px;
  }

  .workspace-section,
  .ledger-section,
  .closing-section {
    gap: 16px;
  }

  .plan-option {
    min-height: 92px;
    padding: 12px;
  }

  .plan-option strong {
    font-size: 24px;
  }

  .quick-amount {
    min-height: 38px;
  }

  .board-main,
  .board-side {
    padding: 16px;
    border-radius: 24px;
  }

  .board-side {
    grid-template-columns: 1fr 1fr;
  }

  .rule-item strong {
    font-size: 16px;
  }

  .rule-item-inline strong {
    font-size: 11px;
  }

  .ledger-table {
    padding: 16px;
  }

  .ledger-columns {
    display: none;
  }

  .record-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 14px 0;
  }

  .record-main-amount {
    grid-column: 1 / 2;
  }

  .record-main-profit {
    grid-column: 2 / 3;
    justify-items: end;
    text-align: right;
  }

  .record-status {
    grid-column: 1 / 2;
  }

  .record-link {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .daily-interest-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .daily-interest-row .record-main:nth-child(3) {
    grid-column: 1 / 2;
  }

  .daily-interest-row .record-main:nth-child(4) {
    grid-column: 2 / 3;
    justify-items: end;
    text-align: right;
  }

  .site-footer {
    gap: 18px;
    padding-top: 18px;
    grid-template-columns: 1fr 1fr;
  }

  .site-footer div:last-child {
    grid-column: 1 / -1;
  }

  .board-side {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .float-gentle {
    animation: none;
  }

  body.motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
