/* ============================================
   NUWORA — Dark Tech Premium CSS
   ============================================ */

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

:root {
  --bg:         #050508;
  --bg2:        #080b12;
  --bg3:        #0d1220;
  --surface:    rgba(255,255,255,0.03);
  --surface2:   rgba(255,255,255,0.06);
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(99,102,241,0.25);
  --sky:        #38bdf8;
  --indigo:     #6366f1;
  --violet:     #a855f7;
  --text:       #e8eaf6;
  --text-muted: #6b7280;
  --text-dim:   #9ca3af;
  --grad:       linear-gradient(135deg, #38bdf8, #6366f1, #a855f7);
  --grad-h:     linear-gradient(135deg, #7dd3fc, #818cf8, #c084fc);
  --glow-sky:   0 0 40px rgba(56,189,248,0.15);
  --glow-ind:   0 0 40px rgba(99,102,241,0.2);
  --glow-vio:   0 0 40px rgba(168,85,247,0.15);
  --r:          12px;
  --r-lg:       20px;
  --trans:      all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- GRADIENT TEXT --- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-h);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.4); }
.btn-primary.large { padding: 18px 44px; font-size: 1.05rem; }
.btn-primary.full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 100px;
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: var(--trans);
  letter-spacing: 0.02em;
}
.btn-ghost:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 10px 24px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 100px;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,102,241,0.4); }

/* --- SECTION BADGE --- */
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--indigo);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header p { color: var(--text-dim); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--trans);
}
#navbar.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; }
.logo-text {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 60%, rgba(168,85,247,0.07) 0%, transparent 60%),
              var(--bg);
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sky);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-stack { line-height: 1.3; }
.hero-stack-lead,
.hero-stack-tail { margin: 0; }
.hero-stack-list {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-stack-list a {
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.hero-stack-list a:hover,
.hero-stack-list a:focus-visible { opacity: 0.75; }
.hero-stack-tail { font-weight: 600; }

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.04em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  animation: fadeUp 1s 0.8s ease both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--indigo), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   SERVICES
   ============================================ */
#services {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}
#services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo), transparent);
  opacity: 0.3;
}

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

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: var(--trans);
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: var(--r-lg);
}
.service-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(99,102,241,0.15), var(--glow-ind);
}
.service-card:hover::before { opacity: 0.04; }

.service-card.featured {
  border-color: rgba(99,102,241,0.35);
  background: linear-gradient(135deg, rgba(56,189,248,0.04), rgba(168,85,247,0.06));
  grid-column: span 1;
}
.service-card.featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}

.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.04em;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tags span {
  padding: 4px 12px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--indigo);
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  padding: 120px 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-diamond {
  width: min(380px, 100%);
  animation: rotateSlow 20s linear infinite;
}

.about-text {}
.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.about-text > p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.about-points { display: flex; flex-direction: column; gap: 24px; }
.about-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.point-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.about-point strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.about-point p { font-size: 0.875rem; color: var(--text-dim); margin: 0; }

/* ============================================
   PROCESS
   ============================================ */
#process {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}
#process::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0.3;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  padding: 32px 24px;
  position: relative;
  text-align: center;
}

.step-number {
  font-family: 'Syncopate', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
  transition: opacity 0.3s;
}
.process-step:hover .step-number { opacity: 1; }

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.process-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  margin-top: 56px;
  opacity: 0.4;
}

/* --- Contact form: antispam pole + stavová zpráva --- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-status {
  margin-top: 14px;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.ok    { color: #34d399; }
.form-status.error { color: #f87171; }
#form-submit:disabled { cursor: wait; opacity: 0.85; }

/* ============================================
   FAQ
   ============================================ */
#faq {
  padding: 120px 0;
  background: var(--bg);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: var(--trans);
}
.faq-item[open] { border-color: var(--border2); background: var(--surface2); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--indigo);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 0.925rem;
  line-height: 1.7;
}
@media (max-width: 480px) {
  #faq { padding: 80px 0; }
  .faq-item summary { padding: 16px 48px 16px 16px; font-size: 0.95rem; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 16px 16px; }
}

/* ============================================
   CTA BANNER
   ============================================ */
#cta-banner {
  padding: 80px 0;
  background: var(--bg);
}

.cta-inner {
  position: relative;
  text-align: center;
  padding: 80px 48px;
  background: linear-gradient(135deg, rgba(56,189,248,0.04), rgba(99,102,241,0.08), rgba(168,85,247,0.04));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 28px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 640px;
  margin: 0 auto 16px;
}
.cta-inner p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}
#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
  opacity: 0.2;
}

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

