/* ========== Tokens ========== */
:root {
  /* Elektrická modrá */
  --ink-900: #0b1838;
  --ink-800: #10214a;
  --ink-700: #1a3170;
  --ink-600: #2563eb;
  --ink-500: #1d4fd8;
  --ink-100: #dbe5fd;

  /* Svetlé modré pozadie */
  --sand:      #f1f5ff;
  --sand-dark: #e2eaff;

  /* Žltá: zvýraznenie */
  --accent:      #facc15;
  --accent-dark: #eab308;
  --accent-soft: #fef6c7;

  --text:       #14203a;
  --text-muted: #586379;
  --border:     #e1e7f2;
  --white:      #ffffff;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 33, 74, .06);
  --shadow:    0 10px 30px -12px rgba(16, 33, 74, .18);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --header-h: 72px;
}

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

html { scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-800);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

svg { display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: .9rem;
  padding-left: 22px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}
.eyebrow--light { color: var(--accent); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: var(--ink-900); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--blue { background: var(--ink-600); color: var(--white); }
.btn--blue:hover { background: var(--ink-500); }

.btn--outline { border-color: var(--border); color: var(--text-muted); font-weight: 600; font-size: .92rem; }
.btn--outline:hover { border-color: var(--ink-100); color: var(--ink-800); }

.btn--ghost { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo { display: flex; align-items: center; gap: .6rem; }
.logo__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink-600);
  color: var(--accent);
  display: grid; place-items: center;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-800);
}
.logo__text strong { font-weight: 800; }

.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink-800); }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink-600);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: background-color .2s;
}
.header__phone:hover { background: var(--ink-500); }
.header__phone svg { width: 18px; height: 18px; color: var(--white); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ========== Hero ========== */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(37, 99, 235, .35), transparent 60%),
    linear-gradient(160deg, var(--ink-800) 0%, var(--ink-900) 100%);
  color: var(--white);
  padding: 96px 0 104px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero__lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .78);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 8px 32px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__table { margin: 0; }
.hero__table div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.hero__table div:last-child { border-bottom: 0; }
.hero__table dt { color: rgba(255, 255, 255, .65); font-size: .95rem; line-height: 1.3; }
.hero__table dd {
  margin: 0;
  text-align: right;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
}
.hero__table dd strong { color: var(--accent); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.hero__badge {
  display: table;
  margin: 8px 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, .14);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ========== Sections ========== */
.section { padding: 96px 0; }
.section--tint { background: var(--sand); }

.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__sub { color: var(--text-muted); font-size: 1.05rem; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px 64px;
}
.about__text p { color: var(--text-muted); font-size: 1.05rem; }
.about__text { padding-top: 37px; } /* zarovnanie s nadpisom (pod eyebrow) */

.features {
  grid-column: 1 / -1;
  list-style: none;
  margin: 32px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.feature:hover { border-color: var(--ink-100); box-shadow: var(--shadow); }
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink-800);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .4em; }
.feature p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* Use cases */
.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: border-color .2s, transform .2s;
}
.usecase:hover { border-top-color: var(--accent); transform: translateY(-2px); }
.usecase__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  color: var(--ink-600);
  opacity: .5;
  margin-bottom: 12px;
}
.usecase p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ========== Pricing ========== */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.plan--strong { border-color: var(--ink-600); }

.plan__head { padding: 26px 28px 22px; border-bottom: 1px solid var(--border); background: var(--sand); }
.plan__head h3 { font-size: 1.35rem; margin-bottom: .2em; }
.plan__head p { color: var(--text-muted); margin: 0; font-size: .95rem; min-height: 3.3em; }
.plan--strong .plan__head { background: var(--ink-600); border-bottom-color: var(--ink-600); }
.plan--strong .plan__head h3 { color: var(--white); }
.plan--strong .plan__head p { color: rgba(255, 255, 255, .82); }

.specs { list-style: none; margin: 0; padding: 8px 28px 16px; flex: 1; }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.specs li:last-child { border-bottom: 0; }
.specs span { color: var(--text-muted); }
.specs strong { font-family: var(--font-head); color: var(--ink-800); text-align: right; }

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
}
.price__amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--ink-800);
  line-height: 1;
}
.price__unit { color: var(--text-muted); font-weight: 500; }
.price__badge {
  margin-left: auto;
  align-self: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6b5200;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.plan--strong .price { border-top-color: var(--ink-100); }

.pricing__foot {
  text-align: center;
  font-size: .92rem;
  color: var(--text-muted);
  margin-top: 28px;
}

/* ========== Contact ========== */
.contact { background: var(--sand); }
.contact__card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 32px 56px;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact__text h2 { margin-bottom: .4em; }
.contact__text p:last-child { color: var(--text-muted); font-size: 1.05rem; margin: 0; max-width: 46ch; }
.contact__actions { display: flex; flex-direction: column; gap: 12px; }
.contact__actions .btn { width: 100%; }
.contact__actions .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ========== Footer ========== */
.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer .logo__text { color: var(--white); display: block; margin-bottom: .8rem; }
.footer h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer__col a { display: block; margin-bottom: .4rem; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom p + p { margin-top: 6px; }
.footer__col p { margin: 0; line-height: 1.7; }

/* ========== Cookie banner ========== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 100;
  width: min(560px, calc(100% - 48px));
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -15px rgba(16, 33, 74, .35);
}
.cookie[hidden] { display: none; }
.cookie__title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: .3em;
}
.cookie__text p:last-child { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; }
.cookie__actions { display: flex; gap: 10px; }
.cookie__actions .btn { padding: .75rem 1.2rem; font-size: .92rem; }
.cookie__actions .btn--blue { flex: 1.4; }
.cookie__actions .btn--outline { flex: 1; }
.cookie__actions .btn--outline { color: var(--ink-800); font-weight: 700; }

.footer__link {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 8px;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__link:hover { color: var(--accent); }

/* ========== Responsive ========== */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; }
  .contact__card { grid-template-columns: 1fr; padding: 32px 24px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header__inner { gap: 1rem; }
  .header__phone { margin-left: auto; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--sand); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }

  .hero { padding: 64px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }

  .about { grid-template-columns: 1fr; }
  .about__text { padding-top: 0; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header__phone span { display: none; }
  .header__phone { padding: .6rem; }

  .hero__panel { padding: 6px 20px; }
  .hero__table dd strong { font-size: 1.15rem; }
  .hero__actions .btn { width: 100%; }

  .features, .usecases { grid-template-columns: 1fr; }

  .plan__head, .specs, .price { padding-left: 20px; padding-right: 20px; }

  .footer__inner { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; transform: none; padding: 18px; }
  .cookie__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
