@font-face {
  font-family: 'Noto Sans Georgian';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/noto-sans-georgian-georgian-wght-normal.woff2') format('woff2-variations');
  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-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/noto-sans-georgian-latin-wght-normal.woff2') format('woff2-variations');
  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 {
  --bg: #0b0b10;
  --bg-soft: #12121a;
  --surface: #17171f;
  --line: #2a2a35;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #818cf8;
  --accent-strong: #6366f1;
  --accent-soft: rgb(129 140 248 / 0.14);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: 'Noto Sans Georgian', 'Segoe UI', Sylfaen, system-ui, sans-serif;
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #f8f9fc;
  --bg-soft: #eef0f7;
  --surface: #ffffff;
  --line: #d5d9e6;
  --text: #202336;
  --muted: #555d73;
  --accent: #4f46e5;
  --accent-strong: #4f46e5;
  --accent-soft: rgb(79 70 229 / 0.1);
  color-scheme: light;
}
[data-theme='dark'] .theme-moon, [data-theme='light'] .theme-sun { display: none; }
[data-theme='light'] .topbar { background: linear-gradient(to bottom, rgb(248 249 252 / 0.95), rgb(248 249 252 / 0.65)); }
[data-theme='light'] .lang, [data-theme='light'] .icon-btn, [data-theme='light'] .btn-ghost { background: rgb(255 255 255 / 0.85); }
[data-theme='light'] .hero-shade { background: radial-gradient(ellipse at center, rgb(248 249 252 / 0.75), rgb(248 249 252 / 0.96) 75%); }
[data-theme='light'] .motto { background-image: linear-gradient(90deg, #3730a3, #4f46e5, #4338ca); }
[data-theme='light'] .lead, [data-theme='light'] .checks li { color: var(--text); }
[data-theme='light'] .area li { background: rgb(32 35 54 / 0.05); color: var(--text); }
[data-theme='light'] .area li.important { background: var(--accent-soft); }

* { box-sizing: border-box; }
html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent-strong); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter);
  background: linear-gradient(to bottom, rgb(11 11 16 / 0.85), rgb(11 11 16 / 0));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgb(23 23 31 / 0.8); }
.lang button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--accent-soft); color: var(--text); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgb(23 23 31 / 0.8); color: var(--text); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #4f46e5; }
.btn-ghost { border-color: var(--line); background: rgb(23 23 31 / 0.7); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 12px; }

/* Slides */
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 96px var(--gutter) 64px;
  scroll-snap-align: start;
}
.slide:nth-of-type(even):not(.hero) { background: var(--bg-soft); }
.wide { width: min(1240px, 100%); margin-inline: auto; }
.center { text-align: center; display: grid; justify-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.6em; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 760px; }
.center .sub { margin-inline: auto; }
.split { width: min(1240px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split p { color: var(--muted); font-size: 1.08rem; }
.note { font-size: 0.95rem !important; border-left: 3px solid var(--accent); padding-left: 14px; }

/* Media frames */
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8); }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame.shot img { aspect-ratio: 16 / 10; object-position: top left; }
figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); background: var(--surface); }

/* Hero */
.hero { overflow: hidden; text-align: center; justify-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgb(11 11 16 / 0.35), rgb(11 11 16 / 0.9) 75%); }
.hero-content { position: relative; display: grid; justify-items: center; max-width: 860px; }
.hero-logo { width: clamp(96px, 12vw, 132px); height: auto; filter: drop-shadow(0 12px 40px rgb(99 102 241 / 0.45)); margin-bottom: 12px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.5rem); margin: 0; }
.motto { font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 600; background: linear-gradient(90deg, #c7d2fe, #818cf8, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0.2em 0 0.6em; }
.lead { color: #d4d4d8; font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 680px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 32px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); }
.facts strong { color: var(--text); font-size: 1.5rem; margin-right: 4px; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); animation: bob 2.4s ease-in-out infinite; }
.scroll-hint svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; font-size: 1rem; }

/* Gallery */
.gallery { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; cursor: zoom-in; transition: transform 0.2s ease, border-color 0.2s ease; }
.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile figcaption { font-size: 0.85rem; }

/* Lists and cards */
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; color: #d4d4d8; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.checks li::after { content: ''; position: absolute; left: 6px; top: calc(0.35em + 4px); width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.levels, .cards { margin-top: 28px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.levels article, .cards article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.levels p, .cards p { color: var(--muted); margin: 0; }
.badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.levels article:nth-child(2) .badge { opacity: 0.85; }

/* Topic map */
.topic-map { margin-top: 26px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.area h3 { display: flex; justify-content: space-between; gap: 8px; font-size: 1rem; }
.area h3 small { color: var(--muted); font-weight: 500; }
.area ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.area li { font-size: 0.82rem; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.05); color: #d4d4d8; }
.area li.important { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.area li.important::before { content: '★ '; color: var(--accent); }

/* Download */
.downloads { margin: 28px 0 18px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); width: min(980px, 100%); }
.dl { display: grid; gap: 4px; text-align: left; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.dl:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl strong { font-size: 1.15rem; }
.dl span { color: var(--muted); font-size: 0.92rem; }
.dl code { font-size: 0.8rem; color: var(--accent); }
.firstrun { width: min(760px, 100%); text-align: left; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; }
.firstrun summary { cursor: pointer; color: var(--text); }
.firstrun ul { margin: 10px 0 0; padding-left: 20px; }
.footer { margin-top: 40px; color: var(--muted); font-size: 0.9rem; }
.footer a { color: var(--accent); }

/* Slide dots and progress */
.dots { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 25; display: grid; gap: 10px; }
.dots a { width: 10px; height: 10px; border-radius: 50%; background: var(--line); position: relative; display: block; }
.dots a[aria-current='true'] { background: var(--accent); transform: scale(1.3); }
.dots a span { position: absolute; right: 20px; top: 50%; translate: 0 -50%; white-space: nowrap; font-size: 0.8rem; background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 30; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent-strong); transition: width 0.2s ease; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1280px, 94vw); width: 100%; color: var(--text); }
.lightbox::backdrop { background: rgb(0 0 0 / 0.85); backdrop-filter: blur(4px); }
.lightbox video { width: 100%; border-radius: 14px; background: #000; }
.lightbox .close { position: absolute; right: 10px; top: 10px; z-index: 2; }
.lightbox-title { text-align: center; margin-top: 10px; color: #d4d4d8; }

/* Presentation mode: hide the chrome, keep the slide controls */
body.presenting .topbar { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
body.presenting .topbar:hover, body.presenting .topbar:focus-within { opacity: 1; pointer-events: auto; }

/* Entrance animation (skipped with reduced motion) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > figure { order: 2; }
  .dots { display: none; }
  .slide { min-height: auto; padding-top: 88px; scroll-snap-align: none; }
  .hero { min-height: 100svh; }
  html { scroll-snap-type: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .topbar .btn-sm { display: none; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
  .btn, .tile, .dl { transition: none; }
}
