/**
 * Simple Technology Solutions. One-page landing overrides
 * Dark, premium B2B tech aesthetic; loads after main.css
 */

body.sts-landing {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Inter", system-ui, sans-serif;
  --nav-font: "Inter", system-ui, sans-serif;
  --background-color: #07080a;
  --default-color: rgba(255, 255, 255, 0.78);
  --heading-color: #f4f7fb;
  --accent-color: #2b7fff;
  --accent-glow: rgba(43, 127, 255, 0.35);
  --surface-color: #12141a;
  --surface-border: rgba(255, 255, 255, 0.08);
  --contrast-color: #ffffff;
  --nav-color: rgba(255, 255, 255, 0.72);
  --nav-hover-color: var(--accent-color);
  --nav-mobile-background-color: #12141a;
  --nav-dropdown-background-color: #1a1d26;
  --nav-dropdown-color: rgba(255, 255, 255, 0.85);
  --nav-dropdown-hover-color: var(--accent-color);
}

body.sts-landing h1,
body.sts-landing h2,
body.sts-landing h3,
body.sts-landing h4,
body.sts-landing h5,
body.sts-landing h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ========== Navbar (sticky + modern) ========== */
body.sts-landing .header.sts-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  padding: 0;
  background-color: rgba(5, 6, 9, 0.65);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.sts-landing.scrolled .header.sts-navbar {
  background-color: rgba(4, 5, 8, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.sts-landing .sts-navbar__inner {
  min-height: 86px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

body.sts-landing .sts-navbar__brand .sitename {
  color: var(--heading-color);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.sts-landing .sts-navbar__brand img {
  max-height: 68px;
  width: auto;
}

body.sts-landing .sts-navbar__brand:hover .sitename {
  color: #fff;
}

/* Desktop: pill nav rail + CTA */
@media (min-width: 1200px) {
  body.sts-landing .sts-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  body.sts-landing .sts-nav .sts-nav__list {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.2rem;
    margin: 0;
    padding: 0.3rem !important;
    list-style: none;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  }

  body.sts-landing .sts-nav .sts-nav__list li {
    margin: 0;
  }

  body.sts-landing .sts-nav .sts-nav__list a,
  body.sts-landing .sts-nav .sts-nav__list a:focus {
    padding: 0.5rem 0.72rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.72) !important;
    border-radius: 100px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  body.sts-landing .sts-nav .sts-nav__list a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
  }

  body.sts-landing .sts-nav .sts-nav__list a.active,
  body.sts-landing .sts-nav .sts-nav__list a.active:focus {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(43, 127, 255, 0.22) 0%, rgba(43, 127, 255, 0.08) 100%);
    box-shadow: 0 0 0 1px rgba(43, 127, 255, 0.35);
  }

  body.sts-landing .sts-nav__cta {
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 100px;
    border: 1px solid rgba(43, 127, 255, 0.45);
    background: linear-gradient(135deg, rgba(43, 127, 255, 0.2) 0%, rgba(43, 127, 255, 0.05) 100%);
    box-shadow: 0 4px 20px rgba(43, 127, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }

  body.sts-landing .sts-nav__cta:hover {
    color: #fff !important;
    border-color: rgba(43, 127, 255, 0.8);
    background: linear-gradient(135deg, rgba(43, 127, 255, 0.35) 0%, rgba(43, 127, 255, 0.12) 100%);
    box-shadow: 0 6px 28px rgba(43, 127, 255, 0.25);
    transform: translateY(-1px);
  }
}

/* Mobile menu button + Bootstrap offcanvas (panel z-index ~1045; header must stay below) */
@media (max-width: 1199px) {
  body.sts-landing #header .container-fluid.sts-navbar__inner {
    position: relative;
    z-index: 1;
  }

  body.sts-landing #header .sts-navbar__brand {
    min-width: 0;
    flex-shrink: 1;
  }

  body.sts-landing #header .navmenu.sts-nav {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  body.sts-landing .sts-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 1.5rem;
    color: var(--nav-color);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(43, 127, 255, 0.3);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  body.sts-landing .sts-menu-btn:hover {
    color: #fff;
    background: rgba(43, 127, 255, 0.15);
    border-color: rgba(43, 127, 255, 0.4);
  }

  body.sts-landing .sts-menu-btn:focus {
    outline: none;
  }

  body.sts-landing .sts-menu-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
  }

  body.sts-landing .sts-nav__cta {
    display: none !important;
  }
}

