/* ============================================================
   NEXUM Technology — styly
   Moderní, tmavý hero, čistá typografie, responzivní layout.
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-2: #0f1729;
  --surface: #111a2e;
  --surface-2: #152038;
  --border: #1f2a44;
  --text: #e6ecf5;
  --muted: #9aa8c2;
  --brand: #22d3ee;
  --brand-2: #6366f1;
  --brand-3: #8b5cf6;
  --accent: #22d3ee;
  --danger: #ef4444;
  --success: #10b981;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --header-h: 72px;

  --container: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #67e8f9; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: #fff;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: .7em;
}

.muted { color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li + li { margin-top: .4em; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.4em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: .6em 1em; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1220;
  border-color: transparent;
}
.btn-primary:hover { transform: translateY(-1px); color: #0b1220; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   Header (fixní)
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-logo { width: 34px; height: 34px; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-size: 1.05rem; letter-spacing: .18em; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; margin-top: 2px; }

.primary-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.primary-nav a {
  color: var(--text);
  padding: .55em .8em;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
}
.primary-nav a:hover { background: rgba(255,255,255,0.06); color: var(--brand); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 4px 0; border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.98);
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none; margin: 0; padding: 12px 24px; display: grid; gap: 2px;
}
.mobile-nav a {
  display: block; color: var(--text); padding: 12px 10px; border-radius: 8px; font-weight: 500;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: var(--brand); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(900px 420px at 0% 10%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0a1426 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .lead {
  font-size: 1.12rem; color: var(--muted); max-width: 56ch;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 26px; }

.hero-badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-badges li {
  font-size: .82rem; color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35em .85em;
  background: rgba(255,255,255,0.02);
}

.code-card {
  background: linear-gradient(180deg, #0e1730, #0b1224);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.code-card-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: inline-block; }
.code-card-head .dot:nth-child(1) { background: #ef4444; }
.code-card-head .dot:nth-child(2) { background: #f59e0b; }
.code-card-head .dot:nth-child(3) { background: #10b981; }
.code-title { margin-left: 8px; color: var(--muted); font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.code-card pre {
  margin: 0; padding: 18px 18px 22px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: .92rem; line-height: 1.55; color: #c7d2fe;
  white-space: pre-wrap;
}
.tok-k { color: #22d3ee; font-weight: 600; }
.tok-s { color: #f59e0b; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .section-lead { color: var(--muted); font-size: 1.05rem; }

/* Grid helpers */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34,211,238,.45);
  background: var(--surface-2);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(99,102,241,.18));
  color: var(--brand);
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 56px;
  align-items: center;
}
.about-grid p { color: var(--muted); }
.stats {
  display: grid; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stats > div { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.8rem; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: .95rem; }

/* Team */
.person {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.person:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.45); }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 2px auto 14px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.2rem; letter-spacing: .04em;
  color: #0b1220;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 20px rgba(34,211,238,.25);
}
.person .role { color: var(--brand); font-size: .9rem; margin: -4px 0 10px; font-weight: 600; }
.person .bio { color: var(--muted); font-size: .95rem; }
.contact-inline {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.contact-inline a {
  font-size: .85rem; padding: .35em .7em;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text);
}
.contact-inline a:hover { border-color: var(--brand); color: var(--brand); }

/* Values */
.value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.value-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px; font-weight: 700;
}
.value p { color: var(--muted); margin-bottom: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-list {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 10px;
}
.contact-list li { color: var(--muted); }
.contact-list strong { color: var(--text); margin-right: 8px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: grid; gap: 14px;
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.form-row label span { color: var(--danger); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8em 1em;
  font: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34,211,238,.18);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox input { margin-top: 4px; accent-color: var(--brand); }

.form-status { margin: 6px 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* Footer */
.site-footer {
  background: #080f1d;
  border-top: 1px solid var(--border);
  padding: 44px 0 20px;
  margin-top: 0;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.site-footer h4 { color: var(--text); font-size: .95rem; margin-bottom: 10px; }
.site-footer .brand-text strong { font-size: 1rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; font-size: .9rem;
}
.to-top {
  border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px;
  color: var(--text);
}
.to-top:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responzivní
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .primary-nav,
  .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }

  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 60px; }

  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .person, .btn { transition: none; }
}
