/* ============================================
   NUWORA — technický styl
   Vrstva nad style.css: ostřejší hrany, mřížka, kódové písmo u štítků a čísel,
   rohové značky na kartách. Barvy a logo zůstávají.
   Vypnutí: odeberte <link> na tech.css v inc/layout.php.
   ============================================ */

:root {
  --r:      4px;
  --r-lg:   6px;
  --mono:   'Space Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --head:   'Space Grotesk', 'Inter', sans-serif;
  --line:   rgba(255,255,255,0.08);
  --card:   #0a0d17;
  --grid:   linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  --corners:
    linear-gradient(var(--sky), var(--sky)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--sky), var(--sky)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--violet), var(--violet)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--violet), var(--violet)) 100% 100% / 1px 14px no-repeat;
}

::selection { background: rgba(56,189,248,0.3); color: #fff; }

/* --- Písmo --- */
h1, h2, h3, .hero-title, .page-hero h1, .section-header h2, .about-text h2, .cta-inner h2 {
  font-family: var(--head);
  letter-spacing: -0.035em;
}
.hero-title { font-weight: 700; }

/* --- Štítky sekcí: // KÓD --- */
.section-badge,
.hero-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.22);
  border-left: 2px solid var(--sky);
  border-radius: 2px;
  padding: 7px 14px;
}
.section-badge::before { content: '// '; opacity: 0.6; }
.hero-badge { padding: 8px 16px; }

/* --- Tlačítka --- */
.btn-primary, .btn-ghost, .btn-nav {
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-primary, .btn-ghost { padding: 15px 26px; }
.btn-primary.large { padding: 18px 34px; font-size: 0.85rem; }
.btn-primary > *, .btn-primary { z-index: 0; }
.btn-primary::after { content: '→'; position: relative; transition: transform .25s; }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--sky); background: rgba(56,189,248,0.06); }
.btn-nav { padding: 11px 20px; font-size: 0.74rem; }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-1px); }

/* --- Horní lišta --- */
#navbar.scrolled { background: rgba(5,5,8,0.9); }
@media (min-width: 769px) {
  .nav-links {
    border-radius: var(--r);
    border-color: var(--line);
    background: rgba(10,13,23,0.6);
    padding: 4px;
  }
  .nav-links > li > a {
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 16px;
  }
  .nav-links > li > a.active {
    background: rgba(56,189,248,0.08);
    box-shadow: inset 0 -2px 0 var(--sky);
  }
  .has-dropdown > a { padding-right: 30px; }
  .dropdown { border-radius: var(--r-lg); border-color: var(--line); background: rgba(8,10,18,0.98); }
  .dropdown a { border-radius: 3px; font-size: 0.86rem; }
  .dropdown a::before { content: '›'; color: var(--sky); margin-right: 8px; opacity: 0.6; }
}
.nav-phone {
  border-radius: var(--r);
  border-color: var(--line);
  background: rgba(10,13,23,0.6);
  padding: 4px 16px 4px 4px;
}
.nav-phone svg { border-radius: 3px; }
.nav-phone-text { font-family: var(--mono); font-size: 0.84rem; font-weight: 600; letter-spacing: 0; }
.nav-phone-text small { font-size: 0.6rem; letter-spacing: 0.14em; }
@media (max-width: 1150px) { .nav-phone { padding: 4px; } }
@media (max-width: 768px)  { .nav-phone { padding: 0; } }
.nav-links.open a { font-family: var(--head); }

/* --- Hero s mřížkou --- */
#hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(168,85,247,0.08) 0%, transparent 60%),
    var(--bg);
}
.page-hero { position: relative; overflow: hidden; }

/* 3D neuronová síť (js/neural-bg.js) */
.neural-canvas {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  pointer-events: none;
}
#hero .hero-content, #hero .hero-scroll-hint { z-index: 2; }

/* Logo z identity NUWORA */
.logo { gap: 12px; }
.logo-mark { display: inline-flex; filter: drop-shadow(0 0 16px rgba(129,140,248,0.35)); }
.logo-mark .logo-icon { width: 34px; height: 34px; }
.pulse-soft { animation: logoPulse 4.5s ease-in-out infinite; }
@keyframes logoPulse { 50% { opacity: 0.78; } }
@media (prefers-reduced-motion: reduce) { .pulse-soft { animation: none; } }
.logo-stack { display: inline-flex; flex-direction: column; line-height: 1; gap: 5px; }
.logo-text {
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
}
.logo-text--lg { font-size: 1.2rem; letter-spacing: 0.3em; }
.logo-tag {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(129,140,248,0.85);
}
#footer .logo-mark .logo-icon { width: 46px; height: 46px; }
.logo:hover .logo-icon { filter: none; }
.about-diamond .logo-icon { width: 100%; height: auto; }
.about-diamond { filter: drop-shadow(0 0 40px rgba(129,140,248,0.3)); }

