/* NEXE RD portál – společný styl */
@import url(/portal/static/fonts.css);
:root {
  --bg: #f7f9fc; --card: #ffffff; --ink: #0b1220; --ink2: #33405a; --muted: #4a5875; --dim: #64728c;
  --line: #e3e8f0; --line2: #d3dbe8; --blue: #2f6bff; --blue-t: #2f5fe0; --violet: #7c5cff;
  --grad: linear-gradient(100deg, #2f6bff, #7c5cff);
  --mono: 'JetBrains Mono', ui-monospace, monospace; --head: 'Space Grotesk', Inter, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, sans-serif; }
a { color: var(--blue-t); text-decoration: none; } a:hover { color: #1d43b8; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.tag { margin: 0 0 10px; font: 13px var(--mono); color: var(--blue-t); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.dots { background-color: var(--bg); background-image: radial-gradient(#d6deeb 1px, transparent 1px); background-size: 24px 24px; }

/* hlavička */
.hdr { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); position: relative; z-index: 5; }
.hdr .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.hdr .logo img { height: 88px; width: auto; display: block; }
.hdr.small .logo img { height: 56px; }
/* animované logo: otáčející se koule + nápis s probleskujícím odleskem */
.hdr .nxl { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; flex: none; } .hdr .nxl .nxl-w { margin-left: -14px; }
.hdr .nxl canvas { width: 112px; height: 112px; display: block; margin: -8px 0; }
.hdr .nxl .nxl-w { position: relative; display: block; }
.hdr .nxl .nxl-w img { height: 104px; }
.hdr .nxl .nxl-w::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 46.5%, rgba(255,255,255,.55) 48.5%, #fff 50%, rgba(150,235,255,.7) 51.2%, transparent 53%) no-repeat; background-size: 400% 100%;
  -webkit-mask: url(/static/logo-light.svg?v=2) center / 100% 100% no-repeat; mask: url(/static/logo-light.svg?v=2) center / 100% 100% no-repeat;
  animation: nxglint 5.5s ease-in-out infinite; }
