/* Beara — shared design system */
:root {
  --lime: #d4fa00;
  --ink: #0a0a0a;
  --white: #ffffff;
  --ink-soft: #1a1a1a;
  --ink-muted: #3a3a3a;
  --lime-dim: #b8d900;
  --lime-wash: rgba(212, 250, 0, 0.12);
  --surface: #0a0a0a;
  --surface-2: #141414;
  --surface-3: #1c1c1c;
  --border: rgba(212, 250, 0, 0.18);
  --border-strong: rgba(212, 250, 0, 0.4);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--lime);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--lime);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  background: var(--lime);
}

.site-header.is-dark {
  background: var(--ink);
  border-bottom-color: var(--border);
  color: var(--white);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--lime);
  object-fit: cover;
  flex-shrink: 0;
}

.site-header.is-dark .brand-mark {
  border-color: var(--lime);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--ink);
  color: var(--lime);
  outline: none;
}

.site-header.is-dark .nav a:hover,
.site-header.is-dark .nav a:focus-visible {
  background: var(--lime);
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

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

.btn-primary {
  background: var(--ink);
  color: var(--lime);
}

.btn-primary:hover:not(:disabled) {
  background: var(--ink-soft);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--ink);
  color: var(--lime);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.btn-lime:hover:not(:disabled) {
  background: var(--lime-dim);
  box-shadow: 0 0 0 3px rgba(212, 250, 0, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer.is-dark {
  background: var(--ink);
  border-top-color: var(--border);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: currentColor;
}

/* ========== LANDING ========== */
.landing-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(10, 10, 10, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(10, 10, 10, 0.06), transparent 50%),
    var(--lime);
}

.hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.35);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 32rem;
  margin-bottom: 1.75rem;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-stage {
  width: min(100%, 380px);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--lime);
  box-shadow: 12px 12px 0 var(--ink);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(10, 10, 10, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.logo-stage img {
  width: 78%;
  height: auto;
  position: relative;
  z-index: 1;
}

.features {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border: 2px solid var(--ink);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 rgba(10, 10, 10, 0.35);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-band {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4rem;
  background: var(--ink);
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.2);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 28rem;
}

/* ========== APP ========== */
.app-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
}

.app-main {
  width: min(100% - 1.25rem, 720px);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  flex: 1;
}

.app-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.app-title-row h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}

.app-title-row p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.wallet-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--lime);
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.leg {
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.leg + .leg {
  margin-top: 0.35rem;
}

.leg-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.65rem;
}

.leg-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.amount-wrap {
  min-width: 0;
}

.amount-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 500;
  color: var(--white);
  outline: none;
  letter-spacing: -0.02em;
}

.amount-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.amount-input:focus {
  color: var(--lime);
}

.amount-usd {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
  min-height: 1.1em;
}

.selectors {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  min-width: 9.5rem;
}

.select-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-align: left;
  max-width: 11rem;
}

.select-btn:hover,
.select-btn:focus-visible {
  border-color: var(--lime);
  outline: none;
  background: var(--surface-2);
}

.select-btn img,
.token-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  object-fit: cover;
  flex-shrink: 0;
}

.select-btn .chev {
  margin-left: auto;
  opacity: 0.5;
  font-size: 0.7rem;
}

.select-btn .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 6.5rem;
}

.swap-flip {
  display: flex;
  justify-content: center;
  margin: -0.15rem 0;
  position: relative;
  z-index: 2;
}

.flip-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.15s ease;
}

.flip-btn:hover {
  transform: rotate(180deg);
  box-shadow: 0 0 0 3px rgba(212, 250, 0, 0.2);
}

.flip-btn svg {
  width: 18px;
  height: 18px;
}

.action-row {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.quote-panel {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: none;
}

.quote-panel.is-open {
  display: block;
}

.quote-grid {
  display: grid;
  gap: 0.55rem;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
}

.quote-row span:first-child {
  color: rgba(255, 255, 255, 0.5);
}

.quote-row span:last-child {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-align: right;
  color: var(--white);
}

.quote-row.is-highlight span:last-child {
  color: var(--lime);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Status */
.status-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: none;
}

.status-panel.is-open {
  display: block;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.status-head h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}

.status-badge.is-pending {
  background: rgba(212, 250, 0, 0.2);
  color: var(--lime);
  border: 1px solid var(--border-strong);
}

.status-badge.is-failed {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
}

.progress-track {
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, var(--lime-dim), var(--lime));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-bar.is-pulse {
  animation: pulse-bar 1.2s ease-in-out infinite;
}

@keyframes pulse-bar {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.status-detail {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.status-detail .mono {
  color: var(--lime);
  word-break: break-all;
  font-size: 0.78rem;
}

/* Alerts */
.alert {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.9rem;
}

.alert.is-open {
  display: flex;
}

.alert-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  line-height: 1;
}

/* History */
.history {
  margin-top: 1.75rem;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.history-head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--surface-2);
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 520px;
}

.tx-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.tx-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  vertical-align: middle;
}

.tx-table tr:last-child td {
  border-bottom: none;
}

.tx-table .status-pill {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(212, 250, 0, 0.15);
  color: var(--lime);
  border: 1px solid var(--border);
}

.tx-table .status-pill.success {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.tx-table .status-pill.failure,
.tx-table .status-pill.refund {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
}

.empty-state strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.is-open {
  display: flex;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal {
  width: min(100%, 420px);
  max-height: min(80vh, 560px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.modal-search {
  padding: 0.75rem 1rem;
}

.modal-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--white);
  font-size: 0.92rem;
  outline: none;
}

.modal-search input:focus {
  border-color: var(--lime);
}

.modal-list {
  overflow-y: auto;
  flex: 1;
  padding: 0 0.5rem 0.75rem;
}

.modal-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.65rem;
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--white);
  transition: background 0.12s ease;
}

.modal-item:hover,
.modal-item:focus-visible {
  background: var(--surface-3);
  outline: none;
}

.modal-item.is-active {
  background: var(--lime-wash);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.modal-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
}

.modal-item .meta {
  min-width: 0;
  flex: 1;
}

.modal-item .meta strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-item .meta span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 10, 10, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-lime .spinner,
.btn-ghost .spinner {
  border-color: rgba(10, 10, 10, 0.2);
  border-top-color: var(--ink);
}

.btn-primary .spinner {
  border-color: rgba(212, 250, 0, 0.25);
  border-top-color: var(--lime);
}

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

/* 404 */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lime);
}

.page-404 main {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.page-404 p {
  margin: 0.75rem 0 1.5rem;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
  }

  .logo-stage {
    width: min(100%, 280px);
    box-shadow: 8px 8px 0 var(--ink);
  }

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

@media (max-width: 520px) {
  .leg-row {
    grid-template-columns: 1fr;
  }

  .selectors {
    flex-direction: row;
    min-width: 0;
  }

  .select-btn {
    flex: 1;
    max-width: none;
  }

  .nav .hide-sm {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
