:root {
  --bg: #120a24;
  --bg-soft: #1a1233;
  --card: rgba(24, 18, 49, 0.84);
  --line: rgba(255,255,255,0.08);
  --text: #f5f2ff;
  --muted: #c4b8e6;
  --accent: #b784ff;
  --accent-2: #7c5cff;
  --success: #32d39a;
  --shadow: 0 20px 60px rgba(0,0,0,.30);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(183,132,255,.20), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(124,92,255,.22), transparent 26%),
    radial-gradient(circle at 72% 58%, rgba(170,88,255,.16), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(124,92,255,.14), transparent 20%),
    linear-gradient(180deg, #120a24 0%, #1a1233 42%, #221542 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  opacity: .45;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; position: relative; z-index: 1; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 22, .72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand strong { display: block; font-size: 18px; }
.brand span { color: var(--muted); font-size: 14px; }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: var(--text);
}

.lang-switch:hover {
  background: rgba(255,255,255,.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8be3ff);
  color: #04111d;
  box-shadow: 0 14px 34px rgba(92,200,255,.22);
}
.btn-secondary {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
}

section { padding: 72px 0; }
.hero-section { padding-top: 48px; padding-bottom: 84px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(92,200,255,.08);
  border: 1px solid rgba(92,200,255,.18);
  font-size: 14px;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(92,200,255,.48);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 18px 0 20px;
  max-width: 820px;
}
h2 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 760px;
}
.section-head { max-width: 780px; margin-bottom: 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.hero-card,
.card,
.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.hero-card-shift {
  transform: translateY(-110px);
}

.hero-image {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 15px;
}
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 14px;
}

.card { padding: 32px; }
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(92,200,255,.14), rgba(124,92,255,.14));
  border: 1px solid rgba(92,200,255,.14);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-thumb-wrap {
  position: relative;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-bottom: 1px solid var(--line);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.08);
}

.project-content { padding: 30px; }
.muted { color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 700;
}

.tag.success {
  background: rgba(50,211,154,.16);
  border-color: rgba(50,211,154,.14);
  color: #8ff0cb;
}

