:root {
  --ink: #0b1117;
  --muted: #66737f;
  --soft: #f6f8f8;
  --softer: #fbfcfc;
  --line: #e4e9e8;
  --panel: #ffffff;
  --accent: #06b9aa;
  --accent-strong: #008e84;
  --accent-soft: #e8fbf8;
  --shadow: 0 30px 90px rgba(11, 17, 23, 0.08);
  --pointer-x: 50vw;
  --pointer-y: 20vh;
  --drift-x: 0px;
  --drift-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(540px circle at var(--pointer-x) var(--pointer-y), rgba(6, 185, 170, 0.085), transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfc 44%, #ffffff 100%);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 229, 223, 0.72);
  display: flex;
  gap: 26px;
  min-height: 76px;
  padding: 0 42px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  white-space: nowrap;
}

.brand img {
  border-radius: 0;
  height: 44px;
  object-fit: contain;
  width: 112px;
}

.main-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 2px;
  justify-content: center;
}

.main-nav a,
.header-action,
.button {
  border-radius: 999px;
  font-weight: 650;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a {
  color: #4b5563;
  padding: 8px 13px;
}

.main-nav a:hover {
  background: #f2f2ef;
  color: var(--ink);
  transform: translateY(-1px);
}

.header-action,
.button.primary {
  background: #0b1117;
  color: #ffffff;
}

.header-action {
  padding: 9px 15px;
}

.header-action:hover,
.button:hover,
.copy-button:hover {
  box-shadow: 0 12px 28px rgba(16, 19, 24, 0.13);
  transform: translateY(-2px);
}

.hero-section {
  margin: 0 auto;
  max-width: 1220px;
  min-height: calc(100vh - 118px);
  padding: 86px 24px 48px;
  position: relative;
  text-align: center;
}

.hero-visual {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.hero-visual::before {
  background:
    linear-gradient(90deg, rgba(231, 229, 223, 0.42) 1px, transparent 1px),
    linear-gradient(180deg, rgba(231, 229, 223, 0.42) 1px, transparent 1px);
  background-size: 86px 86px;
  content: "";
  inset: -120px;
  opacity: 0.24;
  position: absolute;
  transform: translate(var(--drift-x), var(--drift-y));
  transition: transform 180ms ease-out;
}

.hash-grid {
  display: none;
}

.hero-content {
  margin: 0 auto;
  max-width: 1040px;
  padding: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-content h1,
.pool-hero h1 {
  font-size: clamp(54px, 7.2vw, 104px);
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0 auto 26px;
  max-width: 1120px;
}

.hero-copy,
.pool-hero p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 820px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  justify-content: center;
  min-width: 154px;
  overflow: hidden;
  padding: 12px 18px;
  position: relative;
}

.button.secondary {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-terminal {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 60px auto 0;
  max-width: 920px;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.terminal-top {
  align-items: center;
  background: #fafaf8;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 15px 18px;
}

.terminal-top span {
  background: #d0d5dd;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.terminal-top span:first-child {
  background: #f97066;
}

.terminal-top span:nth-child(2) {
  background: #fdb022;
}

.terminal-top span:nth-child(3) {
  background: #12b76a;
}

.terminal-top strong {
  color: #667085;
  font-size: 13px;
  margin-left: auto;
}

.terminal-lines {
  color: #344054;
  display: grid;
  font: 14px/1.72 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  gap: 8px;
  padding: 26px;
}

.terminal-lines p {
  align-items: center;
  background: #fbfbfa;
  border: 1px solid #f0eee9;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 10px 12px;
}

.terminal-lines span {
  color: var(--accent);
}

.metrics-band,
.section,
.pool-hero,
.pool-status-grid,
.pool-layout,
.site-footer {
  margin: 0 auto;
  max-width: 1220px;
  width: calc(100% - 48px);
}

.metrics-band {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(11, 17, 23, 0.055);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.metrics-band div,
.pool-status-grid div {
  border-right: 1px solid var(--line);
  padding: 28px;
}

.metrics-band div:last-child,
.pool-status-grid div:last-child {
  border-right: 0;
}

.metrics-band span,
.pool-status-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.metrics-band strong,
.pool-status-grid strong {
  display: block;
  font-size: 26px;
  margin-top: 4px;
}

.section {
  padding: 124px 0 0;
}

.section-head {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
}

.section h2,
.pool-callout h2,
.network-copy h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 18px;
}

.section-head > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 690px;
}

.mission-grid,
.download-grid,
.wallet-flow {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
}

.mission-grid article,
.download-grid a,
.wallet-flow article,
.panel,
.connect-card,
.stack-list div {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(11, 17, 23, 0.035);
}

.mission-grid article,
.download-grid a,
.wallet-flow article {
  min-height: 212px;
  padding: 30px;
}

.mission-grid h3,
.wallet-flow h3 {
  font-size: 24px;
  margin: 0 0 10px;
}

.mission-grid p,
.wallet-flow p,
.network-copy p,
.download-grid p,
.pool-callout p,
.panel-copy,
.setup-list,
.side-panel li,
.stack-list p {
  color: var(--muted);
}

.wallet-flow span {
  color: var(--accent);
  display: block;
  font-size: 13px;
  font-weight: 780;
  margin-bottom: 18px;
}

.wallet-flow code,
.address-example code {
  background: var(--accent-soft);
  border-radius: 8px;
  color: #075d53;
  padding: 3px 7px;
}

.network-section {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
}

.protocol-section {
  align-items: start;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1fr);
}

.network-copy {
  position: sticky;
  top: 112px;
}

.network-copy p {
  font-size: 19px;
  line-height: 1.62;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-list div {
  padding: 26px;
}

.stack-list span {
  color: var(--accent);
  font-weight: 760;
}

.stack-list strong {
  display: block;
  font-size: 24px;
  margin: 2px 0;
}

.stack-list p {
  margin: 0;
}

.pool-callout {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(6, 185, 170, 0.08), transparent 38%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 32px;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-top: 124px;
  padding: 52px;
}

.pool-callout p {
  max-width: 680px;
}

.download-grid a span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.download-grid a strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 124px;
  padding: 30px 0 42px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.pool-hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 440px;
  padding: 86px 0 28px;
}

.pool-hero > div:first-child {
  background:
    linear-gradient(135deg, rgba(6, 185, 170, 0.09), transparent 38%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 32px;
  min-height: 390px;
  padding: 54px;
}

.pool-hero h1 {
  font-size: clamp(48px, 7vw, 84px);
}

.pool-hero h1,
.pool-hero p {
  margin-left: 0;
  text-align: left;
}

.connect-card {
  min-height: 390px;
  padding: 32px;
  position: relative;
}

.connect-card > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.copy-button {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-weight: 760;
  overflow: hidden;
  padding: 8px 12px;
  position: absolute;
  right: 24px;
  top: 24px;
}

.connect-card code,
.setup-list code {
  background: var(--accent-soft);
  border-radius: 8px;
  color: #075d53;
  padding: 3px 7px;
}

.connect-card code {
  display: block;
  margin: 18px 0 24px;
  overflow-x: auto;
  padding: 14px;
  white-space: nowrap;
}

.connect-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.connect-card dl div {
  display: grid;
  gap: 12px;
  grid-template-columns: 96px 1fr;
}

.connect-card dt {
  color: var(--muted);
}

.connect-card dd {
  font-weight: 760;
  margin: 0;
}

.pool-status-grid {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.wallet-ops-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px auto 0;
  max-width: 1220px;
  width: calc(100% - 48px);
}

.panel-copy {
  margin: 0;
}

.address-example {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
}

.address-example span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.address-example code {
  display: block;
  overflow-x: auto;
}

.pool-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 340px;
  padding-top: 22px;
}

.pool-main {
  display: grid;
  gap: 22px;
}

.panel {
  padding: 28px;
}

.panel-head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel h2 {
  font-size: 24px;
  margin: 0;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 760;
  padding: 4px 8px;
}

.status.ok {
  background: #ddf4ed;
  color: #0b6b50;
}

.status.pending {
  background: #fbf0d6;
  color: #7b5a12;
}

.setup-list {
  margin-bottom: 0;
  padding-left: 22px;
}

.setup-list li {
  margin: 10px 0;
}

.side-panel ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.side-panel li {
  margin: 9px 0;
}

.wallet-hero,
.wallet-app-shell {
  margin: 0 auto;
  max-width: 1220px;
  width: calc(100% - 48px);
}

.wallet-hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 390px;
  padding: 86px 0 28px;
}

.wallet-hero > div:first-child,
.wallet-hero-card,
.wallet-sidebar,
.wallet-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 32px;
}

