﻿/* ============================================================
   NexaSync™ — Light Theme Stylesheet
   Clean, corporate, professional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ─── Variables ─── */
:root {
  --white:          #ffffff;
  --bg:             #f8fafc;
  --bg-alt:         #f1f5f9;
  --bg-card:        #ffffff;
  --bg-dark:        #0f172a;
  --bg-dark-2:      #1e293b;

  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;

  --blue:           #2563eb;
  --blue-hover:     #1d4ed8;
  --blue-light:     #3b82f6;
  --blue-subtle:    #eff6ff;
  --blue-mid:       #dbeafe;

  --navy:           #0f172a;
  --slate:          #1e293b;
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-placeholder:#b0bec5;

  --green:          #059669;
  --green-light:    #10b981;
  --green-subtle:   #ecfdf5;
  --orange:         #d97706;
  --orange-subtle:  #fffbeb;
  --red:            #dc2626;
  --purple:         #7c3aed;
  --purple-subtle:  #f5f3ff;

  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --font-display:   'DM Sans', 'Inter', sans-serif;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-pill: 100px;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-blue:0 4px 16px rgba(37,99,235,0.2);

  --t: 0.2s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent any element from causing horizontal page scroll */
}
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
body.page-dark { background: #0b1120; }
/* Spacer that reserves the fixed navbar height in the document flow */
.nav-spacer { height: 64px; flex-shrink: 0; }
/* Ticker pages: navbar + ticker are fixed — one in-flow spacer holds their combined height */
.ticker-offset-spacer {
  display: none;
  height: 102px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}
body.has-ticker { padding-top: 0; }
body.has-ticker .nav-spacer { display: none; }
/* Pull spacer up over the ~1.6em whitespace strut between fixed chrome and content */
body.has-ticker .ticker-offset-spacer {
  display: block;
  margin-top: -1.6em;
}
/* First section sits flush under the fixed ticker — no body-bg bleed */
body.has-ticker .hero,
body.has-ticker .connect-page-head,
body.has-ticker .page-header,
body.has-ticker .about-hero { margin-top: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ─── Layout ─── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 28px; }

section { padding: 96px 0; overflow: hidden; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
}

.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }
.section-header.center .eyebrow { display: inline-flex; }

/* ─── Tag/Pill ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}
.tag-blue   { background: var(--blue-subtle);   color: var(--blue);   border: 1px solid var(--blue-mid); }
.tag-green  { background: var(--green-subtle);  color: var(--green);  border: 1px solid #a7f3d0; }
/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  transition: var(--t);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.28);
}
.btn-primary:active { transform: none; }

.btn-outline {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text-primary); }

.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-xs { padding: 6px 12px; font-size: 12px; }

/* ─── Divider ─── */
hr { border: none; border-top: 1px solid var(--border); }

/* ══════════════════════════════════
   NAVBAR — Redesigned
══════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
#navbar.scrolled {
  border-color: var(--border);
  background: rgba(255,255,255,0.99);
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0,0,0,0.05);
}
/* When mobile nav is open — navbar turns dark to blend with the drawer */
html.nav-open #navbar {
  background: #0d1526 !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* nln-defi/sync color on open is handled per-element above */
html.nav-open .nav-toggle span { background: rgba(255,255,255,0.8); }

.navbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 4px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 16px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #7c3aed 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 2px 14px rgba(37,99,235,0.45),
    0 1px 3px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
/* Subtle glow ring around the mark */
.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  border: 1px solid rgba(99,102,241,0.4);
  pointer-events: none;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.035em;
  transition: color 0.25s;
}
/* "Defi" part — navy/dark */
.nln-defi {
  color: var(--navy);
  transition: color 0.25s;
}
/* "Sync" part — blue gradient */
.nln-sync {
  background: linear-gradient(120deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.nav-open .nln-defi { color: #e2e8f0; }
html.nav-open .nln-sync {
  background: linear-gradient(120deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
}
.nav-logo-tld {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0;
  opacity: 0.75;
}
html.nav-open .nav-logo-tld { color: #93c5fd; opacity: 0.9; }
footer.dark-footer .nln-defi  { color: #e2e8f0; }
footer.dark-footer .nln-sync  {
  background: linear-gradient(120deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
}
footer.dark-footer .nav-logo-tld { color: #93c5fd; opacity: 0.9; }
footer.dark-footer .nav-logo-mark { box-shadow: 0 2px 16px rgba(37,99,235,0.55), inset 0 1px 0 rgba(255,255,255,0.18); }
.nav-logo-name sup {
  font-size: 8px;
  color: var(--blue);
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}

/* ── Nav links row ── */
.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-alt);
}
.nav-link.active { font-weight: 600; }

/* Drop button resets */
.nav-drop-btn {
  cursor: default;
  user-select: none;
}

/* Chevron icon */
.nav-chevron {
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
  color: var(--text-muted);
}
.nav-mega-trigger:hover .nav-chevron { transform: rotate(180deg); color: var(--blue); }

/* ── Right action cluster ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: #15803d;
  white-space: nowrap;
}
.nav-status .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
  animation: blink 2s infinite;
}

.nav-sync-btn {
  color: var(--text-secondary) !important;
  border-color: var(--border) !important;
  background: var(--white) !important;
  box-shadow: var(--shadow-xs) !important;
}
.nav-sync-btn:hover {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

/* ══════════════════════════════════════
   MEGA DROPDOWN — two-pane design
   ══════════════════════════════════════ */
.nav-item-drop { position: relative; }

/* Transparent hover bridge — keeps panel open as mouse moves down */
.nav-item-drop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -40px; right: -40px;
  height: 18px;
  background: transparent;
  pointer-events: auto;
  z-index: 1001;
}

.nav-mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 680px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 8px 16px rgba(0,0,0,0.06),
    0 24px 48px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s 0.1s ease, transform 0.2s 0.1s cubic-bezier(0.22,1,0.36,1);
  z-index: 1000;
  overflow: hidden;
}
.nav-item-drop:hover .nav-mega-panel {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.14s 0s ease, transform 0.2s 0s cubic-bezier(0.22,1,0.36,1);
}

/* Two-pane layout */
.mega-inner {
  display: flex;
  min-height: 320px;
}

/* ── Left pane: service list ── */
.mega-left {
  flex: 1;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--border);
}

.mega-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.13s ease;
}
.mega-item:hover { background: var(--bg); }
.mega-item:hover .mega-item-title { color: var(--blue); }

.mega-item-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--svc-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-color) 20%, transparent);
  color: var(--svc-color, var(--blue));
  transition: transform 0.13s ease, background 0.13s ease;
}
/* Fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .mega-item-icon { background: var(--bg-alt); border-color: var(--border); color: var(--blue); }
}
.mega-item:hover .mega-item-icon {
  transform: scale(1.1);
  background: color-mix(in srgb, var(--svc-color) 16%, transparent);
}

.mega-item-text { display: flex; flex-direction: column; gap: 1px; }
.mega-item-title {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  transition: color 0.13s ease;
  line-height: 1.2;
}
.mega-item-desc {
  font-size: 11px; color: var(--text-muted); line-height: 1.3;
}

/* ── Right pane: CTA card ── */
.mega-right {
  width: 196px;
  flex-shrink: 0;
  padding: 20px 16px;
  background: #f8faff;
  display: flex;
  align-items: flex-start;
}

