/* =========================
   Design tokens
   ========================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --text: #121212;
  --muted: #6b7280;
  --accent: #2a5bd7;
  --accent-soft: rgba(42, 91, 215, 0.08);
  --border: #e5e7eb;

  --max-width: 1100px;
  --content-width: 720px;
}

/* =========================
   Reset
   ========================= */

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Typography
   ========================= */

.serif {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

h1,
h2 {
  font-family: ui-serif, Georgia, Cambria, serif;
}

h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 2rem;
  margin: 4rem 0 1.2rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

p {
  max-width: var(--content-width);
  margin: 0 0 1.4rem;
}

.muted {
  color: var(--muted);
}

/* =========================
   Links
   ========================= */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Layout
   ========================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

section {
  position: relative;
}

/* =========================
   Header
   ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

nav a strong {
  font-weight: 700;
  letter-spacing: 0.04em;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a:hover {
  opacity: 0.7;
}

/* =========================
   Hero
   ========================= */

.hero {
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      var(--accent-soft),
      transparent 60%
    ),
    var(--bg);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem 7rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 760px;
}

.hero .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* =========================
   CTA
   ========================= */

.cta {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.cta a {
  font-weight: 600;
  position: relative;
}

.cta a::after {
  content: " →";
  transition: transform 0.2s ease;
}

.cta a:hover::after {
  transform: translateX(4px);
}

/* =========================
   Process flow
   ========================= */

.process {
  padding: 6rem 0;
}

.process h2 {
  margin-bottom: 3rem;
}

.process-flow {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .process-flow {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
  padding-left: 2.5rem;
}

.process-step span {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.process-step p {
  color: var(--muted);
}

.process-step strong {
  color: var(--text);
  font-weight: 600;
}

.process-step p:last-of-type {
  margin-top: 0.8rem;
}

/* =========================
   Pillars (responsibility areas)
   ========================= */

.pillars {
  display: grid;
  gap: 4rem;
  margin-top: 6rem;
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pillar p {
  color: var(--muted);
}

/* =========================
   Deliverables
   ========================= */

.deliverable-list {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  max-width: var(--content-width);
}

.deliverable-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.deliverable-list li:last-child {
  border-bottom: none;
}

.deliverable-list strong {
  display: block;
  font-weight: 600;
}

.deliverable-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   Project cases (list)
   ========================= */

.project-case {
  max-width: var(--content-width);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.project-case:first-of-type {
  border-top: none;
}

.project-case h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.project-case p {
  margin-bottom: 1.2rem;
}

.project-case ul {
  margin: 1.2rem 0 2rem;
  padding-left: 1.2rem;
}

.project-case li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.project-case-cta {
  font-weight: 500;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.project-case-cta::after {
  content: " →";
  transition: transform 0.2s ease;
}

.project-case-cta:hover::after {
  transform: translateX(4px);
}

/* =========================
   Contact form
   ========================= */

.contact-form {
  max-width: 600px;
}

.contact-form label {
  display: block;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* =========================
   Footer
   ========================= */

footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================
   404 – minimalistická
   ========================= */

.not-found-minimal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      800px 400px at 20% 10%,
      var(--accent-soft),
      transparent 60%
    ),
    var(--bg);
}

.not-found-inner {
  max-width: 520px;
  padding: 2rem;
}

.not-found-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.not-found-minimal h1 {
  font-family: ui-serif, Georgia, Cambria, serif;
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.not-found-minimal p {
  margin-bottom: 2.5rem;
}

.not-found-back {
  font-weight: 500;
  position: relative;
}

.not-found-back::after {
  content: " →";
  transition: transform 0.2s ease;
}

.not-found-back:hover::after {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.4rem;
  }

  .hero-inner {
    padding: 6rem 1.5rem 5rem;
  }

  .cta {
    flex-direction: column;
    gap: 1rem;
  }

  .not-found-code {
    font-size: 3.5rem;
  }
}

/* =========================
   Visual spacer (responsive SVG)
   ========================= */

.visual-spacer {
  display: flex;
  justify-content: center;
  color: var(--border);
  margin: 4rem 0;
}

.visual-spacer svg {
  width: 100%;
  max-width: var(--max-width);
  height: auto;
}

/* jemnější rytmus */
.visual-spacer--horizontal {
  margin: 3rem 0 5rem;
}

.visual-spacer--vertical {
  margin: 5rem 0;
}

/* mobile: SVG pryč */
@media (max-width: 640px) {
  .visual-spacer {
    display: none;
  }
}
