/* ═══════════════════════════════════════════════════════════
   NexPay — Landing Page Styles
   Dark fintech theme · glassmorphism · full responsive
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #05080f;
  --bg-2: #070d1a;
  --bg-3: #0a1322;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eef7;
  --text-dim: #9aa7bd;
  --text-faint: #64708a;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --red: #f43f5e;
  --grad: linear-gradient(100deg, #10b981 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(100deg, rgba(16,185,129,.16), rgba(34,211,238,.16));
  --grad-text: linear-gradient(100deg, #34d399 0%, #22d3ee 60%, #60a5fa 100%);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & base ─────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2a40; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a3d5c; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ── Typography helpers ───────────────────────────────────── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(52, 211, 153, 0.85);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  background: var(--grad-soft);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-alt { background: var(--bg-2); }

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

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}

.btn svg { width: 19px; height: 19px; }

.btn-primary {
  background: var(--grad);
  color: #04121c;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.4);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(100deg, #059669, #10b981);
  color: #04121c;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}

.btn-success:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(16,185,129,.5); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-reset { opacity: 0.75; }
.btn-reset:hover { opacity: 1; border-color: var(--border-strong); }

/* ── Scroll progress ──────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 1001;
  border-radius: 0 4px 4px 0;
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(16,185,129,.2), rgba(34,211,238,.2));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--emerald-bright);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}

.brand-mark svg { width: 21px; height: 21px; }

.brand-mark .brand-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a:not(.btn) {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  height: 2px;
  width: 0%;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}

.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn).active { color: var(--text); }
.nav-links > a:not(.btn):hover::after,
.nav-links > a:not(.btn).active::after { width: 100%; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  z-index: 1002;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 70px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(700px 420px at 8% 8%, rgba(16, 185, 129, 0.10), transparent 55%),
    var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 460px; height: 460px;
  background: rgba(16, 185, 129, 0.14);
  top: -120px; left: -140px;
  animation: glowDrift 14s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 520px; height: 520px;
  background: rgba(34, 211, 238, 0.10);
  bottom: -180px; right: -160px;
  animation: glowDrift 18s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

.hero-grid-bg {
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-copy { max-width: 620px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}

.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 42px; }

.hero-connect {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.hero-connect svg { width: 18px; height: 18px; flex: none; color: var(--cyan); }

.hero-connect b { color: var(--text); font-weight: 600; }

.hero-connect a {
  color: var(--emerald-bright);
  font-weight: 600;
  border-bottom: 1px solid rgba(52, 211, 153, 0.35);
  transition: border-color 0.2s ease;
}

.hero-connect a:hover { border-color: var(--emerald-bright); }

/* ── Hybrid architecture diagram (hero) ───────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.diagram-glow {
  position: absolute;
  inset: 4% -4%;
  background: conic-gradient(from 180deg, rgba(16,185,129,.35), rgba(34,211,238,.35), rgba(139,92,246,.25), rgba(16,185,129,.35));
  filter: blur(70px);
  border-radius: 40px;
  opacity: 0.5;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.97); }
  50%      { opacity: 0.7; transform: scale(1.04); }
}

.diagram-card {
  position: relative;
  width: min(440px, 94vw);
  background: linear-gradient(165deg, #101c30, #0a1424 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 24px;
  animation: cardFloat 7s ease-in-out infinite;
  transform: rotateY(-6deg) rotateX(3deg);
}

@keyframes cardFloat {
  0%, 100% { transform: rotateY(-6deg) rotateX(3deg) translateY(0); }
  50%      { transform: rotateY(-6deg) rotateX(3deg) translateY(-12px); }
}

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

.diagram-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.diagram-chips { display: flex; gap: 8px; }

.diagram-body {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.diag-node {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  text-align: center;
}

.diag-center {
  background: var(--grad);
  color: #04121c;
  border: 0;
  font-size: 1rem;
  padding: 11px 26px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.diag-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.diag-branch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.diag-branch .diag-node {
  font-size: 0.74rem;
  padding: 6px 10px;
  margin-bottom: 10px;
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.35);
}

.diag-branch ul { display: grid; gap: 7px; }

.diag-branch li {
  font-size: 0.74rem;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.diag-branch li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--emerald-bright);
  font-size: 0.68rem;
}

.diag-arrow { color: var(--cyan); font-size: 1.05rem; line-height: 1; animation: arrowPulse 1.8s ease-in-out infinite; }

.diag-sync { border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }
.diag-settle { border-color: rgba(16, 185, 129, 0.45); color: var(--emerald-bright); }

.diagram-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.channel-chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}

.status-dot.online { background: var(--emerald-bright); box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); animation: pulse 2.2s infinite; }
.status-dot.offline { background: var(--amber); box-shadow: 0 0 8px rgba(245, 158, 11, 0.8); }

.status-chip.offline-mode { border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }

.chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.chip.pending { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.chip-demo { background: rgba(139, 92, 246, 0.14); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.chip-phase { background: rgba(139, 92, 246, 0.14); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

/* Float badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(10, 19, 34, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 4;
  animation: badgeFloat 6s ease-in-out infinite;
}

.float-badge-1 { top: 16%; left: -4%; animation-delay: 0.5s; }
.float-badge-2 { bottom: 12%; right: -6%; animation-delay: 2.2s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.fb-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad-soft);
  font-size: 1.05rem;
}

.float-badge b { display: block; font-size: 0.8rem; line-height: 1.2; }
.float-badge small { font-size: 0.66rem; color: var(--text-dim); }

/* ── Honest data labels ───────────────────────────────────── */
.stats-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 16px;
}

