/* ==========================================================================
   Loki.Ge — shared base (tokens, reset, typography, buttons, icons)
   Used by the landing page (style.css) and the demo apps (demo.css).
   Brand: navy #111d42 · green #27a96f · light gray #e8ecf2 · error orange
   ========================================================================== */

:root {
  --navy-950: #070f27;
  --navy-900: #0b1534;
  --navy-800: #111d42;
  --navy-700: #1a2855;
  --navy-600: #283869;
  --navy-500: #3a4b80;

  --slate-600: #4a5675;
  --slate-500: #5f6b88;
  --slate-400: #8b95ad;
  --slate-300: #b6bfd1;

  --line: #dde2eb;
  --line-strong: #c9d0dd;
  --bg: #f5f7fa;
  --bg-2: #e9edf3;
  --card: #ffffff;

  --ink: #111d42;
  --ink-2: #3b4667;

  --green-700: #137447;
  --green-600: #1b8f5c;
  --green-500: #27a96f;
  --green-400: #45c08a;
  --green-200: #b9e8d1;
  --green-100: #d9f3e6;
  --green-50: #ecf9f2;

  --orange-700: #b5431a;
  --orange-600: #d4531f;
  --orange-500: #ec6a32;
  --orange-200: #fbcdb6;
  --orange-100: #fde3d6;
  --orange-50: #fef2eb;

  --font-sans: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans Georgian", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(17, 29, 66, .06), 0 1px 1px rgba(17, 29, 66, .04);
  --shadow: 0 12px 32px -14px rgba(17, 29, 66, .28), 0 2px 6px rgba(17, 29, 66, .06);
  --shadow-lg: 0 40px 80px -30px rgba(7, 15, 39, .45), 0 10px 24px -10px rgba(7, 15, 39, .2);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 6px; }

.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 0; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Display headings: Mtavruli via the font's `case` feature (keeps source text as normal Mkhedruli) */
.display { font-feature-settings: "case" 1; font-weight: 800; letter-spacing: .005em; line-height: 1.16; }

.h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.25; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-2); max-width: 62ch; }
.lead--light { color: var(--slate-300); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--green-400); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--card); --b-fg: var(--ink); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .i { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }

.btn--primary { --b-bg: var(--green-400); --b-fg: var(--navy-900); box-shadow: 0 8px 20px -10px rgba(39, 169, 111, .8); }
.btn--primary:hover { --b-bg: #52c995; box-shadow: 0 12px 26px -10px rgba(39, 169, 111, .9); }
.btn--dark { --b-bg: var(--navy-800); --b-fg: #fff; }
.btn--dark:hover { --b-bg: var(--navy-700); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.btn--ghost:hover { --b-bd: var(--ink); --b-bg: rgba(255, 255, 255, .6); }
.btn--outline-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .28); }
.btn--outline-light:hover { --b-bd: #fff; --b-bg: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .88rem; border-radius: 10px; }
.btn--lg { min-height: 54px; padding: 0 22px; font-size: 1rem; border-radius: 14px; }
.btn--xs { min-height: 32px; padding: 0 12px; font-size: .78rem; border-radius: 8px; gap: 6px; box-shadow: none; }
.btn--xs:hover { transform: none; }
.btn--block { width: 100%; }
