@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --brown-dark:    #1f1410;
  --brown-mid:     #3b2517;
  --orange-deep:   #b35900;
  --orange-main:   #e07b00;
  --orange-bright: #ff9a3c;
  --orange-accent: #f5a23a;
  --cream:         #fef8ee;
  --cream-light:   #fffdf7;
  --cream-soft:    #f7ecd6;
  --text:          #2a1f17;
  --text-muted:    #6b5747;
  --border:        rgba(176,89,0,0.18);
  --grid-line:     rgba(176,89,0,0.06);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream-light);
  overflow-x: hidden;
}

/* ── GRID TEXTURE ─────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
h1, h2, h3, h4, nav, .label, button, .btn {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { line-height: 1.75; }

a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--orange-main); }

/* ── LAYOUT ───────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { padding: 80px 0; }

/* ── NAV ──────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

#nav.scrolled {
  background: rgba(31,20,16,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,162,58,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 40px;
  filter: drop-shadow(0 0 6px rgba(245,162,58,0.5));
}

.nav-logo span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 0.08em;
  text-transform: none;
  transition: color 0.3s;
}
.nav-logo span em {
  font-style: normal;
  color: var(--orange-main);
}
#nav.scrolled .nav-logo span { color: var(--cream); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--brown-mid);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

#nav.scrolled .nav-links a { color: var(--cream-soft); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--orange-main);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--orange-main); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--orange-main);
  color: white !important;
  padding: 8px 20px;
  border: 1px solid var(--orange-accent);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--orange-bright) !important; color: white !important; }
.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--brown-dark);
  transition: all 0.3s;
}
#nav.scrolled .nav-hamburger span { background: var(--cream); }

/* ── HERO DECORACE: stylizovaný rohlík ────────────────────────── */
.hero-rohlik {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 56%;
  height: auto;
  fill: rgba(224,123,0,0.07);
  pointer-events: none;
  z-index: 0;
}

/* ── HERO ─────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--cream-light) 0%, var(--cream-soft) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 24px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--orange-deep);
}

#hero h1 {
  color: var(--brown-dark);
  margin-bottom: 24px;
}

#hero h1 em {
  font-style: normal;
  color: var(--orange-main);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
}

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

.btn-primary {
  display: inline-block;
  background: var(--orange-main);
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--orange-accent);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-bright);
  transform: translateX(-100%);
  transition: transform 0.25s;
}

.btn-primary:hover { color: white; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-block;
  color: var(--orange-deep);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid rgba(176,89,0,0.35);
  transition: all 0.25s;
}

.btn-ghost:hover {
  color: var(--brown-dark);
  border-color: var(--orange-main);
  background: rgba(224,123,0,0.07);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  margin-top: 56px;
}

.stat {
  text-align: left;
  padding-right: 40px;
  margin-right: 40px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.stat-num {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange-deep);
  line-height: 1;
}

.stat-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── INTRO STRIP ──────────────────────────────────────────────── */
#intro {
  background: var(--brown-dark);
  padding: 40px 0;
}

.intro-text {
  color: var(--cream);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.intro-text strong {
  font-weight: 600;
  color: var(--orange-accent);
}

/* ── SECTION HEADER ───────────────────────────────────────────── */
.section-header { margin-bottom: 56px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--orange-deep);
}

.section-header h2 { color: var(--brown-dark); }
.section-header p { color: var(--text-muted); margin-top: 12px; max-width: 640px; font-size: 1.05rem; }

/* ── FEATURES ─────────────────────────────────────────────────── */
#proc { background: var(--cream-light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: var(--border);
}

.feature-card {
  background: white;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--orange-main);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}

.feature-card:hover::before { transform: scaleY(1); }
.feature-card:hover { background: var(--cream); }

.feature-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 40px; height: 40px;
  stroke: var(--orange-main);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  color: var(--brown-dark);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feature-card ul {
  list-style: none;
  margin-top: 16px;
}

.feature-card ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.feature-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--orange-accent);
  font-weight: 700;
}

