/* ============================================================
   RAILCARD — Premium Web3 Card Product
   Design system / global styles
   Brand: electric blue · graphite · black · white
   ============================================================ */

:root {
  /* Brand */
  --rail-blue: #1f6bff;
  --rail-blue-2: #2f8bff;
  --rail-blue-deep: #0b3fb8;
  --rail-glow: rgba(31, 107, 255, 0.55);

  /* Surfaces */
  --bg: #06080f;
  --bg-2: #090c16;
  --bg-3: #0c111d;
  --graphite: #11161f;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --txt: #eef2fb;
  --txt-soft: #aab3c5;
  --txt-mut: #6f7a90;

  /* Status */
  --green: #34d39a;
  --amber: #f3b34a;

  /* Metrics */
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient animated background */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -3;
  background:
    radial-gradient(600px 600px at 22% 28%, rgba(31, 107, 255, 0.20), transparent 60%),
    radial-gradient(520px 520px at 80% 18%, rgba(47, 139, 255, 0.15), transparent 62%),
    radial-gradient(720px 720px at 62% 92%, rgba(11, 63, 184, 0.18), transparent 60%);
  filter: blur(20px);
  animation: auroraMove 22s ease-in-out infinite alternate;
}
@keyframes auroraMove {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}

/* Floating glow orbs (continuous motion) */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-fx span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; mix-blend-mode: screen; }
.bg-fx .o1 { width: 480px; height: 480px; top: -130px; left: -90px;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.55), transparent 70%); animation: orbA 26s ease-in-out infinite; }
.bg-fx .o2 { width: 420px; height: 420px; top: 30%; right: -120px;
  background: radial-gradient(circle, rgba(47, 139, 255, 0.45), transparent 70%); animation: orbB 32s ease-in-out infinite; }
.bg-fx .o3 { width: 540px; height: 540px; bottom: -180px; left: 35%;
  background: radial-gradient(circle, rgba(11, 63, 184, 0.45), transparent 70%); animation: orbC 30s ease-in-out infinite; }
.bg-fx .o4 { width: 300px; height: 300px; top: 12%; left: 48%;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.30), transparent 70%); animation: orbB 24s ease-in-out infinite reverse; }
@keyframes orbA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(120px, 80px); } }
@keyframes orbB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-100px, 60px); } }
@keyframes orbC { 0%,100% { transform: translate(0,0); } 50% { transform: translate(80px, -90px); } }

/* Animated moving light streak across the top */
.bg-fx::after {
  content: "";
  position: absolute;
  top: -10%; left: -40%;
  width: 60%; height: 50%;
  background: linear-gradient(100deg, transparent, rgba(31, 107, 255, 0.10), transparent);
  transform: rotate(8deg);
  animation: streak 14s linear infinite;
}
@keyframes streak { 0% { left: -60%; } 100% { left: 140%; } }

@media (prefers-reduced-motion: reduce) {
  body::before, .bg-fx span, .bg-fx::after { animation: none; }
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rail-blue-2);
  padding: 7px 14px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  background: var(--panel);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rail-blue); box-shadow: 0 0 10px var(--rail-glow); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.section-title { font-size: clamp(28px, 4vw, 46px); margin: 18px 0 14px; }
.section-sub { color: var(--txt-soft); font-size: 17px; max-width: 640px; }
.grad { background: linear-gradient(120deg, #fff 0%, var(--rail-blue-2) 60%, var(--rail-blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section { padding: 110px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 13px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(180deg, var(--rail-blue-2), var(--rail-blue));
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--rail-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px var(--rail-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: var(--panel); border: 1px solid var(--stroke-strong); color: var(--txt); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--panel-2); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 30px; width: auto; }
.brand .name { font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; color: var(--txt-soft); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--txt); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--rail-blue); transition: width 0.25s var(--ease); border-radius: 2px; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; }

/* Page switcher tabs (Overview / Claim) */
.page-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.page-tabs a {
  padding: 8px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt-soft);
  transition: color 0.2s, background 0.25s var(--ease), box-shadow 0.25s;
}
.page-tabs a:hover { color: var(--txt); }
.page-tabs a.active {
  background: linear-gradient(180deg, var(--rail-blue-2), var(--rail-blue));
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--rail-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Wallet pill */
.wallet-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 11px; border: 1px solid var(--stroke-strong); background: var(--panel); font-size: 13.5px; font-weight: 600; }
.wallet-pill.connected { border-color: rgba(52, 211, 154, 0.4); background: rgba(52, 211, 154, 0.08); color: #d6fff0; }
.wallet-pill .ind { width: 8px; height: 8px; border-radius: 50%; background: var(--txt-mut); }
.wallet-pill.connected .ind { background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 154, 0.7); }

