/* ============================================================
   LegalDozor — design system (LIGHT)
   Clean, premium, technical. Cyrillic-native type.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* surfaces — soft cool white */
  --bg-0: oklch(0.985 0.004 256);   /* page base */
  --bg-1: oklch(1 0 0);             /* white panel */
  --bg-2: oklch(0.975 0.005 256);   /* faint inset */
  --bg-3: oklch(0.95 0.007 256);    /* hover */

  /* tint for subtle fills on white (cool dark, very low alpha) */
  --tint: oklch(0.3 0.03 264 / 0.03);
  --tint-2: oklch(0.3 0.03 264 / 0.05);
  --tint-3: oklch(0.3 0.03 264 / 0.07);

  /* lines */
  --line: oklch(0.3 0.03 264 / 0.1);
  --line-2: oklch(0.3 0.03 264 / 0.16);
  --line-strong: oklch(0.3 0.03 264 / 0.3);

  /* text */
  --text: oklch(0.26 0.022 264);
  --text-dim: oklch(0.44 0.02 264);
  --text-mute: oklch(0.56 0.018 264);
  --text-faint: oklch(0.68 0.015 264);

  /* accent — azure (trust / legal-tech) */
  --accent: oklch(0.56 0.17 253);
  --accent-bright: oklch(0.52 0.18 252);
  --accent-deep: oklch(0.46 0.17 255);
  --accent-soft: oklch(0.56 0.17 253 / 0.1);
  --accent-glow: oklch(0.56 0.17 253 / 0.2);

  /* functional status colors (product semantics) */
  --ok: oklch(0.52 0.13 160);        /* ready to send */
  --ok-dim: oklch(0.52 0.13 160 / 0.12);
  --warn: oklch(0.57 0.13 62);       /* needs check */
  --warn-dim: oklch(0.57 0.13 62 / 0.13);
  --queue: oklch(0.62 0.02 264);     /* in queue */

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px oklch(0.3 0.03 264 / 0.05), 0 12px 28px -18px oklch(0.3 0.03 264 / 0.2);
  --shadow-2: 0 2px 6px oklch(0.3 0.03 264 / 0.06), 0 40px 80px -44px oklch(0.3 0.03 264 / 0.3);

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Onest', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

/* atmospheric background glow (very subtle on light) */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-field::before,
.bg-field::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.bg-field::before {
  width: 780px; height: 780px;
  top: -320px; left: 50%;
  transform: translateX(-55%);
  background: radial-gradient(circle, oklch(0.56 0.17 253 / 0.12), transparent 70%);
}
.bg-field::after {
  width: 600px; height: 600px;
  bottom: -240px; right: -140px;
  background: radial-gradient(circle, oklch(0.56 0.17 253 / 0.08), transparent 70%);
}
/* faint grid */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(oklch(0.3 0.03 264 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.3 0.03 264 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 25%, transparent 75%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ---- typographic scale ---- */
.display {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--text-dim); line-height: 1.55; font-weight: 400; }

/* kicker / eyebrow */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 500;
}
.kicker::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font);
  font-size: 15.5px; font-weight: 500;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.2) inset, 0 12px 26px -12px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.2) inset, 0 18px 34px -12px var(--accent-glow); }
.btn-ghost {
  background: var(--bg-1);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--line-strong); }

/* ---- panels / cards ---- */
.panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.queue { background: var(--queue); }

/* logo mark — scanning reticle */
.mark {
  width: 30px; height: 30px;
  position: relative;
  flex: none;
}
.mark span {
  position: absolute;
  width: 9px; height: 9px;
  border: 2px solid var(--accent);
}
.mark span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.mark span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.mark span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.mark span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.mark::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 2px;
  background: var(--accent);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: oklch(0.8 0.01 264); border-radius: 999px; border: 3px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: oklch(0.7 0.012 264); }