.mega-cta-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mega-cta-icon { display: flex; }

.mega-cta-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mega-cta-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.mega-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.14s ease, gap 0.14s ease;
  width: fit-content;
}
.mega-cta-btn:hover { opacity: 0.88; gap: 9px; }

.mega-cta-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mega-cta-badges span {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Scroll lock when mobile nav open — applied to <html> not <body>
   (setting overflow on <body> breaks position:fixed on iOS Safari) */
html.nav-open { overflow: hidden; }

/* Mobile toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  border: none;
  margin-left: auto; /* always push to far right when visible */
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--t), background 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav drawer ─── */
.mobile-nav {
  display: none;
  position: fixed;
  /* Start at 0, push content below the navbar with padding-top */
  top: 0; left: 0; right: 0; bottom: 0;
  padding-top: 64px; /* matches #navbar height */
  background: #0d1526;
  z-index: 950; /* clearly above navbar's 1000 is now the safe floor */
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav.open { display: flex; }


.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 16px 12px 8px;
  gap: 2px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-link svg { flex-shrink: 0; }
.mobile-nav-link:hover, .mobile-nav-link.mobile-active {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.mobile-nav-link.mobile-active { color: #60a5fa; }

.mobile-nav-sep {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 0;
}
.mobile-nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  padding: 10px 26px 8px;
}

/* Service items in mobile nav */
.mobile-nav-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 12px;
}
.mobile-svc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, border-color 0.15s;
}
.mobile-svc-item:hover {
  background: rgba(37,99,235,0.15);
  border-color: rgba(96,165,250,0.2);
}
.mobile-svc-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-svc-text { min-width: 0; }
.mobile-svc-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-svc-desc { display: none; }

.mobile-nav-actions {
  padding: 16px 12px 8px;
}
.mobile-nav-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin-top: auto;
}
.mobile-nav-footer a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-nav-footer a:hover { color: rgba(255,255,255,0.65); }

/* ─── TICKER ─── */
.ticker-wrap {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 999;
  height: 38px;
  margin: 0;
  padding: 0;
  line-height: 1;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-scroll {
  overflow: hidden;
  flex: 1;
  display: flex;
  height: 100%;
  align-items: center;
}
.ticker-label {
  padding: 0 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.12);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: rgba(37,99,235,0.6);
  gap: 6px;
}
.ticker-track {
  display: flex;
  animation: ticker 44s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
.ticker-coin-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  height: 38px;
  line-height: 1;
  border-right: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  contain: layout style;
}
.ticker-sym   { font-weight: 700; color: #fff; font-size: 12px; }
.ticker-price { color: rgba(255,255,255,0.82); font-variant-numeric: tabular-nums; }
.ticker-up    { color: #34d399; font-size: 11px; font-weight: 600; }
.ticker-down  { color: #f87171; font-size: 11px; font-weight: 600; }

/* ═══════════════════════════════════════
   HERO — light, animated, crypto-themed
   ═══════════════════════════════════════ */
.hero {
  padding: 68px 0 80px;
  background: var(--white);
  position: relative;
  overflow: visible;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

/* ── Background animated blobs ── */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hbg-blob {
  position: absolute;
  border-radius: 50%;
  /* Soft gradients only — blur() on large animated layers causes GPU jank */
  opacity: 0.9;
}
.hbg-1 {
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, rgba(37,99,235,0.04) 42%, transparent 72%);
  top: -260px; left: -160px;
  animation: blob-drift 18s ease-in-out infinite;
}
.hbg-2 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, rgba(124,58,237,0.03) 42%, transparent 72%);
  bottom: -180px; right: -100px;
  animation: blob-drift 22s ease-in-out infinite reverse;
}
.hbg-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, rgba(6,182,212,0.03) 42%, transparent 72%);
  top: 30%; left: 50%;
  animation: blob-drift 26s ease-in-out infinite 6s;
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(28px, -24px) scale(1.06); }
  66%       { transform: translate(-18px, 18px) scale(0.96); }
}

/* Subtle dot-grid overlay */
.hbg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(15,23,42,0.18) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* ── Two-column layout ── */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: visible;
}
.hero-left { padding-right: 12px; }

/* ── Kicker badge ── */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 9px;
  background: var(--blue-subtle);
  border: 1px solid var(--blue-mid);
  border-radius: var(--r-pill);
  margin-bottom: 28px;
  animation: fade-up 0.6s ease both;
}
.hero-kicker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-kicker span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.01em;
}

/* ── Title ── */
.hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.09;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  animation: fade-up 0.6s 0.1s ease both;
}
.hero-title-grad {
  background: linear-gradient(130deg, #2563eb 0%, #818cf8 45%, #06b6d4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-flow 5s linear infinite, fade-up 0.6s 0.1s ease both;
}
@keyframes grad-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Description ── */
.hero-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 34px;
  max-width: 430px;
  animation: fade-up 0.6s 0.18s ease both;
}

