/* ==========================================================================
   Base design system, transposed from the Finlo Framer template (finlo.framer.ai).
   Values measured on the template at 1440 / 810 / 390 px (template/spec-home-1440.txt).
   ========================================================================== */
:root {
  --blue: #2d5bff;
  --ink: #1a1a2e;
  --muted: #6b6b76;
  --bg: #fafaf8;
  --card: #fff;
  --line: #ececf0;
  --amber: #ffb800;
  --red: #ff5c5c;
  --green: #12b76a;
  --shadow: 0 0 4px rgba(0, 0, 0, .08);
  --shadow-blue: 0 4px 30px rgba(45, 91, 255, .08);
  --display: "Poppins", system-ui, sans-serif;
  --text: "Manrope", system-ui, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  /* Framer springs with bounce 0 behave like a critically damped curve: ease-out quart */
  --spring: cubic-bezier(.25, 1, .5, 1);
  --tween: cubic-bezier(.44, 0, .56, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.blue { color: var(--blue); }
.up { color: var(--green); } .down { color: #e5484d; }

/* ---------- pill label ("System State: Active" with looping arrow) ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 10px 12px; background: #fff; border-radius: 30px; box-shadow: var(--shadow); font: 500 14px/14px var(--text); color: var(--ink); white-space: nowrap; }
.pill .arrow { position: relative; width: 20px; height: 20px; border-radius: 80px; background: var(--blue); overflow: hidden; flex: none; }
.pill .arrow svg { position: absolute; width: 12px; height: 12px; left: 4px; top: 4px; animation: pill-arrow 2.4s var(--tween) infinite; }
.pill .arrow svg + svg { animation-delay: -1.2s; }
@keyframes pill-arrow { 0% { transform: translate(-12px, 12px); } 40%, 60% { transform: translate(0, 0); } 100% { transform: translate(12px, -12px); } }

/* ---------- buttons (primary with arrow bubble, secondary glass) ---------- */
.btn-main { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 8px 8px 8px 18px; border-radius: 80px; background: var(--blue); border: 1px solid var(--blue); color: #fff; font: 500 14px/14px var(--ui); white-space: nowrap; transition: background .3s var(--tween), color .3s var(--tween); }
.btn-main .bub { position: relative; width: 38px; height: 38px; border-radius: 80px; background: #fff; overflow: hidden; flex: none; transition: background .3s var(--tween); }
.btn-main .bub svg { position: absolute; left: 7px; top: 7px; width: 24px; height: 24px; transition: transform .45s var(--spring); }
.btn-main .bub svg path { fill: var(--blue); transition: fill .3s; }
.btn-main .bub svg.b { transform: translate(-38px, 38px); }
.btn-main:hover { background: transparent; color: var(--blue); }
.btn-main:hover .bub { background: var(--blue); }
.btn-main:hover .bub svg path { fill: #fff; }
.btn-main:hover .bub svg.a { transform: translate(38px, -38px); }
.btn-main:hover .bub svg.b { transform: translate(0, 0); }
.btn-main.sm { height: 46px; padding: 4px 4px 4px 16px; } .btn-main.sm .bub { width: 36px; height: 36px; } .btn-main.sm .bub svg { left: 6px; top: 6px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 22px; border-radius: 80px; border: 1px solid rgba(26, 26, 46, .15); background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); color: var(--ink); font: 500 14px/14px var(--ui); white-space: nowrap; transition: background .3s var(--tween), color .3s var(--tween), border-color .3s; }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-line { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 80px; border: 1px solid rgba(26, 26, 46, .15); font: 500 14px/14px var(--ui); color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.btn-line:hover, .btn-line.solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-line.solid { font: 700 14px/14px var(--text); } .btn-line.solid:hover { background: transparent; color: var(--blue); }

/* ---------- section heading (pill + Poppins 50) ---------- */
.sec { padding: 100px 50px 0; max-width: 1440px; margin: 0 auto; }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: 40px; }
.h2 { font: 700 50px/50px var(--display); color: var(--ink); letter-spacing: 0; }
.h2 em { font-style: normal; color: var(--blue); }

/* ---------- nav (pill, hides on scroll down, shows on scroll up) ---------- */
.nav-fixed { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100% - 40px)); z-index: 50; padding-top: 20px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; height: 80px; padding: 13px 13px 13px 40px; background: #fff; border-radius: 80px; box-shadow: 0 0 8px rgba(0, 0, 0, .12); transition: transform .5s var(--spring), opacity .4s var(--tween); }
.nav.hidden { transform: translateY(-116px); opacity: 0; }
.nav-in .nav { transform: translateY(-123px); opacity: .001; }
.nav-in.on .nav { transform: none; opacity: 1; transition: transform 1.5s var(--spring) .3s, opacity 1.5s var(--spring) .3s; }
.nav-in.ready .nav { transition: transform .5s var(--spring), opacity .4s var(--tween); }
.nav-in.on .nav.hidden { transform: translateY(-116px); opacity: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 700 26px/32px var(--display); letter-spacing: -.5px; }
.brand-mark { width: 30px; height: 30px; color: var(--blue); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font: 500 16px/16px var(--text); color: var(--ink); transition: color .25s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.wallet-pill { height: 54px; padding: 0 18px; border-radius: 80px; border: 1px solid rgba(26, 26, 46, .12); font: 500 14px/14px var(--ui); transition: border-color .25s, color .25s; }
.wallet-pill:hover { border-color: var(--blue); color: var(--blue); }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; }
.nav-burger span, .nav-burger::before, .nav-burger::after { content: ""; position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
.nav-burger::before { top: 16px; } .nav-burger span { top: 21px; } .nav-burger::after { top: 26px; }
.mobile-menu { pointer-events: auto; display: none; margin-top: 10px; background: #fff; border-radius: 24px; box-shadow: 0 0 8px rgba(0, 0, 0, .12); padding: 12px; }
.mobile-menu a, .mobile-menu button { display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; font: 500 16px/16px var(--text); }
.mobile-menu a:hover { background: var(--bg); color: var(--blue); }
.mobile-menu.open { display: block; }

/* ---------- footer (CTA lives on the landing; this is the link footer) ---------- */
.footer { background: #fff; padding: 64px 50px 26px; margin-top: 100px; }
.footer.flush { margin-top: 0; }
.footer-top { max-width: 1340px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 424px; }
.footer-brand p { margin-top: 16px; font: 400 14px/22px var(--text); }
.socials { display: flex; gap: 16px; margin-top: 24px; }
.socials a { width: 22px; height: 20px; color: var(--ink); transition: color .25s; } .socials a:hover { color: var(--blue); }
.footer-cols { display: flex; gap: 90px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-col h4 { font: 700 14px/14px var(--text); text-transform: uppercase; margin: 0 0 5px; }
.footer-col a { font: 400 14px/22px var(--text); transition: color .25s; } .footer-col a:hover { color: var(--blue); }
.footer-bottom { max-width: 1340px; margin: 50px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font: 500 12px/18px var(--text); color: var(--muted); }
.footer-bottom .legal p { margin: 0 0 4px; }
.footer-bottom .copy { color: var(--ink); font-size: 14px; }

/* ---------- appear on scroll (Framer "appear" effects, animateOnce) ---------- */
[data-fx] { opacity: 0; transform: translate(var(--fx-x, 0), var(--fx-y, 0)) scale(var(--fx-s, 1)); }
[data-fx].in { opacity: 1; transform: none; transition: opacity var(--fx-d, 1s) var(--fx-e, var(--spring)) var(--fx-w, 0s), transform var(--fx-d, 1s) var(--fx-e, var(--spring)) var(--fx-w, 0s); }
.fx-line { display: inline-block; opacity: .001; }
.fx-line.in { opacity: 1; transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-fx], .fx-line, .nav-in .nav { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .pill .arrow svg, .marquee-track { animation: none !important; }
}

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .12); font: 500 14px/20px var(--text); border-left: 3px solid var(--blue); }
.toast.err { border-left-color: #e5484d; } .toast.ok { border-left-color: var(--green); }
.toast a { color: var(--blue); }

/* ---------- token tile (artwork or 2 letters) ---------- */
.tok { width: 36px; height: 36px; border-radius: 10px; background: #eef2ff; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--display); flex: none; object-fit: cover; }

/* ---------- responsive (Framer breakpoints 810 / 390) ---------- */
@media (max-width: 1199px) {
  .nav-links { gap: 20px; } .nav { padding-left: 28px; }
}
@media (max-width: 1023px) {
  .nav-links, .nav-right .btn-main, .nav-right .wallet-pill { display: none; }
  .nav-burger { display: block; }
  .nav { height: 64px; padding: 10px 10px 10px 20px; }
  .brand { font-size: 22px; }
}
@media (max-width: 809px) {
  .sec { padding: 70px 16px 0; }
  .h2 { font-size: 32px; line-height: 36px; }
  .sec-head { gap: 16px; margin-bottom: 28px; }
  .footer { padding: 50px 16px 24px; }
  .footer-cols { gap: 36px 60px; }
  .nav-fixed { width: calc(100% - 20px); padding-top: 10px; }
}
.flash { animation: flash 1s var(--tween); } @keyframes flash { 0% { color: var(--blue); } 100% { } }
