:root {
  --bi-white: #ffffff;
  --bi-black: #05070b;
  --bi-blue: #07175f;
  --bi-blue-soft: #0b2a8f;
  --bi-text: #111827;
  --bi-muted: #5b6472;
  --bi-light: #f5f7fb;
  --bi-border: rgba(7, 23, 95, 0.12);
  --bi-shadow: 0 18px 55px rgba(7, 23, 95, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bi-home-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--bi-white);
  color: var(--bi-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body.bi-home-page h1,
body.bi-home-page h2,
body.bi-home-page h3,
body.bi-home-page p {
  margin-top: 0;
}

body.bi-home-page p {
  color: var(--bi-muted);
  line-height: 1.75;
}

.bi-section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.bi-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px 20px;
  background: transparent;
}

.bi-site-header .navbar {
  width: min(1180px, 100%);
  min-height: 76px;
  height: auto;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 22px;
  background: rgba(5, 7, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bi-site-header .logo img {
  width: 48px;
  height: 48px;
  padding: 4px;
  background: var(--bi-white);
}

.bi-site-header .logo h2,
.bi-site-header .logo a {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: var(--bi-white);
  white-space: nowrap;
}

.bi-site-header .navbar .links {
  align-items: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.bi-site-header .navbar .links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
}

.bi-site-header .navbar .links a:hover {
  color: var(--bi-white);
}

.bi-site-header .navbar .dropdown-content {
  background: #05070b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  overflow: hidden;
}

.bi-site-header .lang-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--bi-white);
}

.bi-site-header .toggle_btn {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bi-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  background:
    radial-gradient(circle at 85% 18%, rgba(7, 23, 95, 0.16), transparent 32%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 78%);
  overflow: hidden;
}

.bi-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.65)),
    url("assets/images/bgs/main_bg.jpg") center/cover no-repeat;
  opacity: 0.18;
}

.bi-hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -130px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(7, 23, 95, 0.1);
}

.bi-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.bi-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(7, 23, 95, 0.08);
  color: var(--bi-blue);
  border: 1px solid var(--bi-border);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bi-hero-content h1 {
  max-width: 780px;
  margin: 20px 0 20px;
  color: var(--bi-black);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.bi-hero-content p {
  max-width: 680px;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.bi-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.bi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.bi-btn-primary {
  background: var(--bi-blue);
  color: var(--bi-white);
  box-shadow: 0 14px 35px rgba(7, 23, 95, 0.26);
}

.bi-btn-primary:hover {
  background: var(--bi-black);
  color: var(--bi-white);
}

.bi-btn-secondary {
  background: var(--bi-white);
  color: var(--bi-blue);
  border: 1px solid var(--bi-border);
}

.bi-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.bi-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 0.93rem;
  font-weight: 700;
}

.bi-hero-trust i {
  color: var(--bi-blue);
}

.bi-hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--bi-border);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--bi-shadow);
  backdrop-filter: blur(18px);
}

.bi-hero-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--bi-border);
}

.bi-hero-card-top img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.bi-hero-card-top strong {
  display: block;
  color: var(--bi-black);
}

.bi-hero-card-top span {
  display: block;
  margin-top: 4px;
  color: var(--bi-muted);
  font-size: 0.9rem;
}

.bi-path-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px 0;
}

.bi-path-card + .bi-path-card {
  border-top: 1px solid var(--bi-border);
}

.bi-path-card i {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bi-blue);
  color: var(--bi-white);
}

.bi-path-card h3 {
  margin: 0 0 6px;
  color: var(--bi-black);
  font-size: 1.05rem;
}

.bi-path-card p {
  margin: 0;
  font-size: 0.93rem;
}

.bi-stat-strip {
  padding: 26px 0;
  background: var(--bi-blue);
}

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

.bi-stat-grid div {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bi-white);
  text-align: center;
}

.bi-stat-grid strong {
  display: block;
  font-size: 1.45rem;
}