.sim-demo-note {
  font-size: 0.76rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.cta-connect {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
  position: relative;
}

.cta-connect a {
  color: var(--emerald-bright);
  font-weight: 600;
  border-bottom: 1px solid rgba(52, 211, 153, 0.35);
}

.cta-connect a:hover { border-color: var(--emerald-bright); }

/* ── Stats strip ──────────────────────────────────────────── */
.stats-strip {
  position: relative;
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: rgba(7, 13, 26, 0.92);
  padding: 34px 22px;
  text-align: center;
  transition: background 0.3s ease;
}

.stat:hover { background: rgba(10, 19, 34, 0.95); }

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { margin-top: 6px; font-size: 0.82rem; color: var(--text-dim); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--surface-2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.card h3 { font-family: var(--font-head); font-size: 1.22rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ── Problem section ──────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  font-size: 1.4rem;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.icon-red { background: rgba(244, 63, 94, 0.12); }
.icon-amber { background: rgba(245, 158, 11, 0.12); }
.icon-violet { background: rgba(139, 92, 246, 0.12); }
.icon-cyan { background: rgba(34, 211, 238, 0.12); }
.icon-emerald { background: rgba(16, 185, 129, 0.12); }

.cta-card {
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.12), rgba(34, 211, 238, 0.08));
  border-color: rgba(34, 211, 238, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-card h3 { font-size: 1.45rem; }
.cta-card .btn { margin-top: 18px; align-self: flex-start; }

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card { position: relative; overflow: hidden; }

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 85% -10%, rgba(34, 211, 238, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  font-size: 1.55rem;
  background: var(--grad);
  color: #04121c;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35);
}

.feature-list { margin-top: 16px; display: grid; gap: 8px; }

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.87rem;
  color: var(--text-dim);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.85;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 26px;
  margin-bottom: 90px;
}

.step { position: relative; text-align: center; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--grad);
  color: #04121c;
  margin-bottom: 18px;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1), 0 14px 34px rgba(16, 185, 129, 0.35);
}

.step h3 { font-family: var(--font-head); font-size: 1.14rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-dim); }

.step-connector {
  display: flex;
  align-items: center;
  height: 56px;
}

.step-connector span {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(16,185,129,.5), rgba(34,211,238,.5));
  border-radius: 2px;
  position: relative;
}

.step-connector span::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

/* ── Simulator ────────────────────────────────────────────── */
.simulator {
  background: linear-gradient(165deg, rgba(10, 19, 34, 0.9), rgba(7, 13, 26, 0.95));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sim-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.sim-head .eyebrow { margin-bottom: 10px; }
.sim-head h3 { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -0.01em; }
.sim-head p { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }

.sim-connectivity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sim-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.amount-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 20px;
  transition: border-color 0.25s ease;
}

