/* =============================================================
   RISKSLESS — SHARED THEME
   Terminal / fintech aesthetic · used across every page
   ============================================================= */

:root {
  --bg: #0a0d0a;
  --bg-soft: #111511;
  --bg-card: #0c0f0b;
  --ink: #e8ece3;
  --ink-dim: #7a8474;
  --ink-dimmer: #3d453b;
  --acid: #c7f14a;
  --acid-deep: #9ec92c;
  --red: #ff5c3b;
  --amber: #ffb23b;
  --line: #1d221c;
  --line-bright: #2a3128;
  --usdc: #2775ca;
  --usdc-glow: #3d8ce0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(199, 241, 74, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 241, 74, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(199, 241, 74, 0.09), transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(39, 117, 202, 0.07), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }

/* ===== TICKER ===== */
.ticker-bar {
  position: sticky; top: 0;
  background: #000;
  border-bottom: 1px solid var(--line-bright);
  font-size: 11px;
  letter-spacing: 0.08em;
  overflow: hidden;
  z-index: 50;
  display: flex; align-items: center;
  height: 34px;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 16px;
  background: var(--acid);
  color: #000;
  font-weight: 800;
  height: 100%;
  display: flex; align-items: center;
  letter-spacing: 0.14em;
}
.ticker-mask { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
  display: flex;
  animation: scroll 55s linear infinite;
  white-space: nowrap;
  gap: 48px;
  padding-left: 48px;
  width: max-content;
}
.ticker-track span { color: var(--ink-dim); }
.ticker-track .up { color: var(--acid); }
.ticker-track .down { color: var(--red); }
.ticker-track .neutral { color: var(--ink); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== NAV ===== */
nav.site-nav {
  position: sticky; top: 34px;
  background: rgba(10, 13, 10, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.nav-wrap {
  max-width: 1400px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.logo-dot {
  width: 10px; height: 10px;
  background: var(--acid);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--acid);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}
.nav-links { display: flex; gap: 32px; font-size: 12px; letter-spacing: 0.06em; }
.nav-links a { color: var(--ink-dim); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--acid); }
.nav-cta {
  padding: 10px 18px;
  background: var(--acid);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: all .2s;
}
.nav-cta:hover {
  background: #fff;
  box-shadow: 0 0 24px rgba(199, 241, 74, 0.4);
}
@media (max-width: 900px) { .nav-links { display: none; } }

/* ===== OPEN-ACCESS BANNER (sticky strip) ===== */
.access-banner {
  background: rgba(199, 241, 74, 0.04);
  border-bottom: 1px solid var(--line);
  padding: 12px 32px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-align: center;
}
.access-banner strong { color: var(--acid); font-weight: 500; }
.access-banner a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.access-banner a:hover { color: var(--acid); }

/* ===== PAGE HEAD ===== */
.page-head {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 32px 40px;
}
.breadcrumb {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-dim); transition: color .2s; }
.breadcrumb a:hover { color: var(--acid); }
.breadcrumb span { margin: 0 10px; color: var(--ink-dimmer); }
.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.page-title .italic {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--acid);
  font-weight: 400;
}
.page-title .usdc-word {
  color: var(--usdc-glow);
  font-weight: 600;
  font-family: 'Fraunces', serif;
  letter-spacing: -0.04em;
}
.page-lede {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}
.page-lede strong { color: var(--ink); font-weight: 500; }
.page-lede .acid-text { color: var(--acid); font-weight: 500; }

/* ===== SECTION BASE ===== */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 32px;
}
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  gap: 32px;
  flex-wrap: wrap;
}
.section-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--acid);
  margin-bottom: 8px;
  display: block;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  flex: 1;
  min-width: 280px;
}
.section-head h2 .italic {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--ink-dim);
}
.section-head p {
  max-width: 320px;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.7;
}

