:root {
  --ink: #161a22;
  --muted: #667085;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --line: #dfe5ec;
  --navy: #071827;
  --blue: #064f87;
  --cyan: #36a6b4;
  --violet: #d9d4ff;
  --gold: #b79a52;
  --shadow: 0 30px 90px rgba(7, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

body::selection {
  background: var(--violet);
  color: var(--navy);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  padding: 18px clamp(22px, 5vw, 72px);
  color: #fff;
  background: rgba(7, 24, 39, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  transition: min-height 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  min-height: 66px;
  background: rgba(7, 24, 39, 0.94);
  box-shadow: 0 16px 50px rgba(7, 24, 39, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 152px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  padding: 142px clamp(22px, 5vw, 72px) clamp(72px, 10vh, 112px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("https://team-media.ba/wp-content/uploads/2018/03/teleport-intro.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 12, 22, 0.86), rgba(3, 12, 22, 0.62) 45%, rgba(3, 12, 22, 0.22)),
    linear-gradient(0deg, rgba(3, 12, 22, 0.75), rgba(3, 12, 22, 0) 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1050px;
}

.breadcrumb {
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 7.4vw, 7rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 4.7vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.section {
  padding: clamp(74px, 10vw, 138px) clamp(22px, 5vw, 72px);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 820ms cubic-bezier(0.22, 1, 0.36, 1), transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.overview {
  background: var(--paper);
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: clamp(42px, 8vw, 118px);
  align-items: start;
}

.overview-copy {
  max-width: 900px;
}

.overview-copy p,
.capability-head p,
.data-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.at-glance {
  position: sticky;
  top: 104px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.at-glance h3 {
  margin-bottom: 22px;
  color: var(--blue);
}

.at-glance dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.at-glance div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.at-glance div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.at-glance dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.at-glance dd {
  margin: 0;
  font-weight: 800;
}

.capabilities {
  background: #eef3f7;
}

.capability-head {
  max-width: 880px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability {
  min-height: 310px;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(7, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(7, 24, 39, 0.07);
}

.capability span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.capability p,
.data-points p {
  margin-bottom: 0;
  color: var(--muted);
}

.image-break {
  min-height: 66vh;
  overflow: hidden;
  background: var(--navy);
}

.image-break-media {
  width: 100%;
  height: 74vh;
  min-height: 520px;
  background-image: url("https://team-media.ba/wp-content/uploads/2018/03/connectivity-bkg.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  will-change: transform;
}

.data-center {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.92), rgba(7, 24, 39, 0.7)),
    url("https://team-data.ba/wp-content/uploads/2018/06/oc-servisi.jpg") center / cover;
  background-attachment: fixed;
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: start;
}

.data-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.data-points {
  display: grid;
  gap: 14px;
}

.data-points article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.data-points p {
  color: rgba(255, 255, 255, 0.72);
}

.partners {
  background: var(--paper);
}

.partners-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.partner-list span {
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 900;
}

.contact {
  position: relative;
  display: grid;
  min-height: 76vh;
  align-items: end;
  overflow: hidden;
  padding: clamp(74px, 10vw, 138px) clamp(22px, 5vw, 72px);
  color: #fff;
  background: var(--navy);
}

.contact-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.93), rgba(7, 24, 39, 0.64)),
    url("https://team-media.ba/wp-content/uploads/2018/04/intro-pozadina-v2-compressed.jpg") center / cover;
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.contact-content p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  .main-nav {
    display: none;
  }

  .overview-layout,
  .data-layout,
  .partners-layout {
    grid-template-columns: 1fr;
  }

  .at-glance {
    position: static;
  }

  .capability-grid,
  .partner-list {
    grid-template-columns: 1fr 1fr;
  }

  .data-center {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 128px;
  }

  .hero {
    min-height: 84vh;
    padding-top: 118px;
  }

  .breadcrumb {
    margin-bottom: 26px;
  }

  .capability-grid,
  .partner-list {
    grid-template-columns: 1fr;
  }

  .image-break,
  .image-break-media {
    min-height: 420px;
    height: 54vh;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .reveal {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-image,
  .image-break-media {
    transform: none !important;
  }
}