body.sts-landing .sts-offcanvas {
  --bs-offcanvas-bg: #0b0d12;
  --bs-offcanvas-width: min(22rem, 92vw);
  background-color: #0b0d12 !important;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.sts-landing .sts-offcanvas .offcanvas-header {
  padding: 1rem 1.15rem;
}

body.sts-landing .sts-offcanvas-link {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

body.sts-landing .sts-offcanvas-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

body.sts-landing .sts-offcanvas-link.active {
  color: #fff;
  background: rgba(43, 127, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(43, 127, 255, 0.35);
}

body.sts-landing .sts-offcanvas-cta {
  display: block;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 14px;
  border: 1px solid rgba(43, 127, 255, 0.5);
  background: linear-gradient(135deg, rgba(43, 127, 255, 0.3) 0%, rgba(43, 127, 255, 0.08) 100%);
}

@media (max-width: 575px) {
  body.sts-landing .sts-navbar__brand .brand-text {
    display: none !important;
  }
}

section.sts-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

section.sts-section[id] {
  scroll-margin-top: 88px;
}

.sts-section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.sts-section-lead {
  max-width: 42rem;
  color: var(--default-color);
  font-size: 1.05rem;
  line-height: 1.65;
}

.sts-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.sts-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  border-radius: 2px;
}

/* Hero */
#hero.sts-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

#hero.sts-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -20%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(43, 127, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(43, 127, 255, 0.08), transparent 45%);
  pointer-events: none;
}

#hero.sts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.sts-hero-inner {
  position: relative;
  z-index: 1;
}

.sts-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sts-hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.7;
  max-width: 36rem;
  color: var(--default-color);
  margin-bottom: 2rem;
}

.sts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.sts-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.sts-btn-primary {
  background: linear-gradient(135deg, #2b7fff 0%, #1d62d6 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.sts-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #fff;
}

.sts-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--surface-border);
  color: var(--heading-color);
}

.sts-btn-ghost:hover {
  border-color: rgba(43, 127, 255, 0.45);
  background: rgba(43, 127, 255, 0.08);
  color: #fff;
}

.sts-hero-stats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 520px;
}

@media (max-width: 575px) {
  .sts-hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.sts-hero-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.sts-hero-stats span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Surface & cards */
.sts-surface {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.sts-card {
  height: 100%;
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sts-card:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 127, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(43, 127, 255, 0.12);
}

.sts-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(43, 127, 255, 0.12);
  color: var(--accent-color);
  margin-bottom: 1.25rem;
}

.sts-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.sts-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--default-color);
}

.sts-muted-section {
  background: #0a0b0f;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

/* Problem / solution split */
.sts-split-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.sts-split-bad {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.sts-split-good {
  background: rgba(43, 127, 255, 0.15);
  color: var(--accent-color);
}

/* Startup highlight */
#startups .sts-highlight-box {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  border: 1px solid rgba(43, 127, 255, 0.2);
  background: linear-gradient(135deg, rgba(43, 127, 255, 0.1) 0%, rgba(18, 20, 26, 0.95) 50%);
  box-shadow: 0 12px 48px rgba(43, 127, 255, 0.08);
}

.sts-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sts-check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--default-color);
  line-height: 1.55;
}

.sts-check-list li .bi {
  flex-shrink: 0;
  color: var(--accent-color);
  margin-top: 0.2rem;
  font-size: 1.05rem;
}