.contact-info { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-item strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-item a, .contact-item span { font-size: 1rem; color: var(--text); transition: color 0.25s; }
.contact-item a:hover { color: var(--sky); }

/* --- Form --- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--trans);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: rgba(99,102,241,0.04);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option { background: #0d1220; color: var(--text); }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  padding: 60px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 260px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }

.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col strong { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.25s; }
.footer-col a:hover { color: var(--sky); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   VISUAL ENHANCEMENTS
   ============================================ */

/* Numbered service cards */
.services-grid .service-card {
  counter-increment: service-counter;
}
.services-grid {
  counter-reset: service-counter;
}
.service-card::after {
  content: "0" counter(service-counter);
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: 'Syncopate', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(99,102,241,0.2);
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.service-card.featured::after {
  content: none;
}
.service-card:hover::after {
  color: rgba(99,102,241,0.5);
}

/* Animated gradient border on featured card */
@keyframes borderGlow {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; box-shadow: 0 0 20px rgba(99,102,241,0.4), 0 0 40px rgba(168,85,247,0.2); }
  100% { opacity: 0.6; }
}
.service-card.featured {
  animation: borderGlow 3s ease-in-out infinite;
}

/* Pulsing service icon on hover */
@keyframes iconPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15) rotate(-3deg); }
  100% { transform: scale(1); }
}
.service-card:hover .service-icon {
  animation: iconPop 0.5s ease;
}

/* Hero badge blink cursor effect */
.hero-badge::after {
  content: '|';
  margin-left: 4px;
  animation: blink 1.2s step-end infinite;
  opacity: 0.6;
}
@keyframes blink {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 0; }
}

/* Glowing left border on about points */
.about-point {
  border-left: 2px solid transparent;
  padding-left: 16px;
  transition: border-color 0.3s;
}
.about-point:hover {
  border-left-color: var(--indigo);
}
.about-point:hover .point-icon {
  background: rgba(99,102,241,0.2);
  box-shadow: 0 0 16px rgba(99,102,241,0.3);
}

/* Process step active glow */
.process-step {
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  transition: var(--trans);
}
.process-step:hover {
  background: rgba(99,102,241,0.04);
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 8px 32px rgba(99,102,241,0.1);
}

/* Connector pulse animation */
@keyframes connectorFlow {
  0%   { opacity: 0.2; background-position: -100% 0; }
  100% { opacity: 0.6; background-position: 200% 0; }
}
.process-connector {
  background: linear-gradient(90deg, transparent, var(--indigo), var(--violet), transparent);
  background-size: 200% 100%;
  animation: connectorFlow 2.5s linear infinite;
}

/* CTA banner ambient noise */
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(56,189,248,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168,85,247,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Scan line ambient overlay on hero */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Contact form focus glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 0 20px rgba(99,102,241,0.08);
}

/* Navbar logo hover effect */
.logo:hover .logo-icon {
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.6));
  transition: filter 0.3s;
}

/* Stat hover uplift */
.stat {
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: translateY(-4px);
}
.stat:hover .stat-num {
  filter: drop-shadow(0 0 12px rgba(99,102,241,0.5));
}

/* Section border bottom glow */
#services::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0.2;
}


/* ============================================
   NAV: aktivní položka + dropdown Služby
   ============================================ */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.has-dropdown { position: relative; }
.has-dropdown > a::before {
  content: '';
  position: absolute;
  right: -14px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: 0.6;
}
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 270px;
  padding: 10px;
  background: rgba(10,12,20,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: rgba(99,102,241,0.12); }

/* Menu na počítači: skleněná „pilulka“ ve stylu tlačítek */
@media (min-width: 769px) {
  .nav-links {
    gap: 2px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }
  .nav-links > li > a {
    display: block;
    padding: 9px 18px;
    border-radius: 999px;
    transition: color .25s, background .25s, box-shadow .25s;
  }
  .nav-links > li > a::after { display: none; }
  .nav-links > li > a:hover,
  .has-dropdown:hover > a,
  .has-dropdown.open > a { color: var(--text); background: rgba(255,255,255,0.06); }
  .nav-links > li > a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(168,85,247,0.18));
    box-shadow: inset 0 0 0 1px var(--border2);
  }
  .has-dropdown > a { padding-right: 32px; }
  .has-dropdown > a::before { right: 16px; transition: transform .25s; }
  .has-dropdown:hover > a::before,
  .has-dropdown.open > a::before { transform: translateY(-20%) rotate(225deg); }
  .dropdown { top: calc(100% + 12px); left: 0; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links > li > a { padding: 8px 12px; }
  .has-dropdown > a { padding-right: 26px; }
  .has-dropdown > a::before { right: 11px; }
}

