/* Фемида landing — light theme of the IAM design system, same tokens as
   the web app (frontend/src/styles/tokens.css). Static, no framework. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/inter-450-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/inter-450-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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/inter-450-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/jetbrainsmono-400-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/jetbrainsmono-400-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: light;
  --canvas: #f8fafc;
  --canvas-deep: #f3f5f8;
  --surface: #ffffff;
  --sunken: #f5f7fa;
  --stroke: rgba(15, 23, 42, 0.09);
  --stroke-strong: rgba(15, 23, 42, 0.16);
  --divider: rgba(15, 23, 42, 0.07);
  --ink: #0f172a;
  --ink-mute: #475569;
  --ink-dim: #64748b;
  --ink-faint: #94a3b8;
  --cta-hi: #ffa564;
  --cta-lo: #e26d20;
  --cta-ink: #1a0d04;
  --accent: #9e7a34;
  --accent-ink: #7a5a1c;
  --accent-soft: rgba(176, 138, 62, 0.11);
  --accent-line: rgba(176, 138, 62, 0.34);
  --accent-grad: linear-gradient(135deg, #ecd39f, #c19a52);
  --ok-bg: rgba(5, 150, 105, 0.09);
  --ok-line: rgba(5, 150, 105, 0.3);
  --ok-ink: #047857;
  --warn-bg: rgba(217, 119, 6, 0.1);
  --warn-line: rgba(217, 119, 6, 0.32);
  --warn-ink: #a35207;
  --danger-bg: rgba(225, 29, 72, 0.07);
  --danger-line: rgba(225, 29, 72, 0.3);
  --danger-ink: #be123c;
  --info-bg: rgba(37, 99, 235, 0.08);
  --info-line: rgba(37, 99, 235, 0.24);
  --info-ink: #1d4ed8;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-2: 0 24px 60px -28px rgba(15, 23, 42, 0.28);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.65, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(176, 138, 62, 0.28);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
}

.mono {
  font-family: var(--font-mono);
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.wm {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.wm span {
  color: var(--accent);
}

.wm span + span {
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-mute);
  border-radius: var(--r-sm);
  transition: color 120ms, background 120ms;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
}

.top-act {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform 140ms var(--ease), background 140ms, border-color 140ms;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-cta {
  color: var(--cta-ink);
  font-weight: 600;
  background: linear-gradient(180deg, var(--cta-hi), var(--cta-lo));
  box-shadow: 0 10px 24px -10px rgba(255, 138, 61, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-cta:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--stroke-strong);
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.28);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

/* Common section bits */

section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
}

.sec-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.sec-head p {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--ink-mute);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 5px;
  color: var(--ink-mute);
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid var(--stroke);
}

.chip .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.c-danger { color: var(--danger-ink); background: var(--danger-bg); border-color: var(--danger-line); }
.c-warn { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-line); }
.c-info { color: var(--info-ink); background: var(--info-bg); border-color: var(--info-line); }
.c-ok { color: var(--ok-ink); background: var(--ok-bg); border-color: var(--ok-line); }
.c-accent { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }

.card {
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

/* Hero */

.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(800px 520px at 82% 0%, rgba(176, 138, 62, 0.14), transparent 65%),
    radial-gradient(600px 420px at 0% 100%, rgba(37, 99, 235, 0.06), transparent 70%),
    var(--canvas);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  margin: 22px 0 30px;
  max-width: 54ch;
  font-size: 18px;
  color: var(--ink-mute);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Product proof (report mock) */

.proof {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.proof-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--divider);
  background: var(--sunken);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.proof-bar .dots {
  margin-left: auto;
  display: flex;
  gap: 5px;
}

.proof-bar .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
}

.proof-body {
  padding: 20px;
}

.proof-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.file-ico {
  width: 34px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 5px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: linear-gradient(180deg, rgba(176, 138, 62, 0.16), rgba(176, 138, 62, 0.04));
  border: 1px solid var(--accent-line);
}

.proof-file b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.proof-file span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}

.proof-file .chip {
  margin-left: auto;
}

.meter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.risk {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 13px;
  margin-bottom: 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  border-left-width: 3px;
  background: var(--sunken);
  font-size: 13.5px;
}

.risk.l-c { border-left-color: #e11d48; }
.risk.l-h { border-left-color: #d97706; }
.risk.l-m { border-left-color: #2563eb; }

.risk .clause {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}

.risk .issue {
  font-weight: 500;
}

.risk .fix {
  margin-top: 2px;
  color: var(--ink-mute);
}

.risk .fix b {
  font-weight: 500;
  color: var(--accent-ink);
}

.verdict {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 13.5px;
}

.verdict .k {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.proof-cap {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  color: var(--ink-faint);
}
