/* ═══════════════════════════════════════════════════════════════
   splitly.css — Unified design system
   Pages: index.html  •  docs.html  •  platform.html
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  /* brand */
  --red: #e84142;
  --red-dark: #c93738;
  --red-light: #ff5a5b;
  --red-subtle: #fff5f5;
  --red-border: #fecaca;

  /* neutrals */
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #f9fafb;
  --bg-3: #f3f4f6;

  /* legacy aliases kept for platform.js */
  --avax-red: var(--red);
  --avax-red-dark: var(--red-dark);
  --avax-red-light: var(--red-light);
  --avax-gray: #9ba1a6;
  --border-color: var(--border);
  --card-bg: var(--bg);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);

  /* layout */
  --nav-h: 64px;
  --sidebar-w: 272px;
  --max-w: 1400px;
  --docs-max: 780px;

  /* typography */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --display: "Raleway", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════
   SHARED SHELL — nav, footer, scroll-to-top  (injected by splitly.js)
   ════════════════════════════════════════════════════════════════ */

/* ── Top Nav ─────────────────────────────────────────────────── */
.s-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
.s-nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 28px;
  gap: 0;
}

.s-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.s-nav-logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.s-nav-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 5px;
}

/* ── Logo images ─────────────────────────────────────────────── */
.s-nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.s-footer-logo-img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  max-width: 220px;
  display: block;
  margin-left: 0;
  padding-left: 0;
}
@media (prefers-color-scheme: dark) {
  /* Future: swap to white/light variants here */
}

.s-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}
.s-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 7px;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.s-nav-link:hover {
  background: var(--bg-3);
  color: var(--text);
}
.s-nav-link.active {
  color: var(--red);
  font-weight: 600;
}

.s-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s-nav-cta {
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.s-nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.s-nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  margin-left: auto;
  padding: 4px 8px;
}
.s-nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 199;
  flex-direction: column;
  gap: 4px;
}
.s-nav-mobile.open {
  display: flex;
}
.s-nav-mobile .s-nav-link {
  font-size: 15px;
  padding: 10px 12px;
}
.s-nav-mobile .s-nav-cta {
  text-align: center;
  padding: 11px 16px;
  font-size: 15px;
  margin-top: 8px;
}
.s-nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.s-nav-link--ext {
  color: var(--text-3);
  font-size: 14px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.s-footer {
  background: var(--bg);
  border-top: 2px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 60px;
}
.s-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.s-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.s-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s-footer-logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.s-footer-tagline {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.s-footer-col-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--text);
}
.s-footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.s-footer-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.s-footer-link:hover {
  color: var(--red);
}
.s-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.s-footer-copy {
  font-size: 13px;
  color: var(--text-3);
}
.s-footer-avax {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.s-footer-avax strong {
  color: var(--red);
}
.s-footer-avax svg {
  flex-shrink: 0;
}

/* ── Scroll-to-top ───────────────────────────────────────────── */
.s-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 65, 66, 0.4);
  transition: all 0.3s;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}
.s-scroll-top.visible {
  display: flex;
}
.s-scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(232, 65, 66, 0.5);
}

/* ── Page body offset ────────────────────────────────────────── */
.page-body {
  padding-top: var(--nav-h);
}

/* ════════════════════════════════════════════════════════════════
   SHARED UTILITIES  (used by all three pages)
   ════════════════════════════════════════════════════════════════ */
.address-display {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-3);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success {
  background: #d1fae5;
  color: #065f46;
}
.badge-inactive {
  background: #fee2e2;
  color: #991b1b;
}
.badge-red {
  background: var(--red-subtle);
  color: var(--red);
  border: 1px solid var(--red-border);
}
.badge-gray {
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-green {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* inline code */
code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--red);
}

