/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg: #f8f5f0;
  --bg-alt: #f0ece5;
  --surface: #ffffff;
  --hero-bg: #0c1520;
  --hero-bg2: #0f1e30;
  --text: #1c2533;
  --muted: #5a6a7e;
  --accent: #b87328;
  --accent-hover: #9e6220;
  --accent-light: #f5eddf;
  --border: #e0d9d0;
  --border-dark: rgba(255, 255, 255, 0.10);
  --shadow-sm: 0 2px 8px rgba(28, 37, 51, 0.06);
  --shadow: 0 6px 24px rgba(28, 37, 51, 0.09);
  --shadow-lg: 0 16px 48px rgba(28, 37, 51, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --container: 1120px;
  --font-display: "Cormorant Garant", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); }

p { margin: 0 0 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-top: 0;
}

h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 700; margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 600; margin-bottom: 0.6rem; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -52px;
  left: 8px;
  background: var(--text);
  color: #fff;
  padding: 0.55rem 0.9rem;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding: 4rem 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 2rem;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(248, 245, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
}

.brand {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, var(--hero-bg2), #1e3a5f);
  flex-shrink: 0;
}

/* Desktop nav — hidden on mobile by default */
.main-nav {
  display: none;
  flex: 1;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.lang-switcher span {
  display: none;
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.lang-link:hover {
  color: var(--accent);
  background: var(--bg-alt);
}

.lang-link.is-active {
  color: #fff;
  background: var(--accent);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.nav-toggle:hover { border-color: var(--accent); }

.bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Open state */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu open */
.main-nav.is-open {
  display: block;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(248, 245, 240, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  z-index: 199;
  animation: slideDown 0.22s ease;
}

.main-nav.is-open .nav-list {
  flex-direction: column;
  gap: 0.15rem;
}

.main-nav.is-open .nav-link {
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(184, 115, 40, 0.30);
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(184, 115, 40, 0.38);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-dark);
  color: rgba(255, 255, 255, 0.88);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-full { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg2) 60%, #132237 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(184, 115, 40, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.hero-copy {
  color: #fff;
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.1rem;
  line-height: 1.4;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 44ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero photo */
.hero-photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(12, 21, 32, 0.5) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-img-frame img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Copper accent corner */
.hero-img-frame::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 64px;
  height: 64px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.6;
  z-index: 2;
}

/* ============================================================
   S ČÍM POMÁHÁM — CHIPS
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.card h3 { color: var(--text); }

.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ============================================================
   CASE STUDY
   ============================================================ */
.cases {
  display: grid;
  gap: 1rem;
}

.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 2rem;
}

.case-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--accent-light);
  border: 1px solid rgba(184, 115, 40, 0.25);
  color: var(--accent-hover);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.case h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 1rem;
}

.case-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.case-heading h3 { margin: 0; }

.case ul {
  margin: 0 0 1.2rem 1.1rem;
  padding: 0;
  color: var(--muted);
}

.case ul li { margin-bottom: 0.3rem; }

.case-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin: 0;
  flex-shrink: 0;
}

.case-brand-logo {
  width: 120px;
  height: auto;
}

.case-brand a {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: none;
}

.case-brand a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .case-top { grid-template-columns: 1fr; }

  .case-brand {
    align-items: flex-start;
  }
}

.note {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
  margin: 0;
}

.case-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.step-n {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.2rem;
}

.step-body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ============================================================
   TECH PILLS
   ============================================================ */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.tech-pills span {
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   MOCKUP GRID
   ============================================================ */
.mockups {
  display: grid;
  gap: 1.5rem;
}

.mockup-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mockup-win {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #e8ecf2;
  aspect-ratio: 720 / 440;
}

.mockup-win svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mockup-fig figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  gap: 2rem;
}

.contact-intro h2 { font-family: var(--font-display); }

.contact-intro p { color: var(--muted); max-width: 40ch; }

.contact-right { display: flex; flex-direction: column; gap: 1.25rem; }

.form-notice {
  padding: .875rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.5;
}
.form-notice--success {
  background: color-mix(in srgb, #22c55e 12%, transparent);
  border: 1px solid color-mix(in srgb, #22c55e 40%, transparent);
  color: #15803d;
}
.form-notice--error {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  border: 1px solid color-mix(in srgb, #ef4444 35%, transparent);
  color: #b91c1c;
}
.form-notice--error a { color: inherit; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}

.form-row { display: grid; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 115, 40, 0.12);
}

textarea { resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p { margin-bottom: 0.4rem; }

.footer-inner strong { color: var(--text); }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-sitemap-link {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-sitemap-link:hover { color: var(--accent); text-decoration: underline; }

.footer-credits a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.footer-credits a:hover { color: var(--accent); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-hero.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero:nth-child(2) {
  transition-delay: 0.15s;
}

/* ============================================================
   RESPONSIVE — TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .hero-img-frame img { height: 420px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥ 860px)
   ============================================================ */
@media (min-width: 860px) {
  .section { padding: 5.5rem 0; }

  /* Show desktop nav, hide hamburger */
  .main-nav {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    padding: 0;
    animation: none;
  }

  .nav-toggle { display: none; }

  .nav-end .btn-sm { display: inline-flex; }

  /* Hero two-column */
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero-img-frame img { height: 500px; }

  .hero-photo {
    justify-content: flex-end;
  }

  /* Case study two-column */
  .case { grid-template-columns: 1fr auto; align-items: start; }

  .case-stats { flex-direction: column; }

  /* Contact two-column */
  .contact { grid-template-columns: 1fr 1.4fr; align-items: start; }

  /* Mockups three-column */
  .mockups { grid-template-columns: repeat(3, 1fr); }

  /* Footer two-column */
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-hero {
    opacity: 1;
    transform: none;
  }
}
