/* node.css — page-specific styles for the Gasless Node page (NodePage component).
   Extracted verbatim from the former "The Gasless Node.html" <style> block. */

/* ── page chrome ── */
.gn-page { min-height: 100vh; display: flex; flex-direction: column; }
.node-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color .15s ease;
}
.node-back:hover { color: var(--ink); }
.node-back svg { width: 18px; height: 18px; transform: rotate(180deg); }

/* ── hero ── */
.gn-hero { padding: 56px 0 36px; overflow: hidden; }
.gn-hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; }
.gn-hero h1 { font-size: clamp(40px, 5.2vw, 66px); font-weight: 800; letter-spacing: -0.035em; }
.gn-hero h1 .hl { color: var(--accent); }
.gn-hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 33em; margin-top: 22px; line-height: 1.55; }
.gn-hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.gn-hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--faint); font-size: 14px; }

/* hero endpoint chips */
.gn-hero-eps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.gn-hero-ep { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 9px 9px 14px; box-shadow: var(--shadow-soft); }
.gn-hero-ep-proto { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .05em; color: var(--accent); background: var(--tint); border: 1px solid var(--tint-2); padding: 4px 8px; border-radius: 7px; flex-shrink: 0; }
.gn-hero-ep .url { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: var(--ink); white-space: nowrap; }
.gn-hero-ep-copy { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); cursor: pointer; flex-shrink: 0; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.gn-hero-ep-copy:hover { background: var(--tint); border-color: var(--tint-2); color: var(--accent); }
.gn-hero-ep-copy svg { width: 15px; height: 15px; }
.gn-hero-ep-copy.copied { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 560px) {
  .gn-hero-ep { width: 100%; }
  .gn-hero-ep .url { white-space: normal; word-break: break-all; font-size: 12.5px; }
}
.gn-hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--tint); }

/* ── node connection card (hero visual) ── */
.gn-stage { position: relative; display: flex; justify-content: center; }
.gn-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(85px); opacity: .55;
  background: radial-gradient(circle, var(--tint-2), transparent 70%); z-index: 0; }
.gn-card {
  position: relative; z-index: 2; width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); padding: 22px; display: grid; gap: 16px;
}
.gn-conn { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; }
.gn-conn-w { display: flex; align-items: center; gap: 11px; }
.gn-conn-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; }
.gn-conn-ic svg { width: 20px; height: 20px; color: var(--accent); }
.gn-conn-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.gn-conn-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.gn-conn-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent-2);
  background: var(--tint); border: 1px solid var(--tint-2); padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.gn-conn-status .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.gn-conn-status .live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: gnPing 2.2s ease-out infinite; }