/* ── CTA Buttons ── */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fade-up 0.6s 0.26s ease both;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--r-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 2px rgba(37,99,235,0.15), 0 8px 28px rgba(37,99,235,0.28);
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.btn-hero-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 1px 3px rgba(37,99,235,0.2), 0 14px 36px rgba(37,99,235,0.36);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--r-lg);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
}
.btn-hero-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(37,99,235,0.1), 0 4px 16px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

/* ── Trust pills ── */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fade-up 0.6s 0.34s ease both;
}
.ht-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.ht-pill svg { color: var(--blue); flex-shrink: 0; }

/* ── Shared fade-up entry ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   ORBIT VISUALIZATION (right side)
   ═══════════════════════════════════════ */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  height: auto;
  padding: 12px 72px;
  overflow: visible;
  animation: fade-up 0.8s 0.2s ease both;
}

/* Fixed-size orbit canvas — keeps coins + rings aligned, nothing clipped */
.orbit-stage {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
  overflow: visible;
}

/* SVG dashed rings */
.orbit-rings-svg {
  position: absolute;
  width: 400px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* Central hub */
.orbit-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.orbit-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,0.3);
  pointer-events: none;
}
.orbit-pulse-1 {
  inset: -18px;
  animation: hub-pulse 3s ease-out infinite;
}
.orbit-pulse-2 {
  inset: -34px;
  animation: hub-pulse 3s 1.2s ease-out infinite;
}
@keyframes hub-pulse {
  0%   { opacity: 0.9; transform: scale(0.8); }
  100% { opacity: 0;   transform: scale(1.5); }
}
.orbit-hub-core {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  border: 2px solid rgba(96,165,250,0.45);
  box-shadow:
    0 0 0 10px rgba(37,99,235,0.07),
    0 0 40px rgba(37,99,235,0.35),
    0 8px 32px rgba(37,99,235,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Orbit nodes ── */
.orbit-node {
  position: absolute;
  top: 50%; left: 50%;
  width: 50px; height: 50px;
  margin: -25px 0 0 -25px;
  transform-origin: 25px 25px;
  --angle: 0deg;
  --r: 140px;
  --dur: 14s;
  --d: 0s;
  z-index: 6;
}
/* Animated: spread via negative delay only (0→360 keyframes) */
.orbit-stage.orbit-animated .orbit-node {
  animation: orbit-cw var(--dur) linear infinite var(--d);
}
.orbit-node-ccw { animation-name: orbit-ccw; }
@keyframes orbit-cw {
  from { transform: rotate(0deg)   translateX(var(--r)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}
@keyframes orbit-ccw {
  from { transform: rotate(0deg)    translateX(var(--r)) rotate(0deg); }
  to   { transform: rotate(-360deg) translateX(var(--r)) rotate(360deg); }
}

/* Static / RDP / loading: spread via --angle only (no double-offset with delay) */
.orbit-stage.orbit-static .orbit-node,
.orbit-stage:not(.orbit-animated) .orbit-node {
  animation: none !important;
  transform: rotate(var(--angle)) translateX(var(--r)) rotate(calc(-1 * var(--angle)));
}
.orbit-stage.orbit-static .orbit-pulse {
  animation: none;
  opacity: 0.35;
}

/* Orbit icon bubbles */
.orbit-bubble {
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.orbit-bubble:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 6px 24px rgba(37,99,235,0.18), 0 2px 6px rgba(37,99,235,0.1);
}
.orbit-bubble-lg {
  width: 50px; height: 50px;
}
.orbit-bubble-lg img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: contain;
}
.orbit-bubble-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1;
}
.orbit-bubble-sm {
  width: 38px; height: 38px;
}
.orbit-bubble-sm img {
  width: 18px; height: 18px;
  border-radius: 50%;
  object-fit: contain;
}

/* ── Floating stat badges ── */
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.05);
  z-index: 20;
  white-space: nowrap;
}
.hero-badge-1 {
  top: 6%;
  right: 0;
  animation: badge-float 5s ease-in-out infinite;
}
.hero-badge-2 {
  bottom: 12%;
  left: 0;
  animation: badge-float 5s 1.8s ease-in-out infinite;
}
.hero-badge-3 {
  top: 48%;
  right: 0;
  transform: translateY(-50%);
  animation: badge-float-y 5s 3.3s ease-in-out infinite;
}
@keyframes badge-float-y {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 9px)); }
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

.hb-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hb-icon-green  { background: var(--green-subtle);  color: var(--green); }
.hb-icon-blue   { background: var(--blue-subtle);   color: var(--blue); }
.hb-icon-purple { background: var(--purple-subtle); color: var(--purple); }

.hb-val { font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.hb-lbl { font-size: 10px; color: var(--text-muted); font-weight: 500; margin-top: 1px; }

/* ─── STATS BAR ─── */
.stats-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 44px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.15), transparent 60%);
  pointer-events: none;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.stat-item {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 11.5px; color: rgba(255,255,255,0.4); font-weight: 500; }

/* ─── CHAINS STRIP ─── */
.chains-strip {
  padding: 28px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.chains-strip-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.chains-strip-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding: 4px 2px 4px;
  flex-wrap: wrap;
}
.chain-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--t);
  cursor: default;
}
.chain-chip:hover {
  border-color: var(--blue);
  color: var(--navy);
  box-shadow: 0 2px 12px rgba(37,99,235,0.10);
  transform: translateY(-1px);
}

/* ─── SERVICES SECTION ─── */
.services-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}
.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Section header: two-column (title left, desc+cta right) */
.svc-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.svc-section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-top: 10px;
}
.svc-head-right {
  max-width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.svc-section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.svc-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--r-pill);
  background: var(--blue-subtle);
  transition: var(--t);
  white-space: nowrap;
}
.svc-all-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}
.svc-card:hover {
  border-color: var(--svc-c, var(--blue));
  box-shadow: 0 16px 48px rgba(15,23,42,0.1), 0 0 0 1px var(--svc-c, var(--blue));
  transform: translateY(-5px);
}

/* Coloured top accent bar */
.svc-accent-bar {
  height: 3px;
  background: var(--svc-c, var(--blue));
  width: 0;
  transition: width 0.3s ease;
  border-radius: 0;
}
.svc-card:hover .svc-accent-bar { width: 100%; }