.wallet-hero > div:first-child {
  background:
    linear-gradient(135deg, rgba(6, 185, 170, 0.09), transparent 40%),
    #ffffff;
  min-height: 390px;
  padding: 54px;
}

.wallet-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0 0 26px;
}

.wallet-hero p,
.wallet-hero-card p,
.wallet-empty p,
.wallet-form label,
.receive-box p {
  color: var(--muted);
}

.wallet-hero > div:first-child > p:last-child {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  max-width: 780px;
}

.wallet-hero-card {
  align-content: end;
  display: grid;
  min-height: 390px;
  padding: 34px;
}

.wallet-hero-card span,
.wallet-choice span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.wallet-hero-card strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 12px 0;
}

.wallet-app-shell {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 350px minmax(0, 1fr);
  padding-top: 22px;
}

.wallet-sidebar,
.wallet-panel {
  box-shadow: 0 1px 2px rgba(11, 17, 23, 0.035);
}

.wallet-sidebar {
  display: grid;
  gap: 22px;
  padding: 28px;
  position: sticky;
  top: 98px;
}

.wallet-brand-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.wallet-brand-row img {
  height: 34px;
  object-fit: contain;
  width: 86px;
}

.wallet-brand-row span,
.wallet-balance span,
.wallet-address-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.wallet-balance {
  background:
    linear-gradient(135deg, rgba(6, 185, 170, 0.1), transparent 48%),
    #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.wallet-balance strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.wallet-address-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.wallet-address-box code,
.receive-box code {
  color: #075d53;
  display: block;
  overflow-wrap: anywhere;
}

.inline-copy {
  justify-self: start;
  position: static;
}

.wallet-note {
  color: var(--muted);
  font-size: 14px;
}

.wallet-note strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.wallet-note p {
  margin: 0;
}

.wallet-panel {
  min-height: 620px;
  padding: 34px;
}

.wallet-empty h2,
.mnemonic-panel h2,
.wallet-form h2 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 14px;
}