/* ---------- Hero (centered card) ---------- */
.hero-center {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 70px;
  position: relative;
}
.hero-center .eyebrow { margin-bottom: 30px; }
.hero-center .card-stage { min-height: 320px; }
.hero-center .hero-cta { margin-top: 38px; }
/* glowing animated ring behind the hero card */
.card-glow-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.card-glow-wrap::before {
  content: "";
  position: absolute;
  width: 520px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.40), rgba(31, 107, 255, 0.10) 45%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}
.scroll-cue { margin-top: 40px; color: var(--txt-mut); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; animation: bobble 2.4s ease-in-out infinite; }
@keyframes bobble { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 20px; }
.hero p.lead { font-size: 18.5px; color: var(--txt-soft); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--txt-soft); padding: 8px 14px; border: 1px solid var(--stroke); border-radius: 100px; background: var(--panel); }
.pill svg, .pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--rail-blue-2); box-shadow: 0 0 8px var(--rail-glow); }
.disclaimer-line { font-size: 13px; color: var(--txt-mut); max-width: 520px; border-left: 2px solid var(--stroke-strong); padding-left: 14px; }

/* ---------- Premium Card ---------- */
.card-stage { perspective: 1600px; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.card-3d {
  width: 420px;
  max-width: 100%;
  aspect-ratio: 1.586 / 1;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.18s var(--ease);
  cursor: pointer;
}
.card-3d.flipped { transform: rotateY(180deg) !important; }
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow:
    0 40px 80px -28px rgba(0, 0, 0, 0.85),
    0 6px 18px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 140% at 80% -10%, #232a36 0%, #14181f 42%, #0a0d12 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
/* metallic rail lines */
.card-face .rails {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(31, 107, 255, 0.28) 50%, transparent 62%),
    repeating-linear-gradient(118deg, transparent 0 28px, rgba(255, 255, 255, 0.018) 28px 29px);
  opacity: 0.9;
}
.card-face .sheen {
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0.02) 54%, transparent 60%);
  transform: translateX(-30%);
  pointer-events: none;
  will-change: transform;
}
.card-face .arc {
  position: absolute;
  right: -30%; top: 20%;
  width: 90%; height: 120%;
  border-radius: 50%;
  border: 1px solid rgba(31, 107, 255, 0.18);
  box-shadow: -40px 0 60px -50px rgba(31, 107, 255, 0.5);
}
.card-front { display: flex; flex-direction: column; justify-content: space-between; padding: 26px 28px; z-index: 2; }
.card-back { transform: rotateY(180deg); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 3; }
.card-logo { display: flex; align-items: center; gap: 9px; }
.card-logo img { height: 24px; filter: brightness(0) invert(1); opacity: 0.96; }
.card-logo .ml { font-weight: 700; letter-spacing: 0.16em; font-size: 14px; }
.card-net { font-size: 11px; letter-spacing: 0.18em; color: var(--txt-mut); font-weight: 600; }

