* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--wr-bg);
  color: var(--wr-text);
  font-family: var(--wr-font);
  line-height: 1.5;
}

a { color: inherit; }
img { display: block; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 6, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wr-border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-right: auto;
}
.site-nav {
  display: flex;
  gap: 24px;
}
.site-nav a {
  text-decoration: none;
  color: var(--wr-muted);
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav a:hover { color: var(--wr-text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-row { display: flex; align-items: center; gap: 6px; }
.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wr-radius-sm);
  color: var(--wr-text);
  text-decoration: none;
}
.social-icon:hover { background: var(--wr-surface); }
.social-icon.is-inert {
  color: var(--wr-muted);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--wr-text);
  border-radius: 2px;
}

/* ---------- CA bar ---------- */
.ca-bar {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--wr-surface);
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-md);
  flex-wrap: wrap;
}
.ca-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--wr-accent);
  padding: 4px 8px;
  border: 1px solid var(--wr-border-strong);
  border-radius: 999px;
}
.ca-address {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  color: var(--wr-text);
}
.ca-bar.is-inert .ca-address { color: var(--wr-muted); font-style: italic; }
.ca-copy {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--wr-radius-sm);
  border: 1px solid var(--wr-border-strong);
  background: transparent;
  color: var(--wr-accent);
  font-weight: 600;
  cursor: pointer;
}
.ca-copy:disabled { color: var(--wr-muted); border-color: var(--wr-border); cursor: not-allowed; }
.ca-copy.is-copied { background: var(--wr-accent); color: var(--wr-bg); }

/* ---------- Hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 88px 20px 48px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wr-accent);
  border: 1px solid var(--wr-border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
}
.grad-text {
  background: linear-gradient(90deg, var(--wr-blue-700), var(--wr-cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--wr-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  min-height: 44px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--wr-radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.btn-primary { background: var(--wr-accent); color: var(--wr-bg); }
.btn-ghost { border: 1px solid var(--wr-border-strong); color: var(--wr-text); }

/* ---------- Stat row ---------- */
.stat-row {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-tile {
  background: var(--wr-surface);
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-md);
  padding: 24px;
  text-align: center;
}
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--wr-accent); }
.stat-label { display: block; margin-top: 6px; color: var(--wr-muted); font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { max-width: 1100px; margin: 0 auto; padding: 64px 20px; }
h2 { font-size: 2rem; margin: 0 0 10px; }
.section-sub { color: var(--wr-muted); margin: 0 0 32px; max-width: 640px; }

.chain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: var(--wr-surface);
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-lg);
  padding: 28px;
  margin: 0;
}
.chain-grid dt { color: var(--wr-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.chain-grid dd { margin: 0; font-size: 1.02rem; overflow-wrap: anywhere; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.module-card {
  background: var(--wr-surface);
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-lg);
  padding: 24px;
}
.module-card h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.module-card p { margin: 0; color: var(--wr-muted); font-size: 0.95rem; }
.module-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wr-accent);
  background: var(--wr-surface-2);
  border-radius: 6px;
  padding: 4px 8px;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--wr-surface);
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-md);
  padding: 6px 20px;
}
.faq-item summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.faq-item p { color: var(--wr-muted); margin: 0 0 16px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--wr-border);
  padding: 32px 20px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-note { color: var(--wr-muted); font-size: 0.85rem; margin: 0 auto 0 0; }
.footer-copy { max-width: 1200px; margin: 20px auto 0; color: var(--wr-muted); font-size: 0.8rem; }

/* ---------- Breakpoints (measured: 360, 390, 430, 1366, 1440) ---------- */
@media (max-width: 900px) {
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--wr-bg); border-bottom: 1px solid var(--wr-border); padding: 8px 20px 16px; display: none; }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .stat-row { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .chain-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1400px) {
  .header-inner, section, .stat-row, .footer-inner, .footer-copy { max-width: 1280px; }
}