.contact-box {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.footer {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero-grid,
  .projects-grid,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-card-shift {
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .nav { display: none; }
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  section { padding: 64px 0; }
  .hero-section { padding-top: 28px; padding-bottom: 64px; }
  .lead { font-size: 18px; line-height: 1.75; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}


.project-thumb-link {
  display: block;
}

.project-thumb {
  transition: transform .22s ease, box-shadow .22s ease;
}

.project-thumb-link:hover .project-thumb {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,.28);
}

.steps-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:28px;}
.step {padding:32px;border-radius:20px;background:rgba(18,25,51,0.82);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(12px);transition:.25s ease;}
.step:hover {transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.3);}
.step-number {display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;font-weight:800;font-size:18px;margin-bottom:16px;background:linear-gradient(135deg,#5cc8ff,#7c5cff);color:#04111d;}
@media (max-width:1024px){.steps-grid{grid-template-columns:1fr;}}

.steps-cta {
  margin-top: 40px;
  text-align: center;
}


body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
  backdrop-filter: blur(8px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(18, 25, 51, 0.96);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.38);
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-lead {
  margin-bottom: 24px;
}

.demand-form {
  margin-top: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(92,200,255,.48);
  box-shadow: 0 0 0 3px rgba(92,200,255,.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

@media (max-width: 700px) {
  .modal-box {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* DARK DROPDOWN + SCROLLBAR FIX */
select {
  background: rgba(18, 25, 51, 0.95);
  color: #ffffff;
}

/* Chrome / Edge / Safari */
select::-webkit-scrollbar {
  width: 8px;
}

select::-webkit-scrollbar-track {
  background: #0b1020;
}

select::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #5cc8ff, #7c5cff);
  border-radius: 10px;
}

/* Firefox */
select {
  scrollbar-color: #5cc8ff #0b1020;
  scrollbar-width: thin;
}

option {
  background: #0b1020;
  color: #ffffff;
}


.project-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.type-card {
  padding: 32px;
  border-radius: 22px;
  background: rgba(18, 25, 51, 0.82);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
  transition: .24s ease;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0,0,0,.30);
}

.type-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(92,200,255,.14), rgba(124,92,255,.14));
  border: 1px solid rgba(92,200,255,.14);
}

@media (max-width: 1024px) {
  .project-types-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.price-card {
  padding:28px;
  border-radius:22px;
  background:rgba(18,25,51,0.82);
  border:1px solid rgba(255,255,255,.08);
  text-align:center;
}
.price {
  font-size:26px;
  font-weight:800;
  color:#5cc8ff;
}
@media (max-width:1024px){
  .pricing-grid{grid-template-columns:1fr;}
}

.nav a.active { color: var(--text); }


.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform .22s ease, opacity .22s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: sticky;
  top: 92px;
  z-index: 19;
  background: rgba(7, 10, 22, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.mobile-menu.is-open { display: block; }

.mobile-menu-inner {
  display: grid;
  gap: 0;
  padding: 8px 0 14px;
}

.mobile-menu a {
  padding: 14px 0;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-weight: 600;
}

.mobile-menu a:last-child { border-bottom: 0; }

body.menu-open { overflow: hidden; }

@media (max-width: 700px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .header-actions {
    width: auto;
    justify-content: flex-end;
  }
  .header-actions .btn { display: none; }
  .header-actions .lang-switch {
    min-width: 46px;
    min-height: 46px;
  }
}


.about-photo {
  float: left;
  width: 180px;
  border-radius: 16px;
  margin: 0 24px 16px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 700px) {
  .about-photo {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }
}


/* Mobile spacing fix */
@media (max-width: 768px) {
  section {
    padding: 40px 20px !important;
  }

  .section {
    margin-bottom: 40px !important;
  }

  h2 {
    margin-bottom: 20px;
  }

  .container {
    padding: 0 16px;
  }
}


/* Desktop spacing + purple transition enhancement */
@media (min-width: 1025px) {
  section {
    padding: 52px 0 !important;
  }

  .hero-section {
    padding-top: 28px !important;
    padding-bottom: 54px !important;
  }

  .section-head {
    margin-bottom: 28px !important;
  }

  .hero-grid {
    gap: 34px !important;
  }

  .about-grid,
  .projects-grid,
  .project-types-grid {
    gap: 18px !important;
  }

  .steps-grid,
  .pricing-grid {
    gap: 18px !important;
    margin-top: 18px !important;
  }

  .steps-cta,
  .pricing-note {
    margin-top: 28px !important;
  }

  .contact-box {
    padding: 30px !important;
    gap: 18px !important;
  }

  .footer {
    padding: 28px 0 34px !important;
  }

  body {
    background:
      radial-gradient(circle at 15% 18%, rgba(124, 92, 255, .18), transparent 22%),
      radial-gradient(circle at 82% 24%, rgba(92, 200, 255, .12), transparent 26%),
      radial-gradient(circle at 72% 58%, rgba(124, 92, 255, .16), transparent 24%),
      radial-gradient(circle at 20% 78%, rgba(124, 92, 255, .12), transparent 20%),
      linear-gradient(180deg, #0b1020 0%, #0d1530 45%, #11153a 100%) !important;
  }

  main {
    position: relative;
    overflow: hidden;
  }

  main::before,
  main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  main::before {
    background:
      radial-gradient(circle at 76% 38%, rgba(124, 92, 255, .14), transparent 16%),
      radial-gradient(circle at 18% 64%, rgba(124, 92, 255, .10), transparent 14%);
  }

  main::after {
    background:
      linear-gradient(180deg,
        transparent 0%,
        rgba(124, 92, 255, .04) 22%,
        transparent 38%,
        rgba(124, 92, 255, .05) 58%,
        transparent 76%,
        rgba(124, 92, 255, .04) 100%);
    mix-blend-mode: screen;
  }

  .container {
    position: relative;
    z-index: 1;
  }
}


/* Slightly smaller hero heading (desktop) */
@media (min-width: 1025px) {
  h1 {
    font-size: clamp(38px, 4.2vw, 56px) !important;
    line-height: 1.1;
  }
}


/* Project cards: more compact image area and better text balance */
.project-thumb-wrap {
  padding: 12px !important;
}

.project-thumb {
  aspect-ratio: 16 / 10 !important;
}

.project-content {
  padding: 24px 24px 26px !important;
}

.project-content .muted {
  line-height: 1.72;
}

@media (min-width: 1025px) {
  .projects-grid {
    gap: 22px !important;
  }
}

/* Typy projektů – menší ikony */
.type-card img,
.type-card svg {
  width: 32px !important;
  height: 32px !important;
  margin-bottom: 12px;
}


/* Purple-violet polish */
.hero-card,
.card,
.contact-box,
.type-card,
.step,
.price-card,
.modal-box {
  background: rgba(24, 18, 49, 0.84);
}

.eyebrow {
  color: #d2b0ff;
  background: rgba(183,132,255,.10);
  border-color: rgba(183,132,255,.22);
}

.eyebrow::before {
  background: linear-gradient(135deg, #b784ff, #7c5cff);
  box-shadow: 0 0 16px rgba(183,132,255,.42);
}

.btn-primary {
  background: linear-gradient(135deg, #b784ff, #8f63ff);
  color: #120a24;
  box-shadow: 0 14px 34px rgba(183,132,255,.24);
}

.icon,
.type-icon,
.step-number {
  color: #d7c2ff;
  background: linear-gradient(135deg, rgba(183,132,255,.16), rgba(124,92,255,.18));
  border: 1px solid rgba(183,132,255,.18);
}

.price {
  color: #c49bff;
}

.highlight {
  border-color: #b784ff;
  box-shadow: 0 0 30px rgba(183,132,255,.18);
}


/* Interactive upgrade */
.section-helper {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.response-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #32d39a;
  box-shadow: 0 0 14px rgba(50,211,154,.4);
}

.type-card,
.project-card {
  cursor: pointer;
}

.type-card:hover,
.project-card:hover {
  transform: translateY(-6px);
}

.project-card:hover .project-thumb {
  transform: translateY(-2px) scale(1.015);
}

.btn-primary {
  animation: pulseGlow 3.2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 14px 34px rgba(183,132,255,.24); }
  50% { box-shadow: 0 18px 40px rgba(183,132,255,.34); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 700px) {
  .mobile-sticky-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1200;
  }

  .mobile-sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(0,0,0,.24);
    backdrop-filter: blur(12px);
  }

  .mobile-sticky-btn-call {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    color: var(--text);
  }

  .mobile-sticky-btn-form {
    background: linear-gradient(135deg, #b784ff, #8f63ff);
    color: #120a24;
  }

  body {
    padding-bottom: 82px;
  }
}


/* Language switch stability */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  white-space: nowrap;
}


/* Clickable eyebrow */
.eyebrow-link {
  text-decoration: none;
  display: inline-block;
}
.eyebrow-link:hover .eyebrow {
  transform: translateY(-2px);
  cursor: pointer;
}