.card-chip {
  width: 46px; height: 35px; border-radius: 7px;
  background: linear-gradient(135deg, #d9c27e 0%, #b89a4e 45%, #f0e3ad 60%, #a78640 100%);
  position: relative; z-index: 3;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.card-chip::before { content: ""; position: absolute; inset: 6px 8px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 3px; }
.card-chip::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: rgba(0, 0, 0, 0.25); }

.card-number {
  font-family: "Courier New", monospace;
  font-size: clamp(18px, 4.6vw, 23px);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative; z-index: 3;
  color: #eef2fb;
}
.card-meta { display: flex; align-items: flex-end; justify-content: space-between; position: relative; z-index: 3; gap: 16px; }
.card-field .lbl { font-size: 8.5px; letter-spacing: 0.18em; color: var(--txt-mut); text-transform: uppercase; margin-bottom: 3px; }
.card-field .val { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.card-field .val.name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* back */
.card-magstripe { height: 44px; background: linear-gradient(90deg, #05060a, #15171d); margin: 22px -28px 0; }
.card-back-body { padding: 0 26px 22px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.card-cvv-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.card-cvv-strip { flex: 1; height: 32px; background: repeating-linear-gradient(90deg, #cfd4dd 0 6px, #e7eaef 6px 12px); border-radius: 4px; }
.card-cvv-box { background: #fff; color: #111; font-family: "Courier New", monospace; font-weight: 700; padding: 6px 12px; border-radius: 5px; font-size: 14px; letter-spacing: 0.1em; }
.card-back-list { display: flex; flex-direction: column; gap: 9px; margin-top: auto; position: relative; z-index: 3; }
.card-back-list li { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.card-back-list .k { color: var(--txt-mut); letter-spacing: 0.08em; text-transform: uppercase; }
.card-back-list .v { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.card-back-list .v .dotg { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 154, 0.7); }
.card-back-list .v .doty { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(243, 179, 74, 0.6); }

.flip-hint { text-align: center; font-size: 12px; color: var(--txt-mut); margin-top: 18px; }
.flip-hint kbd { background: var(--panel); border: 1px solid var(--stroke); padding: 2px 7px; border-radius: 6px; font-size: 11px; }

/* ---------- Card builder (preview section) ---------- */
.builder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--txt-soft); margin-bottom: 8px; }
.input {
  width: 100%; padding: 14px 16px; font-size: 15px;
  background: var(--bg-3); border: 1px solid var(--stroke); border-radius: 12px;
  color: var(--txt); transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--rail-blue); box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.15); }
.input::placeholder { color: var(--txt-mut); }
.builder-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.gen-note { font-size: 12.5px; color: var(--txt-mut); margin-top: 14px; }

/* ---------- Glass panels / generic ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Dashboard cards ---------- */
.stat-card { padding: 22px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--stroke); position: relative; overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s; }
.stat-card:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
.stat-card .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(31, 107, 255, 0.12); border: 1px solid rgba(31, 107, 255, 0.25); margin-bottom: 14px; color: var(--rail-blue-2); }
.stat-card .lbl { font-size: 13px; color: var(--txt-soft); margin-bottom: 6px; }
.stat-card .val { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat-card .val small { font-size: 14px; color: var(--txt-mut); font-weight: 600; }
.stat-card .sub { font-size: 12px; color: var(--txt-mut); margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; }
.badge.amber { background: rgba(243, 179, 74, 0.14); color: var(--amber); border: 1px solid rgba(243, 179, 74, 0.3); }
.badge.green { background: rgba(52, 211, 154, 0.14); color: var(--green); border: 1px solid rgba(52, 211, 154, 0.3); }

/* ---------- Flow / steps ---------- */
.flow { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; justify-content: center; }
.flow-node { flex: 1; min-width: 150px; padding: 22px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--stroke); text-align: center; }
.flow-node .n { font-size: 12px; color: var(--rail-blue-2); font-weight: 700; letter-spacing: 0.1em; }
.flow-node h4 { font-size: 16px; margin: 8px 0 6px; }
.flow-node p { font-size: 13px; color: var(--txt-soft); }
.flow-arrow { display: grid; place-items: center; color: var(--rail-blue-2); font-size: 22px; align-self: center; }

.formula {
  font-family: "Courier New", monospace;
  font-size: clamp(15px, 2.4vw, 20px);
  text-align: center;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px dashed var(--stroke-strong);
  color: var(--txt);
  letter-spacing: 0.02em;
}
.formula b { color: var(--rail-blue-2); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: var(--panel); border: 1px solid var(--stroke); font-size: 13.5px; font-weight: 600; color: var(--txt-soft); }
.chip .ok { color: var(--rail-blue-2); }

/* feature blocks */
.feature { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--stroke); transition: transform 0.3s var(--ease), border-color 0.3s; }
.feature:hover { transform: translateY(-5px); border-color: rgba(31, 107, 255, 0.35); }
.feature .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: rgba(31, 107, 255, 0.12); border: 1px solid rgba(31, 107, 255, 0.25); color: var(--rail-blue-2); margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 9px; }
.feature p { font-size: 14.5px; color: var(--txt-soft); }

/* steps numbered */
.step { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--stroke); position: relative; }
.step .num { font-size: 13px; font-weight: 800; color: var(--rail-blue-2); letter-spacing: 0.1em; }
.step h3 { font-size: 18px; margin: 12px 0 8px; }
.step p { font-size: 14px; color: var(--txt-soft); }

