/* Freeze. One idea: a price line that stops moving for you. Cold ink, one ice blue, sharp type. */
:root {
  --bg: #f3f8fb;
  --bg2: #e6f0f6;
  --ink: #08161f;
  --soft: #4d6575;
  --faint: #8aa1b0;
  --ice: #0a6fa8;
  --ice-2: #3b9bd3;
  --ice-ink: #ffffff;
  --line: rgba(8, 22, 31, 0.12);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-edge: rgba(255, 255, 255, 0.95);
  --shadow: 0 24px 70px rgba(20, 70, 100, 0.14);
  --good: #0a6fa8;
  --bad: #a3321f;
  --display: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050c13; --bg2: #08141d; --ink: #e9f5fb; --soft: #93abba; --faint: #5f7887;
    --ice: #7ee8ff; --ice-2: #3fb6e6; --ice-ink: #04131b;
    --line: rgba(190, 235, 255, 0.13); --panel: rgba(120, 200, 235, 0.06); --panel-edge: rgba(190, 240, 255, 0.18);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.55); --good: #7ee8ff; --bad: #ff9a85;
  }
}
:root[data-theme="dark"] {
  --bg: #050c13; --bg2: #08141d; --ink: #e9f5fb; --soft: #93abba; --faint: #5f7887;
  --ice: #7ee8ff; --ice-2: #3fb6e6; --ice-ink: #04131b;
  --line: rgba(190, 235, 255, 0.13); --panel: rgba(120, 200, 235, 0.06); --panel-edge: rgba(190, 240, 255, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55); --good: #7ee8ff; --bad: #ff9a85;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 36rem at 90% -12%, color-mix(in srgb, var(--ice) 14%, transparent), transparent 70%),
    radial-gradient(44rem 28rem at -12% 30%, color-mix(in srgb, var(--ice) 7%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
main, header, footer { position: relative; z-index: 1; }
.wrap { width: min(74rem, 100%); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 700px) { .wrap { padding: 0 2rem; } }

a { color: var(--ice); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 2px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 900; letter-spacing: -0.05em; font-size: 1.5rem; line-height: 1; color: var(--ink); text-decoration: none; }
.brand svg { flex: none; width: 2rem; height: 2rem; }
.nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; white-space: nowrap; }
.nav a { color: var(--soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav .pill { color: var(--ice-ink); background: var(--ink); padding: 0.45rem 0.9rem; border-radius: 999px; }
.nav .pill:hover { color: var(--ice-ink); }
@media (max-width: 520px) { .nav .hide-sm { display: none; } .brand { font-size: 1.45rem; } }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 330; line-height: 1.02; margin: 0; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); letter-spacing: -0.045em; }
h1 em, h2 em { font-style: normal; font-weight: 700; color: var(--ice); }
h1 em { display: block; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--soft); max-width: 34rem; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); margin-bottom: 1rem; }
.small { font-size: 0.9rem; color: var(--soft); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.bad { color: var(--bad); }
section { padding: clamp(4rem, 10vw, 8rem) 0; }

/* hero */
.hero { padding-top: clamp(2rem, 6vw, 5rem); }
.hero-head { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) { .hero-head { grid-template-columns: 1fr 22rem; } }
.hero-head .lede { margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.stage { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-family: var(--mono); font-size: 13px; }
.chart .past { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .past-fill { fill: url(#pastFill); }
.chart .freeze { stroke: var(--ice); stroke-width: 2; stroke-dasharray: 7 6; }
.chart .zone-up { fill: url(#upFill); }
.chart .zone-down { fill: color-mix(in srgb, var(--ink) 4%, transparent); }
.chart .zlabel { font-family: var(--body); font-size: 15px; fill: var(--ink); }
.chart .zlabel.soft { fill: var(--soft); }
.chart .zlabel b { font-weight: 600; }
.chart .mono-ish { font-family: var(--mono); font-size: 0.85em; fill: var(--faint); }
.chart.narrow .zlabel { font-size: 32px; }
.chart.narrow .axis { font-size: 28px; }
.chart .now-dot { fill: var(--ice); }
.chart .now-ring { fill: none; stroke: var(--ice); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.chart .divider { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
@media (prefers-reduced-motion: no-preference) {
  .chart .now-ring { animation: ping 2.4s ease-out infinite; }
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }

.readout { position: absolute; z-index: 1; left: 0; top: 0; display: grid; gap: 0.15rem; pointer-events: none; }
.readout .k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.readout .v { font-family: var(--mono); font-size: clamp(1.6rem, 4.2vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.readout .v.is-frozen { color: var(--ice); transition: color 0.6s; }
.coin { position: absolute; right: 0; top: 0; z-index: 2; display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.coin button { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; padding: 0.45rem 1rem; border-radius: 999px; background: transparent; color: var(--soft); box-shadow: none; }
.coin button:hover { transform: none; box-shadow: none; color: var(--ink); }
.coin button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stage-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 0.75rem; }
.fail { border-left: 3px solid var(--bad); padding: 0.5rem 0 0.5rem 1rem; margin: 1rem 0; }
.fail p { margin: 0 0 0.75rem; }

/* buttons */
button, .btn {
  font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ice); color: var(--ice-ink); border: 0; padding: 0.75rem 1.35rem; border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--ice) 32%, transparent); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* how you use it */
.use { display: grid; gap: 3rem; }
@media (min-width: 960px) { .use { grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; } }
.setup { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: s; }
.setup li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.setup li:last-child { border-bottom: 1px solid var(--line); }
.setup li::before { content: "0" counter(s); font-family: var(--mono); font-size: 0.85rem; color: var(--ice); padding-top: 0.45rem; }
.setup h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.setup p { margin: 0; color: var(--soft); }
.setup code { font-family: var(--mono); font-size: 0.85em; background: color-mix(in srgb, var(--ice) 9%, transparent); padding: 0.1rem 0.4rem; border-radius: 4px; }

.chat {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 22px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; min-height: 34rem;
}
@media (min-width: 700px) { .chat { padding: 1.75rem; } }
.chat-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.chat-top .live { color: var(--ice); }
.msg { max-width: 88%; padding: 0.8rem 1rem; border-radius: 16px; font-size: 0.98rem; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: color-mix(in srgb, var(--ink) 5%, transparent); border-bottom-left-radius: 4px; }
.msg.agent b { font-weight: 600; }
.tool { align-self: flex-start; font-family: var(--mono); font-size: 0.78rem; color: var(--soft); display: inline-flex; align-items: center; gap: 0.5rem; }
.tool::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--ice); }
.approve { align-self: stretch; border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem 1rem; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.approve .row { display: flex; justify-content: space-between; gap: 1rem; }
.approve .ok { font-family: var(--mono); font-size: 0.8rem; color: var(--good); }
.approve .head { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.mini-card { align-self: flex-start; display: grid; gap: 0.2rem; text-decoration: none; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ice) 45%, transparent); border-radius: 14px; padding: 0.9rem 1.1rem; background: color-mix(in srgb, var(--ice) 7%, transparent); }
.mini-card .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ice); }
.mini-card .v { font-family: var(--mono); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1.1; }
.mini-card:hover { border-color: var(--ice); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.9rem 1rem; border-radius: 16px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.chat .step { opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s cubic-bezier(.2,.7,.2,1); }
.chat .step.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .chat .step { opacity: 1; transform: none; transition: none; } .typing { display: none; } }
.chat-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line); }

/* spot vs freeze */
.versus { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .versus { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; } }
.slider-box { display: grid; gap: 1.5rem; }
.move { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.move .v { font-family: var(--mono); font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line); outline-offset: 8px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ice); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--ice), 0 6px 18px color-mix(in srgb, var(--ice) 40%, transparent); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ice); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--ice); cursor: grab; }
.scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
.outcome { display: grid; gap: 1.25rem; }
.lane { display: grid; gap: 0.5rem; }
.lane .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.lane .name { font-weight: 500; }
.lane .need { font-size: 0.88rem; color: var(--soft); }
.lane .res { font-family: var(--mono); font-size: 1.6rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lane .res.up { color: var(--good); } .lane .res.down { color: var(--bad); }
.track { position: relative; height: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 999px; overflow: hidden; }
.track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--soft); opacity: 0.5; }
.bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; transition: left 0.35s cubic-bezier(.2,.7,.2,1), width 0.35s cubic-bezier(.2,.7,.2,1), background 0.3s; }
.bar.up { background: var(--good); } .bar.down { background: var(--bad); }
.lane.freeze .name { color: var(--ice); }

