/* Fly Data — component styles. Structure (grid system, shared-border panels,
   sticky nav, mono micro-labels) is measured off fly-trader.app's own
   stylesheet, as required; every color is a var() from tokens.css, every
   word of copy is original. No animated mark, no coin icon: the hero carries
   a static watermark only, and every motion rule has a reduced-motion twin. */

@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 44px);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--violet) 1px, transparent 1px),
    linear-gradient(90deg, var(--violet) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
}

a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 768px) { .shell { padding-inline: 24px; } }

/* ---------- type ---------- */

.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9; }
.hero-title { font-size: clamp(2rem, calc((100vw - 2rem) / 9.5), 5.5rem); }
.section-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; font-size: clamp(1.75rem, 5vw, 3rem); margin: 0 0 8px; }
.micro { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.micro.accent { color: var(--magenta); }
.mono { font-family: var(--font-mono); color: var(--text-mono); }
.lede { color: var(--text-secondary); font-size: 1.125rem; max-width: 38rem; margin: 0 0 24px; }
p { margin: 0 0 1em; }
.prose p { color: var(--text-secondary); max-width: 42rem; }
.prose strong { color: var(--text-primary); font-weight: 600; }

/* ---------- contract-address strip (always visible, top of page) ---------- */

.sticky-head {
  position: sticky;
  top: 0;
  z-index: 60;
}

.ca-strip {
  background: var(--bg-elevated);
  border-bottom: var(--rule) solid var(--border-bright);
}
.ca-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-block: 10px;
}
.ca-strip .micro { white-space: nowrap; }
.ca-strip code {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 2.6vw, 1.0625rem);
  color: var(--text-mono);
  overflow-x: auto;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.ca-strip[data-state="inert"] code { color: var(--text-muted); font-style: italic; }
.ca-strip button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-overlay);
  border: var(--rule) solid var(--border-bright);
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
}
.ca-strip button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- nav ---------- */

.nav { position: relative; z-index: 50; background: var(--bg-base); border-bottom: var(--rule) solid var(--border); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; text-transform: lowercase; color: var(--text-primary); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--magenta); }
.logo img { width: 28px; height: 28px; }

.nav-links { display: none; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--text-secondary); padding: 8px 10px; }
.nav-links a::before { content: "["; color: var(--text-muted); }
.nav-links a::after { content: "]"; color: var(--text-muted); }
.nav-links a:hover { color: var(--magenta); text-decoration: none; }
.nav-links a:hover::before, .nav-links a:hover::after { color: var(--magenta-dim); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: var(--rule) solid var(--border); color: var(--text-secondary); }
.icon-link:hover { color: var(--magenta); border-color: var(--border-bright); text-decoration: none; }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }
.icon-link[data-state="inert"] { color: var(--text-muted); cursor: not-allowed; }
.icon-link[data-state="inert"]:hover { border-color: var(--border); color: var(--text-muted); }

.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: var(--rule) solid var(--border); color: var(--text-primary); cursor: pointer; padding: 0; }
.burger svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.mobile-menu { border-top: var(--rule) solid var(--border); background: var(--bg-surface); }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.mobile-menu a { display: block; padding: 12px 0; min-height: 44px; display: flex; align-items: center; font-family: var(--font-mono); font-size: 0.9375rem; letter-spacing: 0.06em; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.mobile-menu a::before { content: "[ "; color: var(--text-muted); }
.mobile-menu a::after { content: " ]"; color: var(--text-muted); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* ---------- hero (static watermark only — no animated mark, no coin icon) ---------- */

.hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--nav-h) - 52px); display: flex; align-items: center; border-bottom: var(--rule) solid var(--border); overflow: hidden; }
.hero-watermark { position: absolute; z-index: -1; right: -8%; top: 50%; transform: translateY(-50%); width: min(60vw, 640px); opacity: 0.16; filter: saturate(1.1); pointer-events: none; }
.hero-content { padding-block: 56px; max-width: 900px; position: relative; }
.chip { display: inline-flex; align-items: center; gap: 10px; border: var(--rule) solid var(--border); background: var(--bg-surface); padding: 6px 12px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 24px; }
.dot { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 0 0 rgba(63, 203, 106, 0.6); animation: pulse 2s infinite; }
.tagline { font-family: var(--font-display); font-weight: 500; font-style: italic; color: var(--text-secondary); font-size: clamp(1rem, 2.4vw, 1.5rem); margin: 0 0 32px; max-width: 28rem; }

.btn-row { display: flex; flex-direction: column; border: var(--rule) solid var(--border-bright); width: max-content; max-width: 100%; }
.btn-row .btn { border: 0; border-top: var(--rule) solid var(--border-bright); }
.btn-row .btn:first-child { border-top: 0; }
@media (min-width: 640px) {
  .btn-row { flex-direction: row; }
  .btn-row .btn { border-top: 0; border-left: var(--rule) solid var(--border-bright); }
  .btn-row .btn:first-child { border-left: 0; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; min-height: 44px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); background: var(--bg-surface); border: var(--rule) solid var(--border-bright); cursor: pointer; white-space: nowrap; transition: background 120ms, color 120ms; }
