@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/serif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #050a0b; --bg2: #0a1418; --panel: rgba(12, 24, 28, 0.78); --panel2: #13252b; --line: rgba(151, 252, 228, 0.10); --line2: rgba(151, 252, 228, 0.2);
  --mint: #97fce4; --ink: #04110e; --text: #e6f2ef; --muted: #8aa39d; --dim: #56706a; --warn: #ffb4a6;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif; --serif: "Instrument Serif", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -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; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* header floats over the scene */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3.4vw, 44px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; background: var(--mint); color: var(--ink); font-weight: 600; white-space: nowrap; transition: filter 0.15s, background 0.15s, transform 0.1s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.busy { opacity: 0.4; cursor: not-allowed; filter: none; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.full { width: 100%; height: 48px; font-size: 15px; }
.btn.ghostbtn { height: 36px; padding: 0 14px; font-size: 14px; background: transparent; color: var(--mint); border: 1px solid var(--line2); }
.btn.ghostbtn:hover:not([disabled]) { background: rgba(151, 252, 228, 0.08); filter: none; }
.btn.done { background: transparent; color: var(--mint); opacity: 0.8; border: 1px solid var(--line); }
.chip { cursor: pointer; transition: border-color 0.15s; } .chip:hover { border-color: var(--mint); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(5, 10, 11, 0.6); font: 500 13px var(--mono); }
.chip b { color: var(--ink); background: var(--mint); border-radius: 4px; padding: 0 5px; font-weight: 700; }

/* ------------------------------------------------------------------ hero: the render is the page */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; justify-content: flex-end; padding: 88px clamp(16px, 5vw, 80px) 56px; isolation: isolate; overflow: hidden; background: #030707; }
.scene { position: absolute; inset: 0; z-index: -2; }
.scene img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent 45%, rgba(3, 7, 7, 0.55) 70%, rgba(3, 7, 7, 0.75)), linear-gradient(180deg, rgba(3, 7, 7, 0.5), transparent 18%, transparent 72%, var(--bg)); }
.side { width: min(420px, 100%); position: relative; z-index: 2; }
h1 { font: 400 clamp(46px, 5vw, 74px)/0.98 var(--serif); letter-spacing: -0.015em; }
h1 em { color: var(--mint); }
.sub { margin: 16px 0 26px; color: var(--muted); font-size: 16px; max-width: 30em; }
.sub b { color: var(--text); font-weight: 600; white-space: nowrap; }

/* the order panel */
.panel { position: relative; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.5); }
.perch { position: absolute; z-index: -1; height: 56px; width: auto; right: 16px; top: -46px; animation: peek 7s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes peek { 0%, 100% { translate: 0 8px; rotate: 0deg; } 45% { translate: 0 0; rotate: -4deg; } 60% { translate: 0 2px; rotate: 3deg; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-bottom: 1px solid var(--line); background: rgba(5, 10, 11, 0.85); border-radius: 16px 16px 0 0; }
.tabs button { height: 36px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--panel2); color: var(--mint); }
#tabBurn[aria-selected="false"] { color: var(--warn); }
#tabBurn[aria-selected="false"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.tabs i { font: 700 11px var(--mono); font-style: normal; background: var(--mint); color: var(--ink); border-radius: 4px; padding: 1px 5px; }
.pane { padding: 16px; }
.free { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--line2); }
.t { font-weight: 600; }
.h { font: 500 12px var(--mono); color: var(--muted); margin-top: 2px; }
.h b { color: var(--text); font-weight: 600; }
.field { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 14px; border-radius: 8px; background: rgba(5, 10, 11, 0.7); border: 1px solid var(--line); }
.field span { color: var(--muted); font-size: 13px; }
.field b { font: 600 18px var(--mono); }
#slider { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; margin: 18px 0 6px; border-radius: 4px; cursor: pointer; background: linear-gradient(90deg, var(--mint) var(--p, 21%), var(--panel2) var(--p, 21%)); }
#slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mint); transition: transform 0.15s; }
#slider:active::-webkit-slider-thumb { transform: scale(1.25); }
#slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mint); }
#slider:disabled { opacity: 0.5; }
.ticks { position: relative; height: 14px; font: 500 11px var(--mono); color: var(--dim); margin-bottom: 16px; }
.ticks span { position: absolute; top: 0; left: calc(8px + (100% - 16px) * var(--v) / 19); translate: -50% 0; }
.rows { display: grid; gap: 7px; margin-bottom: 16px; }
.rows div { display: flex; justify-content: space-between; font-size: 13px; }
.rows dt { color: var(--muted); }
.rows dd { font: 500 13px var(--mono); }
.big { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line2); }
.big span { color: var(--muted); font-size: 13px; }
.big b { font: 400 54px/1 var(--serif); color: var(--mint); }
.warn { font-size: 14px; font-weight: 600; color: var(--warn); margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.warn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); flex: none; }
.btn.fire:not([disabled]) { box-shadow: 0 0 0 1px var(--mint), 0 8px 32px rgba(151, 252, 228, 0.35); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { filter: brightness(1.12); box-shadow: 0 0 0 1px var(--mint), 0 8px 44px rgba(151, 252, 228, 0.5); } }
.done { margin-top: 14px; padding: 14px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(151, 252, 228, 0.05); font-size: 14px; }
.done .ok { font: 400 24px/1.1 var(--serif); color: var(--mint); margin-bottom: 6px; }

