/* IntegriMark homepage — verifiable-integrity infrastructure.
   Cool neutrals, one gold accent, self-hosted Inter, dark governance panels,
   literal-px spacing. Fully self-hosted (CSP-safe: no CDN, no external fonts). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter.woff2") format("woff2");
}

:root {
  --bg: #fbfbfc; --panel: #f4f5f7; --card: #ffffff;
  --ink: #0b0d12; --ink-2: #141922;
  --text: #0d1117; --muted: #59616f; --faint: #8a93a2;
  --line: #e8eaee; --line-2: #dce0e6;
  --gold: #c0912f; --gold-lite: #e6c66e; --gold-deep: #986c14; --gold-soft: #f7efd7;
  --on-dark: #eceff5; --on-dark-mute: #9aa4b6;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(13,17,23,.06), 0 1px 1px rgba(13,17,23,.04);
  --sh-2: 0 6px 16px -4px rgba(13,17,23,.10), 0 2px 6px -2px rgba(13,17,23,.06);
  --sh-3: 0 24px 48px -16px rgba(13,17,23,.22), 0 8px 20px -10px rgba(13,17,23,.12);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.021em; line-height: 1.12; margin: 0; }
a { color: var(--gold-deep); text-decoration: none; }

/* ---------------- spacing model (literal px) ---------------- */
.section { padding: 80px 20px; }
@media (min-width: 720px) { .section { padding: 96px 32px; } }
@media (min-width: 1120px) { .section { padding: 104px 44px; } }
.alt { background: var(--panel); }
.inner { max-width: 1080px; margin: 0 auto; }
.inner-narrow { max-width: 760px; margin: 0 auto; }

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(251,251,252,0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .topbar { padding-left: 32px; padding-right: 32px; } }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-deep); }
.mark { width: 24px; height: 24px; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.02em; }
.topbar-cta {
  font: 600 13.5px var(--sans); color: #241b02;
  background: linear-gradient(180deg, var(--gold-lite), var(--gold));
  padding: 8px 15px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--sans); border-radius: 10px; padding: 13px 20px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn-lg { font-size: 16px; padding: 15px 24px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-lite), var(--gold)); color: #241b02; box-shadow: 0 8px 20px -8px rgba(192,145,47,0.6), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(192,145,47,0.7); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.24); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-lite); color: var(--gold-lite); }

/* ---------------- hero (dark) ---------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(168deg, #0b0d12, #141922); color: var(--on-dark); text-align: center; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(230,198,110,.11) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero .inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font: 600 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-lite); background: rgba(230,198,110,0.08); border: 1px solid rgba(230,198,110,0.22);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5.8vw, 56px); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0 auto 20px; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--gold-lite); }
.hero-sub { font-size: clamp(16px, 2.1vw, 19px); color: #c7ccd6; max-width: 64ch; margin: 0 auto 30px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------- section head ---------------- */
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { color: var(--gold-deep); background: var(--gold-soft); border-color: #ecdcae; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.028em; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; line-height: 1.55; }

/* ---------------- what it does (lead paragraph) ---------------- */
.lead-body { max-width: 64ch; margin: 0 auto; font-size: clamp(16px, 2vw, 18.5px); line-height: 1.7; color: var(--muted); }
.lead-body strong { color: var(--text); font-weight: 600; }

/* ---------------- cards (problems trio + benefits grid) ---------------- */
.trio { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 780px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 760px) { .how-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.how { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s, border-color .15s; }
.how:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.how-ic { width: 44px; height: 44px; border-radius: var(--r); background: var(--gold-soft); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.how-ic svg { width: 22px; height: 22px; }
.how h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 9px; }
.how p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------------- trust band (dark) ---------------- */
.trust { background: radial-gradient(90% 130% at 50% 0%, rgba(214,171,79,0.12), transparent 58%), linear-gradient(168deg, #0b0d12, #141922); color: var(--on-dark); text-align: center; }
.trust h2 { font-size: clamp(25px, 4vw, 35px); font-weight: 800; letter-spacing: -0.028em; color: #fff; margin: 0 auto 18px; max-width: 22ch; }
.trust p { color: #c7ccd6; font-size: 16px; line-height: 1.65; max-width: 74ch; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.badge { font: 600 12.5px var(--sans); color: var(--gold-lite); background: rgba(230,198,110,0.08); border: 1px solid rgba(230,198,110,0.22); padding: 8px 13px; border-radius: 999px; }

/* ---------------- team ---------------- */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 840px; margin: 0 auto; }
@media (min-width: 640px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-1); }
.member-head { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(180deg, var(--gold-lite), var(--gold)); color: #241b02; display: flex; align-items: center; justify-content: center; font: 800 18px var(--sans); letter-spacing: -0.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
.member-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.member-role { font: 600 11.5px var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }
.member-bio { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.member-link { font: 600 13px var(--sans); color: var(--gold-deep); display: inline-flex; align-items: center; gap: 5px; }
.member-link:hover { color: var(--gold); }

/* ---------------- closing (dark) ---------------- */
.closing { background: radial-gradient(90% 130% at 50% 0%, rgba(214,171,79,0.17), transparent 60%), linear-gradient(168deg, #0b0d12, #141922); color: var(--on-dark); text-align: center; }
.closing h2 { font-size: clamp(27px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0 auto 14px; max-width: 20ch; }
.closing p { color: #c7ccd6; font-size: 16px; margin: 0 auto 26px; max-width: 60ch; line-height: 1.6; }

/* ---------------- footer ---------------- */
.foot { padding: 56px 20px; text-align: center; border-top: 1px solid var(--line); }
.foot .brand { justify-content: center; margin-bottom: 12px; }
.foot p { margin: 6px 0; font-size: 14px; color: var(--muted); }
.foot a { color: var(--gold-deep); }
.foot-small { color: var(--faint); font-size: 12.5px; max-width: 66ch; margin: 14px auto 0; line-height: 1.55; }

/* ---------------- entrance ---------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { transform: translateY(14px); opacity: .55; } to { transform: none; opacity: 1; } }
  .hero .eyebrow, .hero h1, .hero-sub, .hero-cta { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .06s; } .hero-sub { animation-delay: .14s; } .hero-cta { animation-delay: .22s; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
