/* ==========================================================================
   Flux Leads — Design System v2
   Mono palette • Liquid glass • Editorial typography
   ========================================================================== */

:root {
  /* base palette */
  --black:        #000000;
  --ink:          #06070a;
  --ink-2:        #1c1d22;
  --ink-3:        #2d2e34;
  --muted:        #6b6d73;
  --muted-2:      #8e9097;
  --line:         rgba(0,0,0,0.08);
  --line-2:       rgba(0,0,0,0.04);
  --line-dark:    rgba(255,255,255,0.10);
  --line-dark-2:  rgba(255,255,255,0.06);
  --paper:        #fbfbfd;
  --paper-2:      #f5f5f7;
  --paper-3:      #efeff2;
  --bg:           #ffffff;

  /* accent — used sparingly */
  --accent:       #0a66ff;
  --accent-2:     #0050d3;
  --accent-soft:  rgba(10,102,255,0.10);

  /* radii */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* shadows */
  --sh-1: 0 1px 0 rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --sh-2: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --sh-3: 0 40px 80px -30px rgba(0,0,0,0.25), 0 12px 30px -10px rgba(0,0,0,0.08);

  /* type */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, system-ui, sans-serif;
  --f-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* selection */
::selection { background: var(--ink); color: #fff; }

/* ============================== LAYOUT ================================ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

section.block { padding: 140px 0; }
section.block.compact { padding: 90px 0; }
@media (max-width: 760px) {
  section.block { padding: 96px 0; }
  section.block.compact { padding: 64px 0; }
}

/* ============================== NAV =================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-transform: lowercase;
  display: inline-flex; align-items: baseline;
  position: relative; top: 1px;
}
.brand-wordmark em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  letter-spacing: -0.02em;
  margin: 0 -0.05em;
  line-height: 0.85;
  color: var(--ink);
}
/* footer brand inverted */
.foot-brand .brand-wordmark,
.foot-brand .brand-wordmark em { color: #fff; }

/* artistic variants — toggleable via [data-brand-variant] on <body> */
body[data-brand-variant="sans"] .brand-wordmark { text-transform: lowercase; letter-spacing: -0.05em; font-weight: 700; font-size: 19px; }
body[data-brand-variant="sans"] .brand-wordmark em { font-family: inherit; font-style: normal; font-weight: inherit; font-size: 1em; margin: 0; line-height: inherit; }

body[data-brand-variant="italic"] .brand-wordmark { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: -0.02em; text-transform: none; top: 0; }
body[data-brand-variant="italic"] .brand-wordmark em { font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 1em; margin: 0; line-height: inherit; }

body[data-brand-variant="allcaps"] .brand-wordmark { text-transform: uppercase; font-weight: 600; font-size: 16px; letter-spacing: 0.14em; top: 0; }
body[data-brand-variant="allcaps"] .brand-wordmark em { font-family: inherit; font-style: normal; font-weight: inherit; font-size: 1em; margin: 0; line-height: inherit; letter-spacing: inherit; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  color: var(--ink-2); font-weight: 450; font-size: 14px;
  letter-spacing: -0.005em;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 1px; background: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500; font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta:active { transform: scale(0.97); }

.mobile-toggle {
  display: none; background: transparent; border: none;
  width: 40px; height: 40px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.mobile-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 32px; border-top: 1px solid var(--line-2); font-size: 15px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* ============================== TYPOGRAPHY ============================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1.display {
  font-size: clamp(48px, 8.5vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
}
h1.display .serif,
h2 .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2.section-title {
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 900px;
}
h2.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ============================== BUTTONS =============================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.005em;
  border: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn .arr {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-light {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-light:hover { background: rgba(255,255,255,0.18); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ============================== CARDS / GLASS ========================= */
.glass {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -20px rgba(0,0,0,0.18);
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: rgba(0,0,0,0.14);
}
.card-num {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.card-ic {
  width: 64px; height: 64px;
  margin: 22px 0 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2);
  border-radius: 18px;
}
.card-ic img { width: 38px; height: 38px; object-fit: contain; filter: grayscale(1) brightness(0.4); }
.card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.card p {
  color: var(--muted); font-size: 15px; margin: 0;
  line-height: 1.6;
}
.card .corner {
  position: absolute; top: 26px; right: 26px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.card:hover .corner { background: var(--ink); color: #fff; transform: rotate(-45deg); }

/* ============================== PAGE HEAD ============================= */
.page-head {
  position: relative;
  padding: 96px 0 72px;
  background: var(--paper);
  overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(10,102,255,0.07), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(0,0,0,0.04), transparent 60%);
  pointer-events: none;
}
.page-head-inner { position: relative; }
.crumb {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.crumb a:hover { color: var(--ink); }
.crumb .sep { opacity: 0.5; }

h1.page-title {
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 1080px;
}
h1.page-title .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.page-sub {
  color: var(--muted); font-size: clamp(17px,1.5vw,20px);
  max-width: 640px; line-height: 1.55; margin: 0;
  font-weight: 400; letter-spacing: -0.005em;
}

/* ============================== CHECKLIST ============================= */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--ink-2); font-weight: 450;
  line-height: 1.5;
}
.checks li::before {
  content: ''; flex-shrink: 0; margin-top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================== CTA SECTION ========================== */
.cta {
  text-align: center;
  padding: 130px 0;
}
.cta h2 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 18px auto 18px;
  max-width: 980px;
  text-wrap: balance;
}
.cta h2 .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cta p { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto 32px; }
.cta .cta-row { justify-content: center; }

/* ============================== FOOTER =============================== */
footer {
  background: var(--ink);
  color: #c7c8cd;
  padding: 110px 0 36px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(10,102,255,0.10), transparent 55%),
    radial-gradient(700px 400px at 0% 100%, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}
.foot-inner { position: relative; }
.foot-claim {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  padding-bottom: 80px; border-bottom: 1px solid var(--line-dark);
  align-items: end;
}
.foot-claim h3 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.foot-claim h3 .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}
.foot-claim .cta-row { justify-content: flex-end; }
@media (max-width: 760px) {
  .foot-claim { grid-template-columns: 1fr; gap: 28px; }
  .foot-claim .cta-row { justify-content: flex-start; }
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.foot-brand p { color: #87898f; font-size: 14px; margin-top: 16px; max-width: 320px; line-height: 1.6; }
.foot-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #f2f2f5; margin: 6px 0 18px; font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: #87898f; font-size: 14px; transition: color .15s ease; }
.foot-col a:hover { color: #fff; }
.foot-addr { font-size: 14px; color: #87898f; line-height: 1.7; }
.foot-addr strong { color: #c7c8cd; font-weight: 500; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--line-dark);
  font-size: 12.5px; color: #87898f;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  footer { padding: 80px 0 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 56px; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================== REVEAL =============================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* stagger children */
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .04s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .20s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .28s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .36s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .44s; opacity: 1; transform: none; }

/* ============================== PROSE (legal) ======================== */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.prose h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
  color: var(--ink);
  font-weight: 600;
}
.prose h3 {
  font-size: 19px;
  margin: 32px 0 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 24px; margin: 0 0 20px; }
.prose ul li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(10,102,255,0.3); transition: border-color .2s ease; }
.prose a:hover { border-color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .last-updated {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.prose .toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin: 32px 0 48px;
}
.prose .toc strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.prose .toc ol { padding-left: 22px; margin: 0; }
.prose .toc ol li { margin: 5px 0; font-size: 15px; }
.prose .toc a { color: var(--ink-2); border: none; }
.prose .toc a:hover { color: var(--accent); }

/* ============================== UTIL ================================ */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.tag.dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); color: #c7c8cd; }

.divider-strip {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