@keyframes nxglint { 0%, 50% { background-position: 100% 0; } 80%, 100% { background-position: 0% 0; } }
.hdr.small .nxl canvas { width: 76px; height: 76px; margin: -4px 0; } .hdr.small .nxl .nxl-w img { height: 68px; }
@media (prefers-reduced-motion: reduce) { .hdr .nxl .nxl-w::after { animation: none; display: none; } }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px Inter, sans-serif; border: 0; cursor: pointer; }
.btn.primary { background: var(--grad); color: #fff; } .btn.primary:hover { color: #fff; filter: brightness(1.05); }
.btn.dark { background: var(--ink); color: #fff; } .btn.dark:hover { color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 9px; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > svg.web { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 88px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1px solid #dbe2ee; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink2); margin: 0 0 22px; }
.pill b { padding: 2px 8px; border-radius: 999px; background: #eaf0ff; color: var(--blue-t); font: 12px var(--mono); }
.hero h1 { margin: 0 0 22px; max-width: 900px; font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 0 32px; max-width: 640px; font-size: 19px; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.core { position: relative; width: 100%; max-width: 1160px; height: 640px; margin: 8px 0 48px; }
.core canvas { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px; }
.core svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow { stroke-dasharray: 5 8; animation: nxflow 1.4s linear infinite; }
@keyframes nxflow { to { stroke-dashoffset: -26; } }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px; background: #fff; border: 1px solid #dbe2ee; box-shadow: 0 10px 30px rgba(11,18,32,.08); text-align: left; }
.chip i { width: 40px; height: 40px; border-radius: 10px; background: #eaf0ff; display: flex; align-items: center; justify-content: center; }
.chip i.v { background: #f3edff; }
.chip b { display: block; font-size: 15px; color: var(--ink); }
.chip small { display: block; font: 11px var(--mono); color: #16784f; }
.chip small.n { color: var(--muted); } .chip small.p { color: #6a45d8; }
.core .label { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #cfd9ff; font: 12px var(--mono); white-space: nowrap; }
@media (max-width: 860px) { .chip, .core svg.links { display: none; } .core { height: 420px; } .core canvas { transform: scale(.65); } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } }

/* ukázka konzole */
.shot { width: 100%; max-width: 1080px; border: 1px solid #d8e0ec; border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -20px 60px rgba(47,107,255,.10); overflow: hidden; text-align: left; }
.shot .bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e8edf4; background: #fbfcfe; }
.shot .bar span.d { width: 10px; height: 10px; border-radius: 50%; background: #e1e6ee; display: inline-block; margin-right: 4px; }
.shot .url { flex: 1; max-width: 360px; margin: 0 auto; padding: 5px 12px; border-radius: 8px; background: #f0f3f8; font: 12px var(--mono); color: var(--muted); text-align: center; }
.shot .body { display: flex; flex-wrap: wrap; min-height: 380px; }
.shot .side { flex: 0 0 230px; border-right: 1px solid #e8edf4; padding: 18px 14px; background: #fbfcfe; }
.shot .side p { margin: 0 0 6px 8px; font: 11px var(--mono); color: var(--dim); }
.shot .dev { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--ink2); }
.shot .dev.on { background: #eaf0ff; color: #1d43b8; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16a46e; flex: 0 0 auto; } .dot.off { background: #b7c0cf; }
.shot .main { flex: 1 1 480px; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f0f3f8; width: fit-content; }
.tabs span { padding: 6px 14px; font-size: 13px; color: var(--muted); } .tabs span.on { border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(11,18,32,.08); font-weight: 600; color: var(--ink); }
.screen { flex: 1; min-height: 280px; border-radius: 12px; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #23407e 0%, #121a33 55%, #0b1220 100%); }
.screen .win { position: absolute; left: 8%; top: 12%; width: 50%; height: 60%; border-radius: 8px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.screen .win::before { content: ''; display: block; height: 26px; border-radius: 8px 8px 0 0; background: #eef2f7; border-bottom: 1px solid #e1e6ee; }
.screen .task { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: rgba(5,9,15,.72); }

/* sekce */
.sec { padding-top: 96px; padding-bottom: 40px; }
@media (max-width: 760px) { .sec { padding-top: 64px; } .wrap { padding-left: 20px; padding-right: 20px; } }
.sec h2 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; max-width: 720px; }
.sec .intro { margin: 0 0 40px; max-width: 640px; font-size: 18px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.card h3 { margin: 12px 0 6px; font-size: 21px; } .card p { margin: 0; color: var(--muted); }
.card.wide { grid-column: span 2; } @media (max-width: 700px) { .card.wide { grid-column: auto; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .chips span { padding: 4px 10px; border-radius: 8px; background: #f0f3f8; font: 12px var(--mono); color: var(--ink2); }
.dark-band { background: var(--ink); color: #e8eef9; position: relative; overflow: hidden; }
.dark-band h2 { color: #fff; } .dark-band .intro { color: #a9b8d2; } .dark-band .tag { color: #8fb0ff; }
.dark-band .card { background: #0f182b; border-color: #22304f; } .dark-band .card p { color: #dbe3f1; }
.dark-band .card .tag { margin: 0 0 6px; font-size: 12px; }

/* ceník */
.price { display: flex; flex-direction: column; gap: 12px; }
.price .amt { margin: 6px 0 0; font: 700 46px/1 var(--head); letter-spacing: -0.02em; }
.price .amt span { font: 500 16px Inter, sans-serif; color: var(--dim); letter-spacing: 0; }
.price .btn { margin-top: auto; }
.price.top { border: 2px solid var(--blue); box-shadow: 0 20px 50px rgba(47,107,255,.14); }
.badge { padding: 4px 12px; border-radius: 999px; background: #eaf0ff; font: 12px var(--mono); color: #1d43b8; }

/* FAQ */
.faq { border-top: 1px solid var(--line); } .faq div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 6px; font: 600 18px Inter, sans-serif; letter-spacing: 0; } .faq p { margin: 0; color: var(--muted); }

/* CTA + patička */
.cta { margin: 24px 0 96px; padding: 52px 44px; border-radius: 24px; background-color: #fff; background-image: radial-gradient(#dde4f0 1px, transparent 1px); background-size: 22px 22px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0 0 8px; font-size: 36px; }
.ftr { border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.ftr .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.ftr b { color: var(--ink); }

/* formuláře a vnitřní stránky */
.page { max-width: 1000px; margin: 0 auto; padding: 48px 24px 80px; }
.page.narrow { max-width: 520px; }
.page h1 { font-size: 36px; margin: 0 0 8px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin: 20px 0; box-shadow: 0 12px 40px rgba(47,107,255,.06); }
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink2); }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--ink); font: 15px Inter, sans-serif; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
form .btn { margin-top: 20px; }
.err { padding: 12px 16px; border-radius: 12px; background: #fff1f3; border: 1px solid #f3c2cc; color: #b42318; }
.warn { padding: 14px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f2c46b; color: #6b4a00; }
.ok { padding: 14px 16px; border-radius: 12px; background: #ecfdf3; border: 1px solid #a6e4c3; color: #0f5d3a; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font: 12px var(--mono); color: var(--dim); background: #fbfcfe; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.kv dt { font: 12px var(--mono); color: var(--dim); padding-top: 3px; } .kv dd { margin: 0; }
.state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font: 12px var(--mono); background: #eef2f7; color: var(--ink2); }
.state.g { background: #ecfdf3; color: #0f5d3a; } .state.y { background: #fff7e6; color: #6b4a00; } .state.r { background: #fff1f3; color: #b42318; }
.inline { display: inline; } .inline .btn { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* mobil: kompaktní hlavička s nabídkou pod tlačítkem */
.burger { display: none; }
@media (max-width: 760px) {
  .hdr .wrap { padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
  .hdr .logo img, .hdr.small .logo img { height: 64px; }
  .hdr .nxl canvas, .hdr.small .nxl canvas { width: 64px; height: 64px; margin: -4px 0; } .hdr .nxl .nxl-w img, .hdr.small .nxl .nxl-w img { height: 60px; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .hdr.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr.open .burger span:nth-child(2) { opacity: 0; }
  .hdr.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hdr .nav { display: none; }
  .hdr.open .wrap { flex-wrap: wrap; }
  .hdr.open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; padding: 8px 0 4px; }
  .hdr.open .nav a { padding: 12px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .hdr.open .nav a.btn { margin-top: 8px; border: 0; justify-content: center; }
  .ftr .nav a, .ftr p a { display: inline-block; padding: 8px 0; }
}
/* dostatečně velké cíle pro prst */
.nav a { padding: 10px 0; }
.ftr .nav a, .ftr p a { display: inline-block; padding: 8px 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* značka NEXE RD v textu jako v logu */
.nxw { font-family: 'Exo 2', var(--head); font-style: italic; font-weight: 900; letter-spacing: -0.01em; color: #0f172a; white-space: nowrap; padding-right: .06em; }
.nxw b { display: inline; font-weight: inherit; color: #2f6bff; background: linear-gradient(180deg, #4f97ff, #2f6bff 50%, #1546c9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dark-band .nxw, .btn .nxw, .ftr.dark .nxw { color: inherit; }
.btn .nxw b { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.dark-band .nxw b { background: linear-gradient(180deg, #8fbcff, #5b8cff); -webkit-background-clip: text; background-clip: text; }

/* ukázky konzole na úvodní stránce: skutečné snímky v okně prohlížeče + telefon a upozornění */
.showcase { width: 100%; max-width: 1120px; margin: 0 auto; text-align: center; }
.sc-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(15,23,42,.06); margin-bottom: 22px; }
.sc-tabs button { border: 0; background: none; padding: 10px 16px; border-radius: 10px; font: 600 15px Inter, sans-serif; color: var(--ink2); cursor: pointer; }
.sc-tabs button.on { background: var(--grad); color: #fff; }
.sc-stage { position: relative; padding: 0 60px 40px 0; }
.sc-win { border: 1px solid #d8e0ec; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 30px 80px rgba(47,107,255,.18), 0 8px 24px rgba(15,23,42,.08); text-align: left; transform: perspective(2200px) rotateX(2deg); }
.sc-win .bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #e8edf4; background: #fbfcfe; }
.sc-win .bar span.d { width: 10px; height: 10px; border-radius: 50%; background: #e1e6ee; display: inline-block; margin-right: 4px; }
.sc-win .url { flex: 1; max-width: 380px; margin: 0 auto; padding: 5px 12px; border-radius: 8px; background: #f0f3f8; font: 12px var(--mono); color: var(--muted); text-align: center; }
.sc-shots { position: relative; aspect-ratio: 1600 / 955; background: #f5f7fb; }
.sc-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s ease; }
.sc-shots img.on { opacity: 1; }
.sc-phone { position: absolute; right: 0; bottom: 0; width: 210px; padding: 9px; border-radius: 34px; background: #0b1220; box-shadow: 0 24px 60px rgba(11,18,32,.45); transform: rotate(4deg); }
.sc-phone img { display: block; width: 100% !important; height: auto !important; max-width: none; border-radius: 26px; }
.sc-note { position: absolute; display: flex; flex-direction: column; gap: 2px; max-width: 280px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15,23,42,.16); text-align: left; font-size: 13.5px; color: var(--ink2); transition: opacity .4s, transform .4s; }
.sc-note b { font-size: 14px; color: var(--ink); } .sc-note::before { content: ''; width: 9px; height: 9px; border-radius: 50%; position: absolute; left: -4px; top: 18px; }
.sc-note.n1 { left: -28px; top: 34%; } .sc-note.n1::before { background: #f5a524; }
.sc-note.n2 { left: 8%; bottom: 6px; } .sc-note.n2::before { background: #1fbf7a; }
.showcase:not([data-i="2"]) .sc-note.n1, .showcase:not([data-i="1"]) .sc-note.n2 { opacity: 0; transform: translateY(8px); pointer-events: none; }
.sc-cap { max-width: 720px; margin: 8px auto 0; color: var(--muted); font-size: 16px; min-height: 3em; }
@media (max-width: 900px) { .sc-stage { padding: 0 0 30px; } .sc-phone { width: 120px; padding: 5px; border-radius: 20px; right: -6px; } .sc-phone img { border-radius: 15px; } .sc-note { display: none; } }
@media (max-width: 520px) { .sc-tabs button { padding: 8px 10px; font-size: 13.5px; } .sc-phone { display: none; } .sc-win { transform: none; } }

/* zvětšení snímku po kliknutí */
.sc-shots img.on { cursor: zoom-in; }
.sc-zoom { display: none; position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(11,18,32,.75); color: #fff; font-size: 13px; pointer-events: none; }
.sc-win:hover .sc-zoom { display: block; }
.sc-lb { position: fixed; inset: 0; z-index: 2147483000; background: rgba(6,10,20,.96); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.sc-lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.sc-lb button { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer; }
@media (max-width: 760px) { .sc-lb { overflow: auto; align-items: center; justify-content: flex-start; padding: 0; } .sc-lb::after { content: 'Posunutím do stran prohlédnete celý snímek'; position: fixed; left: 0; right: 0; bottom: 18px; text-align: center; color: #cbd5e1; font-size: 13px; } .sc-lb img { max-width: none; width: 200vw; max-height: none; border-radius: 0; } }
