/* Next internet s.r.o. — company presentation site.
   Brand colors come from doc/presentation/assets/04_colors/colors.pdf. */

:root {
  --navy: #012b68;
  --navy-dark: #011c45;
  --cyan: #30e8fe;
  --ink: #1c2438;
  --muted: #5a6579;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --line: #e2e8f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 43, 104, 0.1);
  --container: min(1800px, 94vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

main {
  flex: 1;
}

/* Footer sticks to the window bottom on short pages */
#footer-placeholder {
  margin-top: auto;
}

img {
  max-width: 100%;
}

a {
  color: var(--navy);
}

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

/* ---------- Header ---------- */

/* Sticky must sit on the placeholder (the header's parent) — a sticky .site-header
   inside the placeholder can only stick within the placeholder's own height */
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.site-header__logo img {
  height: 40px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--bg-soft);
}

.site-nav a.is-active {
  background: var(--navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(48, 232, 254, 0.25), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
  padding: 64px 0;
}

.hero__logo {
  height: 84px;
  width: auto;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin: 0 0 28px;
}

.hero__robot {
  max-height: 380px;
  width: auto;
  justify-self: center;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.hero--compact .hero__inner {
  padding: 44px 0;
  grid-template-columns: 1fr;
}

.hero--compact h1 {
  margin-bottom: 8px;
}

.hero--compact p {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--cyan);
  color: var(--navy-dark);
  box-shadow: 0 8px 24px rgba(48, 232, 254, 0.35);
}

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  margin-left: 12px;
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section__head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy);
  margin: 0 0 10px;
}

.section__head p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section .eyebrow {
  color: #0b9fb4;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), #0a4aa8);
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 14px;
}

/* ---------- Feature list (nexty page) ---------- */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.feature-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy-dark);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.split img {
  justify-self: center;
  max-height: 420px;
  width: auto;
}

/* ---------- Contact ---------- */

/* Robot + logo background, same as the admin/PWA app layouts
   (fixed, centered, contain, 5% opacity, behind the content) */
.watermark {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background: url('../img/robot-outline.png') center / contain no-repeat;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 30rem;
}

.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
}

.contact-card dt {
  font-weight: 700;
  color: var(--navy);
}

.contact-card dd {
  margin: 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.site-footer .brand-mark {
  height: 1em;
  width: auto;
  vertical-align: -0.125em;
  margin-right: 0.4em;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero__inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero__robot {
    max-height: 260px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
  }

  .site-nav.is-open {
    display: flex;
  }
}
