/* ===========================================================
   Crypto AML — design system recreated from the FeedSpring template
   Navy→white glow hero, dark floating nav, pill eyebrows,
   gradient headings, soft cards, FAQ accordion, dark footer.
   =========================================================== */

:root {
  --navy-900: #0a0518;
  --navy-800: #0e0826;
  --navy-700: #15103a;
  --purple-700: #321a7b;
  --purple-500: #5b3fd6;
  --blue-500: #2e6cf0;
  --blue-400: #67a3ff;
  --ink: #100a22;
  --ink-soft: #26262e;
  --gray-700: #4a4a57;
  --gray-600: #797986;
  --gray-400: #aeaeb8;
  --line: #e7e7ef;
  --line-soft: #eef0f6;
  --card: #ffffff;
  --bg-soft: #f5f5fb;

  --shadow-purple: 0 18px 40px -12px rgba(50, 26, 123, .18), 0 6px 14px -8px rgba(50, 26, 123, .14);
  --shadow-card: 0 2px 4px rgba(7, 1, 19, .04), 0 12px 28px -14px rgba(50, 26, 123, .16);
  --inset-light: 0 1px 1px 0 rgba(255,255,255,.22) inset, 0 4px 8px 0 rgba(50,26,123,.10);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --container: 1140px;
  --font-display: "Host Grotesk", "Figtree", -apple-system, sans-serif;
  --font-body: "Figtree", "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background-color: #f4f3fc;
  background-image:
    radial-gradient(950px 640px at 8% 8%, rgba(123,97,255,.22), transparent 60%),
    radial-gradient(950px 660px at 92% 19%, rgba(46,108,240,.20), transparent 60%),
    radial-gradient(860px 620px at 12% 37%, rgba(91,63,214,.16), transparent 61%),
    radial-gradient(950px 680px at 90% 53%, rgba(46,108,240,.15), transparent 62%),
    radial-gradient(860px 620px at 14% 71%, rgba(123,97,255,.14), transparent 62%),
    radial-gradient(950px 660px at 88% 88%, rgba(46,108,240,.12), transparent 62%),
    linear-gradient(180deg, #efedfa 0%, #f6f5fe 38%, #fbfaff 62%, #f3f0fc 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Top gradient + glow atmosphere ---------- */
.page-top {
  position: relative;
  padding-top: 92px;
  background:
    radial-gradient(900px 520px at 18% -8%, rgba(91,63,214,.55), transparent 60%),
    radial-gradient(820px 540px at 86% -4%, rgba(46,108,240,.45), transparent 58%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 32%, #2a2356 56%, #6f6aa8 78%, rgba(244,243,251,.55) 92%, rgba(244,243,251,0) 100%);
  overflow: hidden;
  isolation: isolate;
}
.page-top::before,
.page-top::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.page-top::before {
  width: 540px; height: 540px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(123,97,255,.50), transparent 65%);
}
.page-top::after {
  width: 520px; height: 520px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(46,108,240,.42), transparent 65%);
}
.page-top > * { position: relative; z-index: 1; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation (dark floating card) ---------- */
.nav-wrap {
  padding: 22px 24px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.nav-card {
  max-width: var(--container);
  margin: 0 auto;
  background: rgba(16, 10, 34, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-pill);
  box-shadow: var(--inset-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 11px 22px;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px; letter-spacing: -.01em;
}
.nav-logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-400), var(--purple-500));
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(46,108,240,.45);
}
.nav-logo .mark svg { width: 19px; height: 19px; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
  flex: 1; justify-content: center; margin: 0 8px;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  padding: 9px 13px; border-radius: var(--radius-pill);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .signin {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: 14.5px; font-weight: 500; padding: 9px 14px;
  border-radius: var(--radius-pill);
}
.nav-actions .signin:hover { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%;
  color: #fff; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #6b53e6, var(--purple-700));
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(50,26,123,.55), 0 1px 0 rgba(255,255,255,.18) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(50,26,123,.6), 0 1px 0 rgba(255,255,255,.2) inset; }
.btn-nav { padding: 10px 18px; font-size: 14.5px; }
.btn-light {
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-card);
}
.btn-light:hover { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 15px 7px 12px; border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 0 4px rgba(103,163,255,.25); }
.eyebrow.on-dark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.92); }
.eyebrow.on-light { background: #fff; border: 1px solid var(--line); color: var(--purple-700); box-shadow: var(--shadow-card); }
.eyebrow.on-light .dot { background: var(--purple-500); box-shadow: 0 0 0 4px rgba(91,63,214,.18); }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 110px; text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.05; letter-spacing: -.025em;
  color: #fff;
  max-width: 16ch; margin: 0 auto 24px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, #b9a6ff 10%, #67a3ff 55%, #b9a6ff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: rgba(255,255,255,.78);
  max-width: 58ch; margin: 0 auto;
}
.hero .lead + .lead { margin-top: 16px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9); font-size: 13.5px; font-weight: 500;
  padding: 9px 16px; border-radius: var(--radius-pill);
}
.hero-badge .b-dot { width: 8px; height: 8px; border-radius: 50%; }

/* page header (interior pages) */
.page-head { padding: 56px 0 96px; text-align: center; }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700; color: #fff;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08; letter-spacing: -.025em;
  max-width: 20ch; margin: 0 auto 20px;
}
.page-head .lead {
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: rgba(255,255,255,.78);
  max-width: 64ch; margin: 0 auto;
}