.bi-stat-grid span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.bi-about,
.bi-services-preview,
.bi-process,
.bi-feature-band,
.bi-cta {
  padding: 90px 0;
}

.bi-about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.bi-about-image img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--bi-shadow);
}

.bi-about-text h2,
.bi-section-heading h2,
.bi-feature-grid h2,
.bi-cta-box h2 {
  margin: 16px 0 16px;
  color: var(--bi-black);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.bi-check-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.bi-check-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bi-blue);
  font-weight: 800;
}

.bi-services-preview {
  background: var(--bi-light);
}

.bi-section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.bi-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bi-service-card {
  background: var(--bi-white);
  border: 1px solid var(--bi-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(7, 23, 95, 0.08);
  transition: 0.25s ease;
}

.bi-service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--bi-shadow);
}

.bi-service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.bi-service-card div {
  padding: 24px;
}

.bi-service-card i {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bi-blue);
  color: var(--bi-white);
  margin-bottom: 14px;
}

.bi-service-card h3 {
  margin-bottom: 10px;
  color: var(--bi-black);
}

.bi-service-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--bi-blue);
  font-weight: 900;
  text-decoration: none;
}

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

.bi-process-step {
  padding: 28px;
  border-radius: 26px;
  background: var(--bi-white);
  border: 1px solid var(--bi-border);
  box-shadow: 0 14px 40px rgba(7, 23, 95, 0.08);
}

