
/* ==========================================================================
   InfiniHash brand theme (matches https://infinihash.com)
   Dark navy, cyan accent, Inter (self-hosted). Overrides the tokens above; layout is unchanged.
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/public/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --navy: #080c1a; --navy-m: #0d1225; --navy-l: #111827;
  --cyan: #00c8ff; --cyan-l: #38d8ff; --cyan-d: #0099cc; --violet: #8b5cf6; --orange: #f97316;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px; --radius-lg: 12px;
  --bg: #080c1a; --bg-alt: #0d1225; --bg-raised: #0a1628;
  --fg: #e8f4ff; --fg-muted: #93a6c4; --border: #1a2a4a; --border-strong: #4a6a9c;
  --accent: #00c8ff; --accent-fg: #04121f; --accent-hover: #38d8ff; --accent-soft: #0b2a44;
  --ok: #4ade80; --ok-soft: #0e2a1c; --warn: #fbbf24; --warn-soft: #33260a; --danger: #f87171; --danger-soft: #3a1519; --info: #60a5fa; --info-soft: #0b2140;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 3px rgba(0, 200, 255, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080c1a; --bg-alt: #0d1225; --bg-raised: #0a1628;
    --fg: #e8f4ff; --fg-muted: #93a6c4; --border: #1a2a4a; --border-strong: #4a6a9c;
    --accent: #00c8ff; --accent-fg: #04121f; --accent-hover: #38d8ff; --accent-soft: #0b2a44;
    --ok: #4ade80; --ok-soft: #0e2a1c; --warn: #fbbf24; --warn-soft: #33260a; --danger: #f87171; --danger-soft: #3a1519; --info: #60a5fa; --info-soft: #0b2140;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --focus: 0 0 0 3px rgba(0, 200, 255, 0.45);
  }
}
body {
  position: relative;
  line-height: 1.6;
  background: radial-gradient(ellipse 80% 520px at 50% 0, rgba(0, 200, 255, 0.08) 0, transparent 70%) no-repeat, var(--bg);
}
/* Faint plus-grid behind the top of every page, like the infinihash.com hero */
body::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 640px; z-index: 0; pointer-events: none; opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a2a4a' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
main.main, .site-footer, .banner { position: relative; z-index: 1; }
::selection { background: rgba(0, 200, 255, 0.35); color: #fff; }
h1, h2, h3 { color: #fff; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.lede, .hero-promise { color: var(--fg-muted); }
a { text-underline-offset: 3px; }
code { background: var(--navy-l); border: 1px solid var(--border); }
pre.pre { background: #050d1f; }

/* Section labels (the small uppercase cyan eyebrow on infinihash.com) */
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }

/* Header: translucent navy bar, logo mark, muted links that light up */
.site-header { background: rgba(8, 12, 26, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.bar { min-height: 72px; gap: var(--space-4); }
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; gap: 12px; display: inline-flex; align-items: center; }
.brand::before {
  content: ""; width: 44px; height: 44px; flex: none; border-radius: 10px;
  background: url("/public/brand/logo.png") center / cover no-repeat, var(--navy-m);
}
.brand-mark { display: none; }
.primary-nav { gap: var(--space-1); }
.primary-nav a, .menu-panel a { color: var(--fg-muted); font-size: 0.9375rem; font-weight: 500; transition: color 0.15s; padding: var(--space-1) 10px; }
.primary-nav a:hover, .menu-panel a:hover { background: transparent; color: #fff; }
.menu-panel a:hover { background: var(--bg-alt); }
.primary-nav a[aria-current="page"] { background: transparent; color: var(--accent); font-weight: 600; }
.menu-panel { background: var(--bg-raised); border-color: var(--border); box-shadow: var(--shadow); }
.linklike { color: var(--fg-muted); }
.linklike:hover { background: var(--bg-alt); color: #fff; }

/* Hero: centred, badge eyebrow, bold headline */
.hero { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; padding: var(--space-7) 0 var(--space-4); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; margin-bottom: var(--space-3); }
.hero .eyebrow { display: inline-block; background: rgba(0, 200, 255, 0.1); border: 1px solid rgba(0, 200, 255, 0.3); color: var(--accent); padding: 6px 16px; border-radius: 100px; letter-spacing: 0.12em; margin-bottom: var(--space-4); }
.hero .lede, .hero-promise { margin-left: auto; margin-right: auto; font-size: clamp(1rem, 2vw, 1.15rem); max-width: 64ch; }
.hero .cta-row, .hero .hero-badges { justify-content: center; }
.hero .cta-row { margin-top: var(--space-4); gap: var(--space-3); }
.hero .cta-row + p, .hero .cta-row + .muted { margin-top: var(--space-3); }
.hero-app { text-align: left; max-width: none; margin: 0; padding-top: var(--space-3); padding-bottom: var(--space-3); }
.hero-app .eyebrow { display: block; background: none; border: 0; padding: 0; border-radius: 0; margin-bottom: var(--space-2); }
.hero-app .lede, .hero-app .hero-promise { margin-left: 0; margin-right: 0; }
.hero-app .cta-row, .hero-app .hero-badges { justify-content: flex-start; }
.section { margin-top: var(--space-7); }
.section > h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 0; }

/* Buttons: cyan-to-periwinkle with navy text (white on cyan fails AA, so the label stays dark) */
.btn { border-radius: 8px; border: 1.5px solid var(--border-strong); background: transparent; color: var(--fg); font-weight: 600; padding: 10px 18px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { background: transparent; border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, #00c8ff, #7c9bff); border-color: transparent; color: var(--accent-fg); box-shadow: 0 2px 16px rgba(0, 200, 255, 0.2); }
.btn-primary:hover { background: linear-gradient(90deg, #38d8ff, #93adff); border-color: transparent; color: var(--accent-fg); box-shadow: 0 6px 28px rgba(0, 200, 255, 0.35); transform: translateY(-2px); }
.btn-sm { padding: 5px 12px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: none; }

/* Cards */
.card, .app-card, .stat, .callout { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: none; }
.card, .app-card { padding: 1.75rem; }
.app-card, .plan-card { transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.app-card:hover, .plan-card:hover { border-color: rgba(0, 200, 255, 0.45); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 200, 255, 0.09); }
.app-card-internal { border-color: var(--border); }
.app-card h3 a { color: #fff; }
.app-tagline { color: var(--accent); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-beta { border-color: rgba(0, 200, 255, 0.45); box-shadow: 0 0 24px rgba(0, 200, 255, 0.08); }
.card-grid { gap: 1.5rem; }
.steps li::before { background: linear-gradient(135deg, #8b5cf6, #00c8ff); color: #04121f; }
.quote { background: var(--bg-alt); border-left-color: var(--accent); }
.empty { border-color: var(--border-strong); background: var(--bg-raised); }
.filters { background: var(--bg-raised); border-color: var(--border); }
.alert { background: var(--bg-raised); }
.alert-success { background: var(--ok-soft); } .alert-info { background: var(--info-soft); } .alert-warning { background: var(--warn-soft); } .alert-error { background: var(--danger-soft); }
.banner { background: var(--info-soft); border-bottom-color: var(--border); }
.badge { border-color: var(--border-strong); }
.badge-ok { background: rgba(34, 197, 94, 0.12); } .badge-info { background: rgba(0, 200, 255, 0.1); color: var(--accent); border-color: rgba(0, 200, 255, 0.4); }
.tabs a[aria-current="page"] { color: var(--accent); }

/* Forms */
input:not([type="checkbox"]):not([type="radio"]), select, textarea { background: #050d1f; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--fg); }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* Tables */
.table thead th { background: var(--bg-alt); color: var(--fg-muted); }
.table th, .table td { border-bottom-color: var(--border); }
.table th[data-sort]::after { color: var(--border-strong); }

/* Footer: darker navy, centred, muted links */
.site-footer { background: #040810; border-top: 1px solid var(--border); padding: var(--space-5) 0 var(--space-4); text-align: center; color: var(--fg-muted); }
.site-footer .footer-inner { flex-direction: column; align-items: center; gap: var(--space-3); }
.site-footer nav { justify-content: center; }
.site-footer a { color: var(--fg-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer strong { color: var(--fg); }

/* Segmented control / sticky actions (AttestProof reviewer page) */
.seg label { background: var(--bg-raised); border-color: var(--border-strong); }
.seg input:checked + label { color: var(--accent-fg); }
.sticky-actions { background: rgba(8, 12, 26, 0.95); }
.seg input[value="revoke"]:checked + label, .seg input[value="unknown"]:checked + label { color: #1a0a05; }

@media (max-width: 800px) {
  .hero { padding-top: var(--space-6); }
  .bar { gap: var(--space-2); }
  .brand::before { width: 36px; height: 36px; }
  .section { margin-top: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover, .app-card:hover, .plan-card:hover { transform: none; }
}
/* On-screen artifact previews and printouts stay paper-white by design; printing ignores the dark theme */
@media print {
  body::before { display: none; }
  body { background: #fff; }
  h1, h2, h3, .brand { color: #000; }
}
