/* onlinebugalteri.ge — public site (TASK-021). No build step, no JavaScript. Light and dark by system setting. */
/* Noto Sans Georgian (SIL OFL 1.1, fonts/OFL.txt), self-hosted and subset: no third-party requests. */
@font-face {
  font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/noto-georgian.woff2?v=21") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/noto-latin.woff2?v=21") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/noto-latin-ext.woff2?v=21") format("woff2");
  unicode-range: U+20BE;
}
:root {
  --bg: #f7f8fc; --surface: #ffffff; --tint: #eef0fb; --ink: #0f172a; --muted: #5b6478; --line: #e3e6f0;
  --brand: #4f46e5; --brand-2: #06b6d4; --ok: #059669; --soon: #d97706;
  --radius: 18px; --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020; --surface: #121a30; --tint: #0f1730; --ink: #e8ecf8; --muted: #9aa4bd; --line: #223053;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 "Noto Sans Georgian", "Segoe UI", system-ui, -apple-system, sans-serif;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--brand), #7c3aed 55%, var(--brand-2));
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .7); transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(79, 70, 229, .8); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { box-shadow: var(--shadow); }
.btn--light { background: #fff; color: #312e81; box-shadow: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 620px; z-index: -1; opacity: .55;
  background: radial-gradient(40% 50% at 25% 40%, #a5b4fc, transparent 70%),
              radial-gradient(35% 45% at 75% 30%, #67e8f9, transparent 70%),
              radial-gradient(30% 40% at 60% 75%, #c4b5fd, transparent 70%);
}
@media (prefers-color-scheme: dark) { .hero::before { opacity: .28; } }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.grad { background: linear-gradient(120deg, var(--brand), #7c3aed, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.lead b { color: var(--ink); }
.lead--small { font-size: 1rem; font-weight: 600; color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .85rem;
  font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* dashboard mock */
.hero__card { perspective: 1200px; }
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow);
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .5s ease;
}
.mock:hover { transform: none; }
.mock__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 18px; }
.tag { font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 2px 8px; }
.mock__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.mock__stats div { background: var(--tint); border-radius: 14px; padding: 14px; }
.mock__stats small { display: block; color: var(--muted); font-size: .8rem; }
.mock__stats strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.mock__title { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.mock__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock__list li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; font-size: .92rem;
}
.mock__list b { font-variant-numeric: tabular-nums; }
.when { color: var(--brand); font-weight: 700; font-size: .82rem; }
.mock__list .ok { background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.mock__list .ok .when, .mock__list .ok b { color: var(--ok); }

/* sections */
.section { padding: 88px 0; scroll-margin-top: 68px; }
.section--tint { background: var(--tint); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .9rem; letter-spacing: .02em; margin-bottom: 8px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px; color: #fff;
  font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.ico { font-size: 1.8rem; display: block; margin-bottom: 14px; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  position: relative; padding: 16px 18px 16px 52px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; color: var(--muted);
}
.checks li::before {
  content: "✓"; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; background: var(--ok);
}
.checks b { color: var(--ink); }

.status { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.status ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.status li { margin: 6px 0; }
.badge { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; color: #fff; }
.badge--ok { background: var(--ok); }
.badge--soon { background: var(--soon); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

#contact { padding-top: 0; }
.final {
  text-align: center; color: #fff; border-radius: 28px; padding: 64px 24px;
  background: linear-gradient(135deg, #4338ca, #7c3aed 55%, #0891b2);
  box-shadow: 0 30px 60px -30px rgba(67, 56, 202, .8);
}
.final p { opacity: .9; font-size: 1.1rem; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot__in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* tablets and phones */
@media (max-width: 900px) {
  .hero__in, .trust { grid-template-columns: 1fr; gap: 40px; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .mock { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top__in { justify-content: space-between; gap: 10px; }
  .logo { font-size: .92rem; white-space: nowrap; gap: 8px; }
  .logo svg { width: 28px; height: 28px; }
  .btn--sm { padding: 0 14px; font-size: .88rem; min-height: 40px; }
  .mock { padding: 18px; }
  .mock__list li { grid-template-columns: 50px 1fr auto; padding: 10px; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 60px 0; }
  .steps, .grid, .status { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .mock { transform: none; }
}