/* code block */
pre {
  background: #0f172a;
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 20px 0;
  position: relative;
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
pre code {
  font-family: var(--mono);
  font-size: 13px;
  background: none;
  border: none;
  padding: 0;
  color: #e2e8f0;
  line-height: 1.7;
}

/* callouts */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid;
}
.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}
.callout-body {
  flex: 1;
}
.callout-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.callout-text {
  font-size: 13px;
  line-height: 1.6;
}
.callout.info {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.callout.info .callout-title {
  color: #1d4ed8;
}
.callout.info .callout-text {
  color: #1e40af;
}
.callout.warning {
  background: #fffbeb;
  border-color: #fde68a;
}
.callout.warning .callout-title {
  color: #92400e;
}
.callout.warning .callout-text {
  color: #78350f;
}
.callout.danger {
  background: var(--red-subtle);
  border-color: var(--red-border);
}
.callout.danger .callout-title {
  color: var(--red-dark);
}
.callout.danger .callout-text {
  color: #9f1239;
}
.callout.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.callout.success .callout-title {
  color: #166534;
}
.callout.success .callout-text {
  color: #14532d;
}

/* ════════════════════════════════════════════════════════════════
   PLATFORM PAGE  (platform.html + platform.js)
   ════════════════════════════════════════════════════════════════ */

/* ── Toast ────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}
.toast {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastIn 0.3s ease;
  border-left: 4px solid;
}
.toast.success {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}
.toast.error {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}
.toast.warning {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.toast.info {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.toast-icon {
  font-size: 20px;
  line-height: 1;
}
.toast-content {
  flex: 1;
}
.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}
.toast-message {
  font-size: 13px;
  color: var(--text-2);
}
.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
}
.toast-close:hover {
  opacity: 1;
}
@keyframes toastIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Layout ─────────────────────────────────────────────────── */
.platform-page {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px;
}

/* ── Platform header bar ─────────────────────────────────────── */
.header {
  background: var(--card-bg);
  border-bottom: 2px solid var(--border-color);
  padding: 16px 0;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.header-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}
.logo-badge {
  background: var(--avax-red);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--avax-red);
}
.wallet-info {
  background: var(--bg-2);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.disconnect-btn {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.disconnect-btn:hover {
  background: #fecaca;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--avax-red);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--avax-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 65, 66, 0.3);
}
.btn-primary:disabled {
  background: var(--avax-gray);
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: white;
  color: var(--avax-red);
  border: 2px solid var(--avax-red);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-secondary:hover {
  background: var(--avax-red);
  color: white;
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-icon {
  background: var(--bg-3);
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 16px;
}
.btn-icon:hover {
  background: var(--border);
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-bottom: -2px;
}
.tab.active {
  color: var(--avax-red);
  border-bottom-color: var(--avax-red);
}
.tab:hover {
  color: var(--text-primary);
}

/* ── Splitter grid ───────────────────────────────────────────── */
.splitter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.splitter-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  text-align: center;
}
.splitter-card:hover {
  border-color: var(--avax-red);
  box-shadow: 0 4px 12px rgba(232, 65, 66, 0.1);
  transform: translateY(-2px);
}
.splitter-card.active {
  border-color: var(--avax-red);
  background: linear-gradient(135deg, #fff5f5, #ffffff);
}

/* ── Toggle switch ───────────────────────────────────────────── */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: 8px;
}
.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}
.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: var(--avax-red);
}
input:checked + .toggle-slider::before {
  transform: translateX(24px);
}
.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ── Form ────────────────────────────────────────────────────── */
.input-group {
  margin-bottom: 20px;
}
.input-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.input-field {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--card-bg);
  color: var(--text-primary);
}
.input-field:focus {
  outline: none;
  border-color: var(--avax-red);
}

/* ── Table ───────────────────────────────────────────────────── */
.wallet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.wallet-table th {
  text-align: left;
  padding: 12px;
  background: var(--bg-2);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wallet-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border-color);
}
.wallet-table tr:hover {
  background: var(--bg-2);
}

/* ── Balance grid ────────────────────────────────────────────── */
.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.balance-card {
  background: var(--bg-2);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
.balance-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.balance-value {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--mono);
}

