/* The landing page of VERTOK (PLAN.md 5.2): the hub renders it; no framework, no inline
   styles or scripts (its CSP allows only the hub's own files). */

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/fonts/noto-sans-georgian.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
}

:root {
  --ink: #15171c;
  --muted: #5a6170;
  --line: #e2e5eb;
  --page: #f6f7f9;
  --surface: #ffffff;
  --accent: #3446b4;
  --accent-strong: #283896;
  --accent-soft: #eceffb;
  --danger: #b3261e;
  --radius: 14px;
  color-scheme: light;
  font-family: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 20px 24px;
}
.logo {
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav .lang { color: var(--muted); text-decoration: none; padding: 8px 10px; font-size: 15px; }
.nav .lang:hover { color: var(--ink); }
.link { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.link:hover { background: var(--accent-soft); }

.button, button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 10px 18px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--accent);
}
.button:hover, button:hover { background: var(--accent-strong); }

.hero {
  max-width: 820px; margin: 0 auto; padding: 56px 24px 32px; text-align: center;
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(30px, 5vw, 48px); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 750;
}
.lead { margin: 0 auto 32px; max-width: 620px; color: var(--muted); font-size: 18px; }

.prompt {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 12px 32px -12px rgb(16 24 40 / 18%);
}
.prompt:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.prompt textarea {
  display: block; width: 100%; min-height: 110px; resize: vertical;
  border: 0; padding: 6px 8px; font: inherit; font-size: 18px; color: var(--ink); background: transparent;
}
.prompt textarea:focus-visible { outline: none; }
.prompt textarea[aria-invalid="true"] { background: #fdf3f2; border-radius: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px 2px 8px; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 500; }

.examples {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  margin: 20px 0 0; color: var(--muted); font-size: 15px;
}
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1000px; margin: 40px auto 64px; padding: 0 24px;
}
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .number {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.step h2 { margin: 12px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.missing { max-width: 640px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.missing h1 { font-size: 28px; }
.missing p { color: var(--muted); }

.foot {
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 24px;
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .hero { padding-top: 32px; }
  .steps { grid-template-columns: 1fr; }
  .row { flex-direction: column; align-items: stretch; }
  .row button { justify-content: center; }
  .nav .link { display: none; }
}