/* the ghosts drifting through the scene */
.flock { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flock img { position: absolute; left: 0; top: 0; height: var(--h); width: auto; will-change: transform; filter: drop-shadow(0 0 16px rgba(151, 252, 228, 0.22)); }
.flock img.far { filter: blur(1.5px) brightness(0.7); }

/* ------------------------------------------------------------------ live strip */
.strip { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.strip div { padding: 16px clamp(14px, 2.4vw, 32px); border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: end; }
.strip div:first-child { border-left: 0; }
.strip span { font-size: 12px; color: var(--muted); }
.strip b { font: 500 17px var(--mono); }
.strip i { font-style: normal; color: var(--mint); }
.strip u { display: block; height: 3px; border-radius: 3px; background: var(--panel2); overflow: hidden; margin-top: 6px; text-decoration: none; }
.strip s { display: block; height: 100%; width: 0; background: var(--mint); transition: width 0.8s; }

/* ------------------------------------------------------------------ three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1120px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 56px; gap: clamp(16px, 3vw, 40px); }
.steps div { position: relative; padding-top: 6px; }
.steps img { height: 56px; width: auto; margin-bottom: 14px; animation: bob 5s ease-in-out infinite alternate; }
.steps div:nth-child(2) img { animation-delay: -1.6s; }
.steps div:nth-child(3) img { animation-delay: -3.1s; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -8px; } }
.steps .n { font: 500 12px var(--mono); color: var(--mint); }
.steps .s { font: 400 34px/1.1 var(--serif); margin: 10px 0 6px; }
.steps .d { color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px clamp(16px, 3.4vw, 44px) 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot .links { display: flex; gap: 20px; }
.foot a:hover { color: var(--mint); }

/* ------------------------------------------------------------------ burn animation */
.fx { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2, 6, 6, 0.9); backdrop-filter: blur(8px); }
.fx-stage { position: relative; width: min(400px, 78vw); aspect-ratio: 1; }
.fx-box { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; }
.fx-box img { width: 100%; height: 100%; object-fit: cover; }
.fx-box.shake { animation: shake 0.9s linear; }
.fx-box.burn { animation: burnout 1.1s ease-in forwards; }
@keyframes shake { 0%, 100% { transform: none; } 10%, 50%, 90% { transform: translate(-6px, 2px) rotate(-1.5deg); } 30%, 70% { transform: translate(6px, -2px) rotate(1.5deg); } }
@keyframes burnout { to { opacity: 0; filter: brightness(2.4) saturate(0) blur(8px); transform: scale(0.92); } }
.fx canvas { position: absolute; inset: -20%; width: 140%; height: 140%; pointer-events: none; }
.fx-soul { position: absolute; left: 50%; top: 55%; height: 50%; width: auto; translate: -50% -50%; opacity: 0; filter: drop-shadow(0 0 30px rgba(151, 252, 228, 0.6)); }
.fx-soul.rise { animation: rise 2.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes rise { 0% { opacity: 0; transform: translateY(60px) scale(0.6); } 40% { opacity: 1; } 100% { opacity: 1; transform: translateY(-30px) scale(1); } }
.fx-msg { position: absolute; left: 50%; bottom: -8px; translate: -50% 100%; width: min(440px, 90vw); text-align: center; opacity: 0; transition: opacity 0.6s; }
.fx-msg.on { opacity: 1; }
.fx-msg .ok { font: 400 40px/1 var(--serif); color: var(--mint); }
.fx-msg p { margin-top: 10px; color: var(--text); }
.fx-msg .btn { margin-top: 18px; min-width: 140px; }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translate(-50%, 160%); max-width: min(520px, calc(100% - 32px)); padding: 12px 16px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); transition: transform 0.3s; }
.toast.on { transform: translate(-50%, 0); }
.toast[data-kind="err"] { border-color: rgba(255, 140, 120, 0.5); }
.toast[data-kind="ok"] { border-color: var(--mint); }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 6, 0.75); backdrop-filter: blur(6px); }
.modal-box { width: min(380px, 100%); border-radius: 12px; background: #0c181c; border: 1px solid var(--line2); padding: 16px; display: grid; gap: 10px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head .x { font-size: 22px; color: var(--muted); width: 32px; height: 32px; }
.wp-w { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--line); text-align: left; }
.wp-w:hover { border-color: var(--mint); }
.wp-w img, .wp-w i { width: 28px; height: 28px; border-radius: 6px; background: var(--panel2); }
.acct .row { display: flex; justify-content: space-between; font: 500 14px var(--mono); color: var(--muted); }
.acct .row b { color: var(--text); }
.acct .btn { width: 100%; background: transparent; color: var(--text); border: 1px solid var(--line2); }

/* ------------------------------------------------------------------ phones: the scene on top, the panel under it */
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding: 0 16px 36px; background: var(--bg); }
  .scene { display: block; position: relative; inset: auto; margin: 0 -16px; aspect-ratio: 1; }
  .scene img { object-position: 50% 50%; }
  .hero::after { background: none; }
  .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 7, 0.6), transparent 22%, transparent 70%, var(--bg)); }
  .flock { bottom: auto; height: 100vw; }
  .side { width: 100%; margin-top: -24px; }
  h1 { font-size: clamp(42px, 12vw, 56px); }
  .sub { font-size: 15px; margin: 12px 0 22px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div { border-left: 0; border-top: 1px solid var(--line); }
  .strip div:first-child { grid-column: 1 / -1; border-top: 0; }
  .strip div:nth-child(odd):not(:first-child) { border-left: 1px solid var(--line); }
  .strip div:last-child { grid-column: 1 / -1; border-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps div { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; }
  .steps img { grid-row: 1 / 4; height: 56px; margin: 0; }
  .steps .s { font-size: 28px; margin: 4px 0 2px; }
  .foot { flex-direction: column; }
}
@media (max-width: 380px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