.amount-input:focus-within { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1); }

.amount-currency { font-weight: 700; color: var(--emerald-bright); font-size: 1.15rem; }

.amount-input input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 14px 0;
  min-width: 0;
}

.amount-input input::-webkit-outer-spin-button,
.amount-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.amount-input input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--text);
  padding: 13px 16px;
  font-size: 0.95rem;
  margin-bottom: 20px;
  outline: 0;
  cursor: pointer;
  transition: border-color 0.25s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa7bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

select:focus { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1); }

.sim-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 18px;
}

.hint-icon { color: #fbbf24; }

.sim-controls .btn { margin-bottom: 12px; }

.sim-stage {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stage-head .chip {
  text-transform: none;
  letter-spacing: 0.05em;
  background: rgba(100, 112, 138, 0.15);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.stage-head .chip.active { background: rgba(34, 211, 238, 0.14); color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); }
.stage-head .chip.done { background: rgba(16, 185, 129, 0.14); color: var(--emerald-bright); border-color: rgba(16, 185, 129, 0.4); }

.phase-tracker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.phase {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-faint);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.phase-num {
  width: 22px; height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.phase.active { color: var(--cyan); border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08); }
.phase.active .phase-num { background: var(--cyan); color: #04121c; border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 211, 238, 0.6); }
.phase.done { color: var(--emerald-bright); border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.07); }
.phase.done .phase-num { background: var(--emerald); color: #04121c; border-color: var(--emerald); }

.stp-log {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: #04070d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.log-line { color: #d1e0f2; white-space: nowrap; animation: logIn 0.3s var(--ease); }
.log-line.muted { color: var(--text-faint); }

@keyframes logIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

.stp-json {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  background: #04070d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow: auto;
  max-height: 260px;
  color: #c9d7ea;
}

.stp-json .k { color: #7dd3fc; }
.stp-json .s { color: #86efac; }
.stp-json .n { color: #fbbf24; }
.stp-json .c { color: #52627c; font-style: italic; }

.stp-json .tx-flash {
  animation: txFlash 0.8s ease;
}

@keyframes txFlash {
  0%   { background: rgba(34, 211, 238, 0.35); }
  100% { background: transparent; }
}

/* ── Channels ─────────────────────────────────────────────── */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.channel-card { text-align: center; position: relative; overflow: hidden; }

.channel-ico {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  font-size: 1.8rem;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease);
}

.channel-card:hover .channel-ico { transform: rotate(-6deg) scale(1.08); }

.ico-ble { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }
.ico-nfc { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.ico-qr { background: rgba(16, 185, 129, 0.12); color: var(--emerald-bright); }
.ico-wifi { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }

.channel-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ── Security ─────────────────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.security-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
}

.security-icon {
  flex: none;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 1.35rem;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.security-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.security-card p { font-size: 0.9rem; }

/* Pipeline */
.pipeline {
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  min-width: 118px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.pipeline-node:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.4); }

.pn-icon { font-size: 1.3rem; }
.pipeline-node b { font-size: 0.85rem; font-weight: 600; }
.pipeline-node small { font-size: 0.68rem; color: var(--text-faint); }

.node-accent { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.08); }
.node-accent b { color: var(--emerald-bright); }

.pipeline-arrow { color: var(--cyan); font-size: 1.2rem; animation: arrowPulse 1.8s ease-in-out infinite; }

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%      { opacity: 1; transform: translateX(4px); }
}

.compliance {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 500;
}

.compliance-item { color: var(--text-dim); }
.compliance-sep { color: var(--emerald-bright); opacity: 0.7; }

/* ── Use cases ────────────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.usecase-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.use-icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.25rem;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.usecase-head h3 { margin-bottom: 0; font-size: 1.15rem; }

/* ── Protocol ─────────────────────────────────────────────── */
.protocol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}

.code-card {
  background: #04070d;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.code-dots { display: flex; gap: 6px; margin-right: 8px; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; }
.code-dots i:nth-child(1) { background: #f43f5e; }
.code-dots i:nth-child(2) { background: #f59e0b; }
.code-dots i:nth-child(3) { background: #10b981; }

.code-card pre {
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: #c9d7ea;
}

.code-card .k { color: #7dd3fc; }
.code-card .s { color: #86efac; }
.code-card .n { color: #fbbf24; }
.code-card .c { color: #52627c; font-style: italic; }

.protocol-details { display: grid; gap: 18px; }

.proto-item {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.proto-item:hover { transform: translateX(6px); border-color: var(--border-strong); }

.proto-key {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
}

.proto-item p { font-size: 0.9rem; color: var(--text-dim); }
.proto-item code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(16,185,129,.5), rgba(34,211,238,.5));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  padding-left: 78px;
  padding-bottom: 34px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: 27px;
  top: 34px;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid var(--emerald);
  display: grid;
  place-items: center;
}

.tl-marker span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

.tl-card { padding: 26px 28px; }

.tl-card .chip { margin-bottom: 14px; display: inline-block; }
.tl-card h3 { font-size: 1.25rem; margin-bottom: 14px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.container-narrow { max-width: 820px; }

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: rgba(34, 211, 238, 0.35); background: var(--surface-2); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 21px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 400;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--grad); color: #04121c; }

.faq-body {
  padding: 0 26px 24px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.faq-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { padding-top: 60px; }

.cta-card {
  position: relative;
  text-align: center;
  padding: 76px 30px;
  border-radius: 28px;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(16, 185, 129, 0.16), transparent 60%),
    linear-gradient(165deg, rgba(10, 19, 34, 0.9), rgba(7, 13, 26, 0.95));
  border: 1px solid rgba(34, 211, 238, 0.25);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(16,185,129,.2), rgba(34,211,238,.2), rgba(139,92,246,.16), rgba(16,185,129,.2));
  filter: blur(80px);
  top: -260px; left: 50%;
  transform: translateX(-50%);
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.cta-card h2 {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 780px;
  margin: 22px auto 18px;
}

.cta-card > p { position: relative; color: var(--text-dim); max-width: 560px; margin: 0 auto; font-size: 1.02rem; }

.cta-buttons {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.store-btn { padding: 12px 26px; border-radius: 16px; }

.store-btn svg { width: 26px; height: 26px; }

.store-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-btn small { font-size: 0.68rem; font-weight: 500; opacity: 0.8; }
.store-btn b { font-size: 1rem; font-weight: 700; }

.cta-note { margin-top: 24px; font-size: 0.84rem; color: var(--text-faint) !important; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 70px 0 30px;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin: 18px 0 22px; max-width: 300px; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s ease;
}

.footer-social a:hover { color: var(--emerald-bright); border-color: rgba(16, 185, 129, 0.4); transform: translateY(-3px); }

.footer-social svg { width: 18px; height: 18px; }

.footer-site a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.footer-site a:hover {
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.footer-site svg { width: 17px; height: 17px; flex: none; color: var(--cyan); }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover { color: var(--cyan); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ── Back to top ──────────────────────────────────────────── */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #04121c;
  border: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
  z-index: 900;
}

.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); }
.back-top svg { width: 22px; height: 22px; }

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════ Q&A PAGE ══════════════════ */
.qa-hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 26px;
  overflow: hidden;
  background: var(--bg);
}

.qa-hero-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.qa-back {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.qa-back:hover { color: var(--cyan); }

.qa-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.qa-sub {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 auto 30px;
}

.qa-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 22px;
}

.qa-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--text-faint);
  pointer-events: none;
}

.qa-search input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 15px 20px 15px 52px;
  color: var(--text);
  font-size: 0.98rem;
  outline: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.qa-search input::placeholder { color: var(--text-faint); }

.qa-search input:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.qa-search input::-webkit-search-cancel-button { cursor: pointer; }

.qa-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 14px;
}

.qa-chip {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.25s ease;
}

.qa-chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }

.qa-chip.active {
  background: var(--grad);
  color: #04121c;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.qa-count {
  color: var(--text-faint);
  font-size: 0.84rem;
  margin: 4px 0 0;
}

.qa-section { padding: 34px 0 90px; }

.qa-group { margin-bottom: 48px; }

.qa-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.qa-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.qa-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.qa-item:hover { border-color: var(--border-strong); }

.qa-item[open] {
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--surface-2);
}

.qa-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.qa-item summary::-webkit-details-marker { display: none; }

.qa-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 9px;
  border-radius: 8px;
}

.qa-q {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.01rem;
  line-height: 1.35;
}

.qa-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 400;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.qa-item[open] .qa-icon { transform: rotate(45deg); background: var(--grad); color: #04121c; }

.qa-body {
  padding: 0 22px 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.qa-body p { margin: 10px 0; }

.qa-body ul, .qa-body ol { margin: 10px 0 12px; padding-left: 22px; }
.qa-body ul { list-style: disc; }
.qa-body ol { list-style: decimal; }
.qa-body li { margin: 4px 0; }

.qa-body pre {
  background: #04070d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-x: auto;
  color: #c9d7ea;
  margin: 12px 0;
  white-space: pre;
}

.qa-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 6px;
}

.qa-note {
  border-left: 3px solid var(--amber);
  background: rgba(245, 158, 11, 0.08);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  margin: 12px 0;
  font-size: 0.9rem;
  color: #fde68a;
}

.qa-note.green { border-color: var(--emerald); background: rgba(16, 185, 129, 0.08); color: #a7f3d0; }
.qa-note.red { border-color: var(--red); background: rgba(244, 63, 94, 0.08); color: #fecdd3; }

.qa-group.hidden, .qa-item.hidden { display: none; }

.qa-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  font-size: 0.95rem;
}

.qa-empty.show { display: block; }

.qa-cta {
  text-align: center;
  padding: 46px 30px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(10, 19, 34, 0.9), rgba(7, 13, 26, 0.95));
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-top: 10px;
}

.qa-cta h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.qa-cta p { color: var(--text-dim); font-size: 0.95rem; max-width: 520px; margin: 0 auto 22px; }
.qa-cta .btn { margin: 0 6px 10px; }

/* ── FAQ more link (homepage) ── */
.faq-more {
  text-align: center;
  margin-top: 34px;
}

/* ══════════════════ TRANSACTION PROCESS PAGE ══════════════════ */
.proc-hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 30px;
  overflow: hidden;
  background: var(--bg);
}

.proc-hero-inner {
  position: relative;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.proc-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.proc-sub {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 660px;
  margin: 0 auto 34px;
}

.proc-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.proc-toc-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease);
}

.proc-toc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--surface-2);
}

.proc-toc-range {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.proc-toc-card b {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--text);
}

.proc-toc-card small {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.proc-section { padding: 44px 0 90px; }

.proc-group { margin-bottom: 64px; }

.proc-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.proc-group-title > span:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  flex: none;
}

.proc-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  flex: none;
}