/* Výčet služeb jako terminál */
.hero-stack-lead {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}
.hero-stack-lead::before { content: '$ '; opacity: 0.6; }
.hero-stack-lead::after {
  content: '_';
  margin-left: 2px;
  animation: caret 1.1s steps(1) infinite;
}
.hero-stack-list {
  display: inline-flex;
  align-items: flex-start;
  text-align: left;
  margin: 14px 0 16px;
  gap: 4px;
}
.hero-stack-list li { display: flex; align-items: baseline; gap: 14px; }
.hero-stack-list li::before {
  content: '>';
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-weight: 700;
  color: var(--indigo);
}
.hero-stack-list a { font-family: var(--head); letter-spacing: -0.03em; transition: color .2s; }
.hero-stack-list a:hover, .hero-stack-list a:focus-visible { opacity: 1; color: var(--sky); }
.hero-stack-tail {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-stack-lead::after { animation: none; } }

/* Statistiky jako dlaždice */
.hero-stats { gap: 12px; flex-wrap: wrap; }
.stat-divider { display: none; }
.stat {
  min-width: 120px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--corners), rgba(10,13,23,0.7);
  align-items: flex-start;
}
.stat-num { font-family: var(--head); font-size: 1.7rem; }
.stat-label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }
.hero-scroll-hint { font-family: var(--mono); }

/* --- Karty s rohovými značkami --- */
.service-card,
.feature-card,
.post-card,
.link-card,
.ref-card,
.steps-inline li,
.contact-form,
.faq-item {
  border-radius: var(--r-lg);
  border-color: var(--line);
  background: var(--corners), var(--card);
}
.service-card::before { border-radius: var(--r-lg); }
.service-card:hover,
.feature-card:hover,
.post-card:hover,
.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.08), 0 18px 50px -20px rgba(99,102,241,0.45);
}
.link-card:hover { background: var(--corners), rgba(56,189,248,0.04); }
.service-card.featured {
  border-color: rgba(99,102,241,0.45);
  background: var(--corners), linear-gradient(135deg, rgba(56,189,248,0.05), rgba(168,85,247,0.07)), var(--card);
}
.featured-badge {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 2px;
  background: rgba(56,189,248,0.08);
}
.service-card::after {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(56,189,248,0.35);
}
.service-card h3, .feature-card h3 { font-family: var(--head); letter-spacing: -0.02em; }
.card-more, .post-more, .ref-link {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Tagy: #štítek */
.service-tags span, .ref-service {
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
  border-color: var(--line);
}
.service-tags span::before { content: '#'; color: var(--sky); margin-right: 2px; }

/* Ikony a čísla kroků */
.point-icon, .contact-icon { border-radius: var(--r); }
.step-number, .steps-inline li::before { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; }
.process-connector { height: 1px; background: repeating-linear-gradient(90deg, var(--indigo) 0 6px, transparent 6px 12px); opacity: 0.6; }

/* FAQ */
.faq-item[open] { border-color: rgba(56,189,248,0.3); background: var(--corners), rgba(56,189,248,0.03); }
.faq-item summary::after { font-family: var(--mono); font-size: 1.1rem; color: var(--sky); }

/* CTA */
.cta-inner {
  border-radius: var(--r-lg);
  border-color: rgba(99,102,241,0.3);
  background:
    var(--corners),
    linear-gradient(135deg, rgba(56,189,248,0.05), rgba(99,102,241,0.09), rgba(168,85,247,0.05)),
    var(--card);
}
.cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grid);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.cta-inner > * { position: relative; }

/* Formulář */
.form-group label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; }
.form-group input, .form-group select, .form-group textarea {
  border-radius: var(--r);
  border-color: var(--line);
  background: rgba(5,5,8,0.6);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12);
}
.contact-item strong { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; }

/* --- Podstránky --- */
.page-hero > .container { position: relative; z-index: 2; }
.page-hero .neural-canvas { opacity: 0.7; }
.breadcrumbs ol { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.breadcrumbs li + li::before { content: '/'; color: var(--sky); opacity: 0.6; }
.page-section h2, .prose h2, .prose h3 { font-family: var(--head); letter-spacing: -0.03em; }
.check-list li::before { border-radius: 3px; }
.post-lead { border-radius: 0 var(--r) var(--r) 0; border-left-color: var(--sky); }
.post-cta { border-radius: var(--r-lg); background: var(--corners), linear-gradient(135deg, rgba(56,189,248,0.04), rgba(168,85,247,0.06)); }
.post-meta, .ref-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.table-wrap { border-radius: var(--r); }
.prose th { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.preview-banner { border-radius: var(--r); font-family: var(--mono); font-size: 0.8rem; }

.svc-figure { border-radius: var(--r-lg); border-color: rgba(56,189,248,0.25); }
.svc-figure::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--corners);
  z-index: 1;
  pointer-events: none;
}

/* --- Patička --- */
.footer-col strong { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--sky); }
.footer-col strong::before { content: '// '; opacity: 0.6; }
.footer-bottom { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; }
