/* ==========================================================================
   JÁN HALANDA — B2B TECH · design system "Control Panel"
   Palette: paper #F2F4F3 · ink #10221B · panel #FFFFFF
            signal #0E8A5F · amber #E8A13C · line #C9D2CD
   Type:    Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --paper:  #F2F4F3;
  --ink:    #10221B;
  --ink-60: #43554d;
  --panel:  #FFFFFF;
  --signal: #0E8A5F;
  --signal-dark: #0A6B4A;
  --amber:  #E8A13C;
  --line:   #C9D2CD;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --radius: 10px;
  --container: 1160px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 860px; }

.mono { font-family: var(--font-mono); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; font-stretch: 105%; }
h1 em { font-style: normal; color: var(--signal); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 750; margin-bottom: .5em; }
h3 { font-size: 1.22rem; font-weight: 650; margin-bottom: .45em; }

a { color: var(--signal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--signal-dark);
  margin-bottom: 14px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--panel); border-block: 1px solid var(--line); }
.section__lead { max-width: 640px; color: var(--ink-60); margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .92rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn--primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn--primary:hover { background: var(--signal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14,138,95,.25); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- LEDs ---------- */
.led {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); vertical-align: baseline; margin-right: 6px;
}
.led--on { background: var(--signal); box-shadow: 0 0 6px rgba(14,138,95,.7); }
.led--pulse { background: var(--amber); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,161,60,.55); }
  50%      { box-shadow: 0 0 0 6px rgba(232,161,60,0); }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(242,244,243,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.nav__led { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px rgba(14,138,95,.8); }
.nav__name { font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; font-size: .98rem; }
.nav__tag { font-size: .72rem; color: var(--ink-60); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-family: var(--font-mono); font-size: .86rem; text-decoration: none; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a.is-active { border-bottom-color: var(--signal); color: var(--signal-dark); }
.nav__cta { background: var(--ink); color: var(--paper) !important; padding: 9px 18px !important; border-radius: var(--radius); border-bottom: none !important; }
.nav__cta:hover { background: var(--signal); }
.nav__burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .25s, opacity .25s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 110px;
  overflow: hidden;
}
.hero__schematic { position: absolute; inset: 0; pointer-events: none; }
.hero__bus { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.hero__bus path { stroke-width: 1.5; fill: none; }
.hero__bus circle { stroke: none; }
.hero__bus--far  path { stroke: rgba(16,34,27,.10); } .hero__bus--far  circle { fill: rgba(16,34,27,.14); }
.hero__bus--near path { stroke: rgba(14,138,95,.20); stroke-dasharray: 8 6; } .hero__bus--near circle { fill: rgba(14,138,95,.35); }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr);
  gap: 56px;
  align-items: center;
}
.hero__lead { margin: 22px 0 34px; max-width: 560px; color: var(--ink-60); font-size: 1.13rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Signature: status panel --- */
.statuspanel {
  background: var(--ink);
  color: #DCEDE4;
  border-radius: 14px;
  padding: 22px 24px 26px;
  box-shadow: 0 24px 60px -20px rgba(16,34,27,.45);
  border: 1px solid rgba(220,237,228,.12);
}
.statuspanel__head {
  display: flex; justify-content: space-between;
  font-size: .74rem; letter-spacing: .12em; color: #8FB3A3;
  border-bottom: 1px solid rgba(220,237,228,.14);
  padding-bottom: 12px; margin-bottom: 14px;
}
.statuspanel__rows { list-style: none; font-size: .82rem; }
.statuspanel__rows li { display: flex; align-items: center; padding: 7px 0; letter-spacing: .03em; }
.statuspanel__rows b { margin-left: auto; color: #fff; font-weight: 500; }
.statuspanel__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(220,237,228,.14);
}
.statuspanel__metrics div { text-align: center; }
.metric { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--amber); display: block; }
.statuspanel__metrics small { font-size: .68rem; color: #8FB3A3; line-height: 1.3; display: block; margin-top: 2px; }

/* ==========================================================================
   SHOWBOXY
   ========================================================================== */
.showgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.showbox {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.showbox::before {
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: var(--signal);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.showbox:hover, .showbox:focus-visible {
  transform: translateY(-5px);
  border-color: var(--signal);
  box-shadow: 0 18px 40px -18px rgba(16,34,27,.22);
}
.showbox:hover::before, .showbox:focus-visible::before { transform: scaleX(1); }
.showbox__id { font-size: .72rem; letter-spacing: .12em; color: var(--signal-dark); margin-bottom: 12px; }
.showbox p { color: var(--ink-60); font-size: .97rem; }
.showbox__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.showbox__tags li {
  font-size: .7rem; letter-spacing: .05em;
  border: 1px solid var(--line); border-radius: 5px;
  padding: 4px 9px; color: var(--ink-60); background: var(--paper);
}

/* ==========================================================================
   PROCES
   ========================================================================== */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 42px;
  counter-reset: step;
}
.process li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
}
.process__step { font-size: .7rem; letter-spacing: .14em; color: var(--amber); display: block; margin-bottom: 12px; }
.process li h3 { font-size: 1.08rem; }
.process li p { font-size: .93rem; color: var(--ink-60); }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--panel); padding: 18px 0; }
.ticker__track { display: flex; gap: 44px; white-space: nowrap; width: max-content; animation: ticker 34s linear infinite; }
.ticker__track span { font-size: .86rem; letter-spacing: .07em; color: var(--ink-60); }
.ticker__track span::after { content: "·"; margin-left: 44px; color: var(--signal); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: var(--signal); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--signal);
  transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--signal-dark); }
.faq__body { padding: 0 22px 22px; }
.faq__body p { color: var(--ink-60); font-size: .97rem; }
.faq__body p + p { margin-top: 12px; }

/* ==========================================================================
   KONTAKT / FORM
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}
.contact__channels { list-style: none; margin-top: 28px; font-size: .9rem; display: grid; gap: 12px; }
.contact__channels a { color: var(--ink); }

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px;
  box-shadow: 0 20px 50px -30px rgba(16,34,27,.25);
}
.form__row { margin-bottom: 18px; }
.form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; margin-bottom: 7px; color: var(--ink-60); text-transform: uppercase; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--signal); outline: none; }
.form textarea { resize: vertical; min-height: 120px; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .85rem !important; color: var(--ink-60); margin: 4px 0 20px; cursor: pointer; }
.form__consent input { margin-top: 3px; accent-color: var(--signal); }
.form__submit { width: 100%; font-size: 1rem; }
.form__status { margin-top: 14px; font-size: .82rem; min-height: 1.2em; }
.form__status.ok { color: var(--signal-dark); }
.form__status.err { color: #B4442C; }

/* Honeypot — hidden from humans, visible to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: #8FB3A3; padding: 34px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; font-size: .78rem; }
.footer a { color: #DCEDE4; }
.footer__top { text-decoration: none; border: 1px solid rgba(220,237,228,.3); padding: 8px 14px; border-radius: 8px; }
.footer__top:hover { background: var(--signal); color: #fff; border-color: var(--signal); }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 26px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__burger { display: block; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__tag { display: none; }
  .form__row--split { grid-template-columns: 1fr; }
  .statuspanel__metrics { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* ==========================================================================
   ACCESSIBILITY: reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  .led--pulse { animation: none; }
  * { transition-duration: .01ms !important; }
}