.proc-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px 26px 30px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.proc-item:hover { border-color: var(--border-strong); background: var(--surface-2); }

.proc-num {
  position: absolute;
  top: 26px;
  left: 26px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
}

.proc-item .proc-title {
  font-family: var(--font-head);
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px 70px;
  color: var(--text);
}

.proc-body p { margin: 10px 0; }
.proc-body ul, .proc-body ol { margin: 10px 0 12px; padding-left: 22px; }
.proc-body ul { list-style: disc; }
.proc-body ol { list-style: decimal; }
.proc-body li { margin: 4px 0; }

.proc-body pre {
  background: #04070d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-x: auto;
  color: #c9d7ea;
  margin: 12px 0;
  white-space: pre;
}

.proc-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 6px;
}

.proc-table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 14px; border: 1px solid var(--border); }

.proc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

.proc-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.07);
  border-bottom: 1px solid var(--border-strong);
}

.proc-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}

.proc-table tbody tr:last-child td { border-bottom: 0; }
.proc-table tbody tr:hover td { background: rgba(34, 211, 238, 0.04); }
.proc-table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.proc-quote {
  border-left: 3px solid var(--emerald);
  background: rgba(16, 185, 129, 0.07);
  padding: 16px 20px;
  border-radius: 0 14px 14px 0;
  margin: 14px 0;
  color: #d1fae5;
  font-size: 0.98rem;
  font-style: italic;
}