.wallet-choice-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.wallet-choice {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  cursor: pointer;
  font: inherit;
  min-height: 184px;
  padding: 24px;
  text-align: left;
}

.wallet-choice strong {
  display: block;
  font-size: 24px;
  margin: 12px 0 8px;
}

.wallet-choice p {
  margin: 0;
}

.wallet-form {
  display: grid;
  gap: 18px;
}

.wallet-form.compact {
  gap: 14px;
}

.wallet-form label {
  display: grid;
  font-size: 14px;
  font-weight: 650;
  gap: 8px;
}

.wallet-form input,
.wallet-form textarea,
.wallet-form select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  outline: 0;
  padding: 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wallet-form input:focus,
.wallet-form textarea:focus,
.wallet-form select:focus {
  border-color: rgba(6, 185, 170, 0.45);
  box-shadow: 0 0 0 4px rgba(6, 185, 170, 0.12);
}

.password-rule {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  margin: -4px 0 0;
  padding: 12px 14px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  padding: 0;
}

.mnemonic-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0;
}

.mnemonic-grid span,
.mnemonic-input-grid input {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 680;
  padding: 10px 12px;
}

.mnemonic-import-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mnemonic-import-head label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.mnemonic-input-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.mnemonic-input-grid input {
  color: var(--ink);
  font: inherit;
  outline: 0;
  width: 100%;
}

.mnemonic-input-grid input:focus {
  border-color: rgba(6, 185, 170, 0.45);
  box-shadow: 0 0 0 4px rgba(6, 185, 170, 0.12);
}

.mnemonic-input-grid input.is-valid-word {
  border-color: rgba(6, 185, 170, 0.55);
  background: rgba(6, 185, 170, 0.06);
}

.mnemonic-suggestions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(10, 16, 20, 0.16);
  display: grid;
  gap: 2px;
  max-height: 230px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  z-index: 50;
}