@keyframes gnPing { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

.gn-bal { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px; }
.gn-bal-top { display: flex; align-items: center; justify-content: space-between; }
.gn-bal-lbl { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.gn-bal-topup { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--tint);
  border: 1px solid var(--tint-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.gn-bal-amt { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 9px;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 7px; }
.gn-bal-amt .u { font-size: 16px; color: var(--muted); font-weight: 700; }
.gn-bal-meter { height: 7px; border-radius: 999px; background: var(--bg-2); margin-top: 13px; overflow: hidden; }
.gn-bal-meter span { display: block; height: 100%; width: 72%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.gn-bal-note { font-size: 12px; color: var(--muted); margin-top: 9px; }

.gn-tx { border: 1px solid var(--tint-2); border-radius: var(--radius); padding: 15px 17px; background: var(--tint); position: relative; }
.gn-tx-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.gn-tx-head .pill { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; color: var(--accent-2); background: var(--surface); border: 1px solid var(--tint-2); padding: 3px 9px; border-radius: 999px; }
.gn-tx-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; margin-top: 11px; }
.gn-tx-row .k { color: var(--muted); }
.gn-tx-row .v { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.gn-tx-row .was { color: var(--faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, #C4453F 60%, transparent); margin-right: 8px; }
.gn-tx-row .now { color: var(--accent-2); }
.gn-tx-foot { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--tint-2);
  font-size: 12.5px; font-weight: 600; color: var(--accent-2); }
.gn-tx-foot svg { width: 15px; height: 15px; flex-shrink: 0; }

/* floating annotation chips */
.gn-chip {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; border-radius: 14px;
  box-shadow: var(--shadow-card); font-size: 13.5px; font-weight: 600;
  animation: gnFloaty 5.5s ease-in-out infinite;
}
.gn-chip small { display: block; font-weight: 500; color: var(--faint); font-size: 11.5px; }
.gn-chip .ci { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--tint); color: var(--accent); }
.gn-chip .ci svg { width: 16px; height: 16px; }
@keyframes gnFloaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .gn-chip { animation: none; } .gn-conn-status .live::after { animation: none; } }

/* ── live widget embed (hero visual) ── */
.gn-widget {
  position: relative; z-index: 2; width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column;
}
.gn-widget-bar { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.gn-widget-bar .gw-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; flex-shrink: 0; }
.gn-widget-bar .gw-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: gnPing 2.2s ease-out infinite; }
.gn-widget-bar .gw-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.1; }
.gn-widget-bar .gw-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.gn-widget-bar .gw-launch { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--surface); border: 1px solid var(--tint-2); padding: 7px 12px; border-radius: 999px; transition: background .15s ease, border-color .15s ease; }
.gn-widget-bar .gw-launch:hover { background: var(--tint); border-color: var(--accent); }
.gn-widget-bar .gw-launch svg { width: 13px; height: 13px; }
.gn-widget-frame { width: 100%; height: 580px; border: 0; display: block; background: #0B0F0D; }
@media (prefers-reduced-motion: reduce) { .gn-widget-bar .gw-live::after { animation: none; } }

/* ── 5-step flow (timeline) ── */
.gn-timeline { max-width: 880px; margin: 0 auto; display: grid; gap: 16px; }
.gn-tl-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 30px; box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gn-tl-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.gn-tl-num { width: 50px; height: 50px; border-radius: 15px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.gn-tl-body h3 { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.gn-tl-body h3 .ti { width: 32px; height: 32px; border-radius: 9px; background: var(--tint); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.gn-tl-body h3 .ti svg { width: 18px; height: 18px; }
.gn-tl-body p { color: var(--muted); margin-top: 10px; font-size: 15.5px; line-height: 1.6; max-width: 62ch; }
.gn-tl-body p b { color: var(--ink); font-weight: 700; }
.gn-tl-item--key { border-color: var(--tint-2); box-shadow: var(--shadow-card); background: linear-gradient(180deg, var(--tint), var(--surface) 70%); }
.gn-tl-item--key .gn-tl-num { background: linear-gradient(150deg, var(--accent), var(--accent-2)); }
@media (max-width: 560px) {
  .gn-tl-item { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
}

/* ── dual endpoints (final CTA) ── */
.gn-endpoints { max-width: 600px; margin: 30px auto 0; display: grid; gap: 14px; text-align: left; }
.gn-ep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-card); }
.gn-ep-top { display: flex; align-items: center; gap: 11px; }
.gn-ep-proto { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--accent); background: var(--tint); border: 1px solid var(--tint-2); padding: 5px 11px; border-radius: 8px; }
.gn-ep-desc { font-size: 13px; color: var(--muted); }

/* ── 4-step how it works ── */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-4 .step-line { top: 56px; }

/* ── fee mechanism deep-dive ── */
.gn-flow { max-width: 980px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 48px; box-shadow: var(--shadow-card); }
.gn-flow-track { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.gn-flow-node { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gn-flow-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--tint); color: var(--accent); display: grid; place-items: center; }
.gn-flow-ic svg { width: 28px; height: 28px; }
.gn-flow-node--mid .gn-flow-ic { background: var(--ink); color: #fff; }
.gn-flow-amt { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1; }
.gn-flow-amt.muted { color: var(--faint); }
.gn-flow-amt.muted .strike { text-decoration: line-through; text-decoration-color: color-mix(in srgb, #C4453F 55%, transparent); }
.gn-flow-amt.win { color: var(--accent); }
.gn-flow-lbl { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.gn-flow-meta { font-size: 13px; color: var(--muted); line-height: 1.4; max-width: 20ch; }
.gn-flow-arrow { color: var(--faint); display: grid; place-items: center; }
.gn-flow-arrow svg { width: 26px; height: 26px; }
.gn-flow-copy { text-align: center; font-size: 15.5px; color: var(--muted); line-height: 1.6; max-width: 64ch; margin: 30px auto 0; }
.gn-flow-copy b { color: var(--ink); font-weight: 700; }
@media (max-width: 820px) {
  .gn-flow { padding: 32px; }
  .gn-flow-track { grid-template-columns: 1fr; }
  .gn-flow-arrow { transform: rotate(90deg); justify-self: center; padding: 4px 0; }
  .gn-flow-meta { max-width: none; }
}

/* ── compatibility ── */
.gn-compat { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; margin: 0 auto; }
.gn-wallet { display: inline-flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 18px 11px 13px; box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.gn-wallet:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.gn-wallet .gw-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #fff; }
.gn-wallet .gw-name { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }

/* ── FAQ ── */
.gn-faq { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.gn-q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-soft); }
.gn-q h3 { font-size: 18px; font-weight: 700; display: flex; align-items: flex-start; gap: 11px; }
.gn-q h3 .qm { color: var(--accent); flex-shrink: 0; }
.gn-q p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 11px; padding-left: 28px; }

/* ── node URL block (final CTA) ── */
.gn-url-card { max-width: 560px; margin: 30px auto 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); text-align: left; }
.gn-url-lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.gn-url-row { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; margin-top: 12px; }
.gn-url-row .url { flex: 1; font-family: var(--font-mono); font-size: 14px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gn-url-copy { background: var(--accent); color: var(--on-accent); border: none; border-radius: 10px; padding: 9px 16px;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .18s ease; }
.gn-url-copy:hover { background: var(--accent-2); }

@media (max-width: 980px) {
  .gn-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .gn-hero-grid .gn-stage { order: -1; }
  .steps-4 { grid-template-columns: 1fr 1fr; }
  .steps-4 .step-line { display: none; }
}
@media (max-width: 560px) {
  .steps-4 { grid-template-columns: 1fr; }
}
