/* ============ Design tokens ============ */
:root {
  --blue-50:  #eff7ff;
  --blue-100: #dbeefe;
  --blue-200: #bfe1fd;
  --blue-300: #93cdfb;
  --blue-400: #5fb2f8;
  --blue-500: #30a1f5; /* brand */
  --blue-600: #1f86dd;
  --blue-700: #1a6cb4;

  --ink-900: #0b2239;
  --ink-700: #2b4a64;
  --ink-500: #5b7790;
  --ink-400: #8aa0b4;

  --white: #ffffff;
  --bg: #f4f9ff;
  --surface: #ffffff;
  --border: #e2edf8;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(48, 161, 245, .08);
  --shadow-md: 0 12px 30px rgba(31, 134, 221, .12);
  --shadow-lg: 0 30px 60px rgba(31, 134, 221, .18);
  --ring: 0 0 0 4px rgba(48, 161, 245, .18);

  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ Layout helpers ============ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 820px; }

.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--blue-50), var(--white)); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--ink-900); }
.section-sub { margin-top: 14px; color: var(--ink-500); font-size: 18px; }

/* ============ Background orbs ============ */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-1 { width: 460px; height: 460px; background: var(--blue-200); top: -140px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: var(--blue-100); top: 40%; left: -160px; }
.orb-3 { width: 320px; height: 320px; background: #d9ecff; bottom: -120px; right: 10%; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(48, 161, 245, .35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(48, 161, 245, .45); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-ghost { background: var(--white); color: var(--blue-700); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue-300); transform: translateY(-2px); }

.btn-glow { position: relative; }
.btn-glow:not(:disabled) { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 8px 20px rgba(48, 161, 245, .35); }
  50% { box-shadow: 0 8px 30px rgba(48, 161, 245, .6); }
}

.btn-icon { width: 20px; height: 20px; }

/* ============ Card ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.glass {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ============ Navbar ============ */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 36px; height: 36px; filter: drop-shadow(0 4px 8px rgba(48,161,245,.3)); }
.brand-name { font-weight: 700; font-size: 19px; color: var(--ink-700); letter-spacing: -.01em; }
.brand-name strong { color: var(--blue-600); font-weight: 800; }

.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 500; color: var(--ink-700); font-size: 15px; transition: color .15s ease; }
.nav-links a:hover { color: var(--blue-600); }
.nav-actions { display: flex; align-items: center; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-700); border-radius: 2px; transition: .25s; }

/* ============ Hero ============ */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-100); color: var(--blue-700);
  font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(48,161,245,.2); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title {
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 900; line-height: 1.05; letter-spacing: -.03em;
  color: var(--ink-900);
}
.grad {
  background: linear-gradient(120deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; font-size: 19px; color: var(--ink-500); max-width: 540px; }

.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink-700); font-weight: 500; }
.ic { width: 18px; height: 18px; fill: var(--blue-500); flex-shrink: 0; }

/* ============ Unlock card ============ */
.hero-card { position: relative; }
.unlock-card { padding: 28px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.unlock-card::before {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(48,161,245,.18), transparent 70%);
}
.unlock-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; position: relative; }
.unlock-logo { width: 48px; height: 48px; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.unlock-title { font-size: 19px; font-weight: 800; color: var(--ink-900); }
.unlock-status { font-size: 13.5px; color: var(--ink-400); font-weight: 500; }
.unlock-status.connected { color: var(--blue-600); }

.locked-balance {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 1px solid var(--blue-200); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 22px;
}
.lb-label { font-size: 13.5px; color: var(--ink-500); font-weight: 600; }
.lb-value { font-size: 22px; font-weight: 800; color: var(--blue-700); letter-spacing: -.01em; }

.field-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.field { position: relative; }
.input {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink-900); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-400); }
.input:focus { outline: none; border-color: var(--blue-400); box-shadow: var(--ring); }
.input.invalid { border-color: #f0808a; box-shadow: 0 0 0 4px rgba(240,128,138,.16); }
.field-hint { font-size: 12.5px; color: var(--ink-400); margin: 8px 0 18px; }
.field-hint.error { color: #e2545f; }

.unlock-card .btn-block + .btn-block { margin-top: 12px; }

.unlock-progress { margin-top: 18px; }
.progress-track { height: 8px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue-400), var(--blue-600)); transition: width .4s ease; }
.progress-text { font-size: 13px; color: var(--ink-500); margin-top: 10px; text-align: center; font-weight: 500; }
.progress-text.success { color: var(--blue-600); font-weight: 700; }