/* ============================================
   PODSTRÁNKY
   ============================================ */
nav.breadcrumbs { padding-top: 104px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.breadcrumbs a { color: var(--text-dim); transition: color .2s; }
.breadcrumbs a:hover { color: var(--sky); }

.page-hero {
  padding: 150px 0 72px;
  text-align: center;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%), var(--bg);
}
nav.breadcrumbs + .page-hero { padding-top: 40px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 20px;
}
.page-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-dim); max-width: 720px; margin: 0 auto 36px; line-height: 1.7; }
.page-hero .hero-cta-group { margin-bottom: 0; }

.page-section { padding: 80px 0; background: var(--bg); position: relative; }
.page-section.alt { background: var(--bg2); }
.page-section h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
h2.center { margin-bottom: 40px; }

.prose p, .prose ul, .prose ol { color: var(--text-dim); font-size: 1.02rem; line-height: 1.8; margin-bottom: 18px; }
.prose strong { color: var(--text); }
.prose a, .inline-link, .faq-item p a { color: var(--sky); border-bottom: 1px solid rgba(56,189,248,0.3); transition: border-color .2s; }
.prose a:hover, .inline-link:hover, .faq-item p a:hover { border-color: var(--sky); }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--indigo); }

.check-list { list-style: none !important; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
  color: var(--sky);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 50%;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--trans);
}
.feature-card:hover { border-color: rgba(99,102,241,0.35); transform: translateY(-3px); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }
.center-tags { justify-content: center; margin-top: 36px; }

.steps-inline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: st; }
.steps-inline li {
  counter-increment: st;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.steps-inline li::before {
  content: '0' counter(st);
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.steps-inline strong { font-size: 1rem; }
.steps-inline span { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }

.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.link-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: var(--trans);
}
.link-card strong { font-size: 1rem; }
.link-card strong::after { content: ' →'; color: var(--indigo); transition: margin .2s; }
.link-card span { font-size: 0.85rem; color: var(--text-muted); }
.link-card:hover { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.05); transform: translateY(-2px); }

.post-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.post-links a { color: var(--sky); font-weight: 500; }
.post-links a:hover { text-decoration: underline; }

.faq-section .faq-list { margin: 0; }

/* Karty služeb na úvodu: celá karta je odkaz */
.card-link { color: inherit; }
.card-link::before { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-lg); }
.service-card .card-link:focus-visible { outline: none; }
.service-card:has(.card-link:focus-visible) { outline: 2px solid var(--indigo); outline-offset: 2px; }
.service-card { cursor: pointer; }
.card-more { display: inline-block; margin-top: 18px; font-size: 0.85rem; font-weight: 600; color: var(--sky); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: var(--trans);
}
.post-card:hover { border-color: rgba(99,102,241,0.4); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(99,102,241,0.12); }
.post-card h2, .post-card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
.post-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; flex: 1; }
.post-meta { font-size: 0.8rem; color: var(--text-muted); }
.post-more { font-size: 0.85rem; font-weight: 600; color: var(--sky); }
.post-hero { padding-bottom: 40px; }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.post-body { padding-bottom: 40px; }
.post-lead { font-size: 1.12rem !important; color: var(--text) !important; padding: 20px 24px; border-left: 3px solid var(--indigo); background: rgba(99,102,241,0.06); border-radius: 0 var(--r) var(--r) 0; }
.post-cta { padding: 32px; border: 1px solid var(--border2); border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(56,189,248,0.04), rgba(168,85,247,0.06)); }
.post-cta h2 { margin-bottom: 10px; }
.post-cta p { color: var(--text-dim); margin-bottom: 16px; }
.post-cta .post-links { margin-bottom: 24px; }

.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--border); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.prose th { color: var(--text); background: var(--surface2); font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }

