:root {
  /* Palette from VeridicaHR lib/core/theme/app_theme.dart */
  --ink: #230f0f;
  --ink-2: #2f1a1a;
  --paper: #fff7f4;
  --paper-2: #fff0ec;
  --line: rgba(146, 4, 1, .14);
  --line-dark: rgba(197, 160, 89, .22);
  --muted: #6b5a57;
  --muted-dark: #d7c2c2;
  --accent: #920401;
  --gold: #c5a059;
  --gold-bright: #ffd046;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; }
h1 { font-size: clamp(48px, 8vw, 104px); }
h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 24px; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
.light h2 em { color: var(--accent); }
h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.dark .eyebrow { color: var(--gold); }
.light .eyebrow, .tint .eyebrow { color: var(--accent); }
.lede, .body-lg { font-size: 19px; max-width: 620px; }
.muted { color: var(--muted-dark); }
.small { font-size: 14px; margin-top: 24px; }
.h2-wide { max-width: 900px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid transparent; transition: opacity .15s, background .15s; white-space: nowrap; }
.btn:hover { opacity: .85; }
.btn-light { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink); font-weight: 600; }
.btn-ghost { border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover { background: rgba(197, 160, 89, .1); opacity: 1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(35, 15, 15, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); color: var(--paper); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; color: var(--gold); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted-dark); }
.nav-links a:hover { color: var(--paper); }
.nav .btn { height: 38px; font-size: 14px; }

/* Sections */
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--paper); border-top-color: var(--line-dark); }
.tint { background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 2.4fr; gap: 48px; }

/* Hero */
.hero { padding: 120px 0; }
.hero .lede { color: var(--muted-dark); margin-top: 28px; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }


/* Platform cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 48px; }
.card { padding: 32px 28px 8px 0; }
.card + .card { padding-left: 28px; border-left: 1px solid var(--line); }
.card li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 20px; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--gold); }
.flow li { position: relative; padding: 24px 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); }
.flow li span { display: block; font: 500 12px var(--sans); letter-spacing: .12em; color: var(--muted-dark); margin-bottom: 8px; }
.flow li + li::before { content: "→"; position: absolute; left: -36px; top: 52px; color: var(--gold); font-size: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 48px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px 20px 0 0; border-top: 2px solid var(--accent); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 15px; }
.cite { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Who */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.who div { border-top: 1px solid var(--line); padding-top: 20px; }
.who h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.who p { color: var(--muted); font-size: 15px; }

/* Checks */
.checks { margin-top: 32px; max-width: 620px; }
.checks li { padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 600; }

/* CTA */
.cta { text-align: center; padding: 140px 0; }
.cta h2 { font-size: clamp(44px, 7vw, 88px); }
.cta .body-lg { margin: 0 auto; }
.contact { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.contact .btn { height: 52px; padding: 0 28px; font-size: 16px; }

/* Footer */
.footer { background: var(--ink); color: var(--muted-dark); font-size: 14px; border-top: 1px solid var(--line-dark); padding: 64px 0 32px; }
.foot-logo { display: inline-block; margin-bottom: 20px; }
.foot-logo img { width: 260px; height: auto; max-width: 100%; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.foot-grid p + p { margin-top: 12px; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* Tablet */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { border-top-width: 1px; padding-bottom: 20px; }
  .split { grid-template-columns: 1fr; gap: 0; }
}

/* Mobile */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .section { padding: 80px 0; }
  .hero { padding: 72px 0; }
  .lede, .body-lg { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 28px 0 8px; border-left: 0; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .flow li + li::before { display: none; }
  .who { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact .btn { width: 100%; }
}

/* Gold rule above dark sections, echoing the logo's ring */
.dark { border-top: 1px solid var(--gold); }