/* ---- Live feed ---- */
.live-feed { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.live-feed-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); margin-bottom: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2bc46a; box-shadow: 0 0 0 4px rgba(43,196,106,.18); animation: pulse 1.6s infinite; }
.live-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.live-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--blue-50); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  animation: feedIn .45s ease;
}
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.live-addr { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-avatar { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--blue-300), var(--blue-600)); }
.live-amount { font-size: 14px; font-weight: 800; color: #1f9d57; white-space: nowrap; }

.card-foot { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--ink-400); margin-top: 20px; }
.ic-lock { width: 14px; height: 14px; fill: var(--ink-400); }

/* ============ Strip ============ */
.strip { padding: 28px 0; border-block: 1px solid var(--border); background: var(--white); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip-inner > span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); }
.strip-items { display: flex; gap: 34px; flex-wrap: wrap; }
.strip-item { font-size: 18px; font-weight: 800; color: var(--ink-400); letter-spacing: -.01em; transition: color .2s; }
.strip-item:hover { color: var(--blue-500); }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; font-weight: 800; font-size: 19px; color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 6px 16px rgba(48,161,245,.35); margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.step p { color: var(--ink-500); font-size: 15.5px; }

/* ============ Features ============ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.feature-ic {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--blue-100); margin-bottom: 18px;
}
.feature-ic svg { width: 26px; height: 26px; fill: var(--blue-600); }
.feature h3 { font-size: 18px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.feature p { color: var(--ink-500); font-size: 15px; }

/* ============ Stats ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: 24px; padding: 50px 32px;
  box-shadow: var(--shadow-lg);
}
.stat { text-align: center; color: var(--white); }
.stat-num { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.02em; }
.stat-label { font-size: 14.5px; font-weight: 500; opacity: .85; margin-top: 4px; }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 20px 22px; font-size: 16.5px; font-weight: 600; color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--blue-500); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-500); font-size: 15.5px; }

/* ============ CTA ============ */
.cta { padding: 40px 0 100px; }
.cta-card {
  text-align: center; padding: 60px 32px;
  background: linear-gradient(160deg, var(--blue-50), var(--white));
  border-color: var(--blue-200);
  position: relative; overflow: hidden;
}
.cta-logo { width: 64px; height: 64px; margin: 0 auto 22px; animation: float 4s ease-in-out infinite; }
.cta-card h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; }
.cta-card p { color: var(--ink-500); font-size: 18px; margin: 14px auto 28px; max-width: 480px; }

/* ============ Footer ============ */
.footer { background: var(--ink-900); color: #c6d6e6; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 36px; }
.footer .brand-name { color: var(--white); }
.footer .brand-name strong { color: var(--blue-300); }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: #94aabf; max-width: 300px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col h4 { font-size: 14px; color: var(--white); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; font-size: 14.5px; color: #94aabf; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--blue-300); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #7b93a8; flex-wrap: wrap; gap: 10px; }
.footer-note { color: var(--blue-300); font-weight: 500; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-card { max-width: 460px; margin-inline: auto; width: 100%; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .navbar.menu-open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 8px 0;
  }
  .navbar.menu-open .nav-links a { padding: 14px 24px; }
  .section { padding: 72px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .strip-inner { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .features, .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
}
