/* ==========================================================================
   BioCortexAI Stylesheet - 1:1 Design Parity with predloha.png
   ========================================================================== */

:root {
  --bg-dark: #070e1b;
  --bg-deep: #050a14;
  --bg-surface: #0a1324;
  --bg-surface-elevated: #0f1c32;
  --bg-card: #0b1526;
  --bg-card-hover: #101e36;

  --border-subtle: #16263e;
  --border-medium: #1d3353;
  --border-bright: #38bdf8;

  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.15);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-cyan {
  color: var(--accent-cyan);
}

.link-cyan:hover {
  text-decoration: underline;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Helpers */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 60%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.inline-badge {
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  gap: 6px;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

/* Badges System */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-available {
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.badge-internal {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #475569;
  color: #94a3b8;
}

.badge-indev {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}

.corner-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(2, 132, 199, 0.3);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  z-index: 5;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 14, 27, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
}

.nav-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 21, 38, 0.75);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  font-weight: 700;
}

@media (max-width: 480px) {
  .lang-switch {
    padding: 2px;
    gap: 1px;
  }

  .lang-btn {
    min-width: 26px;
    height: 25px;
    padding: 0 5px;
    font-size: 0.7rem;
  }
}

.cybergen-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #081220;
  border: 1px solid #1c2d46;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.cybergen-small {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.cybergen-main {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 800;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 50px 0 30px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 48px;
}

.hero-badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-notice {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 480px;
}

/* Hero Right: Preview */
.hero-preview {
  position: relative;
}

.preview-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.preview-tab {
  background: #091322;
  border: 1px solid #1a2c46;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-tab.active {
  background: #0d1e38;
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.window-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.hero-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-preview-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: center;
}

/* Mini Strip Carousel */
.mini-strip-container {
  margin-top: 40px;
}

.mini-strip-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.mini-strip-scroll::-webkit-scrollbar {
  display: none;
}