.bi-process-step span {
  display: inline-flex;
  color: var(--bi-blue);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.bi-process-step h3 {
  color: var(--bi-black);
}

.bi-feature-band {
  background: linear-gradient(135deg, var(--bi-black), var(--bi-blue));
  color: var(--bi-white);
}

.bi-feature-band .bi-kicker {
  color: var(--bi-white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

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

.bi-feature-grid h2 {
  color: var(--bi-white);
}

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

.bi-feature-list p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
}

.bi-feature-list i {
  color: var(--bi-white);
}

.bi-cta {
  background: var(--bi-light);
}

.bi-cta-box {
  text-align: center;
  border-radius: 34px;
  padding: 58px 28px;
  background: var(--bi-white);
  border: 1px solid var(--bi-border);
  box-shadow: var(--bi-shadow);
}

.bi-cta-box .bi-hero-actions {
  justify-content: center;
}

.bi-main-footer {
  box-sizing: border-box;
}

@media (max-width: 1020px) {
  .bi-hero-grid,
  .bi-about-grid,
  .bi-feature-grid {
    grid-template-columns: 1fr;
  }

  .bi-hero-card {
    max-width: 680px;
  }

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

@media (max-width: 768px) {
  .bi-site-header {
    padding: 10px 12px;
  }

  .bi-site-header .navbar {
    border-radius: 18px;
  }

  .bi-site-header .navbar .links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: #05070b;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .bi-site-header .navbar .links.mobile-visible {
    display: flex;
  }

  .bi-site-header .navbar .links li {
    width: 100%;
  }

  .bi-site-header .navbar .links a {
    display: block;
    padding: 12px 10px;
  }

  .bi-site-header .navbar .dropdown-content {
    position: static;
    width: 100%;
    min-width: 100%;
    margin: 4px 0 10px;
    box-shadow: none;
  }

  .bi-site-header .navbar .dropdown-content.open-submenu {
    display: block;
  }

  .bi-site-header .toggle_btn {
    display: inline-flex;
    color: var(--bi-white);
  }

  .bi-site-header .lang-dropdown {
    margin-left: auto;
  }

  .bi-hero {
    min-height: auto;
    padding: 132px 0 70px;
  }

  .bi-section-shell {
    width: min(100% - 28px, 1180px);
  }

  .bi-hero-content h1 {
    font-size: clamp(2.25rem, 12vw, 3.8rem);
  }

  .bi-hero-actions,
  .bi-hero-trust {
    flex-direction: column;
    align-items: stretch;
  }

  .bi-btn {
    width: 100%;
  }

  .bi-stat-grid,
  .bi-service-grid,
  .bi-process-grid {
    grid-template-columns: 1fr;
  }

  .bi-about,
  .bi-services-preview,
  .bi-process,
  .bi-feature-band,
  .bi-cta {
    padding: 64px 0;
  }

  .bi-about-image img {
    min-height: 300px;
  }

  .bi-service-card img {
    height: 190px;
  }
}

@media (max-width: 520px) {
  .bi-site-header .logo h2,
  .bi-site-header .logo a {
    font-size: 0.78rem;
  }

  .bi-site-header .logo img {
    width: 42px;
    height: 42px;
  }

  .bi-site-header .navbar {
    padding: 10px 12px;
  }

  .bi-site-header .lang-btn,
  .bi-site-header .toggle_btn {
    width: 38px;
    height: 38px;
  }

  .bi-hero-card {
    padding: 18px;
    border-radius: 24px;
  }

  .bi-path-card {
    grid-template-columns: 40px 1fr;
  }

  .bi-path-card i {
    width: 40px;
    height: 40px;
  }
}


/* Preserved Home Sections: Team, Testimonials, Partners */
.bi-home-team,
.bi-home-testimonials,
.bi-home-partners {
  padding: 90px 0;
}

.bi-home-team,
.bi-home-partners {
  background: #ffffff;
}

.bi-home-testimonials {
  background: var(--bi-light);
}

.bi-home-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.bi-home-team-card {
  background: #ffffff;
  border: 1px solid var(--bi-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(7, 23, 95, 0.08);
  transition: 0.25s ease;
}

.bi-home-team-card:hover,
.bi-home-testimonial-card:hover,
.bi-home-partner-logo:hover {
  transform: translateY(-7px);
  box-shadow: var(--bi-shadow);
}

.bi-home-team-card > img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bi-home-team-card > div {
  padding: 22px;
}

.bi-home-team-card h3 {
  margin: 0 0 10px;
  color: var(--bi-black);
  font-size: 1.15rem;
}

.bi-home-team-card p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.bi-home-team-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bi-blue) !important;
  font-weight: 800;
}

.bi-home-team-location img {
  width: 22px;
  height: auto;
  border-radius: 3px;
}

.bi-home-section-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.bi-home-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.bi-home-testimonial-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--bi-border);
  border-radius: 28px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(7, 23, 95, 0.08);
  transition: 0.25s ease;
}

.bi-home-testimonial-card img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 4px solid #eef4ff;
}

.bi-home-testimonial-card i {
  display: inline-flex;
  color: var(--bi-blue);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.bi-home-testimonial-card p {
  margin: 0 auto 18px;
  max-width: 420px;
  font-size: 1rem;
}

.bi-home-testimonial-card h3 {
  color: var(--bi-black);
  margin: 0;
  font-size: 1rem;
}

.bi-home-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: stretch;
}

.bi-home-partner-logo {
  min-height: 118px;
  background: #ffffff;
  border: 1px solid var(--bi-border);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(7, 23, 95, 0.07);
  transition: 0.25s ease;
}

.bi-home-partner-logo img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

body.bi-home-page #partner-modal.modal {
  z-index: 2000;
}

body.bi-home-page #partner-modal .modal-content {
  border-radius: 24px;
  border: 1px solid var(--bi-border);
}

@media (max-width: 1020px) {
  .bi-home-team-grid,
  .bi-home-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bi-home-team,
  .bi-home-testimonials,
  .bi-home-partners {
    padding: 64px 0;
  }

  .bi-home-team-grid,
  .bi-home-testimonial-grid,
  .bi-home-partners-grid {
    grid-template-columns: 1fr;
  }

  .bi-home-team-card > img {
    height: 310px;
  }
}
