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

:root {
  --bg: #0a0c0f;
  --bg2: #0f1218;
  --bg3: #141820;
  --bg4: #1a2030;
  --cyan: #00d4ff;
  --cyan2: #00aacc;
  --cyan-dim: rgba(0,212,255,0.12);
  --cyan-glow: rgba(0,212,255,0.06);
  --text: #e8edf5;
  --text2: #8b9ab5;
  --text3: #4a5568;
  --border: rgba(0,212,255,0.15);
  --border2: rgba(255,255,255,0.06);
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: rgba(0,212,255,0.25); color: #fff; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan2); border-radius: 2px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw;
  height: 64px;
  background: rgba(10,12,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border2);
}

.nav-logo {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--cyan); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  padding: 8px 20px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s !important;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.nav-cta:hover { background: var(--cyan-dim) !important; color: var(--cyan) !important; }

/* HERO */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 6vw 80px;
  overflow: hidden;
  background-image: url('podklady/tile-server.jpg');
  background-size: cover;
  background-position: center;
}
#hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: rgba(10, 12, 15, 0.88);
}

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-scan-line { z-index: 2; }
.hero-accent { z-index: 2; }

.hero-scan-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
  animation: scan 6s ease-in-out infinite;
}
@keyframes scan {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { top: 90%; opacity: 0; }
}

.hero-accent {
  position: absolute; right: 6vw; top: 50%;
  transform: translateY(-50%);
  width: 380px; height: 380px;
  opacity: 0.08;
}
.hero-accent-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: pulse-ring 4s ease-in-out infinite;
}
.r1 { inset: 0; }
.r2 { inset: 30px; animation-delay: 0.5s; opacity: 0.7; }
.r3 { inset: 70px; animation-delay: 1s; opacity: 0.5; }
.r4 { inset: 120px; animation-delay: 1.5s; opacity: 0.3; }
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.6; }
}

.hero-cross {
  position: absolute; width: 12px; height: 12px;
  animation: blink 2s ease-in-out infinite;
}
.hero-cross::before, .hero-cross::after {
  content: ''; position: absolute; background: var(--cyan);
}
.hero-cross::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.hero-cross::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

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

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 28px;
}
.hero-tag::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--cyan);
}

.hero-h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--cyan);
  display: block;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 40px;
  font-family: var(--mono);
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cyan);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 13px 28px;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-glow); }

.hero-stats {
  display: flex; gap: 48px; margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--border2);
}
.stat-num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.stat-label { font-size: 11px; color: var(--text3); letter-spacing: 0.06em; margin-top: 4px; }

/* SECTION BASE */
section { padding: 100px 6vw; }
.section-tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-tag::before {
  content: '//'; font-weight: 500; opacity: 0.6;
}
.section-h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-desc {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 60px;
}

/* SERVICES */
#sluzby {
  background: var(--bg2);
  position: relative;
}
#sluzby::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('podklady/tile-dashboard.jpg');
  background-size: cover; background-position: center bottom;
  opacity: 0.06;
}
#sluzby > * { position: relative; z-index: 1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.service-card {
  background: var(--bg2);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.service-card:hover { background: var(--bg3); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: border-color 0.3s, background 0.3s;
}
.service-card:hover .service-icon {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }

.service-num {
  position: absolute; top: 32px; right: 32px;
  font-size: 11px; color: var(--text3); letter-spacing: 0.1em;
  font-family: var(--mono);
}

.service-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc { color: var(--text2); font-size: 13px; line-height: 1.7; }

/* REFERENCES */
#reference { background: var(--bg); }

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

.ref-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.ref-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.ref-card:hover { border-color: var(--border); }
.ref-card:hover::after { opacity: 1; }

.ref-badge {
  display: inline-block;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--cyan);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 2px;
  margin-bottom: 20px;
}

.ref-logo {
  font-family: var(--display);
  font-size: 26px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.ref-sub { font-size: 11px; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px; }
.ref-link { color: var(--cyan); text-decoration: none; }
.ref-link:hover { text-decoration: underline; }

.ref-divider {
  height: 1px; background: var(--border2); margin-bottom: 24px;
}

.ref-items { display: flex; flex-direction: column; gap: 12px; }

.ref-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.ref-item-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0; margin-top: 6px;
}
.ref-item span { color: var(--text2); font-size: 13px; line-height: 1.6; }

.ref-outcomes {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border2);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ref-outcome {
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 3px 10px; border-radius: 2px;
  font-family: var(--mono);
}