/* ── Wallet balance cards ────────────────────────────────────── */
.wallet-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.wallet-balance-card {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.wallet-balance-card:hover {
  border-color: var(--avax-red);
  box-shadow: 0 4px 16px rgba(232, 65, 66, 0.08);
}
.wbc-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.wbc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--avax-red), var(--avax-red-light));
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wbc-meta {
  flex: 1;
  min-width: 0;
}
.wbc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wbc-share-badge {
  background: #fff0f0;
  color: var(--avax-red);
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--mono);
}
.wbc-tokens {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wbc-token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid transparent;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.wbc-token-row:has(.wbc-has-balance) {
  background: #fff8f8;
  border-color: #fecaca;
}
.wbc-token-symbol {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wbc-token-amount {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.wbc-token-amount.wbc-has-balance {
  color: var(--avax-red);
  font-weight: 700;
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ── Progress bar ────────────────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  transition: width 0.3s ease;
}

/* ── Platform footer (inside React, same design as s-footer) ─── */
.footer {
  background: var(--card-bg);
  border-top: 2px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}
.footer-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.footer-section-title {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--avax-red);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.powered-by {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.avalanche-logo {
  height: 24px;
}

/* ════════════════════════════════════════════════════════════════
   DOCS PAGE  (docs.html)
   ════════════════════════════════════════════════════════════════ */
.docs-layout {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.docs-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg);
  padding: 28px 0 40px;
}
.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.ds-section {
  margin-bottom: 28px;
}
.ds-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  padding: 0 20px;
  margin-bottom: 6px;
}
.ds-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.ds-link:hover {
  color: var(--text);
  background: var(--bg-2);
}
.ds-link.active {
  color: var(--red);
  border-left-color: var(--red);
  background: var(--red-subtle);
  font-weight: 600;
}

.docs-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 20px;
}
.docs-content {
  max-width: var(--docs-max);
  padding: 36px 40px 80px;
}
.doc-section {
  margin-bottom: 72px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.docs-hero {
  padding: 36px 40px 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, #fff 60%, #fff5f5 100%);
  position: relative;
  overflow: hidden;
}
.docs-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 65, 66, 0.08), transparent 70%);
  pointer-events: none;
}
.docs-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.docs-hero h1 {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 16px;
}
.docs-hero h1 span {
  color: var(--red);
}
.docs-hero-lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.docs-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.docs-hero-tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  font-family: var(--mono);
}

.docs-content h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.docs-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 10px;
}
.docs-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.docs-content strong {
  color: var(--text);
  font-weight: 600;
}
.docs-content ul,
.docs-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.docs-content li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 6px;
}
.docs-content a {
  color: var(--red);
  text-decoration: none;
}
.docs-content a:hover {
  text-decoration: underline;
}

.pre-label {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.token-kw {
  color: #f472b6;
}
.token-str {
  color: #86efac;
}
.token-fn {
  color: #7dd3fc;
}
.token-cm {
  color: #64748b;
}
.token-num {
  color: #fbbf24;
}
.token-addr {
  color: #a78bfa;
}

.doc-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.doc-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}
.doc-step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  width: 1px;
  bottom: -24px;
  background: var(--border);
}
.doc-step:last-child::before {
  display: none;
}
.doc-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-step-body {
  flex: 1;
  padding-top: 4px;
}
.doc-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.doc-step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.fn-table,
.tok-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.fn-table thead th,
.tok-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
}
.fn-table tbody td,
.tok-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.fn-table tbody tr:hover td,
.tok-table tbody tr:hover td {
  background: var(--bg-2);
}
.fn-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
}
.fn-access {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fn-access.owner {
  color: #7c3aed;
}
.fn-access.public {
  color: #059669;
}
.fn-access.view {
  color: #2563eb;
}
.fn-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.tok-sym {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
}

.arch-diagram {
  background: #0f172a;
  border-radius: 14px;
  padding: 32px;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 13px;
  color: #94a3b8;
  line-height: 2;
  overflow-x: auto;
}
.arch-box {
  display: inline-block;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
}
.arch-red {
  border-color: var(--red);
  color: #fca5a5;
}
.arch-blue {
  border-color: #3b82f6;
  color: #93c5fd;
}
.arch-green {
  border-color: #10b981;
  color: #6ee7b7;
}
.arch-gray {
  border-color: #475569;
  color: #94a3b8;
}
.arch-arrow {
  color: #64748b;
}

.doc-divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

.docs-foot {
  border-top: 1px solid var(--border);
  padding: 32px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: var(--sidebar-w);
}
.docs-foot-left {
  font-size: 13px;
  color: var(--text-3);
}
.docs-foot-left strong {
  color: var(--text-2);
}
.docs-foot-avax {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}

/* ════════════════════════════════════════════════════════════════
   LANDING PAGE  (index.html)
   ════════════════════════════════════════════════════════════════ */
.landing-page {
  background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
  color: #2c3e50;
}

.lp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* hero */
.lp-hero {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  padding: 80px 40px;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(232, 65, 66, 0.3);
}
.lp-hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.lp-hero > p {
  font-size: 24px;
  opacity: 0.95;
  margin-bottom: 16px;
}
.lp-hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.lp-stat {
  text-align: center;
}
.lp-stat-value {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
}
.lp-stat-label {
  font-size: 16px;
  opacity: 0.9;
}
.lp-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.lp-btn-white {
  background: white;
  color: #764ba2;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s;
}
.lp-btn-white:hover {
  transform: translateY(-2px);
}
.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s;
}
.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* section */
.lp-section {
  background: white;
  padding: 40px;
  margin: 30px 0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.lp-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 30px;
  border-bottom: 4px solid var(--red);
  padding-bottom: 15px;
}
.lp-section h3 {
  color: #34495e;
  margin-top: 30px;
  font-size: 24px;
  font-weight: 700;
}
.lp-section h4 {
  color: #7f8c8d;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
}
.lp-section p {
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.7;
  margin: 16px 0;
}
.lp-section strong {
  color: var(--red);
  font-weight: 700;
}