/* Card number (top-right) */
.svc-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 11px;
  font-weight: 800;
  color: var(--border);
  letter-spacing: 0.04em;
  font-family: var(--font-display);
  transition: color 0.22s ease;
}
.svc-card:hover .svc-num { color: var(--svc-c, var(--blue)); }

/* Card body */
.svc-card-body-pad {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.svc-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(37,99,235,0.09);
  color: var(--svc-c, var(--blue));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background 0.22s ease, transform 0.22s ease, color 0.22s ease;
}
.svc-card:hover .svc-icon-wrap {
  background: var(--svc-c, var(--blue));
  color: #fff;
  transform: scale(1.1) rotate(-3deg);
}
.svc-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.svc-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.65; flex: 1; }

/* CTA row */
.svc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  transition: border-color 0.22s ease;
}
.svc-card:hover .svc-cta { border-color: rgba(37,99,235,0.15); }
.svc-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--svc-c, var(--blue));
}
.svc-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--svc-c, var(--blue));
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.svc-card:hover .svc-arrow {
  background: var(--svc-c, var(--blue));
  border-color: var(--svc-c, var(--blue));
  color: #fff;
  transform: translateX(3px);
}

/* ─── SECURITY SPLIT SECTION ─── */
.sec-section {
  padding: 110px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sec-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Left side */
.sec-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 10px 0 18px;
}
.sec-title span {
  background: linear-gradient(130deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sec-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 36px;
  max-width: 440px;
}
.sec-feat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sec-feat-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sec-feat-item:hover {
  background: var(--bg);
  border-color: var(--border);
}
.sec-feat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(37,99,235,0.09);
  color: var(--fi-c, var(--blue));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sec-feat-item:hover .sec-feat-icon {
  background: var(--fi-c, var(--blue));
  color: #fff;
  transform: scale(1.08);
}
.sec-feat-title { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.sec-feat-desc  { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }

/* Right: dark panel */
.sec-right { position: relative; }
.sec-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* Panel top bar */
.sec-panel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.sec-panel-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-display);
}
.sec-panel-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sec-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease-in-out infinite;
}

/* Score ring */
.sec-score-wrap {
  position: relative;
  width: 130px; height: 130px;
  margin: 28px auto 10px;
}
.sec-score-svg { width: 100%; height: 100%; }
.sec-score-ring {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22,1,0.36,1);
}
.sec-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sec-score-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.05em;
  line-height: 1;
}
.sec-score-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}
.sec-score-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 20px;
}

/* Check rows */
.sec-checks {
  padding: 0 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sec-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sec-check-row:hover { background: var(--blue-subtle); border-color: var(--blue-mid); }
.sec-check-ico {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sec-check-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); flex: 1; }
.sec-check-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.sec-check-ok   { background: var(--green-subtle); color: var(--green); }
.sec-check-blue { background: var(--blue-subtle);  color: var(--blue); }

/* Keep old win-dots for any remaining usage */
.win-dots { display: flex; gap: 5px; }
.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.win-dot:nth-child(1) { background: #ff5f57; }
.win-dot:nth-child(2) { background: #ffbd2e; }
.win-dot:nth-child(3) { background: #28c940; }

/* ─── TESTIMONIALS ─── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: var(--t);
}
.testi-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.testi-stars { color: #f59e0b; font-size: 13px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 11px; }
.testi-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.testi-role { font-size: 12px; color: var(--text-muted); }

/* ─── CTA ─── */
.cta-section {
  background: var(--navy);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(37,99,235,0.15);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -60px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(124,58,237,0.1);
  pointer-events: none;
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-title { font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-desc  { font-size: 16px; color: rgba(255,255,255,0.55); margin: 0 auto 32px; max-width: 480px; line-height: 1.7; }
.cta-btns  { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
.btn-white:hover { background: var(--bg); transform: translateY(-1px); }
.btn-white-outline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}
.btn-white-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.07); }
.cta-trust {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-trust-item { font-size: 12px; color: rgba(255,255,255,0.35); display: flex; align-items: center; gap: 5px; }

/* ─── NETWORKS DIVIDER (between CTA and footer) ─── */
.networks-divider {
  background: #0b1120;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
}
.nd-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nd-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
  flex-shrink: 0;
}
.nd-chains {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nd-chain {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  cursor: default;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nd-chain:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
}
.nd-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .nd-inner { justify-content: center; }
  .nd-label { text-align: center; width: 100%; }
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}

/* Dark footer theme */
footer.dark-footer {
  background: #0b1120;
  border-top: none;
  margin-top: 0;
}
/* Flush footer against CTA — prevents whitespace/BOM strut gap */
.cta-section + footer.dark-footer { margin-top: 0; }
footer.dark-footer .footer-col-head {
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.08);
}
footer.dark-footer .footer-link { color: rgba(255,255,255,0.5); }
footer.dark-footer .footer-link:hover { color: #fff; }
footer.dark-footer .footer-brand-desc { color: rgba(255,255,255,0.45); }
footer.dark-footer .footer-copy { color: rgba(255,255,255,0.38); }
footer.dark-footer .footer-bottom {
  border-color: rgba(255,255,255,0.07);
}
footer.dark-footer .footer-status {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.45);
}
footer.dark-footer .footer-legal a { color: rgba(255,255,255,0.38); }
footer.dark-footer .footer-legal a:hover { color: #fff; }
footer.dark-footer .footer-legal-dot { background: rgba(255,255,255,0.18); }
footer.dark-footer .footer-ssl {
  color: #34d399;
  background: rgba(52,211,153,0.10);
  border-color: rgba(52,211,153,0.25);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 14px 0 20px;
  max-width: 260px;
}
.footer-col-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-link {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-muted);
  transition: color 0.15s ease;
  text-decoration: none;
}
.footer-link:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* Operational status indicator */
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px 3px 8px;
}
.footer-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
  flex-shrink: 0;
}

/* Legal links */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.footer-legal a:hover { color: var(--text-primary); }
.footer-legal-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* SSL security badge */
.footer-ssl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 100px;
  padding: 4px 12px 4px 10px;
  white-space: nowrap;
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 44px 0 44px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }

