/* ─── Design system ──────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:       #f0f4f9;
  --surface:  rgba(255,255,255,0.90);
  --border:   rgba(15,23,42,0.09);
  --ink:      #0f172a;
  --muted:    #64748b;
  --dim:      #94a3b8;
  --accent:   #2563eb;
  --accent2:  #1d4ed8;
  --teal:     #0891b2;
  --white:    #ffffff;

  --max-width: 1200px;
  --gap: 140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(15,23,42,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  overflow-x: hidden;
}

/* ─── Gradient overlay — přepíná JS přes třídu na body ──────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}

/* Diagonální sweep */
body.grad-2::before {
  background:
    radial-gradient(ellipse 60% 50% at 0%   0%,   rgba(29,78,216,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(147,197,253,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 35% 40% at 55%  0%,   rgba(37,99,235,0.07) 0%, transparent 60%);
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ─── Layout ──────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

section { padding: var(--gap) 0; }

/* ─── Typography ──────────────────────────────────────────────────── */

h1 {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ─── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  background: none;
  padding: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.30);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.45);
}

.btn-ghost {
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 13px 26px;
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(15,23,42,0.2);
  background: rgba(255,255,255,0.9);
}

/* ─── Label ───────────────────────────────────────────────────────── */

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.25);
  padding: 7px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

/* ─── Glass card ──────────────────────────────────────────────────── */

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}

/* ─── Scroll reveal ───────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root { --gap: 80px; }
  .wrap { padding: 0 24px; }
}

/* ─── Nav ─────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(240,244,249,0.92);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 1px 20px rgba(15,23,42,0.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--ink); }

.nav__contact {
  color: var(--accent) !important;
  font-weight: 600;
}

/* ─── Lang switch ─────────────────────────────────────────────────── */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  padding: 1px;
  opacity: 0.45;
  transition: opacity 0.2s, border-color 0.2s;
}

.lang-btn img { border-radius: 2px; display: block; }
.lang-btn:hover { opacity: 0.8; }

.lang-btn.active {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(37,99,235,0.07);
}

/* ─── Burger ──────────────────────────────────────────────────────── */

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ─── Mobile nav ≤ 860px ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav__burger { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(240,244,249,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15,23,42,0.10);
  }

  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    padding: 16px 32px;
    border-top: 1px solid var(--border);
    font-size: 15px;
  }

  .lang-switch { padding: 14px 32px; border-top: 1px solid var(--border); }
}

/* ─── Footer ──────────────────────────────────────────────────────── */

.footer {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  padding: 72px 0 48px;
}

.footer__top {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.80;
}

.footer__tagline { font-size: 14px; color: rgba(255,255,255,0.35); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer__legal { font-size: 12px; color: rgba(255,255,255,0.30); line-height: 1.6; }
.footer__legal a { color: rgba(255,255,255,0.50); transition: color 0.2s; }
.footer__legal a:hover { color: #ffffff; }

.footer__nav { display: flex; gap: 28px; }
.footer__nav a { font-size: 13px; color: rgba(255,255,255,0.40); transition: color 0.2s; }
.footer__nav a:hover { color: #ffffff; }

.footer__copy { font-size: 12px; color: rgba(255,255,255,0.20); white-space: nowrap; }