/* list */
.lp-list {
  background: white;
  padding: 20px 40px;
  border-radius: 12px;
  list-style: none;
}
.lp-list li {
  margin: 16px 0;
  padding-left: 30px;
  position: relative;
  font-size: 16px;
  color: #2c3e50;
}
.lp-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
  font-size: 18px;
}
.lp-list li.sep {
  margin: 30px 0;
  padding: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--red) 20%,
    var(--red) 80%,
    transparent
  );
}
.lp-list li.sep::before {
  display: none;
}

/* inline elements */
.lp-hl {
  background: #fff5f5;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ffcaca;
}
.lp-fee {
  color: #27ae60;
  font-weight: bold;
}

/* flowchart */
.flowchart {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 40px;
  margin: 30px 0;
}
.flow-step {
  background: white;
  border: 3px solid var(--red);
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(232, 65, 66, 0.15);
  position: relative;
  transition: all 0.3s;
}
.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(232, 65, 66, 0.25);
}
.flow-step::after {
  content: "▼";
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--red);
}
.flow-step:last-child::after {
  display: none;
}
.flow-step-num {
  background: var(--red);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-right: 15px;
}

/* process diagram */
.process-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
  flex-wrap: wrap;
  gap: 20px;
}
.process-box {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 30px 20px;
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
}
.process-box::after {
  content: "→";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: var(--red);
  font-weight: bold;
}
.process-box:last-child::after {
  display: none;
}
.process-icon {
  font-size: 48px;
  margin-bottom: 15px;
}
.process-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}
.process-desc {
  font-size: 14px;
  color: #6c757d;
}

/* tree */
.tree-diagram {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 12px;
  margin: 30px 0;
  overflow-x: auto;
}
.tree-level {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  position: relative;
  flex-wrap: wrap;
}
.tree-node {
  background: white;
  border: 3px solid var(--red);
  border-radius: 10px;
  padding: 20px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.tree-node-title {
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}
.tree-node-amount {
  font-size: 20px;
  font-weight: 800;
  color: #2c3e50;
}
.tree-connector {
  width: 2px;
  height: 40px;
  background: var(--red);
  margin: 0 auto;
}

/* comparison table */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}
.cmp-table th {
  background: var(--red);
  color: white;
  padding: 20px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
}
.cmp-table td {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}
.cmp-table tr:nth-child(even) {
  background: #f8f9fa;
}
.checkmark {
  color: #27ae60;
  font-size: 24px;
  font-weight: bold;
}
.crossmark {
  color: #e74c3c;
  font-size: 24px;
  font-weight: bold;
}

/* stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}
.stat-card {
  background: linear-gradient(135deg, #fff5f5, #ffffff);
  border: 2px solid #ffcaca;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}
.stat-card-n {
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 10px;
}
.stat-card-l {
  font-size: 14px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* timeline */
.timeline {
  position: relative;
  padding-left: 50px;
  margin: 40px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--red);
}
.timeline-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}
.timeline-desc {
  color: #6c757d;
  line-height: 1.8;
}

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}
.feature-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(232, 65, 66, 0.2);
  transform: translateY(-5px);
}
.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}
.feature-desc {
  color: #6c757d;
  line-height: 1.7;
}

/* highlight box */
.hl-box {
  background: linear-gradient(135deg, #fff5f5, #ffe5e5);
  border-left: 6px solid var(--red);
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
}
.hl-box-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 15px;
}

blockquote {
  background: #ecf0f1;
  padding: 20px;
  border-left: 4px solid var(--red);
  margin: 20px 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
blockquote strong {
  color: #2c3e50;
  font-style: normal;
}

/* landing footer uses s-footer */

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .s-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .docs-sidebar {
    display: none;
  }
  .docs-main {
    margin-left: 0;
  }
  .docs-content {
    padding: 32px 24px 80px;
  }
  .docs-hero {
    padding: 36px 24px 40px;
  }
  .docs-foot {
    margin-left: 0;
    padding: 24px;
  }
  .docs-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .docs-content {
    padding: 20px 16px 60px;
  }
  .docs-hero {
    padding: 24px 16px 28px;
  }
  .s-nav-links,
  .s-nav-right {
    display: none;
  }
  .s-nav-hamburger {
    display: flex;
  }
  .s-footer-grid {
    grid-template-columns: 45% 45%;
    gap: 20px 10%;
    justify-content: space-between;
  }
  .s-footer-brand {
    grid-column: 1 / -1;
  }

  .s-footer-brand {
    text-align: center;
    align-items: center;
  }

  .s-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .splitter-grid {
    grid-template-columns: 1fr;
  }
  .balance-grid {
    grid-template-columns: 1fr;
  }
  .wallet-table {
    font-size: 14px;
  }
  .modal-content {
    padding: 20px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lp-hero h1 {
    font-size: 36px;
  }
  .lp-hero > p {
    font-size: 18px;
  }
  .lp-hero-stats {
    flex-direction: column;
    gap: 30px;
  }
  .lp-wrap {
    padding: 20px 16px;
  }
  .lp-section {
    padding: 25px;
  }
  .lp-list {
    padding: 15px 25px;
  }
  .process-diagram {
    flex-direction: column;
  }
  .process-box::after {
    content: "▼";
    right: auto;
    top: auto;
    bottom: -35px;
    left: 50%;
  }
  .tree-level {
    flex-direction: column;
    align-items: center;
  }
}

@media print {
  .s-nav,
  .s-scroll-top,
  .s-nav-mobile {
    display: none !important;
  }
  .lp-section {
    page-break-inside: avoid;
  }
  body {
    background: white;
  }
}

.lp-page {
  background: #fff;
  color: var(--text);
}

/* HERO */
.hero {
  background: var(--red);
  color: #fff;
  padding: 60px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 120%,
      rgba(0, 0, 0, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 80% 10%,
      rgba(255, 255, 255, 0.07) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -1px;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 21px);
  opacity: 0.88;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-hero-primary {
  background: #fff;
  color: var(--red);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.btn-hero-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.18s;
}
.btn-hero-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 36px;
  flex-wrap: wrap;
}
.hero-stat {
  padding: 0 36px;
  text-align: center;
}
.hero-stat + .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stat-val {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SECTION */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.6;
  margin: 0 0 48px;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* HOW IT WORKS */
.steps-wrapper {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  counter-reset: step;
}
.step {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  counter-increment: step;
}
.step:last-child {
  border-right: none;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}
.step-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.step-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* FEATURES */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feat-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
}
.feat-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}
.feat-card-icon {
  font-size: 26px;
  margin-bottom: 14px;
}
.feat-card-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.feat-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* USE CASES */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.uc-card {
  padding: 28px 30px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.uc-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.uc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.uc-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.uc-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}
