:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --accent: #0ea5e9;
  --accent2: #7c3aed;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; }

/* ---------- Navigace ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6%;
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}

.nav.scrolled {
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a:not(.btn) {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}

.nav-links a:not(.btn):hover { color: #fff; }

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}
.logo span { color: #60a5fa; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, #0f172a, #1d4ed8 65%, #2563eb);
  background-size: 200% 200%;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  background: #60a5fa;
  top: -120px;
  right: -80px;
}

.hero::after {
  width: 280px;
  height: 280px;
  background: #3b82f6;
  bottom: -100px;
  left: -60px;
}

.hero .nav, .hero-content { position: relative; z-index: 1; }

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 6% 110px;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .02em;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s ease, transform .15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.btn-outline {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}

.btn-small {
  padding: 8px 18px;
  font-size: .9rem;
  white-space: nowrap;
}

/* ---------- Sections ---------- */

.features, .why, .contact, .pricing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 6%;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 12px auto 0;
}

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

/* ---------- Statistiky ---------- */

.stats {
  background: linear-gradient(135deg, #1e293b, #1d4ed8);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 6%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: #cbd5e1;
  font-size: .85rem;
  margin-top: 4px;
}

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Ukázka systému ---------- */

.showcase {
  background: var(--bg);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.browser-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.browser-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-item h3 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.showcase-item p {
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Animace při scrollu ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Proč my ---------- */

.why {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.why-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.why-item:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.why-icon {
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.why-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.why-item p {
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Ceník ---------- */

.pricing {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}

.price-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.price-card-highlight {
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(29, 78, 216, .2);
  background: linear-gradient(180deg, #eff6ff, #ffffff 35%);
  transform: scale(1.02);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.price-limit {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 10px;
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.price-value span {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
}

.price-vat {
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 16px;
}

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex-grow: 1;
}

.price-features li {
  color: var(--text);
  font-size: .9rem;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.price-features li:first-child {
  border-top: none;
}

.btn-outline-dark {
  border: 1px solid var(--border);
  color: var(--primary-dark);
  background: transparent;
  text-align: center;
}

.btn-outline-dark:hover {
  background: var(--bg);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

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

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .9rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* Honeypot - skryté pro lidi i čtečky obrazovky */
.form-row.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-row-checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-row-checkbox label {
  font-weight: 400;
  font-size: .85rem;
  color: var(--muted);
}

.form-row-checkbox a {
  color: var(--primary);
  font-weight: 600;
}

.contact-form .btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}

.form-status {
  margin-top: 12px;
  font-size: .9rem;
  text-align: center;
  min-height: 1.2em;
}

.contact-direct {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 28px;
}

.contact-direct h3 { margin-bottom: 16px; }

.contact-line {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.contact-line a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.contact-note {
  margin-top: 16px;
  font-size: .9rem;
  color: #dbeafe;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 6%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  font-size: .9rem;
}

.footer-inner .logo { color: #fff; margin-bottom: 8px; display: inline-block; }

.footer-inner a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer-inner a:hover { color: #fff; }

.footer-inner strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.footer-inner p { line-height: 1.7; }

/* ---------- Cookie banner ---------- */

.cookie-banner[hidden] {
  display: none !important;
}

/* ---------- Tlačítko zpět nahoru ---------- */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
  z-index: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.back-to-top[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 6%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  z-index: 1000;
  pointer-events: auto;
}

.cookie-banner button {
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner button {
    width: 100%;
  }
}

.cookie-banner p {
  margin: 0;
  font-size: .9rem;
  max-width: 700px;
}

.cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

/* ---------- Legal page ---------- */

.page-header {
  background: linear-gradient(135deg, #0f172a, #1d4ed8 65%, #2563eb);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #60a5fa;
  filter: blur(60px);
  opacity: .3;
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.page-header .nav, .page-header-content { position: relative; z-index: 1; }

.page-header .nav-links a:not(.btn).active {
  color: #fff;
  border-bottom: 2px solid #60a5fa;
  padding-bottom: 2px;
}

.page-header .btn-outline.active {
  background: #fff;
  color: var(--primary-dark);
}

.page-header-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 6% 70px;
}

.page-header-content h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-bottom: 12px;
}

.page-header-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
}

/* ---------- Ukázkový scénář ---------- */

.scenario {
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
  padding: 80px 6%;
}

.scenario-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
}

.scenario-tag {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary-dark);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.scenario-steps {
  display: grid;
  gap: 22px;
}

.scenario-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

.scenario-time {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 0;
  text-align: center;
  height: fit-content;
}

.scenario-step h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.scenario-step p {
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 540px) {
  .scenario-step {
    grid-template-columns: 1fr;
  }
  .scenario-time {
    width: fit-content;
    padding: 4px 12px;
  }
}

/* ---------- O tvůrci ---------- */

.about-creator {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.about-creator-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 6%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.about-creator-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.about-creator-inner h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.about-creator-inner p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 1rem;
}

.about-creator-points {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.about-creator-points li {
  color: var(--text);
  font-size: .95rem;
}

@media (max-width: 600px) {
  .about-creator-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* ---------- CTA pruh ---------- */

.cta-strip {
  background: linear-gradient(135deg, #0f172a, #1d4ed8 65%, #2563eb);
  color: #fff;
}

.cta-strip-inner h2 { color: #fff; }
.cta-strip-inner p { color: #cbd5e1; }
.cta-strip .btn-outline-dark {
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.cta-strip .btn-outline-dark:hover {
  background: rgba(255,255,255,.1);
}

.cta-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 6%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-strip-inner h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.cta-strip-inner p {
  color: var(--muted);
}

.cta-strip-inner .hero-actions {
  justify-content: flex-start;
}

/* ---------- Kompaktní grid na úvodní stránce ---------- */

.grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 28px;
}

.section-cta {
  text-align: center;
}

/* ---------- Ceník – úvodní text ---------- */

.pricing-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 6% 0;
  text-align: center;
}

.pricing-intro-inner p {
  color: var(--muted);
  font-size: 1.05rem;
}

.price-icon {
  margin-bottom: 12px;
}

/* ---------- Ceník – FAQ ---------- */

.pricing-faq {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6% 80px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.faq-item p {
  color: var(--muted);
  font-size: .92rem;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 6% 80px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 36px;
}

.legal section {
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.legal p, .legal li {
  color: var(--text);
  font-size: .98rem;
}

.legal ul {
  margin: 8px 0 8px 20px;
}

.legal a {
  color: var(--primary);
  font-weight: 600;
}