/* Reference */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: var(--trans); display: flex; flex-direction: column; }
.ref-card:hover { border-color: rgba(99,102,241,0.35); }
.ref-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg3); }
.ref-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ref-card:hover .ref-image img { transform: scale(1.04); }
.ref-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ref-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); }
.ref-service { display: inline-block; padding: 3px 10px; border-radius: 100px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: var(--indigo); font-size: 0.72rem; font-weight: 600; align-self: flex-start; }
.ref-body h2, .ref-body h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.ref-client { color: var(--sky) !important; font-size: 0.85rem !important; font-weight: 500; }
.ref-body p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }
.ref-link { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--sky); }
.ref-review { padding: 28px; gap: 16px; }
.ref-stars { color: #fbbf24; letter-spacing: 2px; font-size: 1.05rem; }
.ref-review blockquote p { font-size: 0.98rem; color: var(--text); line-height: 1.7; font-style: italic; }
.ref-review figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--text-dim); margin-top: auto; }
.ref-review figcaption strong { color: var(--text); }
.ref-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.preview-banner { margin: 24px 0 0; padding: 14px 18px; border: 1px solid rgba(251,191,36,0.4); background: rgba(251,191,36,0.08); color: #fbbf24; border-radius: var(--r); font-size: 0.9rem; }
.preview-banner a { color: #fde68a; text-decoration: underline; }

.footer-contact { margin-top: 12px; }
.footer-contact a { color: var(--text-dim); }
.footer-contact a:hover { color: var(--sky); }

body.menu-open { overflow: hidden; }

/* Telefon v horní liště */
.nav-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 18px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: linear-gradient(135deg, rgba(56,189,248,0.07), rgba(168,85,247,0.07));
  color: var(--text);
  white-space: nowrap;
  transition: var(--trans);
}
.nav-phone svg {
  width: 34px; height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(56,189,248,0.45);
  animation: phonePulse 2.8s ease-out infinite;
}
.nav-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nav-phone-text small {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}
.nav-phone:hover {
  border-color: var(--indigo);
  background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(168,85,247,0.14));
  box-shadow: 0 6px 24px rgba(99,102,241,0.3);
  transform: translateY(-1px);
}
@keyframes phonePulse {
  0%   { box-shadow: 0 0 0 0 rgba(56,189,248,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}
@media (prefers-reduced-motion: reduce) { .nav-phone svg { animation: none; } }
@media (max-width: 1150px) {
  .nav-phone { padding: 5px; }
  .nav-phone-text { display: none; }
}
@media (max-width: 768px) {
  .nav-actions { margin-left: auto; gap: 12px; }
  .nav-phone { padding: 0; border: none; background: none; }
  .nav-phone svg { width: 40px; height: 40px; padding: 10px; }
}

/* Ilustrace na stránkách služeb */
.svc-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
}
.svc-figure {
  margin: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 30px 80px -30px rgba(99,102,241,0.45), var(--glow-sky);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.svc-figure img { display: block; width: 100%; height: auto; }
.svc-figure::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), transparent 45%, rgba(168,85,247,0.1));
  pointer-events: none;
}
.svc-figure:hover { transform: translateY(-4px); box-shadow: 0 40px 90px -30px rgba(99,102,241,0.6), var(--glow-sky); }
@media (max-width: 1024px) {
  .svc-intro { grid-template-columns: 1fr; gap: 40px; max-width: 820px; }
  .svc-figure { order: -1; max-width: 560px; margin: 0 auto; }
}

/* Neúplný poslední řádek služeb se roztáhne přes celou šířku */
@media (min-width: 1025px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .services-grid .service-card { grid-column: span 2; }
  .services-grid .service-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .services-grid .service-card:nth-last-child(2):nth-child(3n+1),
  .services-grid .service-card:last-child:nth-child(3n+2) { grid-column: span 3; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-diamond { width: 260px; }
  .process-steps { flex-wrap: wrap; }
  .process-connector { display: none; }
  .process-step { flex: 1 1 calc(50% - 20px); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid, .link-grid, .post-grid, .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-inline { grid-template-columns: repeat(2, 1fr); }
  .footer-links { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,5,8,0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
    overflow-y: auto;
    padding: 80px 16px 40px;
  }
  .nav-links.open a { font-size: 1.4rem; }
  .hamburger { position: relative; z-index: 1001; }
  .has-dropdown > a::before { display: none; }
  .dropdown { display: none; }

  .feature-grid, .link-grid, .post-grid, .ref-grid, .steps-inline { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 56px; }
  nav.breadcrumbs { padding-top: 88px; }
  nav.breadcrumbs + .page-hero { padding-top: 28px; }
  .page-section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .process-step { flex: 1 1 100%; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .cta-inner { padding: 48px 24px; }
  .contact-form { padding: 24px; }
}
