/* =========================================================
   Wallet Extension Guide — stylesheet
   ========================================================= */

:root {
  --ink: #0b1220;
  --ink-2: #1c2537;
  --muted: #5c6780;
  --muted-2: #7a849a;
  --line: #e4e8f1;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --accent: #4338ca;
  --accent-2: #0ea5e9;
  --accent-soft: #eef0fe;
  --warn: #b45309;
  --warn-bg: #fff9ed;
  --warn-line: #f6e0b8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 3px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(11, 18, 32, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(11, 18, 32, 0.35);
  --maxw: 1140px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
}

h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.4rem);
}
h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
}
h3 {
  font-size: 1.075rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(67, 56, 202, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.container.narrow {
  max-width: 830px;
}

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

/* ------------------------- Header ------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 55%, var(--accent-2) 140%);
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-size: 1rem;
}
.brand-text em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a:hover {
  background: var(--surface-2);
  color: var(--accent);
  text-decoration: none;
}
.site-nav .nav-cta {
  display: none;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s 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: 11px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-sm {
  padding: 9px 15px;
  font-size: 0.89rem;
  border-radius: 9px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b53e8);
  box-shadow: 0 10px 22px -12px rgba(67, 56, 202, 0.85);
}
.btn-primary:hover {
  box-shadow: 0 16px 30px -12px rgba(67, 56, 202, 0.9);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: #c9d0e0;
}

.btn-invert {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6);
}
.btn-invert:hover {
  background: #f3f5fb;
}

/* ------------------------- Hero ------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(52px, 7vw, 92px);
  background: radial-gradient(1100px 460px at 12% -10%, #eef0fe 0%, rgba(238, 240, 254, 0) 62%),
    radial-gradient(900px 420px at 96% 8%, #e8f6fe 0%, rgba(232, 246, 254, 0) 60%), #fff;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 66px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.grad {
  background: linear-gradient(100deg, var(--accent) 8%, #6366f1 48%, var(--accent-2) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink-2);
  font-weight: 500;
}
.hero-points svg {
  flex: none;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  padding: 3px;
  width: 22px;
  height: 22px;
}

/* Hero mock */
.hero-visual {
  position: relative;
}

.mock-window {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7dcea;
}
.mock-url {
  margin-left: 10px;
  font-size: 0.76rem;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

.mock-body {
  padding: 22px 22px 46px;
}
.mock-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-weight: 600;
}
.mock-balance {
  margin: 4px 0 2px;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.mock-sub {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 600;
}
.mock-assets {
  display: grid;
  gap: 8px;
}
.mock-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 0.88rem;
}
.mock-asset b {
  margin-left: auto;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
}
.chip-a {
  background: linear-gradient(135deg, #627eea, #8fa3f5);
}
.chip-b {
  background: linear-gradient(135deg, #2775ca, #5aa9ec);
}
.chip-c {
  background: linear-gradient(135deg, #8247e5, #b07cf5);
}
.mock-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.mock-actions span {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}

.mock-badge {
  position: absolute;
  left: -20px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--accent);
}
.mock-badge strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
}
.mock-badge span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ------------------------- Sections ------------------------- */

.section {
  padding: clamp(56px, 7vw, 86px) 0;
}
.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-sub {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.01rem;
  margin-bottom: 34px;
}

.prose p {
  color: var(--ink-2);
  font-size: 1.01rem;
}
.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.fact {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.fact b {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.fact span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b53e8);
  box-shadow: 0 8px 18px -10px rgba(67, 56, 202, 0.9);
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Callout + checklist */
.callout {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn);
  margin-bottom: 26px;
}
.callout svg {
  flex: none;
  margin-top: 3px;
}
.callout strong {
  display: block;
  color: #7c4a03;
  font-size: 1rem;
  margin-bottom: 4px;
}
.callout p {
  margin: 0;
  color: #8a5a12;
  font-size: 0.93rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding: 15px 18px 15px 48px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.checklist b {
  color: var(--ink);
}

/* ------------------------- Accordion ------------------------- */

.accordion {
  display: grid;
  gap: 12px;
}

.acc-item {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.acc-item[open] {
  border-color: #c7cbeb;
  box-shadow: var(--shadow-md);
}

.acc-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  letter-spacing: -0.01em;
}
.acc-item summary::-webkit-details-marker {
  display: none;
}
.acc-item summary:hover {
  color: var(--accent);
}
.acc-item summary .chev {
  margin-left: auto;
  flex: none;
  color: var(--muted-2);
  transition: transform 0.22s ease;
}
.acc-item[open] summary .chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.acc-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.acc-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ------------------------- CTA band ------------------------- */

.cta-band {
  background: linear-gradient(120deg, #1b1747 0%, #2a2570 45%, #0d3f63 100%);
  color: #fff;
  padding: clamp(44px, 6vw, 66px) 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  max-width: 52ch;
  font-size: 0.98rem;
}

/* ------------------------- Footer ------------------------- */

.site-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(46px, 6vw, 64px) 0 26px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 34px;
}

.brand-footer {
  color: #fff;
  margin-bottom: 14px;
}
.brand-footer .brand-text em {
  color: rgba(255, 255, 255, 0.55);
}
.footer-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.89rem;
  max-width: 40ch;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: grid;
  gap: 14px;
}
.disclaimer {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
  max-width: 92ch;
}
.copyright {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
}
.copyright a {
  color: rgba(255, 255, 255, 0.75);
}

/* ------------------------- Responsive ------------------------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .mock-badge {
    left: auto;
    right: 14px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 22px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 10px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .site-nav .nav-cta {
    display: block;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--accent), #5b53e8);
    color: #fff;
    text-align: center;
    font-weight: 600;
  }
  .site-nav .nav-cta:hover {
    color: #fff;
    background: linear-gradient(135deg, #3b31b8, #4f47d6);
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-inner .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .header-actions .btn-sm {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand-text {
    font-size: 0.92rem;
  }
  .header-actions .btn-sm {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