.strip-scrollbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.strip-arrow {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.strip-arrow:hover {
  color: var(--accent-cyan);
}

.strip-custom-track {
  flex: 1;
  height: 8px;
  background: #111e33;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.strip-custom-thumb {
  width: 25%;
  height: 100%;
  background: #334b6b;
  border-radius: 4px;
  transition: transform 0.05s ease;
}

.mini-strip {
  display: flex;
  gap: 12px;
  min-width: max-content;
}

.mini-card {
  width: 160px;
  background: rgba(11, 21, 38, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.mini-card:hover {
  background: rgba(16, 30, 54, 0.9);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.mini-thumb {
  height: 75px;
  border-radius: 6px;
  overflow: hidden;
  background: #050a12;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Section 2: Architecture Diagram "Jedna paměť, mnoho produktů"
   ========================================================================== */
.diagram-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #050a14 100%);
  padding: 70px 0;
}

.diagram-wrapper {
  background: #08101e;
  border: 1px solid #182b46;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.diagram-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #0a1426;
  border-bottom: 1px solid #182b46;
  gap: 20px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.toggle-pill-group {
  display: flex;
  background: #060c16;
  border: 1px solid #1a2f4d;
  border-radius: var(--radius-pill);
  padding: 2px;
}

.toggle-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-pill.active {
  background: #0284c7;
  color: #ffffff;
}

.toolbar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 720px;
}

/* Legend Bar */
.diagram-legend-bar {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  background: #070e1c;
  border-bottom: 1px solid #15243b;
  gap: 20px;
  font-size: 0.76rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  display: inline-block;
  width: 24px;
  height: 2px;
}

.solid-line {
  background: var(--accent-cyan);
}

.dotted-line {
  border-bottom: 2px dotted var(--accent-cyan);
  height: 0;
}

.dashed-line {
  border-bottom: 2px dashed #64748b;
  height: 0;
}

.legend-badge-icon {
  display: inline-block;
  width: 14px;
  height: 10px;
  border: 1px solid var(--accent-cyan);
  border-radius: 2px;
}

/* Diagram Board Layout – absolutní rozvržení 1:1 podle předlohy (referenční plátno 938 × 857) */
.diagram-scroll {
  overflow-x: auto;
  padding: 26px 26px 30px;
}

.diagram-stage {
  container-type: inline-size;
  min-width: 840px;
}

.diagram-board {
  --u: calc(100cqw / 938);
  position: relative;
  width: 100%;
  aspect-ratio: 938 / 857;
  border: 1px solid #1a2c47;
  border-radius: calc(var(--u) * 14);
  background: linear-gradient(180deg, #0c1629 0%, #0a1324 100%);
  overflow: hidden;
  font-family: var(--font-family);
}

/* Pásy vrstev */
.diagram-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--u) * var(--y));
  height: calc(var(--u) * var(--h));
  border-top: 1px solid #16263f;
}

.diagram-layer:first-child {
  border-top: none;
}

.diagram-layer:nth-of-type(even) {
  background: rgba(20, 38, 66, 0.22);
}

.layer-sidebar {
  position: absolute;
  left: calc(var(--u) * 13);
  top: 0;
  bottom: 0;
  width: calc(var(--u) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(var(--u) * 2);
}

.layer-num {
  font-size: calc(var(--u) * 10.5);
  font-weight: 600;
  line-height: 1.2;
  color: #38bdf8;
}

.layer-title {
  font-size: calc(var(--u) * 12.5);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.layer-sub {
  font-size: calc(var(--u) * 9.5);
  line-height: 1.35;
  color: #6f829e;
}

/* SVG spojnice */
.diagram-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.conn-solid {
  stroke: #1f8fd6;
  stroke-width: 1.8;
  fill: none;
}

.conn-dotted {
  stroke: #7d93b0;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 0.1 4;
  fill: none;
}

.conn-label {
  position: absolute;
  z-index: 3;
  left: calc(var(--u) * var(--x));
  top: calc(var(--u) * var(--y));
  transform: translate(-50%, -50%);
  padding: calc(var(--u) * 2) calc(var(--u) * 9);
  font-size: calc(var(--u) * 9.5);
  line-height: 1.4;
  color: #a9b8cf;
  background: #0d172a;
  border: 1px solid #22344f;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Diagram Card (dcard) */
.dcard {
  position: absolute;
  z-index: 2;
  left: calc(var(--u) * var(--x));
  top: calc(var(--u) * var(--y));
  width: calc(var(--u) * var(--w));
  height: calc(var(--u) * var(--h));
  display: flex;
  flex-direction: column;
  background: #18253b;
  border: 1px solid #263a57;
  border-radius: calc(var(--u) * 11);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dcard:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
}

/* Koncový produkt: svítící rámeček */
.dcard-end {
  border: 2px solid #3cb7f5;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35),
    0 0 calc(var(--u) * 14) rgba(56, 189, 248, 0.55),
    inset 0 0 calc(var(--u) * 12) rgba(56, 189, 248, 0.22);
}

.dcard-end:hover {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.5),
    0 0 calc(var(--u) * 20) rgba(56, 189, 248, 0.75),
    inset 0 0 calc(var(--u) * 14) rgba(56, 189, 248, 0.3);
}

.dcard-thumb-wrap {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: #070d18;
  border-radius: calc(var(--u) * 9) calc(var(--u) * 9) 0 0;
}

.dcard-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.dcard-thumb-img.contain-svg {
  object-fit: contain;
  object-position: center;
}

.dcard-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--u) * 4);
  padding: calc(var(--u) * 8) calc(var(--u) * 10) calc(var(--u) * 5);
  background: #1a283f;
  border-radius: 0 0 calc(var(--u) * 9) calc(var(--u) * 9);
}

.dcard-title-text {
  font-size: calc(var(--u) * 12.5);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

/* Badge (pilulky stavu) uvnitř diagramu */
.diagram-board .badge-pill,
.diagram-legend-bar .badge-pill {
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  padding: 4px 9px;
  border: 1px solid transparent;
}

.diagram-board .badge-pill {
  font-size: calc(var(--u) * 9.5);
  padding: calc(var(--u) * 4) calc(var(--u) * 9);
  gap: calc(var(--u) * 5);
}

.diagram-board .badge-available,
.diagram-legend-bar .badge-available {
  background: #0a6cb0;
  border-color: #0a6cb0;
  color: #ffffff;
}

.diagram-board .badge-internal,
.diagram-legend-bar .badge-internal {
  background: rgba(70, 88, 118, 0.3);
  border-color: #36486a;
  color: #c9d4e3;
}

.diagram-board .badge-indev,
.diagram-legend-bar .badge-indev {
  background: transparent;
  border-color: #46587a;
  color: #d5deea;
}

.badge-pill .dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-pill .dot.hollow {
  background: transparent;
  border: 1.5px solid currentColor;
}

.diagram-board .badge-internal .dot,
.diagram-legend-bar .badge-internal .dot {
  background: #9aa8bd;
}

/* Příznak „koncový produkt“ */
.diagram-board .corner-product-badge {
  top: calc(var(--u) * 5);
  left: calc(var(--u) * 6);
  padding: calc(var(--u) * 2) calc(var(--u) * 7);
  font-size: calc(var(--u) * 8.5);
  font-weight: 700;
  line-height: 1.3;
  border: none;
  border-radius: 9999px;
  background: #54c6f9;
  color: #04233a;
  box-shadow: 0 0 10px rgba(84, 198, 249, 0.5);
}

/* NCM Core Special Card */
.dcard-ncm {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, #101d34 0%, #0d182b 100%);
  border: 1px solid #25385a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.dcard-ncm .ncm-big-title {
  position: absolute;
  left: calc(var(--u) * 28);
  top: calc(var(--u) * 12);
  font-size: calc(var(--u) * 46);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
  background: linear-gradient(180deg, #f1f4f9 0%, #a4adbb 55%, #6c7686 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.dcard-ncm .ncm-mesh-1 {
  position: absolute;
  left: calc(var(--u) * 40);
  top: calc(var(--u) * 60);
  height: calc(var(--u) * 46);
  width: auto;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
}

.dcard-ncm .ncm-mesh-2 {
  position: absolute;
  left: calc(var(--u) * 200);
  top: calc(var(--u) * 28);
  height: calc(var(--u) * 78);
  width: auto;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.45));
}

.dcard-ncm .dcard-footer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--u) * 112);
  background: transparent;
  padding: 0 calc(var(--u) * 10);
}


