:root {
  color-scheme: light;
  --bg: #f7f9fd;
  --card: #ffffff;
  --ink: #101828;
  --muted: #5f6b7a;
  --primary: #10254f;
  --primary-2: #4263be;
  --accent: #ea9374;
  --line: #dce4f2;
  --shadow: 0 24px 70px rgba(16, 37, 79, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

h1 {
  max-width: 780px;
  font-size: clamp(2.25rem, 5.8vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 253, 0.88);
  border-bottom: 1px solid rgba(220, 228, 242, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

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

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 58px;
}

.menu {
  gap: 22px;
  color: #25324a;
  font-size: 0.95rem;
  font-weight: 600;
}

.menu a:not(.button):hover,
.site-footer a:hover,
.contact-card a:hover {
  color: var(--primary-2);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 17, 39, 0.9), rgba(7, 17, 39, 0.58) 46%, rgba(7, 17, 39, 0.18)),
    linear-gradient(180deg, rgba(7, 17, 39, 0.28), rgba(7, 17, 39, 0.62)),
    url("../img/tribosys-background.jpg") center/cover no-repeat;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 14% 80%, rgba(255, 111, 24, 0.22), transparent 30%);
  pointer-events: none;
}

.hero-grid,
.split,
.contact-grid,
.cta-box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.hero-panel {
  align-self: end;
  max-width: 460px;
  justify-self: end;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 28px;
  background: rgba(7, 17, 39, 0.58);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.hero-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.panel-label {
  color: #ffb26f !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 0.8rem;
}

.hero-highlights {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hero-highlights span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.hero-highlights span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(234, 147, 116, 0.8);
}

.eyebrow {
  color: var(--primary-2);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

.hero .eyebrow {
  color: #ffb26f;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  box-shadow: 0 14px 30px rgba(16, 37, 79, 0.18);
}

.button:hover {
  transform: translateY(-1px);
  background: #18366f;
}

.button-outline {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.hero .button-outline {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.hero .button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-outline:hover {
  background: #fff;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
}

.split p,
.section-heading p,
.contact p,
.cta p {
  color: var(--muted);
}

#about {
  background:
    radial-gradient(circle at 88% 18%, rgba(66, 99, 190, 0.18), transparent 30%),
    radial-gradient(circle at 12% 24%, rgba(234, 147, 116, 0.12), transparent 26%),
    linear-gradient(135deg, #20262f, #2d333d 48%, #171d26);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

#about .eyebrow {
  color: #ffb26f;
}

#about h2 {
  color: #fff;
}

#about .split p {
  color: rgba(255, 255, 255, 0.76);
}

#about .split strong {
  color: #fff;
}

.image-panel {
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-proof article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.about-proof article:nth-child(2),
.about-proof article:nth-child(3) {
  transform: translateY(28px);
}

.about-proof span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(66, 99, 190, 0.22);
}

.about-proof h3 {
  color: #fff;
}

.about-proof p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section-muted {
  background:
    linear-gradient(180deg, #edf3fb, #f7faff);
}

#services {
  background:
    radial-gradient(circle at 12% 10%, rgba(66, 99, 190, 0.2), transparent 30%),
    linear-gradient(135deg, #eaf1fb, #f7faff 58%, #e8eef8);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.benefits article,
.contact-card,
.cta-box {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 16px 45px rgba(16, 37, 79, 0.08);
}

.service-card {
  padding: 26px;
}

.service-card h3 {
  color: var(--primary);
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.service-card li + li {
  margin-top: 0.55rem;
}

.cta {
  background:
    radial-gradient(circle at 88% 20%, rgba(234, 147, 116, 0.32), transparent 26%),
    linear-gradient(135deg, #07152f, var(--primary) 48%, #263f84);
  color: #fff;
}

.cta .eyebrow,
.cta p {
  color: rgba(255, 255, 255, 0.76);
}

.cta-box {
  grid-template-columns: 1fr auto;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-box .button {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.why-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(234, 147, 116, 0.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(66, 99, 190, 0.14), transparent 30%),
    linear-gradient(135deg, #fff7f1, #f6f2eb 48%, #edf3fb);
  color: var(--ink);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  grid-template-areas:
    "copy visual"
    "benefits benefits";
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.why-copy {
  grid-area: copy;
}

.why-copy .eyebrow {
  color: var(--primary-2);
}

.why-copy p {
  color: var(--muted);
}

.why-statement {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: var(--primary) !important;
  font-weight: 700;
}

.why-visual {
  grid-area: visual;
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(16, 37, 79, 0.12);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 37, 79, 0.12);
}

.why-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(16, 37, 79, 0.08)),
    radial-gradient(circle at 70% 35%, rgba(234, 147, 116, 0.12), transparent 28%);
}

.why-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.why-benefits {
  grid-area: benefits;
}

.benefits {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.why-section .benefits {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.benefits article {
  padding: 20px;
}

.why-section .benefits article {
  border-color: rgba(16, 37, 79, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(16, 37, 79, 0.08);
  backdrop-filter: blur(8px);
}

.why-section .benefits h3 {
  color: var(--primary);
}

.why-section .benefits p {
  color: var(--muted);
}

.benefits p {
  margin-bottom: 0;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

#faq {
  background:
    radial-gradient(circle at 88% 18%, rgba(234, 147, 116, 0.22), transparent 28%),
    linear-gradient(135deg, #0b1f46, #102f68 54%, #4263be);
  color: #fff;
}

#faq .eyebrow {
  color: #ffb26f;
}

#faq h2,
#faq .section-heading p {
  color: #fff;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 37, 79, 0.07);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--primary);
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.contact {
  background:
    radial-gradient(circle at 20% 15%, rgba(66, 99, 190, 0.16), transparent 28%),
    #ffffff;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  font-style: normal;
}

.contact-card a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
  font-weight: 700;
}

.contact-card svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  fill: var(--primary-2);
}

.contact-card a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.site-footer {
  padding: 28px 0;
  background: #07152f;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split-reverse,
  .contact-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    justify-items: start;
  }

  .hero-panel {
    justify-self: start;
    max-width: 100%;
  }

  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "benefits";
  }

  .why-section .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-proof article:nth-child(2),
  .about-proof article:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 68px;
  }

  .brand img {
    height: 46px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 68px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-panel {
    padding: 22px;
  }

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

  .why-section .benefits {
    grid-template-columns: 1fr;
  }

  .about-proof {
    grid-template-columns: 1fr;
  }

  .why-visual,
  .why-visual img {
    min-height: 260px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

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