@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300..900;1,300..900&display=swap");

/* 15min Shared Header Component */
.header {
  height: 120px;
  padding: 20px max(40px, calc((100vw - 1410px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e3e5;
  background: rgba(252, 252, 252, 0.95);
  backdrop-filter: blur(55.5px);
  -webkit-backdrop-filter: blur(55.5px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  width: 100%;
}
.header * {
  box-sizing: border-box;
}
.header .brand {
  width: 260px;
  height: 80px;
  display: grid;
  grid-template-columns: 80px 80px 88px;
  align-items: center;
  gap: 4px;
  color: #35353a;
  text-decoration: none;
  font-size: 12px;
  font-family: "Nunito", Inter, system-ui, sans-serif;
  line-height: 1.2;
}
.header .brand img:first-child {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.header .brand span {
  font-size: 12px;
  color: #55558a;
  text-align: center;
  font-weight: 500;
}
.header .brand img:last-child {
  width: 88px;
  height: 24px;
  object-fit: contain;
}
.header > nav:not(#mobile-menu) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 52px;
  align-items: center;
}
.header nav a {
  font-family: "Nunito", Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #000c24;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
  position: relative;
}
.header nav a:hover {
  color: #0065f2;
}
.header nav a.active {
  color: #0065f2;
  font-weight: 700;
}
.header nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: #0065f2;
  border-radius: 999px;
}
.header .header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.header .btn {
  border: 0;
  background: none;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  font-family: "Nunito", Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header .login {
  color: #000c24;
  border: 1px solid rgba(30, 41, 59, 0.12);
  background: #ffffff;
}
.header .login:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(30, 41, 59, 0.25);
}
.header .primary {
  padding-inline: 24px;
  color: #f7f9ff !important;
  background: linear-gradient(143deg, #6c63ff 10%, #2892ff 60%, #2fb0f2);
  box-shadow: 0 6px 10px rgba(0, 56, 187, 0.4);
}
.header .primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 56, 187, 0.45);
}
.header .menu-toggle {
  display: none;
}
.header #mobile-menu {
  display: none;
}

/* Page body padding for fixed header */
body.has-fixed-header main {
  padding-top: 120px !important;
}

@media (max-width: 1023px) {
  .header {
    height: 80px;
    padding: 8px 16px;
  }
  body.has-fixed-header main {
    padding-top: 80px !important;
  }
  .header > nav:not(#mobile-menu),
  .header .header-actions {
    display: none;
  }
  .header .brand {
    width: 210px;
    height: 64px;
    grid-template-columns: 64px 72px 70px;
  }
  .header .brand img:first-child {
    width: 64px;
    height: 64px;
  }
  .header .brand span {
    font-size: 11px;
  }
  .header .brand img:last-child {
    width: 70px;
    height: 20px;
  }
  .header .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    border-radius: 8px;
    color: #000c24;
  }
  .header #mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    transform: none;
    padding: 16px 20px;
    display: grid;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    z-index: 100;
  }
  .header #mobile-menu a {
    color: #000c24;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.15s ease;
  }
  .header #mobile-menu a:last-child {
    border-bottom: none;
  }
  .header #mobile-menu a:hover,
  .header #mobile-menu a:active,
  .header #mobile-menu a.active {
    color: #0065f2;
  }
  .header #mobile-menu .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .header #mobile-menu .mobile-actions .btn {
    min-height: 42px;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
  }
  #mobile-menu[hidden] {
    display: none !important;
  }
}

/* 15min Shared Footer Component (Synchronized with Landing Page) */
.footer {
  width: calc(100% - 104px);
  min-height: 417px;
  margin: 0 52px 40px;
  padding: 60px;
  border-radius: 24px;
  background: #090f2c;
  color: white;
  box-sizing: border-box;
}
.footer * {
  box-sizing: border-box;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1000px 330px 330px;
  gap: 30px;
}
.footer-grid > div > img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.footer-grid p {
  max-width: 556px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 24px;
  font-size: 15px;
  margin: 16px 0 0 0;
}
.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 68px;
}
.footer-grid nav b {
  font-size: 14px;
  margin-bottom: 4px;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.footer-grid nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none !important;
  transition: color 0.15s ease;
  cursor: pointer;
}
.footer-grid nav a:hover {
  color: #ffffff;
}
.footer .copyright {
  margin-top: 40px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer .copyright a {
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.footer .copyright a:hover {
  opacity: 0.85;
}

@media (max-width: 1439px) {
  .footer {
    width: calc(100% - 48px);
    margin: 0 24px 32px;
    padding: 40px 32px;
    height: auto;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 1023px) {
  .footer {
    width: 100%;
    margin: 0;
    padding: 40px 24px;
    border-radius: 0;
    height: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid nav {
    margin-top: 20px;
  }
  .footer .copyright {
    display: grid;
    gap: 12px;
  }
}