/* Hidden (for wallet search filter) */
.hidden { display: none !important; }

/* ─── CONNECT PAGE HEADER ─── */
.connect-page-head {
  background: #0d1526;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cph-bg { position: absolute; inset: 0; pointer-events: none; }
.cph-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}
.cph-blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, rgba(37,99,235,0.08) 45%, transparent 72%);
  top: -120px; left: -80px;
}
.cph-blob-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(124,58,237,0.28) 0%, rgba(124,58,237,0.06) 45%, transparent 72%);
  top: -60px; right: -60px;
}
.cph-blob-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(8,145,178,0.28) 0%, rgba(8,145,178,0.06) 45%, transparent 72%);
  bottom: -60px; left: 40%;
}
.cph-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cph-inner {
  position: relative;
  z-index: 1;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cph-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 5px 12px;
}
.cph-bc-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.cph-bc-link:hover { color: #fff; }
.cph-bc-current { color: rgba(255,255,255,0.85); font-weight: 500; }
.cph-hero-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(124,58,237,0.3));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #93c5fd;
  margin-bottom: 20px;
  position: relative;
}
.cph-hero-icon-ring {
  position: absolute; inset: -6px;
  border-radius: 22px;
  border: 1px solid rgba(99,102,241,0.2);
  pointer-events: none;
}
.cph-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.cph-title-accent {
  background: linear-gradient(120deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cph-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.cph-desc strong { color: rgba(255,255,255,0.8); font-weight: 600; }
.cph-br { display: block; }
.cph-badges {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 28px;
}
.cph-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid;
}
.cph-badge-green  { color: #34d399; background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.25); }
.cph-badge-blue   { color: #60a5fa; background: rgba(96,165,250,0.1); border-color: rgba(96,165,250,0.25); }
.cph-badge-purple { color: #a78bfa; background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.25); }
.cph-badge-orange { color: #fbbf24; background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.25); }
.cph-badge-teal   { color: #22d3ee; background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.25); }
.cph-bottom-line {
  width: 100%; max-width: 560px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ─── CONNECT BODY ─── */
.connect-page-wrap { padding: 36px 0 64px; background: var(--bg); overflow: visible; }
.connect-body-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
  min-width: 0;
  overflow: visible;
}
.connect-wallet-col { min-width: 0; overflow: visible; }

/* Search bar */
.wallet-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 10px 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wallet-search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
  z-index: 3;
}
.wsb-icon { color: var(--text-muted); flex-shrink: 0; }
.wsb-input {
  flex: 1; border: none; outline: none;
  font-size: 14px; color: var(--text-primary);
  background: transparent;
  font-family: var(--font);
}
.wsb-input::placeholder { color: var(--text-muted); }
.wsb-count {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* Section label */
.wallet-section-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* Featured grid */
.wallet-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 4px 4px;
}
.wallet-featured-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 10px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
  animation: card-in 0.4s both;
}
.wallet-featured-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(37,99,235,0.16), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-4px);
  z-index: 4;
}
@keyframes card-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

/* All wallets grid */
.wallet-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  padding: 6px 4px 8px;
}
.wallet-compact-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 8px 11px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s, background 0.2s;
}
.wallet-compact-card:hover {
  border-color: var(--blue);
  background: rgba(37,99,235,0.04);
  box-shadow: 0 6px 20px rgba(37,99,235,0.12);
  transform: translateY(-3px);
  z-index: 4;
}

/* Wallet icons */
.wallet-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.wallet-featured-card:hover .wallet-icon-wrap,
.wallet-compact-card:hover .wallet-icon-wrap {
  transform: scale(1.04);
}
.wallet-icon-img {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.wallet-icon-img-lg {
  width: 58px; height: 58px;
  border-radius: 16px;
}
.wallet-icon-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
}
.wallet-icon-badge::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.20) 0%, transparent 60%);
  border-radius: inherit;
}
.wallet-icon-badge-lg {
  width: 58px; height: 58px;
  border-radius: 16px;
  font-size: 16px;
}
.wallet-name-text {
  font-size: 12px; font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.wallet-featured-card .wallet-name-text { font-size: 13px; }

/* No results */
.wallet-no-results {
  display: none;
  flex-direction: column; align-items: center;
  padding: 48px 24px; text-align: center;
}
.wallet-no-results.show { display: flex; }
.wallet-no-results-icon { font-size: 36px; margin-bottom: 12px; }
.wallet-no-results-text { font-size: 14px; color: var(--text-muted); }

/* Footer note */
.connect-footer-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 32px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 12px;
  color: var(--text-muted);
}
.cfn-link { color: var(--blue); text-decoration: none; }
.cfn-link:hover { text-decoration: underline; }