.proc-quote p { margin: 0 0 12px; }
.proc-quote p:last-child { margin-bottom: 0; }

/* ── How-it-works link (homepage) ── */
.how-more {
  text-align: center;
  margin: -34px 0 74px;
}

/* ── Generic centered section link ── */
.section-more {
  text-align: center;
  margin-top: 42px;
}

/* ── Problem/solution tags (Why page) ── */
.proc-tag {
  display: inline-block;
  vertical-align: 3px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-right: 10px;
  border: 1px solid;
}

.tag-problem { color: #fda4af; background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.35); }
.tag-solution { color: #6ee7b7; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.35); }
.tag-advantage { color: #67e8f9; background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.35); }
.tag-security { color: #c4b5fd; background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.35); }
.tag-applicability { color: #fcd34d; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.35); }
.tag-summary { color: #a7f3d0; background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.4); }

@media (max-width: 600px) {
  .proc-tag { display: inline-block; margin: 0 8px 8px 0; }
  .proc-item .proc-title { margin-left: 0; }
  .proc-item { padding-top: 66px; }
  .proc-toc { grid-template-columns: 1fr; }
  .proc-group-title { flex-wrap: wrap; }
}

/* ══════════════════ RESPONSIVE ══════════════════ */

/* Mid-size desktop — tighten nav */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-links > a:not(.btn) { font-size: 0.9rem; }
}

@media (max-width: 1020px) {
  .nav-links .nav-optional { display: none; }
}

/* Tablet landscape */
@media (max-width: 1080px) {
  .hero-inner { gap: 36px; }
  .float-badge-1 { left: -2%; }
  .float-badge-2 { right: -2%; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .step-connector { display: none; }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 26px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-links.open { opacity: 1; visibility: visible; transform: none; }

  .nav-links > a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; justify-content: center; }

  .nav-burger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { order: -1; }
  .float-badge-1 { left: 2%; }
  .float-badge-2 { right: 2%; }

  .problem-grid, .features-grid, .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: 1fr; }
  .sim-body { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .section { padding: 76px 0; }
  .hero { padding-top: calc(var(--nav-h) + 60px); }

  .problem-grid, .features-grid, .usecases-grid, .channels-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 12px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .simulator { padding: 20px; }
  .sim-head { flex-direction: column; }
  .sim-connectivity { justify-content: flex-start; }
  .phase-tracker { grid-template-columns: repeat(2, 1fr); }

  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }

  .timeline::before { left: 17px; }
  .tl-item { padding-left: 54px; }
  .tl-marker { left: 17px; }

  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .back-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
  .compliance { gap: 8px 14px; }
  .float-badge { padding: 9px 12px; }
  .float-badge-1 { top: 8%; left: -2%; }
  .float-badge-2 { bottom: 6%; right: -2%; }
}

@media (max-width: 380px) {
  .stats-strip { grid-template-columns: 1fr; }
}

/* ══════════════════ ASSETS PAGE ══════════════════ */
.assets-hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 26px;
  overflow: hidden;
  background: var(--bg);
}

.assets-hero-inner {
  position: relative;
  text-align: center;
  max-width: 940px;
  margin: 0 auto;
}

.assets-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.assets-sub {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 680px;
  margin: 0 auto 30px;
}

.assets-section { padding: 48px 0 90px; }

.asset-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 56px;
}

.asset-row.flip .asset-visual { order: 2; }
.asset-row.flip .asset-info { order: 1; }

.asset-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.asset-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.asset-visual:hover img { transform: scale(1.03); }

.asset-type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.asset-type::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: assetPulse 2s ease-in-out infinite;
}

@keyframes assetPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.asset-info h3 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  margin: 10px 0 10px;
}