.ref-card--has-img { padding: 0; }

.ref-card-body { padding: 28px 40px 40px; position: relative; }

.ref-img-wrap {
  height: 190px;
  overflow: hidden;
  position: relative;
}
.ref-img-wrap::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(to top, var(--bg2), transparent);
  pointer-events: none;
}
.ref-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  filter: brightness(0.78) saturate(0.7) contrast(1.05);
  transition: transform 0.5s ease;
}
.ref-card--has-img:hover .ref-img { transform: scale(1.04); }

.ref-bg-text {
  position: absolute; bottom: -20px; right: -10px;
  font-family: var(--display); font-size: 80px; font-weight: 800;
  color: rgba(255,255,255,0.02); pointer-events: none; user-select: none;
  letter-spacing: -0.04em;
}

/* ABOUT */
#omne {
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--text2); font-size: 14px; line-height: 1.85;
  margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-highlights {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 32px;
}

.about-highlight {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.about-highlight:hover {
  border-left-color: var(--cyan);
  background: var(--cyan-glow);
}
.ah-icon { color: var(--cyan); font-size: 18px; flex-shrink: 0; }
.ah-icon svg { width: 18px; height: 18px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }
.ah-label { font-size: 13px; color: var(--text); }
.ah-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }

.about-credential {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--border2);
  background: var(--bg3);
}
.cred-title { font-size: 11px; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.cred-value { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--text); }
.cred-sub { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* ABOUT PORTRAIT */
.about-portrait-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--bg3);
  box-shadow: 0 0 60px rgba(0,212,255,0.08);
  min-height: 340px;
}

.portrait-bg-it {
  position: absolute; inset: 0; z-index: 0;
  background: url('podklady/tile-workflow.jpg') center / cover no-repeat;
  filter: blur(3px) brightness(0.18) saturate(1.8);
  transform: scale(1.06);
}

.about-portrait-frame img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  filter: brightness(0.84) contrast(1.08) saturate(0.72);
  mix-blend-mode: luminosity;
}

.about-portrait-frame::before {
  content: '';
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.35), transparent);
  z-index: 3; pointer-events: none;
  animation: portrait-scan 6s ease-in-out infinite;
}
@keyframes portrait-scan {
  0%   { top: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.about-portrait-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 180px; z-index: 2;
  background: linear-gradient(to top, var(--bg2) 0%, transparent 100%);
  pointer-events: none;
}

.about-portrait-tag {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
}

.apt-name {
  font-family: var(--display);
  font-size: 16px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}

.apt-role {
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  font-family: var(--mono);
}

.ap-corner {
  position: absolute; width: 18px; height: 18px; z-index: 3;
}
.ap-corner.c-tl { top: 0; left: 0; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.ap-corner.c-tr { top: 0; right: 0; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.ap-corner.c-bl { bottom: 0; left: 0; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.ap-corner.c-br { bottom: 0; right: 0; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

/* INTERESTS & ACTIVITIES */
#zajmy { background: var(--bg2); }

.zajmy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.zajmy-photo-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 0 40px rgba(0,212,255,0.05);
}

.zajmy-stage {
  width: 100%;
  min-height: 180px;
  position: relative;
  background: var(--bg4);
  overflow: hidden;
  transition: height 0.55s ease;
}

.stage-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0;
  transition: opacity 0.65s ease;
  filter: brightness(0.84) saturate(0.82) contrast(1.06);
}
.stage-img.active { opacity: 1; }

.zajmy-dots {
  position: absolute; bottom: 52px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 4;
}

.zajmy-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--cyan);
  background: transparent;
  cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.zajmy-dot:hover { transform: scale(1.3); }
.zajmy-dot.active { background: var(--cyan); }

.zajmy-photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(10,12,15,0.92), transparent);
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--text2);
  letter-spacing: 0.07em; text-transform: uppercase;
  font-family: var(--mono);
}
.zajmy-photo-label svg {
  width: 14px; height: 14px;
  stroke: var(--cyan); fill: none; stroke-width: 1.5; flex-shrink: 0;
}

.zajmy-list {
  display: flex; flex-direction: column; gap: 8px;
}

.activity-item {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  transition: border-color 0.25s, background 0.25s;
  cursor: default;
}
.activity-item[data-photos] { cursor: pointer; }
.activity-item:hover {
  border-color: var(--border);
  background: var(--bg4);
}
.activity-item:hover .activity-icon {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}
.activity-item.is-active {
  border-color: rgba(0,212,255,0.4) !important;
  background: var(--bg4) !important;
}
.activity-item.is-active .activity-icon {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.activity-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--border2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}
.activity-icon svg {
  width: 18px; height: 18px;
  stroke: var(--cyan); fill: none; stroke-width: 1.5;
}