/* fees */
.fees { display: grid; gap: 2rem; }
@media (min-width: 800px) { .fees { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.fee-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.6rem; }
.fee-head h3 { font-size: 1.9rem; font-weight: 700; }
.fee-head p { margin: 0; color: var(--soft); font-family: var(--mono); font-size: 0.9rem; }
.fee-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fee-row strong { font-family: var(--mono); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.status { min-height: 1.5rem; margin-top: 1.25rem; }
.skeleton .fee-row strong { color: transparent; background: linear-gradient(90deg, var(--line), transparent, var(--line)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 3px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* lookup */
.lookup { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin-top: 1rem; }
.lookup input {
  font: inherit; font-size: 1.4rem; font-family: var(--mono); width: min(14rem, 100%); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 0.4rem 0.2rem; border-radius: 0;
}
.lookup input::placeholder { color: var(--faint); }
.lookup input:focus { outline: none; border-bottom: 2px solid var(--ice); }

/* card page */
.card-wrap { padding-top: 1.5rem; padding-bottom: 5rem; }
.frost {
  position: relative; background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 24px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.fcard { container-type: inline-size; padding: 1.5rem 1.25rem 2rem; max-width: 40rem; }
@media (min-width: 700px) { .fcard { padding: 2.25rem 2.25rem 2.5rem; } }
.fcard .row1 { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.fcard .asset { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.fcard .state { color: var(--ice); }
.fcard.is-ended { filter: saturate(0.2); opacity: 0.85; }
.fcard .cap { margin: 1.5rem 0 0; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.num {
  display: block; font-family: var(--mono); font-weight: 500; font-size: min(13cqw, 5.5rem); letter-spacing: -0.05em;
  white-space: nowrap; line-height: 1.05; padding: 0.4rem 0 0.2rem; font-variant-numeric: tabular-nums; color: var(--ink);
  transition: color 0.6s;
}
.num.is-frozen { color: var(--ice); }
dl.facts { margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr; }
dl.facts div { display: flex; justify-content: space-between; gap: 1.25rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
dl.facts dt { color: var(--soft); flex: none; }
dl.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
dl.facts .big dd { font-family: var(--mono); font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.1; color: var(--ice); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.centerbox { max-width: 36rem; padding: 2rem 0; }
.centerbox h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.err { border-left: 3px solid var(--bad); padding: 0.5rem 0 0.5rem 1rem; margin: 1rem 0; }
.err p { margin: 0 0 0.75rem; }

/* proof */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.prose h2 { margin-top: 3.5rem; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice-ink); background: var(--ice); padding: 0.25rem 0.6rem; border-radius: 4px; margin-bottom: 1rem; }
.tag.soon { background: transparent; color: var(--ice); box-shadow: inset 0 0 0 1px var(--ice); }
.runlist { list-style: none; padding: 0; margin: 1.5rem 0; }
.runlist li { padding: 1rem 0; border-top: 1px solid var(--line); }
.runlist li:last-child { border-bottom: 1px solid var(--line); }
.runlist b { font-family: var(--mono); font-weight: 500; color: var(--ice); margin-right: 0.75rem; }
code { font-family: var(--mono); font-size: 0.85em; overflow-wrap: anywhere; }

/* footer */
footer.foot { border-top: 1px solid var(--line); margin-top: 2rem; padding: clamp(3rem, 7vw, 5rem) 0 2rem; color: var(--soft); font-size: 0.95rem; overflow: hidden; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h4 { margin: 0 0 0.9rem; font-family: var(--mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.foot-grid a { color: var(--soft); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-say { font-family: var(--display); font-weight: 330; letter-spacing: -0.03em; font-size: 1.6rem; line-height: 1.15; color: var(--ink); max-width: 18ch; margin: 0 0 1rem; }
.foot-say em { color: var(--ice); font-style: normal; font-weight: 700; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 26vw, 22rem); line-height: 0.8; letter-spacing: -0.06em; margin: 3rem 0 0; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ice) 55%, transparent); user-select: none; white-space: nowrap; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.5rem; font-size: 0.85rem; }
.foot-base a { color: var(--soft); text-decoration: none; }
.foot-base a:hover { color: var(--ink); }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: 0.1s; } .rise.d2 { animation-delay: 0.22s; } .rise.d3 { animation-delay: 0.34s; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s, transform 0.8s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[hidden] { display: none !important; }
