/* Facturo — landing "registre" : ledger noir, encre + laiton. */
body.landing {
  --ink: #0e0f0c;
  --panel: #17180f;
  --paper: #f4f1e6;
  --dim: #a9a08c;
  --line: rgba(244, 241, 230, .14);
  --gold: #c9962f;
  --gold-bright: #e8b563;
  --sage: #5c7660;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--ink);
  color: var(--paper);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.landing a { color: inherit; }

/* Topbar overlays the hero (transparent, absolute) instead of pushing it down. */
body.landing .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  background: linear-gradient(to bottom, rgba(14,15,12,.75), transparent);
  border-bottom: none;
}
body.landing .topbar .brand,
body.landing .topbar .brand-mark { color: var(--paper); }
body.landing .topbar .brand .accent { color: var(--gold-bright); }
body.landing .btn-login {
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 18px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  transition: border-color .2s, color .2s;
}
body.landing .btn-login:hover { border-color: var(--gold); color: var(--gold-bright); }

body.landing .wrap { max-width: 1080px; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: -2;
  background: radial-gradient(120% 90% at 50% 12%, #1c1d14 0%, var(--ink) 62%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(14,15,12,.9) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(14,15,12,.35) 0%, transparent 22%, transparent 78%, var(--ink) 100%);
}
.hero-inner { padding: 120px 20px 80px; position: relative; }
.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--dim);
  margin: 0 0 24px;
  opacity: 0; animation: rise .7s .04s cubic-bezier(.2, .7, .3, 1) forwards;
}
.status-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--gold-bright); box-shadow: 0 0 9px var(--gold-bright);
}
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-bright); margin: 0 0 22px;
  opacity: 0; animation: rise .7s .15s cubic-bezier(.2, .7, .3, 1) forwards;
}
.hero h1 {
  font-family: var(--display); font-weight: 380; font-size: clamp(40px, 7vw, 82px);
  line-height: 1.03; letter-spacing: -.01em; margin: 0 0 26px; max-width: 16ch;
  opacity: 0; animation: rise .8s .27s cubic-bezier(.2, .7, .3, 1) forwards;
}
.hero h1 em { font-style: italic; font-weight: 480; color: var(--gold-bright); }
.hero .lede {
  font-size: 18px; line-height: 1.6; color: var(--dim); max-width: 46ch; margin: 0 0 18px;
  opacity: 0; animation: rise .8s .4s cubic-bezier(.2, .7, .3, 1) forwards;
}
.transparency-note {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--dim);
  max-width: 50ch; margin: 0 0 40px; padding-left: 13px; border-left: 2px solid var(--line);
  opacity: 0; animation: rise .8s .5s cubic-bezier(.2, .7, .3, 1) forwards;
}
.hero-cta {
  display: flex; align-items: flex-start; gap: 30px; flex-wrap: wrap;
  opacity: 0; animation: rise .8s .62s cubic-bezier(.2, .7, .3, 1) forwards;
}
.cta-primary { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-note { font-size: 13px; color: var(--dim); }
.hero-ghost-link { padding-top: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .status-badge, .eyebrow, .hero h1, .hero .lede, .transparency-note, .hero-cta { animation: none; opacity: 1; }
}

.btn-primary {
  display: inline-block; background: var(--gold); color: #201406; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px -12px rgba(201,150,47,.6);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost {
  font-family: var(--mono); font-size: 14px; text-decoration: none; color: var(--paper);
  border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* -------------------------------------------------------- Section rhythm */
.section-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.sources, .how { padding: 110px 0; border-top: 1px solid var(--line); }
.sources h2, .how h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 56px; max-width: 20ch;
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.source-card { background: var(--ink); padding: 30px 24px; }
.source-tag {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; margin-bottom: 16px;
}
.source-card p { color: var(--dim); font-size: 14.5px; line-height: 1.6; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step-no { font-family: var(--mono); font-size: 15px; color: var(--gold); flex: none; width: 3ch; }
.steps h3 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0 0 8px; }
.steps p { color: var(--dim); margin: 0; max-width: 56ch; line-height: 1.6; }

.cta-final {
  padding: 130px 0; text-align: center; border-top: 1px solid var(--line);
  background: radial-gradient(60% 100% at 50% 100%, rgba(201,150,47,.08), transparent);
}
.cta-final h2 {
  font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(26px, 4vw, 38px);
  max-width: 18ch; margin: 0 auto 36px;
}

.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.site-footer span { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

@media (max-width: 860px) {
  .source-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .source-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 110px 18px 60px; }
  .steps li { gap: 18px; }
}
