/* Touchless website — shared chrome.
 *
 * Loaded by every page (index, downloads, about, privacy). Each page
 * keeps its OWN inline <style> for page-specific layouts; this file
 * is just the common visual language: colours, body background,
 * topnav, panels, buttons, scroll-reveal animation, footer.
 *
 * Author: Konstantin Markov
 */

:root {
  --bg1: #07131d;
  --bg2: #0c2331;
  --panel: rgba(10, 28, 39, 0.82);
  --panel-border: rgba(90, 217, 255, 0.22);
  --primary: #17bfe6;
  --primary-2: #58e3ff;
  --text: #f2fbff;
  --muted: #a9c6d2;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(23, 191, 230, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(88, 227, 255, 0.14), transparent 30%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  padding: 24px;
  scroll-behavior: smooth;
}

.shell { width: min(1040px, 100%); margin: 0 auto; display: grid; gap: 24px; }

/* Scroll-reveal: any element with .reveal starts hidden + nudged
 * down a few px, then animates into place once the IntersectionObserver
 * (in site.js) tags it .is-visible. prefers-reduced-motion users skip
 * the transform entirely so they never see a "stuck offset" page. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  body { scroll-behavior: auto; }
}

/* ---- Top navigation (shared across pages) ---- */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800;
  letter-spacing: -0.01em; font-size: 16px;
}
.logo-mini {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  position: relative; flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 14px rgba(23,191,230,0.30);
}
.logo-mini::before {
  content: "TL"; position: absolute; inset: 0;
  display: grid; place-items: center; color: #032431;
  font-weight: 900; letter-spacing: 0.08em; font-size: 11px;
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  color: var(--muted); text-decoration: none; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--primary-2); background: rgba(23,191,230,0.14); border: 1px solid rgba(88,227,255,0.2); }

/* ---- Buttons ---- */
.btn {
  appearance: none; border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; justify-content: center; align-items: center;
  min-width: 170px; padding: 13px 18px; border-radius: 14px;
  font-weight: 800; color: #032431;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 16px rgba(23, 191, 230, 0.25), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.18s ease,
              box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(23, 191, 230, 0.40), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn:active { transform: translateY(0); transition-duration: 0.06s; }
.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(88,227,255,0.35);
  box-shadow: 0 6px 16px rgba(88, 227, 255, 0.15);
}

/* ---- Page panels (used by hero, content cards, closing CTA) ---- */
.panel {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px);
  padding: 32px 28px;
}

/* ---- Footer ---- */
footer.site-footer {
  color: var(--muted); font-size: 13px; padding: 4px 6px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
footer.site-footer a { color: var(--primary-2); text-decoration: none; font-weight: 700; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer .dot { opacity: 0.5; }

/* ---- Mobile chrome adjustments ---- */
@media (max-width: 640px) {
  body { padding: 16px; }
  .topnav, .panel { border-radius: 18px; }
  .panel { padding: 22px 20px; }
  .nav-link { padding: 6px 10px; font-size: 13px; }
  .brand-link { font-size: 14px; }
  .btn { width: 100%; min-width: 0; }
}