.asset-info p { color: var(--text-dim); font-size: 0.98rem; }

.asset-info .asset-note { color: var(--text-faint); font-size: 0.85rem; margin-top: 12px; }

.asset-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.asset-actions .btn svg {
  width: 16px;
  height: 16px;
}

/* Full-width media blocks (video + PDF) */
.asset-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 40px;
  transition: border-color 0.3s ease;
}

.asset-block:hover { border-color: var(--border-strong); }

.asset-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.asset-block-head h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin-top: 4px;
}

.asset-block-body { padding: 22px 24px 24px; }

.asset-block-body > p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }

.asset-block .video-frame { width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.asset-block video { width: 100%; display: block; max-height: 62vh; background: #000; }

.pdf-frame {
  width: 100%;
  height: 68vh;
  min-height: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}

.asset-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.asset-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 7px;
}

@media (max-width: 900px) {
  .asset-row, .asset-row.flip { grid-template-columns: 1fr; }
  .asset-row.flip .asset-visual { order: 0; }
  .asset-row.flip .asset-info { order: 1; }
  .pdf-frame { height: 56vh; min-height: 380px; }
}

/* ══════════════════ NEPAL PAGE ══════════════════ */
.np-hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 46px;
  overflow: hidden;
  background: var(--bg);
}
.np-hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.np-title { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 16px; }
.np-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 720px; margin: 0 auto 26px; }
.np-flag-accent { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.np-flag { display: inline-block; width: 20px; height: 13px; border-radius: 2px; background: linear-gradient(135deg, #dc143c 55%, #003893 55%); box-shadow: 0 0 10px rgba(220, 20, 60, 0.35); }

/* Claim-status tags */
.claim {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-faint);
  background: var(--surface); text-transform: uppercase; white-space: nowrap;
}
.claim::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.claim-now { color: #34d399; border-color: rgba(52, 211, 153, 0.35); background: rgba(16, 185, 129, 0.08); }
.claim-now::before { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.claim-proposed { color: #22d3ee; border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08); }
.claim-proposed::before { background: #22d3ee; }
.claim-potential { color: #a78bfa; border-color: rgba(167, 139, 250, 0.35); background: rgba(139, 92, 246, 0.08); }
.claim-potential::before { background: #a78bfa; }
.claim-future { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); background: rgba(245, 158, 11, 0.08); }
.claim-future::before { background: #fbbf24; }
.claim-reg { color: #f87171; border-color: rgba(248, 113, 113, 0.35); background: rgba(244, 63, 94, 0.08); }
.claim-reg::before { background: #f87171; }

/* Flow diagrams */
.np-flow { display: grid; gap: 0; justify-items: center; }
.np-flow-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 22px; font-size: 13.5px; font-weight: 600; min-width: 230px; text-align: center;
  position: relative;
}
.np-flow-step small { display: block; font-weight: 500; color: var(--text-faint); font-size: 11.5px; margin-top: 2px; }
.np-flow-arrow { color: var(--cyan); font-size: 15px; padding: 5px 0; animation: arrowNudge 1.6s ease-in-out infinite; }
.np-flow-arrow.off { color: var(--red); }
.np-flow-arrow.warn { color: var(--amber); }
.np-flow-arrow.ok { color: var(--emerald); }

/* Hero online/offline/sync visual */
.np-mode { max-width: 720px; margin: 40px auto 0; text-align: left; }
.np-mode-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.np-mode-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  padding: 8px 16px; border-radius: 999px; transition: all 0.25s var(--ease);
}
.np-mode-btn:hover { color: var(--text); border-color: var(--border-strong); }
.np-mode-btn.on { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.45); color: #34d399; }
.np-mode-btn.off { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.45); color: #fbbf24; }
.np-mode-btn.sync { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.45); color: #22d3ee; }
.np-mode-stage { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-height: 250px; }
.np-mode-line { display: flex; align-items: center; gap: 12px; opacity: 0.35; transition: opacity 0.4s ease, transform 0.4s var(--ease); }
.np-mode-line.active { opacity: 1; transform: translateX(6px); }
.np-mode-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-faint); flex: none; }
.np-mode-line.active .dot.on { background: var(--emerald); box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }
.np-mode-line.active .dot.off { background: var(--amber); box-shadow: 0 0 10px rgba(245, 158, 11, 0.8); }
.np-mode-line.active .dot.sync { background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.8); }
.np-mode-line b { font-family: var(--font-head); font-size: 14px; }
.np-mode-line span { color: var(--text-dim); font-size: 13px; }

/* Nepal map */
.np-map-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.np-map-card svg { width: 100%; height: auto; display: block; }
.np-map-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 10px; }

/* Region + user cards */
.np-region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.np-region { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.np-region:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.np-region h4 { font-family: var(--font-head); font-size: 15.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.np-region p { color: var(--text-dim); font-size: 13.8px; }
.np-region .mini-chip { font-size: 11.5px; color: var(--text-faint); }

/* Wallet reserve visual */
.np-wallet { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 620px; margin: 0 auto; }
.np-wallet-bar { height: 46px; border-radius: 14px; overflow: hidden; display: flex; background: var(--surface); border: 1px solid var(--border); }
.np-wallet-online { width: 50%; background: linear-gradient(100deg, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0.34)); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12.5px; color: #7dd3fc; animation: grow 1.4s var(--ease) 0.2s both; }
.np-wallet-reserve { width: 50%; background: linear-gradient(100deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.38)); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12.5px; color: #6ee7b7; animation: grow 1.4s var(--ease) 0.4s both; }

/* Transaction chain */
.np-chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.np-tx {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 9px 13px;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.np-tx:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-3px); }
.np-tx.cur { background: linear-gradient(100deg, rgba(16, 185, 129, 0.16), rgba(34, 211, 238, 0.16)); border-color: rgba(34, 211, 238, 0.4); color: #7dd3fc; font-weight: 600; }
.np-tx-link { color: var(--text-faint); font-size: 12px; }

/* Security layers */
.np-layers { display: grid; gap: 10px; }
.np-layer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 18px; display: flex; gap: 14px; align-items: flex-start; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.np-layer:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateX(4px); }
.np-layer .ico { font-size: 18px; flex: none; margin-top: 1px; }
.np-layer b { font-family: var(--font-head); font-size: 14px; display: block; margin-bottom: 2px; }
.np-layer span { color: var(--text-dim); font-size: 13px; }

/* Scenario cards */
.np-scenario { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.np-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 14px; }
.np-vs-side { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; }
.np-vs-side.normal { border-color: rgba(248, 113, 113, 0.3); }
.np-vs-side.nexpay { border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.05); }
.np-vs-side .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.np-vs-side.normal .lbl { color: #f87171; }
.np-vs-side.nexpay .lbl { color: #22d3ee; }
.np-vs-side ul { list-style: none; display: grid; gap: 5px; }
.np-vs-side li { font-size: 12.8px; color: var(--text-dim); }
.np-vs-mid { display: grid; place-items: center; color: var(--text-faint); font-size: 12px; font-weight: 700; }

/* Comparison table */
.np-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.np-table th, .np-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.np-table th { font-family: var(--font-head); font-size: 13px; color: var(--text); background: var(--surface); }
.np-table td { color: var(--text-dim); vertical-align: top; }
.np-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.np-table tr:last-child td { border-bottom: 0; }

/* Roadmap */
.np-road { display: grid; gap: 0; position: relative; padding-left: 26px; }
.np-road::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #10b981, #22d3ee, #8b5cf6); }
.np-road-item { position: relative; padding: 0 0 26px 20px; }
.np-road-item::before { content: ""; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.5); }
.np-road-item:last-child { padding-bottom: 0; }
.np-road-item .ph { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-bright); }
.np-road-item h4 { font-family: var(--font-head); font-size: 16px; margin: 4px 0 4px; }
.np-road-item p { color: var(--text-dim); font-size: 13.5px; }

/* Big picture diagram */
.np-big { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; overflow-x: auto; }
.np-big .tree { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); line-height: 1.5; text-align: center; white-space: pre; display: inline-block; }
.np-big .tree b { color: var(--text); }

/* TOC nav */
.np-toc { position: sticky; top: calc(var(--nav-h) + 6px); z-index: 40; display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0; }
.np-toc a {
  font-size: 12.5px; font-weight: 600; color: var(--text-dim); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  transition: all 0.25s var(--ease);
}
.np-toc a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }

/* Reveal on scroll (independent of main.js) */
.np-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.np-reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .np-vs { grid-template-columns: 1fr; }
  .np-vs-mid { padding: 4px 0; }
  .np-table { font-size: 12.5px; }
  .np-table td:first-child { white-space: normal; }
}