.btn:hover { text-decoration: none; background: var(--bg-overlay); }
.btn.primary { background: var(--magenta); color: var(--bg-base); font-weight: 600; }
.btn.primary:hover { background: var(--cyan); }
.btn.violet { background: var(--violet); color: var(--bg-base); font-weight: 600; }
.btn.violet:hover { background: var(--violet-dim); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.hard-shadow { box-shadow: 6px 6px 0 0 var(--magenta-shadow); }
.hard-shadow-violet { box-shadow: 6px 6px 0 0 var(--violet-shadow); }

/* ---------- sections ---------- */

.section { padding-block: 80px; border-bottom: var(--rule) solid var(--border); position: relative; z-index: 1; }
@media (max-width: 640px) { .section { padding-block: 56px; } }
.section-head { margin-bottom: 40px; }
.section-head .micro { display: block; margin-bottom: 12px; }
.sub { margin-top: 56px; }
.sub-title { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; margin: 0 0 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: var(--rule) solid var(--border); background: var(--border); gap: var(--rule); margin-block: 24px 32px; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg-surface); padding: 20px; min-width: 0; }
.stat .value { font-family: var(--font-mono); font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 500; color: var(--magenta); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stat .value.violet { color: var(--violet); }
.stat .value.cyan { color: var(--cyan); }
.stat .note { margin: 8px 0 0; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.4; }

.split { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 3fr 2fr; gap: 48px; } }

.panel { border: var(--rule) solid var(--border); background: var(--bg-surface); padding: 24px; }
.panel h4 { font-family: var(--font-display); font-size: 1.125rem; margin: 0 0 12px; }
.panel p { color: var(--text-secondary); font-size: 0.9375rem; }
.panel p:last-child { margin-bottom: 0; }

.notice { border: var(--rule) solid var(--amber); background: rgba(237, 205, 89, 0.06); padding: 20px 24px; }
.notice .micro { color: var(--amber); display: block; margin-bottom: 10px; }
.notice p { color: var(--text-secondary); margin: 0; }
.notice.danger { border-color: var(--red); background: rgba(233, 89, 241, 0.06); }
.notice.danger .micro { color: var(--red); }

.cards { display: grid; grid-template-columns: 1fr; gap: var(--rule); border: var(--rule) solid var(--border); background: var(--border); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-surface); padding: 24px; min-width: 0; }
.card h4 { font-family: var(--font-display); font-size: 1.0625rem; margin: 0 0 10px; }
.card p { color: var(--text-secondary); font-size: 0.9375rem; margin: 0; }

.pipeline { display: grid; grid-template-columns: 1fr; gap: var(--rule); border: var(--rule) solid var(--border); background: var(--border); margin-block: 24px; }
@media (min-width: 900px) { .pipeline { grid-template-columns: repeat(5, 1fr); } }
.step { background: var(--bg-elevated); padding: 18px; min-width: 0; }
.step .micro { display: block; margin-bottom: 8px; color: var(--cyan); }
.step strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-secondary); font-size: 0.875rem; }

/* ---------- token panel ---------- */

.token-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .token-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

.kv { display: grid; grid-template-columns: 1fr; border: var(--rule) solid var(--border); background: var(--border); gap: var(--rule); }
@media (min-width: 560px) { .kv { grid-template-columns: 1fr 1fr; } }
.kv > div { background: var(--bg-surface); padding: 18px 20px; min-width: 0; }
.kv .micro { display: block; margin-bottom: 8px; }
.kv .v { font-family: var(--font-mono); color: var(--text-mono); font-size: 1.125rem; overflow-wrap: anywhere; }
.kv .v.accent { color: var(--magenta); }
.kv .v.muted { color: var(--text-muted); font-style: italic; }
.kv .wide { grid-column: 1 / -1; }

.coming-soon { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(1.5rem, 4.5vw, 2.25rem); color: var(--lime); line-height: 1; margin: 0 0 12px; }

/* ---------- get started ---------- */

.req-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--rule); border: var(--rule) solid var(--border); background: var(--border); }
@media (min-width: 700px) { .req-list { grid-template-columns: repeat(3, 1fr); } }
.req-list li { background: var(--bg-surface); padding: 16px 18px; min-width: 0; }
.req-list strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.req-list span { color: var(--text-secondary); font-size: 0.875rem; }

/* ---------- footer ---------- */

.footer { padding-block: 48px 32px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h5 { margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--text-secondary); font-size: 0.9375rem; }
.footer li a:hover { color: var(--magenta); }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; max-width: 22rem; margin-top: 12px; }
.footer-bottom { border-top: var(--rule) solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; }
.footer-bottom a { color: var(--text-secondary); }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; padding-block: 64px 96px; position: relative; z-index: 1; }
.legal .intro { color: var(--text-secondary); font-size: 1.0625rem; margin-bottom: 40px; }
.clause { border-top: var(--rule) solid var(--border); padding-block: 28px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.clause .n { font-family: var(--font-mono); color: var(--magenta); font-size: 0.8125rem; letter-spacing: 0.12em; padding-top: 5px; }
.clause h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.clause p, .clause li { color: var(--text-secondary); font-size: 0.9375rem; }
.clause ul { padding-left: 18px; margin: 0 0 1em; }

/* ---------- utilities ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mt-24 { margin-top: 24px; }

/* ---------- animations ---------- */

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 203, 106, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(63, 203, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 203, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
