/* =========================================================
   Coinbase Wallet Extension — informational guide
   Plain CSS, no build step
   ========================================================= */

:root {
  --blue: #0052ff;
  --blue-600: #0043d1;
  --blue-050: #eef3ff;
  --ink: #0a0b0d;
  --ink-soft: #1c1f26;
  --muted: #5b616e;
  --line: #e6e9ef;
  --bg: #ffffff;
  --soft: #f6f8fc;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 11, 13, .06), 0 4px 14px rgba(10, 11, 13, .05);
  --shadow-md: 0 12px 34px rgba(10, 11, 13, .09);
  --shadow-lg: 0 30px 70px rgba(0, 40, 130, .16);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px rgba(10, 11, 13, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #0052ff, #2a7bff);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 82, 255, .3);
  flex: 0 0 auto;
}
.brand-text { font-size: 1rem; white-space: nowrap; }
.brand-accent { color: var(--blue); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--blue-050); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 82, 255, .26); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 82, 255, .32); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d3e6; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 10px 26px rgba(0, 0, 30, .18); }
.btn-white:hover { transform: translateY(-1px); }
.btn:focus-visible,
.nav-toggle:focus-visible,
.faq-trigger:focus-visible,
.to-top:focus-visible {
  outline: 3px solid rgba(0, 82, 255, .45);
  outline-offset: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(44px, 7vw, 86px) 0 clamp(38px, 5vw, 64px);
  background:
    radial-gradient(900px 420px at 8% -10%, #e7efff 0%, rgba(231, 239, 255, 0) 62%),
    radial-gradient(700px 380px at 100% 0%, #f0f5ff 0%, rgba(240, 245, 255, 0) 60%),
    #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16c784;
  box-shadow: 0 0 0 4px rgba(22, 199, 132, .16);
}
.grad {
  background: linear-gradient(100deg, var(--blue), #69a1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 1.02rem; }
.hero-facts span { font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* --- Browser mock --- */
.hero-visual { position: relative; }
.mock {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.mock-url {
  margin-left: 10px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .74rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-body { padding: 22px; }
.mock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mock-label { margin: 0; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.mock-total { margin: 0; font-size: 1.72rem; font-weight: 800; letter-spacing: -0.03em; }
.mock-badge {
  font-size: .72rem; font-weight: 700; color: var(--blue);
  background: var(--blue-050); border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}
.mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.coin {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; flex: 0 0 auto;
}
.coin-eth { background: #454a75; }
.coin-usdc { background: #2775ca; }
.coin-base { background: #0052ff; }
.mock-name { font-weight: 600; font-size: .93rem; }
.mock-amt { margin-left: auto; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-actions { display: flex; gap: 9px; margin-top: 18px; }
.mock-btn {
  flex: 1; text-align: center; padding: 10px; border-radius: 11px;
  background: var(--soft); border: 1px solid var(--line);
  font-size: .83rem; font-weight: 600; color: var(--ink-soft);
}
.mock-btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.mock-caption { text-align: center; font-size: .78rem; color: var(--muted); margin: 12px 0 0; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 700px; margin-bottom: clamp(28px, 4vw, 46px); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}
.section-sub { color: var(--muted); margin: 0; }

/* ---------- 100-word copy panel ---------- */
.copy-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
}
.copy-panel p { font-size: clamp(1rem, 1.5vw, 1.08rem); color: var(--ink-soft); }
.copy-panel p:last-child { margin-bottom: 0; }
.copy-panel p:first-child::first-letter {
  float: left;
  font-size: 3.1rem;
  line-height: .86;
  font-weight: 800;
  color: var(--blue);
  padding: 4px 12px 0 0;
}

/* ---------- Feature grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e0f5; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--blue-050); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 23px; height: 23px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 1.05rem;
  margin-bottom: 16px;
}
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Safety ---------- */
.safety {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.safety-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.safety-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 16px 52px;
  font-size: .95rem;
  color: var(--muted);
}
.safety-list li::before {
  content: "";
  position: absolute;
  left: 18px; top: 20px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #16c784;
  box-shadow: inset 0 0 0 4px #fff;
  outline: 1px solid rgba(22, 199, 132, .35);
}
.safety-list strong { color: var(--ink); display: block; }

/* =========================================================
   ACCORDION
   ========================================================= */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: #cfdaf0; }
.faq-item.open { border-color: #b9ccf7; box-shadow: var(--shadow-sm); }
.faq-heading { margin: 0; font-size: inherit; font-weight: inherit; }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 19px 20px;
  font: inherit;
  font-weight: 600;
  font-size: 1.01rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
}
.faq-trigger:hover { color: var(--blue); }

.faq-icon {
  position: relative;
  width: 22px; height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-050);
  transition: background .25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform .28s ease, opacity .22s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon { background: var(--blue); }
.faq-item.open .faq-icon::before { background: #fff; }
.faq-item.open .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .32s ease, visibility .32s ease;
}
.faq-item.open .faq-panel { grid-template-rows: 1fr; visibility: visible; }
.faq-panel > div { overflow: hidden; }
.faq-panel p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: .96rem;
  max-width: 68ch;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #0052ff 0%, #1a6bff 55%, #3d86ff 100%);
  color: #fff;
  box-shadow: 0 26px 60px rgba(0, 82, 255, .28);
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 52ch; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #071021;
  color: #a9b4c7;
  padding: clamp(44px, 6vw, 68px) 0 28px;
  margin-top: clamp(30px, 5vw, 60px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand p { color: #8593ab; font-size: .92rem; margin: 14px 0 0; max-width: 42ch; }
.brand-footer { color: #fff; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-accent { color: #6ea1ff; }

.footer-col h3 {
  color: #fff;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: .92rem; color: #a9b4c7; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }

.disclaimer {
  padding: 26px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.disclaimer p {
  font-size: .82rem;
  color: #7d8aa3;
  max-width: 92ch;
  line-height: 1.65;
}
.disclaimer strong { color: #c3cddf; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; font-size: .82rem; color: #7d8aa3; }

/* =========================================================
   TO TOP
   ========================================================= */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 40;
  transition: transform .18s ease;
}
.to-top:hover { transform: translateY(-3px); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .safety { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 18px;
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 1rem; border-radius: 11px; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .header-inner { position: relative; }
  .btn-sm { padding: 9px 15px; font-size: .85rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .hero-facts li { flex-direction: row; align-items: baseline; gap: 8px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .header-actions .btn-sm { display: none; }
  .mock-actions { flex-wrap: wrap; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .copy-panel p:first-child::first-letter { font-size: 2.6rem; }
}