.activity-text { flex: 1; min-width: 0; }

.activity-title {
  font-family: var(--display);
  font-size: 14px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}
.activity-sub {
  font-size: 11px; color: var(--text3);
  margin-top: 4px; letter-spacing: 0.04em;
}
.activity-link {
  color: var(--cyan); text-decoration: none;
}
.activity-link:hover { text-decoration: underline; }


@media (max-width: 768px) {
  .zajmy-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* TECH STACK */
#technologie {
  background: var(--bg);
  position: relative;
}
#technologie::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('podklady/tile-connectivity.jpg');
  background-size: cover; background-position: center;
  opacity: 0.05;
}
#technologie > * { position: relative; z-index: 1; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
  margin-bottom: 60px;
}

.tech-item {
  background: var(--bg);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.25s;
  cursor: default;
}
.tech-item:hover { background: var(--bg3); }

.tech-icon { font-size: 24px; margin-bottom: 10px; color: var(--cyan); }
.tech-icon svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 1.5; margin: 0 auto; display: block; }
.tech-name {
  font-family: var(--display);
  font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px;
}
.tech-type { font-size: 10px; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; }

.tech-bars { display: flex; flex-direction: column; gap: 16px; }
.tech-bar-row { display: grid; grid-template-columns: 160px 1fr 40px; align-items: center; gap: 16px; }
.tech-bar-label { font-size: 12px; color: var(--text2); }
.tech-bar-track {
  height: 4px; background: var(--border2); border-radius: 2px; overflow: hidden;
}
.tech-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--cyan2), var(--cyan));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  animation: barFill 1.2s ease-out forwards;
}
@keyframes barFill { to { transform: scaleX(1); } }
.tech-bar-pct { font-size: 11px; color: var(--text3); text-align: right; }

/* CONTACT */
#kontakt {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
#kontakt::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('podklady/tile-gears.jpg');
  background-size: cover; background-position: center right;
  opacity: 0.07;
}

.contact-grid-bg {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.contact-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.contact-cta-text {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.contact-cta-text span { color: var(--cyan); }

.contact-sub { color: var(--text2); font-size: 14px; line-height: 1.7; margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 4px; }

.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border2);
  text-decoration: none;
  transition: padding-left 0.2s;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { padding-left: 8px; }

.cr-icon { color: var(--cyan); flex-shrink: 0; }
.cr-icon svg { width: 16px; height: 16px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }

.cr-label { font-size: 10px; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.cr-value { font-size: 14px; color: var(--text); }

.contact-form { width: 100%; margin-bottom: 0; }

.contact-textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 14px 16px;
  border-radius: 2px;
  resize: vertical;
  outline: none;
  min-height: 120px;
  margin-bottom: 12px;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.contact-textarea::placeholder { color: var(--text3); }

.company-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 12px 20px;
  margin-bottom: 28px;
}
.cb-label { font-size: 11px; color: var(--text3); letter-spacing: 0.06em; text-transform: uppercase; }
.cb-value { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--text); }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 6vw 48px;
  border-bottom: 1px solid var(--border2);
}

.footer-logo {
  font-family: var(--display);
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--cyan); }

.footer-tagline {
  font-size: 12px; color: var(--text2);
  line-height: 1.6; margin-bottom: 6px;
  max-width: 200px;
}

.footer-company {
  font-size: 11px; color: var(--text3);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-socials { display: flex; gap: 8px; }

.footer-social {
  width: 34px; height: 34px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}
.footer-social svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
}

.footer-nav-title {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 16px;
  font-family: var(--mono);
}

.footer-nav-link {
  display: block;
  font-size: 13px; color: var(--text2);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-nav-link:hover { color: var(--cyan); padding-left: 4px; }

.footer-cta-link {
  color: var(--cyan) !important;
  font-weight: 500;
  margin-top: 8px;
}

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 6vw;
}

.footer-copy { font-size: 11px; color: var(--text3); }
.footer-mono { font-family: var(--mono); color: var(--cyan); font-size: 11px; opacity: 0.6; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 6vw 32px; }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* DATA TICKER */
.data-ticker {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  background: var(--bg3);
  padding: 10px 0;
}
.ticker-track {
  display: flex; gap: 48px; align-items: center;
  animation: tickerScroll 20s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* TESTIMONIALS */
#recenze {
  background: var(--bg);
  position: relative;
}
#recenze::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('podklady/tile-analysis.jpg');
  background-size: cover; background-position: center;
  opacity: 0.05;
}
#recenze > * { position: relative; z-index: 1; }

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