/* ─── CONNECT GUIDE (sidebar) ─── */
.connect-guide {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}
.cg-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted);
}
.cg-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.cg-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.cg-step:last-child { border-bottom: none; }
.cg-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(var(--step-color, 37 99 235) / 0.12);
  background-color: color-mix(in srgb, var(--step-color, #2563eb) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--step-color, #2563eb) 25%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--step-color, var(--blue));
  flex-shrink: 0;
}
.cg-step-body { flex: 1; min-width: 0; }
.cg-step-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cg-step-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cg-step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.cg-security {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 18px;
  background: rgba(16,185,129,0.05);
  border-top: 1px solid rgba(16,185,129,0.15);
  color: #059669;
}
.cg-sec-title { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.cg-sec-desc  { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.cg-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--blue);
  color: #fff;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.cg-cta:hover { background: #1d4ed8; }
.cg-step { transition: background 0.15s; }
.cg-step:hover { background: var(--bg); }

/* ─── CONNECTION MODAL ─── */
.conn-modal-bg {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,21,38,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.conn-modal-bg.open { display: flex; }
.conn-modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: modal-in 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modal-in { from { opacity:0; transform: scale(0.93) translateY(12px); } to { opacity:1; transform:none; } }
.conn-modal-top {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px 20px;
  text-align: center;
  position: relative;
}
.conn-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--t);
}
.conn-modal-close:hover { background: var(--bg); color: var(--text-primary); }
.conn-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 20px;
  margin: 0 auto 12px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
}
.conn-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.conn-wallet-icon-lg {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
}
.conn-modal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.conn-modal-sub   { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.conn-modal-body  { padding: 24px; }
.conn-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 4px 0;
  gap: 4px;
}
.conn-state.state-active {
  display: flex;
  animation: state-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#state-manual.state-active {
  align-items: stretch;
  text-align: left;
}
#state-manual .conn-manual-title,
#state-manual .manual-security-badge,
#state-manual .conn-enc-note {
  text-align: center;
  align-self: center;
}
@keyframes state-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
/* Spinner */
.conn-spinner-wrap { margin-bottom: 16px; }
.conn-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.conn-hint { font-size: 13px; color: var(--text-muted); text-align: center; }
/* Failed state */
.conn-fail-icon { margin-bottom: 12px; }
.conn-fail-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.conn-fail-msg   { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.6; margin-bottom: 16px; }
.conn-retry-btn {
  padding: 8px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--t);
}
.conn-retry-btn:hover { border-color: var(--blue); color: var(--blue); }
/* Countdown ring (SVG) */
.conn-countdown-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 8px;
}
.conn-countdown-ring {
  position: relative; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.conn-countdown-svg { position: absolute; top: 0; left: 0; width: 56px; height: 56px; transform: rotate(-90deg); }
.conn-countdown-track {
  fill: none; stroke: var(--border); stroke-width: 3;
  stroke-dasharray: 113.1; stroke-dashoffset: 0;
}
.conn-countdown-fill {
  fill: none; stroke: var(--blue); stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113.1; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.conn-countdown-num {
  position: relative; font-size: 18px; font-weight: 700;
  color: var(--text-primary); z-index: 1;
}
/* ══════════════════════════════════════
   MANUAL WALLET CONNECTION — REDESIGN
   ══════════════════════════════════════ */

/* Manual form */
.manual-tabs, .conn-manual-tabs {
  display: flex; gap: 2px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 16px;
  width: 100%;
}
.manual-tab, .conn-tab {
  flex: 1; padding: 8px 6px;
  border-radius: 9px;
  font-size: 12px; font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  text-align: center;
  border: none; background: transparent;
  white-space: nowrap;
}
.manual-tab.active, .conn-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.manual-panel { display: none; width: 100%; text-align: left; }
.manual-panel.active { display: block; }
.conn-tab-panel { display: none; }
.conn-tab-panel.active { display: block; }

/* Field labels */
.manual-field-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700;
  color: #64748b;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.manual-field-hint {
  font-size: 10px; font-weight: 500;
  color: #94a3b8; text-transform: none; letter-spacing: 0;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  padding: 2px 7px; border-radius: 20px;
}

/* ── Textarea (seed phrase & private key) ── */
.manual-textarea {
  width: 100%; box-sizing: border-box;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px; line-height: 1.8;
  color: #1e293b;
  font-family: 'SFMono-Regular', 'Consolas', 'Courier New', monospace;
  resize: none;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  margin-bottom: 10px;
  caret-color: #2563eb;
  display: block;
}
.manual-textarea::placeholder {
  color: #b0bec5;
  font-size: 12px;
  line-height: 1.7;
}
.manual-textarea:focus {
  outline: none;
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
  color: #0f172a;
}

/* ── Password / passphrase inputs ── */
.manual-input {
  width: 100%; box-sizing: border-box;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 14px 11px 40px;
  font-size: 13px;
  color: #1e293b;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  margin-bottom: 10px;
  display: block;
  position: relative;
}
.manual-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

/* Input wrapper with lock icon */
.manual-input-wrap {
  position: relative; margin-bottom: 10px;
}
.manual-input-wrap .manual-input { margin-bottom: 0; padding-left: 40px; }
.manual-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none;
}

/* ── Keystore file upload ── */
.manual-file-label {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: #475569;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  margin-bottom: 10px;
  width: 100%; box-sizing: border-box;
}
.manual-file-label:hover {
  border-color: #2563eb;
  background: rgba(37,99,235,0.03);
  color: #2563eb;
}
.manual-file-label svg { opacity: 0.6; }
.manual-file-hint {
  font-size: 11px; color: #94a3b8; font-weight: 400;
}

/* Security note + title */
.conn-manual-title {
  font-size: 17px; font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px; text-align: center;
  letter-spacing: -0.02em;
}
.manual-security-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #15803d; border-radius: 20px;
  padding: 4px 12px; font-size: 11px; font-weight: 600;
  margin-bottom: 14px;
}
.conn-enc-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #94a3b8;
  margin-top: 12px;
  justify-content: center;
}
.conn-manual-title + .manual-security-badge { margin-top: 6px; }

