/* TROYA AGENT — shared tokens (black + chrome blue). Used by the site and the app. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-400.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-500.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #020405;
  --bg-1: #060a0c;
  --bg-2: #0a1013;
  --bg-3: #0f181c;
  --bg-4: #152126;
  --line: #142026;
  --line-2: #1d2d34;
  --line-3: #2a3e47;
  --fg: #e8f4f8;
  --fg-2: #b4c8cf;
  --muted: #748b94;
  --faint: #44585f;
  --blue: #3fb7d4;        /* Troya blue */
  --blue-2: #5fd3ef;
  --blue-3: #8ee6ff;
  --ice: #d8f7ff;
  --deep: #0a4d5b;
  --deep-2: #03191d;
  --up: #5fd3ef;          /* gains read in Troya blue */
  --down: #ff6b7d;
  --warn: #f2c26b;
  --up-bg: rgba(95, 211, 239, 0.12);
  --down-bg: rgba(255, 107, 125, 0.12);
  --warn-bg: rgba(242, 194, 107, 0.1);
  --radius: 10px;
  --radius-s: 6px;
  --gutter: 32px;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(95, 211, 239, 0.3); color: #fff; }
:focus-visible { outline: 1.5px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* brand mark: the 3D chrome horse (rendered from the footer model by tools/render-mark.mjs) */
.mark { display: inline-block; width: 20px; height: 20px; flex: none;
  background: url(/img/logo-3d-128.png) center / contain no-repeat; }
.mark.lg { background-image: url(/img/logo-3d.png); }

/* underlined text link (the site's main CTA style) */
.ulink { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0 7px; font-size: 13px; font-weight: 500; color: var(--fg); }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.ulink:hover::after { transform: scaleX(.35); }
.ulink .arr { width: 10px; height: 10px; }

/* contract chip */
.ca-chip { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 16, 19, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04); font-family: var(--mono); font-size: 11px; max-width: 100%; }
.ca-chip b { font-weight: 500; color: var(--blue-2); letter-spacing: .08em; }
.ca-chip .sep { color: var(--faint); }
/* the address is always shown in full (never 0x12…ab) so people can check every character before they buy */
.ca-chip .addr { color: var(--fg-2); white-space: nowrap; user-select: all; -webkit-user-select: all; }
.ca-chip button { height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-3); font-size: 9.5px; font-weight: 500; letter-spacing: .12em; color: var(--fg); background: var(--bg-3); }
.ca-chip button:hover { border-color: var(--blue); color: var(--blue-3); }
/* phones: label + COPY on the first row, the full 42-character address on its own row, sized to fit the width */
@media (max-width: 720px) {
  .ca-chip { flex-wrap: wrap; height: auto; width: 100%; padding: 9px 8px 11px 14px; border-radius: 14px; row-gap: 7px; }
  .ca-chip .sep { display: none; }
  .ca-chip button { margin-left: auto; }
  .ca-chip .addr { order: 3; flex-basis: 100%; font-size: min(13px, calc((100vw - 72px) / 26)); letter-spacing: 0; }
}

/* toast */
.toasts { position: fixed; z-index: 900; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 10px 14px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--fg); font-size: 13px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: toastIn .3s var(--ease); max-width: min(92vw, 460px); }
.toast.ok { border-color: rgba(95, 211, 239, .45); }
.toast.error { border-color: rgba(255, 107, 125, .5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* gate: the notice shown before first use */
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(1, 3, 4, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.gate-card { width: min(720px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 14px; padding: 32px; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.gate-card .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue-2); font-size: 12px; margin-bottom: 14px; }
.gate-card h2 { margin: 0 0 22px; font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.gate-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 0; }
.gate-list li { display: grid; grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.gate-list .n { font-family: var(--mono); font-size: 11px; color: var(--blue); padding-top: 3px; }
.gate-list b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.gate-list p { margin: 0; color: var(--muted); font-size: 13px; }
.gate-note { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.gate-note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.gate-act { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-solid { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 500; font-size: 14px; }
.btn-solid:hover { background: var(--ice); }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--line-3); color: var(--fg); font-size: 14px; }
.btn-line:hover { border-color: var(--blue); }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .gate-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