/* ===== CARD / PANEL ===== */
.panel {
  border: 1px solid var(--line-bright);
  background: var(--bg-card);
  padding: 32px;
}
.panel h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.panel p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.7;
}
.panel p + p { margin-top: 14px; }
.panel ul {
  list-style: none;
  margin-top: 16px;
}
.panel ul li {
  font-size: 13px;
  color: var(--ink-dim);
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  line-height: 1.6;
}
.panel ul li:last-child { border: none; }
.panel ul li::before {
  content: "▸";
  position: absolute; left: 0; top: 8px;
  color: var(--acid);
}
.panel ul li strong { color: var(--ink); font-weight: 500; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: all .25s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn-primary {
  background: var(--acid);
  color: #000;
  border-color: var(--acid);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(199, 241, 74, 0.45); background: #fff; }
.btn-secondary {
  border-color: var(--line-bright);
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn .arrow { transition: transform .25s; display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-bright);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: border-color .2s;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}
.form-input::placeholder { color: var(--ink-dimmer); }
.form-select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
                    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-output {
  padding: 18px 20px;
  background: var(--bg);
  border: 1px dashed var(--line-bright);
  font-size: 12px;
  word-break: break-all;
  color: var(--ink);
  margin-top: 20px;
  min-height: 60px;
  line-height: 1.6;
}
.form-output.active { border-style: solid; border-color: var(--acid); background: rgba(199,241,74,0.04); }
.form-output .placeholder { color: var(--ink-dimmer); }
.form-output .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--acid);
  margin-bottom: 8px;
}

/* ===== CODE BLOCKS ===== */
pre.code, .code-block {
  background: #000;
  border: 1px solid var(--line-bright);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink);
  margin: 20px 0;
}
.code-block .method {
  display: inline-block;
  background: var(--acid);
  color: #000;
  padding: 2px 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 10px;
  margin-right: 8px;
  vertical-align: middle;
}
.code-block .url { color: var(--acid); }
.code-block .comment { color: var(--ink-dim); }
.code-block .key { color: var(--usdc-glow); }
.code-block .value { color: var(--amber); }

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  margin: 24px 0;
}
table.api {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.api th, table.api td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.api th {
  background: var(--bg-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--acid);
  font-weight: 600;
  border-bottom-color: var(--line-bright);
}
table.api td { color: var(--ink-dim); }
table.api td code { color: var(--ink); font-size: 12px; }
table.api tr:last-child td { border-bottom: none; }

/* ===== FOOTER ===== */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 32px 32px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-logo {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 40px;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.foot-logo .italic { font-style: italic; color: var(--acid); font-family: 'Instrument Serif', serif; }
.foot-desc { color: var(--ink-dim); font-size: 12px; line-height: 1.7; max-width: 280px; }
.foot-col h5 {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 20px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { font-size: 12px; color: var(--ink-dim); transition: color .2s; }
.foot-col a:hover { color: var(--acid); }
.foot-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-dimmer);
  letter-spacing: 0.06em;
  flex-wrap: wrap; gap: 16px;
  line-height: 1.7;
}
.foot-bottom .disclaimer { max-width: 700px; }

@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
  .section, .page-head, footer.site-footer { padding-left: 20px; padding-right: 20px; }
}

/* ===== UTILS ===== */
.pill {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line-bright);
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.pill-acid { border-color: var(--acid); color: var(--acid); }
.pill-red { border-color: var(--red); color: var(--red); }
.pill-usdc { border-color: var(--usdc); color: var(--usdc-glow); background: rgba(39,117,202,0.08); }

.warn-box {
  border-left: 2px solid var(--amber);
  background: rgba(255, 178, 59, 0.04);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.7;
}
.warn-box strong { color: var(--amber); font-weight: 500; }

.info-box {
  border-left: 2px solid var(--acid);
  background: rgba(199, 241, 74, 0.04);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.7;
}
.info-box strong { color: var(--acid); font-weight: 500; }

.danger-box {
  border-left: 2px solid var(--red);
  background: rgba(255, 92, 59, 0.04);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.7;
}
.danger-box strong { color: var(--red); font-weight: 500; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.prose h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  line-height: 1.2;
}
.prose h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 28px 0 12px;
}
.prose p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.prose p strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.prose ol, .prose ul {
  margin: 14px 0 14px 20px;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.8;
}
.prose ol li, .prose ul li { margin-bottom: 8px; }

/* FAQ details (shared) */
details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color .2s;
  color: var(--ink);
}
details.faq-item summary:hover { color: var(--acid); }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--acid);
  font-size: 20px;
  transition: transform .3s;
  flex-shrink: 0;
  line-height: 1;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.7;
  margin-top: 14px;
  padding-right: 40px;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal 0.8s cubic-bezier(.2,.7,.3,1) forwards; }
.reveal-1 { animation-delay: .1s; }
.reveal-2 { animation-delay: .22s; }
.reveal-3 { animation-delay: .34s; }
.reveal-4 { animation-delay: .46s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