/* Connect button inside manual */
#state-manual .btn { margin-top: 6px; }
.conn-field textarea,
.conn-field input[type="text"],
.conn-field input[type="password"],
.conn-field input[type="file"] {
  width: 100%; box-sizing: border-box;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 12px;
  font-size: 13px; color: var(--text-primary);
  font-family: var(--font);
  resize: vertical;
  transition: border-color 0.2s;
}
.conn-field textarea:focus,
.conn-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}
.conn-submit-btn {
  width: 100%; padding: 12px;
  background: var(--blue);
  color: #fff;
  border: none; border-radius: var(--r-lg);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.conn-submit-btn:hover { background: #1d4ed8; }
.conn-verifying-state {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 0;
}
/* Success state */
.conn-success-icon { font-size: 40px; margin-bottom: 8px; }
.conn-success-title { font-size: 17px; font-weight: 700; color: var(--green); }
.conn-success-msg { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ─── WALLET GATE (sync page) ─── */
#wallet-gate {
  position: fixed; inset: 0;
  z-index: 1500;
  align-items: center;
  justify-content: center;
  background: rgba(13,21,38,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}
#wallet-gate.visible { opacity: 1; }
.gate-overlay {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 24px;
}
.gate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 40px 36px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  animation: modal-in 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
.gate-lock-icon { font-size: 44px; margin-bottom: 16px; }
.gate-title {
  font-size: 22px; font-weight: 800;
  color: var(--navy); margin-bottom: 12px;
}
.gate-desc {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 24px;
}
.gate-note {
  margin-top: 16px;
  font-size: 12px; color: var(--text-muted);
}
.sync-blurred { filter: blur(4px); pointer-events: none; user-select: none; }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 100px;
  letter-spacing: 0.03em;
}
.tag-green  { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.tag-blue   { background: var(--blue-subtle); color: var(--blue); border: 1px solid var(--blue-mid); }

/* Sync log */
.log-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-md); font-size: 12px; }
.log-row:hover { background: var(--bg); }
.log-time { color: var(--text-muted); font-family: monospace; flex-shrink: 0; }
.log-ico  { flex-shrink: 0; }
.log-text { flex: 1; color: var(--text-secondary); }
.log-ok   { font-size: 11px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.log-pend { font-size: 11px; font-weight: 700; color: var(--blue);  flex-shrink: 0; }

/* Status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 100px;
}
.pill-ok   { background: rgba(16,185,129,0.1); color: var(--green); }
.pill-pend { background: rgba(251,191,36,0.1); color: #d97706; }
.pill-sync { background: var(--blue-subtle); color: var(--blue); }

/* ─── SYNC PAGE RESPONSIVE ─── */
@media (max-width: 900px) {
  .connect-body-layout { grid-template-columns: 1fr; }
  .connect-guide { position: static; }
  .cg-steps { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cg-steps { grid-template-columns: 1fr; }
  .cg-step-desc { display: none; }
  .wallet-featured-grid { grid-template-columns: repeat(2,1fr); }
  .cph-br { display: none; }
}
@media (max-width: 480px) {
  .cph-inner { padding: 24px 16px 20px; }
  .wallet-all-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

/* ─── SYNC PAGE ─── */
.sync-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  padding: 64px 0;
  align-items: start;
}

.sync-controls {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 116px;
}

.sync-ctrl-head {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.sync-ctrl-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.sync-ctrl-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.sync-ctrl-body { padding: 20px; }

.ctrl-group { margin-bottom: 20px; }
.ctrl-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px; }
.ctrl-chains { display: flex; flex-direction: column; gap: 6px; }
.ctrl-chain {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t);
}
.ctrl-chain.selected {
  background: var(--blue-subtle);
  border-color: var(--blue-mid);
}
.ctrl-chain-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ctrl-chain-name { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.ctrl-chain-check { font-size: 14px; color: var(--blue); margin-left: auto; display: none; }
.ctrl-chain.selected .ctrl-chain-check { display: block; }

.ctrl-options { display: flex; flex-direction: column; gap: 6px; }
.ctrl-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.ctrl-opt-label { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.ctrl-opt-sub   { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Toggle switch */
.toggle {
  width: 40px; height: 22px;
  background: var(--border-strong);
  border-radius: var(--r-pill);
  position: relative;
  cursor: pointer;
  transition: var(--t);
  flex-shrink: 0;
}
.toggle.on { background: var(--blue); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: var(--t);
  box-shadow: var(--shadow-xs);
}
.toggle.on::after { left: calc(100% - 19px); }

/* Sync progress display */
.sync-display { display: flex; flex-direction: column; gap: 20px; }

.sync-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sync-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sync-panel-title { font-size: 14px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.sync-panel-body  { padding: 20px; }

/* Progress bar */
.prog-bar-wrap { background: var(--bg); border-radius: var(--r-pill); height: 8px; margin-bottom: 8px; overflow: hidden; }
.prog-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
/* Sync log */
.sync-log { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.log-row:last-child { border-bottom: none; }
.log-time { color: var(--text-muted); font-family: monospace; flex-shrink: 0; width: 55px; }
.log-ico  { flex-shrink: 0; font-size: 13px; }
.log-text { color: var(--text-secondary); flex: 1; }
.log-ok   { color: var(--green); font-weight: 700; }
.log-pend { color: var(--blue); font-weight: 700; }

/* Activity table */
.act-table { width: 100%; border-collapse: collapse; }
.act-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
}
.act-table td {
  padding: 11px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.act-table tr:last-child td { border-bottom: none; }
.act-table tr:hover td { background: var(--bg); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}
.pill-ok     { background: var(--green-subtle); color: var(--green); }
.pill-pend   { background: var(--orange-subtle); color: var(--orange); }
.pill-sync   { background: var(--blue-subtle);  color: var(--blue); }

/* ─── TOAST ─── */
.toast-box {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 280px;
  animation: toast-slide 0.3s ease;
}
@keyframes toast-slide { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-icon { font-size: 16px; flex-shrink: 0; }

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first breakpoints
   ═══════════════════════════════════════════════════════════════ */

/* ── 1200px: tighten layout ── */
@media (max-width: 1200px) {
  .hero-title { font-size: clamp(32px, 5vw, 56px); }
  .mega-inner { grid-template-columns: 1fr 220px; }
}

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
  .svc-section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .svc-head-right   { max-width: 100%; }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .testi-grid       { grid-template-columns: 1fr 1fr; }
  .sync-layout      { grid-template-columns: 1fr; }
  .sync-controls    { position: static; }
  .hero-inner       { gap: 48px; }
}

/* ── 900px: wide tablet ── */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(28px, 5vw, 48px); }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .chains-list { gap: 12px; }
  .chain-pill  { padding: 8px 14px; font-size: 12px; }
}
/* Restore hero visual & badges above 768px */
@media (min-width: 769px) {
  .hero-badge  { display: flex; }
  .hero-visual {
    min-height: 480px;
    padding: 12px 72px;
    overflow: visible;
    transform: none;
    margin: 0;
  }
}

/* ── 768px: tablet portrait & large phones ── */
@media (max-width: 768px) {
  /* ── Layout ── */
  section { padding: 60px 0; }
  .container { padding: 0 20px; }

  /* ── Nav ── */
  .nav-links, .nav-right { display: none; }
  .nav-toggle  { display: flex; }

  /* ── Hero ── */
  .hero { padding: 0; }
  .hero-inner       { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .hero-left        { padding: 40px 0 28px; max-width: 100%; padding-right: 0; }
  .hero-kicker      { margin: 0 auto 20px; }
  .hero-title       { font-size: clamp(28px, 7vw, 44px); margin-bottom: 16px; }
  .hero-desc        { font-size: 16px; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .hero-actions     { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn-hero-primary,
  .hero-actions .btn-hero-ghost { width: 100%; max-width: 320px; justify-content: center; }
  .hero-trust       { justify-content: center; }
  .hero-desc        { margin-left: auto; margin-right: auto; }

  /* Orbit on mobile — full animation, no side crop */
  .hero-visual {
    display: flex;
    width: 100%;
    min-height: 360px;
    height: auto;
    padding: 8px 16px 20px;
    overflow: visible;
    margin: 0 auto 24px;
    transform: none;
  }
  .orbit-stage {
    width: min(340px, 92vw);
    height: min(340px, 92vw);
  }
  .orbit-rings-svg {
    width: min(340px, 92vw);
    height: min(340px, 92vw);
  }
  /* Hide floating stat badges on mobile */
  .hero-badge { display: none; }

  /* ── Ticker ── */
  .ticker-label { display: none; }
  .ticker-item  { padding: 0 8px; font-size: 11px; }

  /* ── Chains ── */
  .chains-strip { padding: 0; }
  .chains-list  { gap: 10px; padding: 20px 0; }
  .chain-pill   { padding: 7px 12px; font-size: 12px; }
  .chain-pill img { width: 18px; height: 18px; }

  /* ── Stats ── */
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px 16px; }
  .stat-item:nth-child(3n) { border-right: none; }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:last-child { border-bottom: none; }
  .stat-val  { font-size: 28px; }

  /* ── Services ── */
  .services-grid    { grid-template-columns: 1fr; }
  .svc-section-head { gap: 16px; }
  .svc-card         { padding: 24px; }

  /* ── Security / split ── */
  .sec-split { grid-template-columns: 1fr; }

  /* ── Testimonials ── */
  .testi-grid { grid-template-columns: 1fr; }

  /* ── CTA section ── */
  .cta-btns { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .cta-btns .btn { min-width: 200px; }

  /* ── Footer ── */
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand  { grid-column: 1 / -1; }
  .footer-bottom     { flex-direction: column; gap: 14px; text-align: center; }
  .footer-bottom-left { flex-direction: column; gap: 8px; align-items: center; }
  .footer-legal      { justify-content: center; }

  /* ── Sync page ── */
  .sync-layout { padding: 40px 0; }
}

/* ── 640px: most phones ── */
@media (max-width: 640px) {
  section { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* ── Hero ── */
  .hero-left        { padding: 36px 0 40px; }
  .hero-title       { font-size: clamp(26px, 8vw, 38px); }
  .hero-desc        { font-size: 15px; }

  /* ── Services ── */
  .svc-card         { padding: 20px; border-radius: 16px; }

  /* ── Stats ── */
  .stats-bar { padding: 24px 0; }
  .stat-val  { font-size: 26px; }

  /* ── Security ── */
  .sec-grid { grid-template-columns: 1fr; gap: 12px; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-logo-name { font-size: 18px; }

  /* ── Chains ── */
  .chains-list { flex-wrap: nowrap; overflow-x: auto; padding: 16px 16px; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
  .chains-list::-webkit-scrollbar { display: none; }
  .chain-pill { flex-shrink: 0; scroll-snap-align: start; }

  /* ── Mobile nav services ── */
  .mobile-nav-services { grid-template-columns: 1fr; }
}

/* ── 480px: small phones ── */
@media (max-width: 480px) {
  /* ── Hero ── */
  .hero-title   { font-size: clamp(24px, 8vw, 34px); }
  .hero-actions .btn { max-width: 100%; }

  /* ── Stats ── */
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* ── CTA ── */
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; justify-content: center; }

  /* ── Section headings ── */
  .section-title { font-size: clamp(22px, 7vw, 32px); }
  .section-sub   { font-size: 14px; }

  /* ── Services ── */
  .svc-card-icon { width: 44px; height: 44px; }

  /* ── Nav logo ── */
  .nav-logo-name { font-size: 15px; }

  /* ── Footer ── */
  .footer-copy { font-size: 12px; }
}

/* ══════════════════════════════════════
   MOBILE IMPROVEMENTS — CONNECT & MODAL
   ══════════════════════════════════════ */

/* ── Modal: bottom-sheet on small phones ── */
@media (max-width: 480px) {
  .conn-modal-bg {
    align-items: flex-end;
    padding: 0;
  }
  .conn-modal {
    border-radius: 24px 24px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    animation: modal-slide-up 0.28s cubic-bezier(0.22,1,0.36,1) both;
  }
  @keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: none; }
  }
  .conn-modal-body { padding: 20px 18px; }
  .conn-modal-top  { padding: 20px 18px 16px; }
  .manual-textarea { font-size: 14px; }
  .manual-tab      { font-size: 11px; padding: 8px 4px; }
  .manual-input    { font-size: 15px; padding: 13px 14px 13px 40px; }
}

/* ── Connect page search & layout ── */
@media (max-width: 768px) {
  .connect-body-layout  { grid-template-columns: 1fr; gap: 24px; }
  .connect-guide        { position: static; order: 2; }
  .connect-wallets      { order: 1; }
  .conn-search-wrap     { width: 100%; }
  .cph-inner h1         { font-size: clamp(22px, 6vw, 32px); }
  .wallet-featured-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .wallet-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .wallet-all-grid      { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .wallet-compact-card  { padding: 12px 8px; }
  .wallet-featured-card { padding: 16px 10px; }
  .cph-inner { padding: 20px 16px 18px; }
}

/* ── Sync page with ticker ── */
.sync-layout { padding-top: 40px; }

/* ═══════════════════════════════════════
   PERFORMANCE — reduce motion & mobile GPU load
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .wallet-featured-card { animation: none; }
  .orbit-stage .orbit-node {
    animation: none !important;
    transform: rotate(var(--angle)) translateX(var(--r)) rotate(calc(-1 * var(--angle)));
  }
  .orbit-stage .orbit-pulse { animation: none; opacity: 0.35; }
}

@media (max-width: 768px) {
  .cph-blob,
  .lhbg-blob { animation: none; }
}