.uc-example {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(232, 65, 66, 0.07);
  border-radius: 8px;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  font-style: italic;
}

/* COMPETITIVE */
.cmp-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.cmp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cmp-tbl th {
  background: var(--bg-2);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cmp-tbl td {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.cmp-tbl tr:hover td {
  background: var(--bg-2);
}
.cmp-check {
  color: #16a34a;
  font-weight: 700;
}

/* CTA */
.cta-band {
  background: var(--text);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.cta-band-inner {
  max-width: 600px;
  margin: 0 auto;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.cta-band p {
  font-size: 18px;
  opacity: 0.75;
  margin: 0 0 36px;
  line-height: 1.6;
}
.cta-band-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-primary {
  background: var(--red);
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.18s;
}
.btn-cta-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.btn-cta-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.18s;
}
.btn-cta-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 700px) {
  .step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .step:last-child {
    border-bottom: none;
  }
  .hero-stat {
    padding: 16px 20px;
  }
  .hero-stat + .hero-stat {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   FEEDBACK PAGE
   ══════════════════════════════════════════════════════════════ */
.feedback-page {
  min-height: 100vh;
}
.feedback-hero {
  background: var(--red);
  color: #fff;
  padding: 25px 24px;
  text-align: center;
}
.feedback-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.feedback-hero p {
  font-size: 16px;
  opacity: 0.88;
  max-width: 500px;
  margin: 0 auto;
}
.feedback-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.feedback-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border);
}
.feedback-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 16px;
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.feedback-section-label--optional {
  margin-top: 28px;
}
.feedback-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.6;
}
.feedback-charcount {
  float: right;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}
.feedback-charcount--warn {
  color: #f59e0b;
}
.feedback-charcount--over {
  color: var(--red);
  font-weight: 700;
}

.feedback-optional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.feedback-wallet-group {
  grid-column: 1 / -1;
}
.feedback-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #991b1b;
  margin-bottom: 16px;
}
.feedback-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}
.feedback-success {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 48px 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border);
}
.feedback-success h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.feedback-success p {
  color: var(--text-2);
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════
   REGISTRY PAGE
   ══════════════════════════════════════════════════════════════ */
.reg-page {
  min-height: 100vh;
}
.reg-hero {
  background: var(--red);
  color: #fff;
  padding: 60px 24px 48px;
  text-align: center;
}
.reg-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.reg-hero p {
  font-size: 16px;
  opacity: 0.88;
}
.reg-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
}
.reg-stat-val {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.reg-stat-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 4px;
}
.reg-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.reg-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.reg-search {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.reg-search:focus {
  border-color: var(--red);
}
.reg-refresh-btn {
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: border-color 0.2s;
}
.reg-refresh-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.reg-refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.reg-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.reg-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 12px rgba(232, 65, 66, 0.08);
}
.reg-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--red) 0%, #ff6b6b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.reg-info {
  flex: 1;
  min-width: 0;
}
.reg-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.reg-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.reg-addr {
  display: flex;
  align-items: center;
  gap: 6px;
}
.reg-meta {
  text-align: right;
  flex-shrink: 0;
}
.reg-date {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.reg-btns {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-end;
}
.reg-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: all 0.15s;
  white-space: nowrap;
}
.reg-btn:hover {
  border-color: var(--text-2);
  color: var(--text);
}
.reg-btn-open {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.reg-btn-open:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}
.reg-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}
.reg-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.reg-empty h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .feedback-optional-grid {
    grid-template-columns: 1fr;
  }
  .feedback-wallet-group {
    grid-column: 1;
  }
  .feedback-form {
    padding: 20px;
  }
  .feedback-hero h1 {
    font-size: 28px;
  }
  .reg-card {
    flex-wrap: wrap;
  }
  .reg-meta {
    text-align: left;
    width: 100%;
  }
  .reg-btns {
    justify-content: flex-start;
  }
  .reg-hero h1 {
    font-size: 28px;
  }
}
