/* HyperPerps swap pages (2026-10-23). Tokens match the guide pages. */
:root {
  --bg: #050507; --bg-2: #0a0b0e; --surface: #0e1014; --surface-2: #141720;
  --border: #1a1d26; --border-2: #252a36;
  --text: #f0f2f5; --text-2: #a0a8b8; --text-3: #8a90a4;
  --green: #34d399; --green-bg: rgba(52,211,153,0.06);
  --gold: #fbbf24; --gold-bg: rgba(251,191,36,0.06);
  --blue: #60a5fa; --red: #f87171;
  --radius: 14px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; top: -40px; left: 8px; background: var(--bg); color: var(--text); padding: 8px 12px; border-radius: 6px; z-index: 1000; transition: top 0.15s ease; }
.skip-link:focus { top: 8px; outline: 2px solid var(--blue); }

nav { position: sticky; top: 0; z-index: 100; padding: 14px 0; background: rgba(5,5,7,0.8); backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid rgba(26,29,38,0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo .accent { color: var(--green); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-2); }

article { padding: 40px 0 80px; }
.breadcrumbs { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-3); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
article h1 { font-size: clamp(30px, 4.2vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 18px; }
.lede { font-size: 18px; color: var(--text-2); line-height: 1.6; margin-bottom: 26px; max-width: 640px; }
.lede strong { color: var(--text); }
article h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 48px 0 14px; line-height: 1.2; }
article h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
article p { font-size: 16px; color: var(--text-2); margin-bottom: 16px; }
article p strong, article li strong { color: var(--text); font-weight: 600; }
article ul, article ol { margin: 0 0 16px 0; padding-left: 22px; }
article li { font-size: 16px; color: var(--text-2); margin-bottom: 8px; line-height: 1.6; }
article code { background: var(--surface); padding: 2px 7px; border-radius: 4px; font-family: var(--mono); font-size: 14px; color: var(--text); }

.swap-card { margin: 8px 0 18px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.swap-frame { border: none; border-radius: 10px; overflow: hidden; width: 100%; max-width: 420px; height: 330px; display: block; background: #fff; }
.swap-fallback-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; background: var(--green); color: #000; font-size: 15px; font-weight: 700; }
.swap-fallback-btn:hover { text-decoration: none; box-shadow: 0 8px 30px rgba(52,211,153,0.3); }
.swap-card-note { font-size: 12.5px; color: var(--text-3); text-align: center; max-width: 520px; }

.callout { margin: 24px 0; padding: 18px 22px; background: var(--gold-bg); border: 1px solid rgba(251,191,36,0.18); border-radius: var(--radius); }
.callout p { color: var(--text-2); margin-bottom: 0; font-size: 15px; }
.disclosure { margin: 40px 0 0; padding: 18px 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.disclosure p { font-size: 13.5px; color: var(--text-3); margin-bottom: 8px; }
.disclosure p:last-child { margin-bottom: 0; }

.pair-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 8px; }
.pair-link { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-weight: 600; }
.pair-link span { display: block; font-size: 13px; color: var(--text-3); font-weight: 400; margin-top: 4px; }
.pair-link:hover { border-color: var(--border-2); text-decoration: none; }

details.faq { border-bottom: 1px solid var(--border); }
details.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--mono); font-size: 22px; color: var(--text-3); }
details.faq[open] summary::after { content: '−'; color: var(--green); }
details.faq .answer { font-size: 15px; color: var(--text-2); padding: 0 0 16px; line-height: 1.65; }

footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 0 24px; gap: 18px; }
.footer-left { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-3); }

@media (max-width: 640px) {
  article h1 { font-size: 26px; }
  article h2 { font-size: 20px; }
  .lede { font-size: 16px; }
  .pair-grid { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