.mnemonic-suggestions button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 8px 10px;
  text-align: left;
}

.mnemonic-suggestions button:hover {
  background: rgba(6, 185, 170, 0.08);
  color: var(--accent-strong);
}

.check-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.wallet-tabs {
  background: #f6f8f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 5px;
}

.wallet-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  padding: 10px 14px;
  white-space: nowrap;
}

.wallet-tabs button.active {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 17, 23, 0.08);
  color: var(--ink);
}

.wallet-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 28px;
}

.wallet-stat-grid div,
.activity-row,
.receive-box,
.wallet-action-grid > form {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.wallet-stat-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.wallet-stat-grid strong {
  display: block;
  font-size: 21px;
  margin-top: 6px;
}

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

.activity-row {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr auto;
}

.activity-row small {
  color: var(--muted);
  grid-column: 1 / -1;
}

.receive-box {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.qr-placeholder {
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, #0b1117 10px, transparent 10px) 0 0 / 34px 34px,
    linear-gradient(#0b1117 10px, transparent 10px) 0 0 / 34px 34px,
    #ffffff;
  border: 14px solid #ffffff;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 34px rgba(11, 17, 23, 0.08);
}

.wallet-action-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button.danger {
  background: #fff1f1;
  border: 1px solid #ffd6d6;
  color: #9f1d1d;
}

.button:disabled,
.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.wallet-message {
  color: var(--muted);
  margin: 18px 0 0;
  min-height: 24px;
}

.wallet-message[data-tone="success"] {
  color: var(--accent-strong);
}

.wallet-message[data-tone="warn"] {
  color: #9f5b00;
}

.hidden {
  display: none !important;
}

.interactive-card {
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  will-change: transform;
}

.interactive-card::before,
.button::before,
.header-action::before,
.copy-button::before {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(11, 127, 114, 0.12), transparent 48%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}

.interactive-card:hover {
  border-color: rgba(11, 127, 114, 0.28);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
}

.interactive-card:hover::before,
.button:hover::before,
.header-action:hover::before,
.copy-button:hover::before {
  opacity: 1;
}

.click-ripple {
  animation: ripple 720ms ease-out forwards;
  background: rgba(11, 127, 114, 0.18);
  border-radius: 50%;
  height: 12px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 12px;
}

@keyframes ripple {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    position: static;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
  }

  .header-action {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 58px 14px 42px;
  }

  .hero-content h1,
  .pool-hero h1,
  .wallet-hero h1 {
    font-size: clamp(44px, 13vw, 64px);
    line-height: 0.98;
  }

  .hero-terminal {
    margin-top: 34px;
  }

  .metrics-band,
  .mission-grid,
  .network-section,
  .protocol-section,
  .download-grid,
  .wallet-flow,
  .wallet-hero,
  .wallet-app-shell,
  .wallet-choice-grid,
  .wallet-stat-grid,
  .wallet-action-grid,
  .receive-box,
  .pool-hero,
  .pool-status-grid,
  .wallet-ops-grid,
  .pool-layout {
    grid-template-columns: 1fr;
  }

  .metrics-band,
  .section,
  .pool-hero,
  .wallet-hero,
  .wallet-app-shell,
  .pool-status-grid,
  .wallet-ops-grid,
  .pool-layout,
  .site-footer {
    width: calc(100% - 28px);
  }

  .metrics-band div,
  .pool-status-grid div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .network-copy {
    position: static;
  }

  .mission-grid article,
  .download-grid a,
  .wallet-flow article {
    min-height: auto;
  }

  .pool-callout,
  .site-footer,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pool-callout {
    padding: 28px;
  }

  .pool-hero > div:first-child,
  .wallet-hero > div:first-child,
  .wallet-hero-card,
  .wallet-panel,
  .wallet-sidebar,
  .connect-card {
    min-height: auto;
    padding: 30px;
  }

  .wallet-sidebar {
    position: static;
  }

  .wallet-choice {
    min-height: auto;
  }

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

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

  .wallet-tabs {
    border-radius: 18px;
  }

  .wallet-stat-grid strong {
    font-size: 18px;
  }
}

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

  .interactive-card {
    transform: none !important;
  }
}