/* ---------- Section scaffolding ---------- */
section.block { padding: 84px 0; }
section.block.tight { padding: 56px 0; }
.block-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.block-head.left { margin-left: 0; text-align: left; }
.block-head h2 {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -.022em;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.12; color: var(--ink); margin-bottom: 16px;
}
.block-head h2 .grad {
  background: linear-gradient(110deg, var(--purple-700), var(--blue-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.block-head p { font-size: 17px; color: var(--gray-600); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose.wide { max-width: 880px; }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 23px; letter-spacing: -.015em;
  color: var(--ink); margin: 40px 0 12px;
}
.prose h4 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 18px; color: var(--ink);
  margin: 26px 0 8px;
}
.prose p { font-size: 16.5px; color: var(--gray-700); margin-bottom: 16px; }
.prose p strong, .prose strong { color: var(--ink); font-weight: 600; }
.prose ul { list-style: none; margin: 0 0 20px; padding: 0; }
.prose ul li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  font-size: 16.5px; color: var(--gray-700);
}
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
}
.prose .lead-p { font-size: 18.5px; color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- Card grid (bento) ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-purple); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(91,63,214,.14), rgba(46,108,240,.14));
  color: var(--purple-700);
}
.card .ic svg { width: 23px; height: 23px; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 9px;
}
.card p { font-size: 15px; color: var(--gray-600); }
.card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.card ul li {
  position: relative; padding-left: 22px; margin-bottom: 7px;
  font-size: 14.5px; color: var(--gray-700);
}
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
}

/* soft section background bands */
.band { background: transparent; }
.band-head { padding-top: 84px; }

/* ---------- Stat / proof strip ---------- */
.proof {
  text-align: center; padding: 40px 0 14px;
}
.proof p {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink); letter-spacing: -.015em;
}
.proof p .accent { color: var(--purple-700); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--line-soft); }
table.aml {
  width: 100%; border-collapse: collapse; background: #fff;
  font-size: 15px; min-width: 640px;
}
table.aml thead th {
  background: linear-gradient(180deg, var(--navy-700), var(--purple-700));
  color: #fff; text-align: left; font-weight: 600;
  padding: 15px 20px; font-family: var(--font-display);
}
table.aml tbody td { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--gray-700); }
table.aml tbody tr:nth-child(even) { background: var(--bg-soft); }
table.aml tbody td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq-q .chev { flex: none; transition: transform .25s; color: var(--purple-500); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; }
.faq-a-inner p { font-size: 15.5px; color: var(--gray-700); margin-bottom: 12px; }
.faq-a-inner ul { list-style: none; padding: 0; margin: 0 0 8px; }
.faq-a-inner ul li { position: relative; padding-left: 22px; margin-bottom: 7px; font-size: 15px; color: var(--gray-700); }
.faq-a-inner ul li::before { content:""; position:absolute; left:2px; top:9px; width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,var(--purple-500),var(--blue-500)); }

/* ---------- Glossary ---------- */
.glossary-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.glossary-nav a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: #fff; border: 1px solid var(--line);
  color: var(--purple-700); font-weight: 700; text-decoration: none; font-size: 14px;
  box-shadow: var(--shadow-card); transition: transform .15s;
}
.glossary-nav a:hover { transform: translateY(-2px); color: var(--blue-500); }
.glossary-group { margin-bottom: 36px; }
.glossary-group .letter {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  color: var(--purple-700); margin-bottom: 14px;
  border-bottom: 2px solid var(--line); padding-bottom: 6px;
}
.glossary-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.gloss-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 18px 20px; box-shadow: var(--shadow-card);
}
.gloss-card dt { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 5px; }
.gloss-card dd { font-size: 14.5px; color: var(--gray-600); }

/* ---------- CTA card ---------- */
.cta-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(91,63,214,.6), transparent 60%),
    radial-gradient(600px 320px at 90% 20%, rgba(46,108,240,.5), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--purple-700));
  border-radius: 32px; padding: 64px 40px; text-align: center;
  box-shadow: var(--shadow-purple);
}
.cta-card h2 {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; margin-bottom: 14px; line-height: 1.1;
}
.cta-card p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 52ch; margin: 0 auto 28px; }
.cta-note { color: rgba(255,255,255,.6); font-size: 13.5px; margin-top: 16px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  max-width: 820px; margin: 0 auto; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px 28px; font-size: 14.5px; color: var(--gray-600);
}
.disclaimer strong { color: var(--ink); }

/* ---------- Footer ---------- */
footer.site {
  background: linear-gradient(180deg, #241c47 0%, var(--navy-900) 18%);
  color: rgba(255,255,255,.7);
  padding: 70px 0 34px; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,.55); max-width: 30ch; }
.footer-contact { margin-top: 22px; }
.footer-contact h4 {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-weight: 700; margin-bottom: 12px;
}
.footer-contact a, .footer-contact span {
  display: block; color: rgba(255,255,255,.72); text-decoration: none;
  font-size: 14.5px; margin-bottom: 9px; line-height: 1.5;
}
.footer-contact a:hover { color: #fff; }
.footer-col h4 {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-weight: 700; margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.72); text-decoration: none;
  font-size: 14.5px; margin-bottom: 11px; transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; gap: 16px; flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13.5px; }
.footer-bottom .legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid.cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
  .nav-links, .nav-actions .signin { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-card.open { flex-wrap: wrap; border-radius: 22px; }
  .nav-card.open .nav-links {
    display: flex; flex-direction: column; width: 100%; order: 3;
    flex: initial; justify-content: flex-start;
    gap: 2px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1);
    margin: 6px 0 0; max-height: calc(100vh - 140px); overflow-y: auto;
  }
  .nav-card.open .nav-links a { width: 100%; }
}
@media (max-width: 820px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 80px; }
  section.block { padding: 60px 0; }
  .cta-card { padding: 44px 24px; }
}

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

/* keyboard focus */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue-400); outline-offset: 2px;
}