.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.testimonial-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.testimonial-card:hover { border-color: var(--border); }
.testimonial-card:hover::before { opacity: 1; }

.testimonial-quote-mark {
  font-family: var(--display);
  font-size: 72px; line-height: 0.8;
  color: var(--cyan); opacity: 0.25;
  font-weight: 800; letter-spacing: -0.04em;
  margin-bottom: 16px; display: block;
}

.testimonial-text {
  color: var(--text2);
  font-size: 13px; line-height: 1.85;
  margin-bottom: 24px;
  font-family: var(--mono);
}

.testimonial-divider {
  height: 1px; background: var(--border2); margin-bottom: 20px;
}

.testimonial-author {
  display: flex; align-items: center; gap: 16px;
}

.testimonial-photo-wrap {
  position: relative;
  width: 56px; height: 56px; flex-shrink: 0;
}
.testimonial-photo-wrap .ap-corner {
  width: 10px; height: 10px;
}

.testimonial-photo-placeholder {
  width: 100%; height: 100%;
  background: var(--bg4);
  border: 1px dashed rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.testimonial-photo-placeholder svg {
  width: 22px; height: 22px;
  stroke: var(--text3); fill: none; stroke-width: 1.5;
}

.testimonial-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  filter: brightness(0.84) contrast(1.08) saturate(0.72);
}

.testimonial-name {
  font-family: var(--display);
  font-size: 15px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}

.testimonial-role {
  font-size: 11px; color: var(--text3);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-top: 3px; line-height: 1.4;
}

.testimonial-company {
  font-size: 11px; color: var(--cyan);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--mono); margin-top: 3px;
}

/* HERO PORTRAIT */
/* Společné rozměry pro portrét i chart — musí být identické */
/* foto ratio 1402:1122 ≈ 5:4 → výška = šířka × 0.8 */
:root { --hero-panel-w: clamp(320px, 38vw, 500px); --hero-panel-h: clamp(256px, 30.4vw, 400px); }

.hero-portrait-wrap {
  position: absolute;
  right: 5vw; top: 50%;
  transform: translateY(-48%);
  width: var(--hero-panel-w);
  height: var(--hero-panel-h);
  z-index: 3;
  transition: opacity 0.28s ease;
}
@media (max-width: 1080px) { .hero-portrait-wrap { display: none; } }

@keyframes portraitEntrance {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-portrait-inner {
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,212,255,0.12), 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.45s cubic-bezier(0.34,1.36,0.64,1),
              box-shadow 0.45s ease;
  transform-origin: right center;
  position: relative;
  width: 100%; height: 100%;
  animation: portraitEntrance 1.0s cubic-bezier(0.34,1.56,0.64,1) 0.35s both;
}
html.light .hero-portrait-inner {
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 8px 40px rgba(15,23,42,0.15);
}
.hero-portrait-wrap:hover .hero-portrait-inner {
  transform: scale(1.13);
  box-shadow: 0 0 100px rgba(0,212,255,0.22), 0 36px 90px rgba(0,0,0,0.7);
}
html.light .hero-portrait-wrap:hover .hero-portrait-inner {
  box-shadow: 0 12px 60px rgba(15,23,42,0.22);
}

.hero-portrait-img {
  width: 100%; height: 100%; display: block;
  object-fit: contain; object-position: center center;
  filter: brightness(0.92) contrast(1.06) saturate(0.88);
  transition: filter 0.45s;
}
html.light .hero-portrait-img { filter: brightness(1.0) contrast(1.02) saturate(1.0); }
.hero-portrait-wrap:hover .hero-portrait-img { filter: brightness(1.0) contrast(1.06) saturate(1.0); }

/* Toggle tlačítko (graf / fotka) */
.hero-view-btn {
  position: absolute; bottom: 54px; right: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 3px;
  background: rgba(10,12,15,0.65); color: var(--cyan);
  border: 1px solid var(--border); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s, background 0.2s;
  z-index: 4;
}
html.light .hero-view-btn { background: rgba(255,255,255,0.82); color: var(--accent); border-color: var(--border2); }
.hero-portrait-wrap:hover .hero-view-btn { opacity: 1; }
.hero-view-btn:hover { background: var(--cyan-dim); }
.hcp-back-btn {
  position: absolute; top: 8px; right: 8px;
  opacity: 1; bottom: auto; z-index: 5;
  background: rgba(10,12,15,0.5);
}
html.light .hcp-back-btn { background: rgba(255,255,255,0.82); }
.hero-chart-panel { transition: opacity 0.28s ease; }

