@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url(/vendor/fonts/geist-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url(/vendor/fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); }

:root {
  /* Surfaces */
  --bg: #05060A;
  --bg-subtle: #0C0E14;
  --bg-raised: #11141C;
  --line: rgb(255 255 255 / .08);
  --line-strong: rgb(255 255 255 / .16);
  /* Ink */
  --ink: #F4F5F7;
  --ink-2: rgb(244 245 247 / .64);  /* secondary text */
  --ink-3: rgb(244 245 247 / .40);  /* tertiary, the dim half of two-tone headlines */
  /* Actions inside the app */
  --accent: #8C92FF;
  --accent-hover: #A3A8FF;
  --accent-soft: rgb(140 146 255 / .14);
  --on-accent: #05060A;
  /* The bolt: the primary call to action, and anything Lightning */
  --bolt: #FFC21A;
  --bolt-hover: #FFD25A;
  --ok: #4ADE80;
  --bad: #FB923C;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(10 10 11 / .04), 0 8px 24px -12px rgb(10 10 11 / .12);

  /* Aliases kept for the app page until it is restyled. */
  --film: var(--bg-subtle); --sheet: var(--bg); --graphite: var(--ink); --lead: var(--ink-2);
  --rule: var(--line); --cobalt: var(--accent); --cobalt-soft: var(--accent-soft);
  --on-cobalt: var(--on-accent); --amber: var(--bolt); --rust: var(--bad);
  --display: var(--sans); --body: var(--sans);

  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
::selection { background: rgb(255 194 26 / .3); }

/* --- Navbar: logo, a floating capsule of links, one action ---------------------- */
.nav { position: sticky; top: 0; z-index: 20; padding: 14px clamp(16px, 4vw, 32px); pointer-events: none; }
.nav::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, var(--bg) 0%, rgb(5 6 10 / .86) 55%, rgb(5 6 10 / 0) 100%); }
.nav-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-in > * { pointer-events: auto; }

.brand { justify-self: start; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.025em; }
.brand img { width: 26px; height: 26px; display: block; }

.nav-links { display: flex; align-items: center; gap: 2px; padding: 4px; background: rgb(255 255 255 / .04); border: 1px solid var(--line); border-radius: 999px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .04); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: -.01em; padding: 8px 16px; border-radius: 999px; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: rgb(255 255 255 / .06); }
.nav-links .nav-cta-menu { display: none; }

.nav-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--bolt); color: #0A0A0B; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: background-color .15s, transform .15s; }
.nav-cta:hover { background: var(--bolt-hover); }
.nav-cta .arrow { transition: transform .15s; }
.nav-cta:hover .arrow { transform: translateX(2px); }
.nav-cta[aria-current="page"] { background: rgb(255 255 255 / .06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .04); backdrop-filter: blur(12px); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, top .2s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 22px; }
.nav.open .burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .nav-end > .nav-cta { display: none; }
  .nav-links { display: none; position: absolute; top: 64px; left: clamp(16px, 4vw, 32px); right: clamp(16px, 4vw, 32px); flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 20px; background: var(--bg-raised); box-shadow: 0 24px 48px -16px rgb(0 0 0 / .6); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { font-size: 16px; padding: 13px 16px; border-radius: 12px; }
  .nav-links a.nav-cta-menu { display: flex; justify-content: center; margin-top: 6px; height: 48px; padding: 0; align-items: center; color: #0A0A0B; font-weight: 600; background: var(--bolt); border-radius: 999px; }
  .nav-links a.nav-cta-menu:hover { background: var(--bolt-hover); }
}

/* The ambient fluid (fluid.js), shared by the landing page and the app: a fixed layer behind the whole page, so the smoke follows the
   cursor wherever you are. lvh keeps its size steady while mobile browser bars show and hide. */
.fluid { position: fixed; z-index: -4; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; pointer-events: none; }
/* A page-wide veil over the fluid: lightest behind the hero, a little darker once you scroll
   into the content (hero.js tweens --dim), so text always reads cleanly. */
.page-veil { position: fixed; z-index: -3; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(5 6 10 / .4) 0%, rgb(5 6 10 / .2) 30%, rgb(5 6 10 / .45) 100%); }
.page-veil::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, 0); }
html:not(.has-fluid) .page-veil { display: none; }

/* --- Shared components: pills, swap legs, token chips, the flip button -------------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; border: 0; transition: background-color .15s, border-color .15s, color .15s; }
.pill-bolt { background: var(--bolt); color: #0A0A0B; }
.pill-bolt:hover { background: var(--bolt-hover); }
.pill-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; }
.pill-ghost:hover { background: rgb(255 255 255 / .05); }
.pill-block { width: 100%; height: 54px; font-size: 16px; }
.pill:disabled { background: rgb(255 255 255 / .06); color: var(--ink-3); cursor: not-allowed; }

.leg { padding: 18px 20px 16px; border-radius: 22px; background: rgb(255 255 255 / .045); border: 1px solid rgb(255 255 255 / .05); transition: border-color .15s; }
.leg:focus-within { border-color: var(--line-strong); }
.leg-label { display: block; font-size: 13px; color: var(--ink-2); }
.leg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.leg-slot { flex: 1; min-width: 0; display: flex; }
.leg-amount { width: 100%; font: 300 36px/1.15 var(--sans); letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.leg-input { background: none; border: 0; outline: none; padding: 0; -moz-appearance: textfield; caret-color: var(--bolt); }
.leg-input::-webkit-outer-spin-button, .leg-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
output.leg-amount { color: var(--ink); }
.leg-foot { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.token { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid var(--line); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.token small { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.token .ico { position: relative; width: 26px; height: 26px; flex-shrink: 0; }
.token .ico img { width: 26px; height: 26px; display: block; border-radius: 50%; }
.token .badge { position: absolute; right: -4px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px #1A1C24; }
.token .badge svg { width: 8px; height: 8px; }
.badge-shield { background: #3B45D9; color: #fff; }
.badge-bolt { background: #0A0A0B; color: var(--bolt); }

/* The flip button sits on the seam between the two legs. */
.flip { position: relative; z-index: 1; display: grid; place-items: center; margin: -14px auto; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 4px solid var(--bg); background: #1A1D26; color: var(--ink); cursor: pointer; }
.flip svg { width: 18px; height: 18px; transition: transform .25s; }
.flip:hover { color: var(--bolt); }

@media (max-width: 760px) {
  .leg-amount { font-size: 30px; }
}
@media (max-width: 520px) {
  .token small { display: none; }
  .token { padding-right: 12px; }
  .leg { padding: 16px 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