/* token mechanics */
.mech-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.mech-list li { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--stroke); font-size: 15px; }
.mech-list li:last-child { border-bottom: none; }
.mech-list .k { color: var(--txt-soft); }
.mech-list .v { font-weight: 700; }
.mech-list .v.blue { color: var(--rail-blue-2); }
.fee-visual { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.fee-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--bg-3); }
.fee-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fee-card .pct { font-size: 32px; font-weight: 800; }
.fee-card.buy .pct { color: var(--green); }
.fee-card.sell .pct { color: var(--rail-blue-2); }
.fee-card p { font-size: 13px; color: var(--txt-soft); }

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phase { padding: 26px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--stroke); position: relative; overflow: hidden; }
.phase.live { border-color: rgba(52, 211, 154, 0.35); background: linear-gradient(180deg, rgba(52, 211, 154, 0.06), var(--panel)); }
.phase .ph { font-size: 12px; font-weight: 700; color: var(--rail-blue-2); letter-spacing: 0.1em; }
.phase h3 { font-size: 17px; margin: 10px 0 14px; }
.phase ul li { font-size: 13.5px; color: var(--txt-soft); padding: 6px 0 6px 18px; position: relative; }
.phase ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--rail-blue); }
.phase .tag { position: absolute; top: 18px; right: 18px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; padding: 4px 9px; border-radius: 100px; }
.phase.live .tag { background: rgba(52, 211, 154, 0.16); color: var(--green); }
.phase .tag.soon { background: var(--panel-2); color: var(--txt-mut); }

/* metrics */
.metric { padding: 26px 22px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--stroke); text-align: center; }
.metric .num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.metric .num .u { color: var(--rail-blue-2); }
.metric .lbl { font-size: 13px; color: var(--txt-soft); margin-top: 6px; }

/* FAQ */
.faq-item { border: 1px solid var(--stroke); border-radius: 14px; background: var(--panel); margin-bottom: 12px; overflow: hidden; transition: border-color 0.25s; }
.faq-item.open { border-color: rgba(31, 107, 255, 0.4); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 16px; font-weight: 600; }
.faq-q .ic { transition: transform 0.3s var(--ease); color: var(--rail-blue-2); flex-shrink: 0; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--txt-soft); font-size: 14.5px; }