.hero-portrait-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}
html.light .hero-portrait-fade {
  background: linear-gradient(to top, #f8fafc 0%, transparent 100%);
}

.hero-portrait-tag {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
}
.hpt-name {
  display: block;
  font-family: var(--display);
  font-size: 15px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
html.light .hpt-name { text-shadow: none; color: #0f172a; }
.hpt-role {
  display: block;
  font-size: 10px; color: var(--cyan);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--mono); margin-top: 3px;
}

/* HERO CHART PANEL */
.hero-chart-panel {
  position: absolute; right: 5vw; top: 50%;
  transform: translateY(-48%);
  width: var(--hero-panel-w);
  height: var(--hero-panel-h);
  z-index: 3;
  overflow: hidden;
  display: none;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.34,1.36,0.64,1),
              box-shadow 0.45s ease, opacity 0.28s ease;
  transform-origin: right center;
}
.hero-chart-panel.is-scaled {
  transform: translateY(-48%) scale(1.13);
  box-shadow: 0 0 100px rgba(0,212,255,0.22), 0 36px 90px rgba(0,0,0,0.7);
}
html.light .hero-chart-panel.is-scaled {
  box-shadow: 0 12px 60px rgba(15,23,42,0.22);
}
/* původní vlastnosti (přepíší duplikát níže) */
._dummy {
  background: rgba(10,12,15,0.58);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  padding: 14px 16px 12px;
}
html.light .hero-chart-panel {
  background: rgba(255,255,255,0.82);
  border-color: rgba(37,99,235,0.22);
  box-shadow: 0 8px 40px rgba(15,23,42,0.1);
}
@media (max-width: 1080px) {
  .hero-chart-panel { display: block; } /* chart zpět na menších obrazovkách kde není portrait */
  .hero-portrait-wrap { display: none; }
}

.hcp-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--mono); margin-bottom: 8px;
}
.hcp-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  animation: blink 1.4s ease-in-out infinite;
}
.hcp-head-label { flex: 1; color: var(--cyan); opacity: 0.7; font-size: 9px; }
.hcp-delta { color: #22c55e; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }

/* Tabs */
.hcp-tabs {
  display: flex; gap: 4px; margin-bottom: 10px;
}
.hcp-tab {
  flex: 1; padding: 4px 0;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: none; border: 1px solid transparent;
  color: var(--text3); cursor: pointer; border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hcp-tab:hover { color: var(--cyan); border-color: var(--border); }
.hcp-tab.active { color: var(--cyan); border-color: var(--border); background: var(--cyan-dim); }
.hcp-tab-live { color: #22c55e !important; }
.hcp-tab-live:hover, .hcp-tab-live.active { border-color: rgba(34,197,94,0.4) !important; background: rgba(34,197,94,0.08) !important; }

/* Hover dots */
.hcp-hover-dot { fill: var(--cyan); opacity: 0; transition: opacity 0.15s; }

/* Tooltip */
.hcp-tooltip {
  display: none;
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 2px;
  pointer-events: none; white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}

.hcp-svg { width: 100%; display: block; flex: 1; min-height: 0; margin-bottom: 10px; overflow: visible; }

.hcp-grid { stroke: var(--cyan); stroke-width: 0.5; opacity: 0.12; }
.hcp-area { fill: var(--cyan); opacity: 0.07; }
.hcp-line-main {
  fill: none; stroke: var(--cyan); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.hcp-line-sec {
  fill: none; stroke: var(--cyan); stroke-width: 1.2;
  stroke-linecap: round; stroke-dasharray: 4 3; opacity: 0.45;
}
.hcp-dot { fill: var(--cyan); animation: blink 1.5s ease-in-out infinite; }

.hcp-bars {
  display: flex; gap: 5px; align-items: flex-end;
  height: 48px;
  border-top: 1px solid rgba(0,212,255,0.1);
  padding-top: 6px;
}
html.light .hcp-bars { border-top-color: rgba(37,99,235,0.1); }

.hcp-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; justify-content: flex-end; }

.hcp-bar {
  width: 100%; height: 0;
  background: var(--cyan); opacity: 0.55;
  border-radius: 1px 1px 0 0;
  animation: hcp-bar-grow 0.65s ease-out forwards;
}
@keyframes hcp-bar-grow { to { height: var(--bh); } }
.hcp-bar-col:nth-child(1) .hcp-bar { animation-delay: 0.9s; }
.hcp-bar-col:nth-child(2) .hcp-bar { animation-delay: 1.0s; }
.hcp-bar-col:nth-child(3) .hcp-bar { animation-delay: 1.1s; }
.hcp-bar-col:nth-child(4) .hcp-bar { animation-delay: 1.2s; }
.hcp-bar-col:nth-child(5) .hcp-bar { animation-delay: 1.3s; }
.hcp-bar-col:nth-child(6) .hcp-bar { animation-delay: 1.4s; }
.hcp-bar-col:nth-child(7) .hcp-bar { animation-delay: 1.5s; }

.hcp-blabel { font-size: 7px; color: var(--text3); font-family: var(--mono); letter-spacing: 0.04em; }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  width: 32px; height: 32px; border-radius: 4px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.theme-toggle svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
}
.theme-toggle .icon-sun  { display: none; }
html.light .theme-toggle .icon-sun  { display: block; }
html.light .theme-toggle .icon-moon { display: none; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--border2);
  border-radius: 4px; cursor: pointer; padding: 7px 8px;
  transition: border-color 0.2s;
  z-index: 102; position: relative;
}
.hamburger:hover { border-color: var(--cyan); }
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text2); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
nav.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .hamburger span:nth-child(2) { opacity: 0; }
nav.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   LIGHT THEME
═══════════════════════════════════════ */
html.light {
  --bg:        #ffffff;
  --bg2:       #f8fafc;
  --bg3:       #f1f5f9;
  --bg4:       #e2e8f0;
  --cyan:      #2563eb;
  --cyan2:     #1d4ed8;
  --cyan-dim:  rgba(37,99,235,0.09);
  --cyan-glow: rgba(37,99,235,0.04);
  --text:      #0f172a;
  --text2:     #475569;
  --text3:     #94a3b8;
  --border:    rgba(37,99,235,0.25);
  --border2:   #e2e8f0;
  --mono:      'Inter', sans-serif;
  --display:   'Plus Jakarta Sans', sans-serif;
}