/* Case study */
#nocna-dostava .sts-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.sts-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  color: rgba(255, 255, 255, 0.75);
}

/* Why grid */
.sts-why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.sts-why-item i {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-top: 0.15rem;
}

/* Process timeline */
.sts-timeline {
  position: relative;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

@media (min-width: 992px) {
  .sts-timeline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
  }

  .sts-timeline::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(43, 127, 255, 0.2));
    border-radius: 2px;
  }
}

.sts-timeline li {
  position: relative;
  flex: 1;
  padding: 1.25rem;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .sts-timeline li {
    padding-left: 3rem;
    border-left: 2px solid rgba(43, 127, 255, 0.25);
    margin-left: 0.75rem;
    padding-bottom: 1.5rem;
  }

  .sts-timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
  }
}

.sts-timeline-step {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(43, 127, 255, 0.15);
  border: 1px solid rgba(43, 127, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .sts-timeline-step {
    position: absolute;
    left: calc(-0.75rem - 1.375rem);
    top: 1.1rem;
  }
}

.sts-timeline h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.sts-timeline p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--default-color);
  line-height: 1.55;
}

/* Contact CTA */
#contact.sts-contact {
  padding-bottom: 0;
}

.sts-contact-card {
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(43, 127, 255, 0.22);
  background: linear-gradient(160deg, rgba(43, 127, 255, 0.14) 0%, #12141a 45%, #0a0b0f 100%);
  box-shadow: 0 -8px 60px rgba(43, 127, 255, 0.12);
  text-align: center;
}

.sts-contact-card h2 {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}

.sts-contact-details {
  text-align: left;
  max-width: 480px;
  margin: 2rem auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--default-color);
}

.sts-contact-details a {
  color: var(--heading-color);
}

.sts-contact-details a:hover {
  color: var(--accent-color);
}

/* Footer compact */
body.sts-landing .footer {
  background: #050607;
  border-top: 1px solid var(--surface-border);
  padding-bottom: 2rem;
}

body.sts-landing .footer .footer-top {
  padding-top: 2.5rem;
}

body.sts-landing .footer .footer-about .logo img {
  max-height: 56px;
  width: auto;
}

body.sts-landing .footer .copyright {
  margin-top: 1.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid var(--surface-border);
}

body.sts-landing .scroll-top {
  background: var(--accent-color);
  color: #fff;
}

body.sts-landing .scroll-top:hover {
  background: color-mix(in srgb, var(--accent-color), #fff 12%);
  color: #fff;
}

/* Cookie banner */
.sts-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1038;
  background: rgba(10, 11, 15, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--surface-border);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
}

.sts-cookie-banner__title {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.sts-cookie-banner__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--default-color);
  max-width: 52rem;
}

.sts-cookie-banner__text a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sts-cookie-banner__text a:hover {
  color: color-mix(in srgb, var(--accent-color), #fff 18%);
}

.sts-cookie-banner__btn {
  font-size: 0.875rem;
  padding: 0.7rem 1.2rem;
  white-space: nowrap;
}

body.sts-landing.sts-cookie-bar-open {
  padding-bottom: clamp(7rem, 28vh, 11rem);
}

body.sts-landing.sts-cookie-bar-open .scroll-top.active {
  bottom: calc(15px + clamp(5.5rem, 22vh, 9rem));
}

/* Nav: tighten for many items */
@media (min-width: 1200px) {
  body.sts-landing .navmenu a,
  body.sts-landing .navmenu a:focus {
    padding: 18px 10px;
    font-size: 14px;
  }
}

.sts-kicker.sts-kicker--center {
  justify-content: center;
}

.sts-kicker.sts-kicker--center::before {
  display: none;
}

/* Motion: respect preference */
@media (prefers-reduced-motion: reduce) {
  .sts-btn,
  .sts-card {
    transition: none;
  }

  .sts-card:hover {
    transform: none;
  }
}