/* treasury */
.treasury { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.treasury-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: 15px; color: var(--txt-soft); border-bottom: 1px solid var(--stroke); }
.treasury-list li:last-child { border-bottom: none; }
.treasury-list .ck { color: var(--rail-blue-2); flex-shrink: 0; margin-top: 2px; }
.addr-box { padding: 22px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--stroke); }
.addr-box .lbl { font-size: 12px; color: var(--txt-mut); letter-spacing: 0.1em; text-transform: uppercase; }
.addr-box .addr { font-family: "Courier New", monospace; font-size: 18px; margin: 8px 0 4px; word-break: break-all; }
.addr-box .ms { font-size: 12px; color: var(--txt-mut); }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); padding: 60px; text-align: center; background: linear-gradient(135deg, rgba(31, 107, 255, 0.16), rgba(11, 63, 184, 0.06)); border: 1px solid rgba(31, 107, 255, 0.3); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-band p { color: var(--txt-soft); max-width: 560px; margin: 14px auto 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--stroke); padding: 64px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer .desc { font-size: 14px; color: var(--txt-soft); max-width: 320px; }
.footer .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer .socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--stroke); background: var(--panel); color: var(--txt-soft); transition: all 0.2s; }
.footer .socials a:hover { color: #fff; border-color: var(--rail-blue); transform: translateY(-2px); }
.footer h5 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-mut); margin-bottom: 16px; }
.footer ul li { margin-bottom: 11px; }
.footer ul li a { font-size: 14px; color: var(--txt-soft); transition: color 0.2s; }
.footer ul li a:hover { color: var(--txt); }
.footer-bottom { border-top: 1px solid var(--stroke); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13px; color: var(--txt-mut); }
.footer-disclaimer { font-size: 12px; color: var(--txt-mut); max-width: 720px; line-height: 1.7; margin-top: 18px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 28px; right: 28px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 13px; background: rgba(12, 17, 29, 0.96); border: 1px solid var(--stroke-strong); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); font-size: 14px; min-width: 260px; transform: translateX(120%); animation: toastIn 0.4s var(--ease) forwards; }
.toast.out { animation: toastOut 0.4s var(--ease) forwards; }
.toast .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.toast.ok .ic { background: rgba(52, 211, 154, 0.16); color: var(--green); }
.toast.info .ic { background: rgba(31, 107, 255, 0.16); color: var(--rail-blue-2); }
.toast.err .ic { background: rgba(243, 90, 90, 0.16); color: #f35a5a; }
@keyframes toastIn { to { transform: translateX(0); } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ---------- Error / info modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 20px;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 440px;
  padding: 34px 30px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #131826, #0b0f19);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s var(--ease);
}
.modal-overlay.show .modal { transform: none; }
.modal .m-ic {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: rgba(243, 90, 90, 0.12); border: 1px solid rgba(243, 90, 90, 0.35); color: #f35a5a;
  animation: shake 0.5s var(--ease);
}
.modal.info .m-ic { background: rgba(31,107,255,0.12); border-color: rgba(31,107,255,0.35); color: var(--rail-blue-2); }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.modal h3 { font-size: 21px; margin-bottom: 8px; }
.modal p { color: var(--txt-soft); font-size: 14.5px; margin-bottom: 22px; }
.modal .m-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); background: rgba(243,179,74,0.12); border: 1px solid rgba(243,179,74,0.3); padding: 6px 12px; border-radius: 100px; margin-bottom: 18px; }
.modal .m-tag .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulseDot 1.2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------- Card creation wizard ---------- */
.modal.wizard { max-width: 470px; text-align: left; }
.wiz-progress { display: flex; gap: 7px; margin-bottom: 22px; }
.wiz-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--stroke); transition: background 0.4s var(--ease); }
.wiz-progress span.done { background: linear-gradient(90deg, var(--rail-blue), var(--rail-blue-2)); }
.wiz-step { animation: wizIn 0.35s var(--ease); }
@keyframes wizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rail-blue-2); margin-bottom: 8px; }
.wiz-step h3 { font-size: 21px; margin-bottom: 6px; }
.wiz-step > p { color: var(--txt-soft); font-size: 14px; margin-bottom: 18px; }
.wiz-summary { background: var(--bg-3); border: 1px solid var(--stroke); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.wiz-summary .row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.wiz-summary .row + .row { border-top: 1px solid var(--stroke); }
.wiz-summary .k { color: var(--txt-mut); }
.wiz-summary .v { font-weight: 700; letter-spacing: 0.03em; }
.wiz-agree { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--txt-soft); cursor: pointer; margin-bottom: 20px; user-select: none; }
.wiz-agree input { display: none; }
.wiz-agree .box { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--stroke-strong); flex-shrink: 0; display: grid; place-items: center; color: transparent; transition: all 0.2s; margin-top: 1px; }
.wiz-agree input:checked + .box { background: var(--rail-blue); border-color: var(--rail-blue); color: #fff; }
.wiz-checklist { list-style: none; margin: 4px 0 8px; }
.wiz-checklist li { display: flex; align-items: center; gap: 13px; padding: 11px 0; font-size: 14.5px; color: var(--txt-mut); transition: color 0.3s; }
.wiz-checklist li.active { color: var(--txt); }
.wiz-checklist li.done { color: var(--txt-soft); }
.wiz-checklist .cbox { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--stroke-strong); display: grid; place-items: center; flex-shrink: 0; transition: all 0.3s; }
.wiz-checklist li.active .cbox { border-color: var(--rail-blue); }
.wiz-checklist li.done .cbox { background: rgba(52, 211, 154, 0.16); border-color: rgba(52, 211, 154, 0.5); color: var(--green); }
.wiz-spinner { width: 13px; height: 13px; border: 2px solid rgba(31, 107, 255, 0.3); border-top-color: var(--rail-blue-2); border-radius: 50%; animation: spin 0.7s linear infinite; }
.wiz-success-ic { width: 72px; height: 72px; border-radius: 22px; margin: 4px auto 18px; display: grid; place-items: center; background: rgba(52, 211, 154, 0.12); border: 1px solid rgba(52, 211, 154, 0.4); color: var(--green); animation: popIn 0.5s var(--ease); }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.wiz-success { text-align: center; }
.wiz-pid { font-family: "Courier New", monospace; font-size: 18px; font-weight: 700; letter-spacing: 0.06em; color: var(--rail-blue-2); background: var(--bg-3); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px; margin: 6px 0 20px; }
.wiz-actions { display: flex; gap: 10px; }
.wiz-actions .btn { flex: 1; }