/* ==========================================================================
   Section 3: 12 Product Cards Grid
   ========================================================================== */
.products-section {
  background: var(--bg-dark);
  padding: 70px 0;
  scroll-margin-top: 70px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  scroll-margin-top: 85px;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.1);
}

.product-card:target,
.product-card.highlight-card {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070d18;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  white-space: nowrap;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 12px;
  background: rgba(14, 24, 42, 0.92);
  border: 1px solid #3a4a66;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.media-badge.badge-available {
  background: #0a6cb0;
  border-color: #1b86cf;
  color: #ffffff;
}

.media-badge.badge-internal {
  background: rgba(40, 52, 72, 0.92);
  border-color: #3d4d68;
  color: #e2e8f0;
}

.media-badge.badge-indev {
  background: rgba(10, 18, 32, 0.85);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.media-badge.badge-internal .dot {
  background: #9aa8bd;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.card-img.contain-svg {
  object-fit: cover;
  object-position: center;
}

.card-img.pos-center {
  object-position: center;
}

.product-card:hover .card-img {
  transform: scale(1.02);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.card-features {
  list-style: none;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.card-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.card-features li::before {
  content: "•";
  color: var(--accent-cyan);
  font-weight: bold;
  position: absolute;
  left: 2px;
  top: -1px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* Tlačítka v kartách: stejný obrysový styl jako v předloze */
.card-actions .btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: none;
  color: #ffffff;
  font-size: 0.86rem;
  padding: 9px 18px;
}

.card-actions .btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   Section 4: PROMO FILM "Zkušenost, která pokračuje"
   ========================================================================== */
.promo-film-section {
  padding: 70px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #050a14 100%);
}

.film-container-card {
  background: radial-gradient(circle at 75% 50%, #0e223f 0%, #081324 60%, #050c18 100%);
  border: 1px solid #192f4e;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.film-player-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.play-circle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.play-circle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.5);
}

.play-triangle {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-left: 3px;
}

.in-film-badge {
  font-size: 0.72rem;
}

.film-card-lead {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.7;
  color: #f8fafc;
}

.film-card-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.film-file-tag {
  display: inline-block;
  padding: 1px 7px;
  font-size: 0.9em;
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.film-status-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

.film-mesh-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-mesh-img {
  max-height: 210px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.film-mesh-img:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.5));


}

/* ==========================================================================
   Section 5: EDICE "Jak začít s pamětí NCM"
   ========================================================================== */
.editions-section {
  padding: 70px 0;
  background: var(--bg-dark);
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.edition-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.edition-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.edition-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.edition-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.edition-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.edition-features li {
  font-size: 0.86rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.edition-features li::before {
  content: "•";
  color: var(--accent-cyan);
  position: absolute;
  left: 2px;
  font-weight: bold;
}

.edition-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.editions-pricing-link {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 6: TECHNOLOGIE "Jak NCM funguje"
   ========================================================================== */
.tech-section {
  padding: 40px 0 70px;
  scroll-margin-top: 70px;
}

.tech-card {
  background: linear-gradient(135deg, #0a1629 0%, #07101e 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.tech-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.tech-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

.tech-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.tech-mesh-1 {
  height: 150px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.3));
}

.tech-mesh-2 {
  height: 250px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
}

/* ==========================================================================
   Section 7: FIRMA & Footer
   ========================================================================== */
.site-footer {
  background: #040810;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 30px;
}

.footer-company-block {
  margin-bottom: 32px;
}

.footer-main-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-lead-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.info-box {
  background: #070e1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.info-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.info-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  gap: 20px;
}

.footer-logo-img {
  height: 24px;
  width: auto;
}

.footer-bottom-copy p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-info-boxes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .main-nav,
  .cybergen-badge {
    display: none;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .products-grid,
  .editions-grid {
    grid-template-columns: 1fr;
  }

  .film-container-card,
  .tech-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
/* ===== Side drawer (product details) ===== */
body.drawer-lock { overflow: hidden; }
.drawer-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(3, 7, 15, 0.6); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100vh; width: 50vw; min-width: 340px; max-width: 100vw; background: var(--bg-surface); border-left: 1px solid var(--border-medium); box-shadow: -20px 0 60px rgba(0,0,0,.5); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.drawer-overlay.open .drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--border-subtle); }
.drawer-header-label { font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--accent-cyan); }
.drawer-close { background: transparent; color: var(--text-main); border: 1px solid var(--border-medium); border-radius: var(--radius-sm); padding: 7px 14px; font: 600 12px var(--font-family); cursor: pointer; transition: border-color .2s, background .2s; }
.drawer-close:hover { border-color: var(--accent-cyan); background: var(--bg-surface-elevated); }
.drawer-body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; padding: 24px; align-items: start; }
.drawer-media img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-medium); display: block; }
.drawer-caption { margin-top: 10px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.drawer-status { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); }
.drawer-title { font-size: 32px; line-height: 1.1; margin: 14px 0 6px; color: var(--text-main); }
.drawer-lead { color: var(--accent-cyan); font-size: 14px; font-weight: 500; }
.drawer-label { margin: 20px 0 8px; font-size: 10px; letter-spacing: .14em; color: var(--text-dim); font-weight: 600; }
.drawer-text, .drawer-list { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.drawer-list { padding-left: 18px; }
.drawer-list li { margin-bottom: 6px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.drawer-link-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border-medium); border-radius: var(--radius-sm); background: var(--bg-card); font-size: 12px; color: var(--text-muted); }
.drawer-link-card strong { color: var(--text-main); }
@media (max-width: 1100px) { .drawer-panel { width: 80vw; } }
@media (max-width: 800px) { .drawer-panel { width: 100vw; } .drawer-body { grid-template-columns: 1fr; } }
.drawer-img-contain { background: var(--bg-deep); padding: 24px; object-fit: contain; }
.drawer-actions .btn { text-decoration: none; }
.drawer-main-img { object-fit: cover; }
.drawer-main-img.drawer-img-contain { background: var(--bg-deep); padding: 24px; object-fit: contain; aspect-ratio: 4/3; }
.drawer-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.drawer-thumb { width: 76px; height: 52px; padding: 0; border: 1px solid var(--border-medium); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.drawer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer-thumb:hover, .drawer-thumb.active { opacity: 1; }
.drawer-thumb.active { border-color: var(--accent-cyan); box-shadow: 0 0 0 1px var(--accent-cyan); }
.drawer-status > span:not(.badge-pill) { font-size: 12px; color: var(--text-muted); }
.drawer-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.drawer-info { padding: 14px 16px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-card); }
.drawer-info-goal { border-style: dashed; background: transparent; }
.drawer-info span { font-size: 10px; letter-spacing: .14em; font-weight: 600; color: var(--text-dim); }
.drawer-info p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.drawer-links { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 500px) { .drawer-infos { grid-template-columns: 1fr; } }
.drawer-main-img { cursor: zoom-in; transition: filter .2s; }
.drawer-main-img:hover { filter: brightness(1.1); }
.lightbox { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(3, 7, 15, 0.92); backdrop-filter: blur(8px); cursor: zoom-out; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 20px 80px rgba(0,0,0,.6); transform: scale(.96); transition: transform .3s cubic-bezier(.22,1,.36,1); background: var(--bg-deep); }
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-medium); background: var(--bg-surface-elevated); color: var(--text-main); font-size: 16px; cursor: pointer; }
.lightbox-close:hover { border-color: var(--accent-cyan); }
