/* ============================================================
   mltech.sk — design system (dark)
   Palette:  bg #0D1526 · panel #121D33 · line #233049
             text #EDF1F7 · accent #3E6DF5 / #6E96FF
             ok (stavové prvky) #2DD48A
   Type:     Archivo (display + text, variable 400–800)
             IBM Plex Mono (labely, stavy, ceny)
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexmono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0D1526;
  --bg-elev: #0F1A30;
  --panel: #121D33;
  --line: #233049;
  --ink: #EDF1F7;
  --ink-soft: #B6C2D6;
  --muted: #8593AB;
  --accent: #3E6DF5;
  --accent-bright: #6E96FF;
  --accent-soft: #9DB4FF;
  --accent-wash: rgba(78, 116, 255, 0.10);
  --ok: #2DD48A;
  --ok-soft: #59E3A7;
  --radius: 10px;
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; color: #fff; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 760; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 720; max-width: 24ch; }
h3 { font-size: 1.15rem; font-weight: 640; }
h1 em { font-style: normal; color: var(--accent-bright); }
p { margin: 0 0 1em; }

a { color: var(--accent-bright); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

::selection { background: rgba(62, 109, 245, 0.4); }

/* ---------- Eyebrow + status dot ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 1.2em;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex: none;
  display: inline-block;
}
.dot-live { background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 138, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(45, 212, 138, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 21, 38, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.035em;
  color: #fff; text-decoration: none;
  display: flex; align-items: baseline;
}
.brand-ml {
  background: linear-gradient(120deg, #7EA2FF 0%, #3E6DF5 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.brand-tld { color: var(--muted); font-weight: 480; font-size: 0.85em; margin-left: 1px; }
.site-nav { display: flex; gap: 6px; margin-left: auto; position: relative; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 520;
  padding: 7px 13px; border-radius: 8px;
  position: relative; z-index: 1;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; }

/* Kĺzajúca pilulka aktívnej sekcie (pozíciu riadi JS) */
.nav-pill {
  position: absolute; z-index: 0;
  opacity: 0;
  background: rgba(78, 116, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(110, 150, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
}
.nav-pill.ready {
  transition: left 0.32s cubic-bezier(0.3, 0.7, 0.25, 1), width 0.32s cubic-bezier(0.3, 0.7, 0.25, 1), opacity 0.2s ease;
}

/* Jemné prelnutie obsahu pri prepnutí sekcie */
html.js-tabs .view-anim { animation: viewIn 0.28s ease-out both; }
@keyframes viewIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.nav-toggle { display: none; }

/* Prepínanie obsahu cez menu — aktívne len s JS, crawlery vidia celú stránku */
html.js-tabs .view-hidden { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.72em 1.5em;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn-block { width: 100%; }
.header-cta { padding: 0.55em 1.2em; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 128px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(closest-side, rgba(62, 109, 245, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 680px; }

/* Carousel serverových fotiek — fade do stratena, jemne zasahuje pod text */
.hero-visual {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 68%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 62% 50%, #000 30%, transparent 72%);
          mask-image: radial-gradient(ellipse 78% 82% at 62% 50%, #000 30%, transparent 72%);
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  filter: brightness(0.62) saturate(0.9);
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: drift 38s ease-in-out infinite alternate;
}
.hero-visual img.active { opacity: 1; }
@keyframes drift {
  from { transform: scale(1.06) translate(-1.5%, 1%); }
  to   { transform: scale(1.14) translate(2%, -1.5%); }
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 44ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8em; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tinted { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-note { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2.5em; }

/* ---------- Cards (služby) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card-featured { border-color: var(--accent); box-shadow: 0 0 32px -12px rgba(62, 109, 245, 0.35); }
.card-cta {
  grid-column: 1 / -1;
  background: var(--accent-wash);
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.card-cta p { margin: 0; }
.card-cta .btn { flex: none; }

/* ---------- Pillars (infra) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin-top: 48px;
}
.pillar h3 { font-size: 0.85rem; font-weight: 500; color: var(--accent-soft); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.pillar p { color: var(--ink-soft); max-width: 46ch; }

/* ---------- Referencie ---------- */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.ref {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.ref:hover { border-color: var(--accent); }
.ref-static { cursor: default; }
.ref-status {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.7rem; color: var(--ok-soft);
  margin-bottom: 14px;
}
.ref h3 { font-size: 1.02rem; }
.ref p { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- Cenník ---------- */
.price-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.price-list { list-style: none; margin: 1em 0 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0;
}
.price-list li + li { border-top: 1px solid var(--line); }
.price-list small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.price-list li > span:first-child { font-weight: 560; font-size: 0.95rem; }
.price { color: var(--accent-soft); font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.price-foot { margin-top: 2em; font-size: 0.8rem; color: var(--muted); }

/* ---------- O mne ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
}
.stack-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.stack-panel h3 { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.stack-list { list-style: none; margin: 1em 0 0; padding: 0; font-size: 0.85rem; color: var(--ink-soft); }
.stack-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.stack-list li:last-child { border-bottom: 0; }
.stack-note { margin: 1.2em 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-soft);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-soft); max-width: 65ch; padding-bottom: 18px; margin: 0; }

/* ---------- Kontakt ---------- */
.section-contact {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}
.section-contact p { color: var(--ink-soft); }
.eyebrow-invert { color: var(--accent-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact-channels { list-style: none; margin: 2em 0 0; padding: 0; }
.contact-channels li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-channels .label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-soft); width: 78px; flex: none;
}
.contact-channels a { color: #fff; text-decoration: none; font-weight: 560; }
.contact-channels a:hover { text-decoration: underline; }
.contact-channels span:not(.label) { color: var(--ink-soft); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--ink);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
}
.field input:focus, .field textarea:focus { border-color: var(--accent-bright); outline: none; }
.field textarea { resize: vertical; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.85rem; color: var(--ink-soft);
  margin-bottom: 20px; cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent-soft); }
.form-status { margin: 1em 0 0; font-size: 0.85rem; min-height: 1.4em; color: var(--ink-soft); }
.form-status.ok { color: var(--ok-soft); }
.form-status.err { color: #FF7A70; }

/* ---------- Právne stránky ---------- */
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.15rem; margin-top: 2em; max-width: none; }
.legal p { color: var(--ink-soft); max-width: 70ch; }
.legal-list { list-style: none; margin: 1em 0 0; padding: 0; max-width: 560px; }
.legal-list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.legal-list li:last-child { border-bottom: 0; }
.legal-list .llabel {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-soft); width: 110px; flex: none;
}
.legal-list a { color: var(--ink); text-decoration: none; font-weight: 560; }
.legal-list a:hover { text-decoration: underline; }
.site-footer a { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0A101E;
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer p { margin: 0 0 0.4em; }
.site-footer .muted { color: var(--muted); font-size: 0.75rem; }
.site-footer .hl { color: var(--accent-soft); font-weight: 600; }
.footer-right { text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual {
    width: 100%;
    opacity: 0.3;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 40%, transparent 78%);
            mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 40%, transparent 78%);
  }
  .cards, .price-groups { grid-template-columns: repeat(2, 1fr); }
  .footer-right { text-align: left; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 80px; }
  .cards, .price-groups, .refs { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .header-cta { display: none; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.active { color: var(--accent-soft); }
  .nav-pill { display: none; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }
}