/* ---------- Docs page ---------- */
.docs-wrap { padding: 50px 0 90px; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; }
.docs-nav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; }
.docs-nav h6 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-mut); margin-bottom: 14px; }
.docs-nav a { display: block; font-size: 13.5px; color: var(--txt-soft); padding: 7px 0; transition: color 0.2s; border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; }
.docs-nav a:hover, .docs-nav a.active { color: var(--rail-blue-2); border-left-color: var(--rail-blue); }
.docs-article { max-width: 760px; }
.docs-article h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.docs-article h2 { font-size: 26px; margin: 46px 0 14px; padding-top: 14px; scroll-margin-top: 90px; }
.docs-article h3 { font-size: 19px; margin: 28px 0 10px; color: var(--txt); scroll-margin-top: 90px; }
.docs-article p { color: var(--txt-soft); font-size: 15.5px; margin-bottom: 14px; }
.docs-article ul { margin: 0 0 16px 0; }
.docs-article ul li { position: relative; padding: 5px 0 5px 22px; color: var(--txt-soft); font-size: 15px; }
.docs-article ul li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--rail-blue); }
.docs-article ol { margin: 0 0 16px 20px; color: var(--txt-soft); font-size: 15px; }
.docs-article ol li { padding: 5px 0; }
.docs-article strong { color: var(--txt); font-weight: 700; }
.docs-article hr { border: none; border-top: 1px solid var(--stroke); margin: 40px 0; }
.docs-callout {
  border-left: 3px solid var(--rail-blue);
  background: linear-gradient(90deg, rgba(31,107,255,0.10), transparent);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 18px 0 22px;
  font-size: 17px; font-weight: 600; color: var(--txt);
}
.docs-hero-badge { margin-bottom: 22px; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { display: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* spin */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ---------- App page specific ---------- */
.app-shell { padding: 40px 0 90px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.app-head h1 { font-size: clamp(26px, 4vw, 38px); }
.app-head p { color: var(--txt-soft); margin-top: 6px; }
.app-layout { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; }
.claim-center { max-width: 560px; margin: 0 auto; }
.claim-panel { padding: 26px; }
.claim-big { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.claim-big small { font-size: 16px; color: var(--txt-mut); }
.progress { height: 8px; border-radius: 100px; background: var(--bg-3); overflow: hidden; margin: 16px 0; border: 1px solid var(--stroke); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--rail-blue), var(--rail-blue-2)); border-radius: 100px; }
.mini-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.history { margin-top: 14px; }
.history-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.history-row:last-child { border-bottom: none; }
.history-row .l { display: flex; align-items: center; gap: 10px; color: var(--txt-soft); }
.history-row .amt { font-weight: 700; color: var(--green); }
.connect-gate { text-align: center; padding: 60px 30px; }
.connect-gate .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 20px; background: rgba(31, 107, 255, 0.12); border: 1px solid rgba(31, 107, 255, 0.3); color: var(--rail-blue-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .builder-grid, .mech-grid, .treasury, .cta-band ~ *, .app-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .builder-grid { gap: 36px; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .treasury { gap: 28px; }
  .app-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--stroke); background: var(--panel); }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(6, 8, 15, 0.97); backdrop-filter: blur(18px); padding: 12px 24px 20px; border-bottom: 1px solid var(--stroke); }
  .nav.open .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--stroke); }
}
@media (max-width: 620px) {
  .page-tabs a { padding: 7px 13px; font-size: 13px; }
  .brand .name { display: none; }
  .section { padding: 80px 0; }
  .g2, .g3, .g4, .roadmap, .footer-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .cta-band { padding: 40px 24px; }
  .card-3d { width: 340px; }
  .hero-cta .btn { flex: 1; }
}

/* ============ wallet rotation + twitter (added for live build) ============ */
.nav-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: 10px;
  border-radius: 11px; color: var(--txt-soft);
  border: 1px solid var(--line, rgba(255,255,255,.08));
  background: var(--panel);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.nav-x:hover { color: #fff; border-color: var(--rail-blue); transform: translateY(-1px); }

/* wallet picker / account menu options */
.wallet-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 14px; cursor: pointer; text-align: left;
  border-radius: 12px; color: var(--txt);
  border: 1px solid var(--line, rgba(255,255,255,.08));
  background: var(--panel);
  font-size: 15px; font-weight: 600;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.wallet-opt:hover { border-color: var(--rail-blue); background: var(--panel-2); transform: translateY(-1px); }
.wallet-opt img { width: 26px; height: 26px; border-radius: 7px; }
.wallet-opt > span:nth-child(2) { flex: 1; }
.wallet-opt svg { color: var(--txt-mut); }
.wallet-opt-dot {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--rail-blue), var(--rail-blue-deep));
}