/* ── ALGORITMUS ───────────────────────────────────────────────── */
#algoritmus {
  background: var(--brown-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

#algoritmus::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,123,0,0.3) 0%, transparent 70%);
}

#algoritmus .section-label { color: var(--orange-accent); }
#algoritmus .section-label::before { background: var(--orange-accent); }
#algoritmus .section-header h2 { color: white; }
#algoritmus .section-header p { color: var(--cream-soft); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.step {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--orange-main);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-accent);
  font-weight: 700;
}

.step-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
}

.step-desc {
  color: var(--cream-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── PRO KOHO ─────────────────────────────────────────────────── */
#pro-koho { background: var(--cream); }

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

.audience-card {
  background: white;
  padding: 36px 32px;
  border-top: 4px solid var(--orange-main);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audience-card h3 {
  color: var(--brown-dark);
  font-size: 1.3rem;
}

.audience-card .audience-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 600;
}

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

.audience-card ul {
  list-style: none;
  margin-top: 8px;
}

.audience-card ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.audience-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-main);
  font-weight: 700;
}

/* ── KONEKTORY ────────────────────────────────────────────────── */
#konektory {
  background: var(--cream-light);
  position: relative;
}

.connectors-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.connectors-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.connector-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: white;
  border-left: 3px solid var(--orange-main);
}

.connector-tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--orange-main);
  color: white;
  padding: 4px 10px;
  flex-shrink: 0;
}

.connector-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brown-dark);
  flex: 1;
}

.connector-status {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.connector-status.ready { color: var(--orange-deep); }

.connectors-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.connectors-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.connectors-feature:last-child { border-bottom: none; }

.connectors-feature::before {
  content: '✓';
  color: var(--orange-main);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── KONTAKT ──────────────────────────────────────────────────── */
#kontakt {
  background: var(--brown-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

#kontakt::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-accent), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-intro h2 { color: white; margin-bottom: 16px; }
.contact-intro p { color: var(--cream-soft); line-height: 1.8; }

.contact-intro .section-label { color: var(--orange-accent); }
.contact-intro .section-label::before { background: var(--orange-accent); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(245,162,58,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px; height: 18px;
  stroke: var(--orange-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.contact-item-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-accent);
  display: block;
  margin-bottom: 2px;
}

.contact-item a, .contact-item span {
  color: var(--cream);
  font-size: 1rem;
}

.contact-item a:hover { color: white; }

.contact-form-area h3 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.form-group label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(245,162,58,0.25);
  color: white;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange-accent);
  background: rgba(245,162,58,0.08);
}

.form-group textarea { height: 120px; resize: vertical; }

.form-submit {
  width: 100%;
  background: var(--orange-main);
  color: white;
  border: 1px solid var(--orange-accent);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.form-submit:hover { background: var(--orange-bright); }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  background: #150d0a;
  padding: 32px 0;
  border-top: 1px solid rgba(245,162,58,0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 32px;
  opacity: 0.95;
  filter: drop-shadow(0 0 4px rgba(245,162,58,0.35));
}

.footer-logo-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
}

.footer-copy {
  color: var(--cream-soft);
  font-size: 0.85rem;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
}

.footer-reg {
  color: rgba(247,236,214,0.55);
  font-size: 0.75rem;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
  text-align: right;
}

/* ── SCROLL REVEAL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .connectors-layout,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(31,20,16,0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(245,162,58,0.25);
  }
  .nav-links.open a { color: var(--cream-soft); }
  .features-grid { grid-template-columns: 1fr; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
    margin-top: 40px;
  }
  .stat {
    padding-right: 24px;
    margin-right: 24px;
    margin-bottom: 16px;
  }
  .footer-reg { text-align: left; }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-ghost {
    text-align: center;
    width: 100%;
  }

  .hero-stats { flex-direction: column; gap: 16px; margin-top: 32px; }
  .stat {
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .stat-num { font-size: 2rem; }

  .hero-rohlik {
    right: -30%;
    top: 6%;
    width: 110%;
    transform: rotate(-6deg);
  }
}