html.light nav {
  background: rgba(255,255,255,0.94);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 16px rgba(15,23,42,0.07);
}

html.light #hero::before {
  background: rgba(248,250,252,0.88);
}

html.light .hero-grid-bg {
  background-image:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
}

html.light .hero-scan-line {
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

html.light .contact-grid-bg {
  background-image:
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
}

html.light .about-portrait-frame img {
  mix-blend-mode: normal;
  filter: brightness(0.96) contrast(1.04) saturate(0.85);
}

html.light .portrait-bg-it {
  filter: blur(3px) brightness(0.5) saturate(1.2);
}

html.light ::-webkit-scrollbar-track { background: var(--bg2); }
html.light ::-webkit-scrollbar-thumb { background: var(--cyan2); }

/* RESPONSIVE */
@media (max-width: 768px) {
  #omne { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { gap: 28px; }
  .hero-accent { display: none; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed; inset: 0; z-index: 100;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    background: var(--bg);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  nav.nav-open .nav-links { opacity: 1; pointer-events: all; }

  .nav-links a {
    font-family: var(--display) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    padding: 10px 0 !important;
    border: none !important;
    background: none !important;
    opacity: 0;
    transform: translateY(12px);
    transition: color 0.2s, opacity 0.3s ease, transform 0.3s ease;
  }
  nav.nav-open .nav-links a { opacity: 1; transform: none; }
  nav.nav-open .nav-links a:nth-child(1) { transition-delay: 0.05s; }
  nav.nav-open .nav-links a:nth-child(2) { transition-delay: 0.1s;  }
  nav.nav-open .nav-links a:nth-child(3) { transition-delay: 0.15s; }
  nav.nav-open .nav-links a:nth-child(4) { transition-delay: 0.2s;  }
  nav.nav-open .nav-links a:nth-child(5) { transition-delay: 0.25s; }
  nav.nav-open .nav-links a:nth-child(6) { transition-delay: 0.3s;  }
  nav.nav-open .nav-links a:nth-child(7) { transition-delay: 0.35s; }
  .nav-links a:hover { color: var(--cyan) !important; }

  .nav-links .nav-cta {
    margin-top: 12px;
    font-size: 14px !important;
    padding: 12px 36px !important;
  }
}
