/* Header */
.site-header {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid rgba(11, 27, 46, .075);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

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

.brand img {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 38px;
  height: 100%;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.012em;
  color: #15253b;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
}

.header-cta {
  margin-left: 24px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 27px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 10px 24px rgba(0, 87, 216, .18);
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.header-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 87, 216, .24);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
  transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-contact {
  display: none;
}

/* Buttons */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.012em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 87, 216, .18);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 87, 216, .24);
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: #bfd4f4;
  box-shadow: 0 6px 18px rgba(11, 27, 46, .035);
}

.btn-outline:hover {
  background: var(--blue-soft);
  border-color: rgba(0, 87, 216, .34);
  transform: translateY(-1px);
}

.btn:active,
.header-cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn .arrow {
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

/* Cards & Icons */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.icon-badge.small {
  width: 44px;
  height: 44px;
}

.icon-badge.tiny {
  width: 36px;
  height: 36px;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge.small svg {
  width: 21px;
  height: 21px;
}

.icon-badge.tiny svg {
  width: 18px;
  height: 18px;
}

.learn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

/* CTA and footer */
.cta-strip {
  margin-top: 22px;
  background: var(--soft-2);
  border-top: 1px solid #deebfb;
  border-bottom: 1px solid #dce9fb;
  position: relative;
  overflow: hidden;
}

.cta-strip::before,
.cta-strip::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(0, 87, 216, .08);
  border-radius: 50%;
  top: -78px;
}

.cta-strip::before {
  left: 90px;
  box-shadow: 0 0 0 30px rgba(0, 87, 216, .025), 0 0 0 62px rgba(0, 87, 216, .018);
}

.cta-strip::after {
  right: 96px;
  box-shadow: 0 0 0 30px rgba(0, 87, 216, .025), 0 0 0 62px rgba(0, 87, 216, .018);
}

.cta-inner {
  position: relative;
  z-index: 2;
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-direction: column;
  text-align: center;
}

.cta-copy h2 {
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -.034em;
}

.cta-copy p {
  font-size: 13.2px;
  color: #5e6d80;
  margin-top: 8px;
  font-weight: 500;
}

.cta-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 36px 0 26px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 78px;
  align-items: start;
}

.footer-brand img {
  width: 206px;
  height: auto;
  margin-bottom: 15px;
}

.footer-brand p {
  max-width: 330px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.58;
  font-weight: 500;
}

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

.footer-grid a,
.footer-grid button {
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.footer-grid a:hover,
.footer-grid button:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
  font-weight: 500;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 25, .58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .25);
  padding: 30px;
  color: var(--text);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 15px;
  border: 0;
  background: var(--blue-soft);
  color: #174066;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  background: #dbeeff;
}

.modal-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.modal-card p {
  font-size: 16px;
  color: #42536a;
  font-weight: 650;
}

.modal-card img {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

@media (max-width: 1050px) {
  .brand img {
    width: 170px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    gap: 18px;
  }
}

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

  .header-inner {
    height: 72px;
    gap: 18px;
    flex-wrap: nowrap;
  }

  .brand img {
    width: 160px;
  }

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

  .header-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    height: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 24px 70px rgba(8, 26, 51, .16);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 80;
    margin-left: 0;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    height: auto;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--blue-soft);
    color: var(--blue);
  }

  .main-nav a.active::after {
    display: none;
  }

  .mobile-contact {
    display: inline-flex;
    margin-top: 6px;
    background: var(--blue);
    color: #fff !important;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .cta-inner {
    height: auto;
    padding: 24px 0;
  }

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