/* =====================================================
   GLOBAL / BASE
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #111827;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eef2f7;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.nav-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.logo span {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #0f172a;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #4f6df5;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.signin-link {
  font-size: 0.98rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.25s ease;
}

.signin-link:hover {
  color: #111827;
}

.demo-btn {
  background: #4f6df5;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(79, 109, 245, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.demo-btn:hover {
  transform: translateY(-1px);
  background: #3f5be0;
  box-shadow: 0 16px 28px rgba(79, 109, 245, 0.28);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 1.2rem;
  color: #0f172a;
  transition: background 0.25s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  background: #eef2f7;
}

.menu-toggle i {
  transition: transform 0.25s ease;
}

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  transition: max-height 0.45s ease, opacity 0.3s ease, transform 0.35s ease;
  background: #ffffff;
  border-top: 1px solid transparent;
  pointer-events: none;
}

.mobile-menu.open {
  max-height: 700px;
  opacity: 1;
  transform: translateY(0);
  border-top: 1px solid #eef2f7;
  pointer-events: auto;
}

.mobile-menu-inner {
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu a {
  color: #334155;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 14px;
  border-radius: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.mobile-menu a:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: translateX(2px);
}

.mobile-signin {
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.mobile-demo-btn {
  background: #4f6df5;
  color: #ffffff !important;
  text-align: center;
  font-weight: 700 !important;
  box-shadow: 0 12px 24px rgba(79, 109, 245, 0.18);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
  padding: 70px 0 24px;
  background: #081126;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 70px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.footer-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-logo span {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #9aa7bd;
  margin-bottom: 18px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact a,
.footer-contact span {
  font-size: 0.95rem;
  color: #7f8aa5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-column a {
  display: block;
  font-size: 0.98rem;
  color: #9aa7bd;
  margin-bottom: 14px;
  transition: color 0.25s ease;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #7f8aa5;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.9rem;
  color: #7f8aa5;
  transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1180px) {
  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .demo-btn {
    padding: 13px 20px;
  }
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .nav-center {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .logo span {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .nav-wrap {
    min-height: 76px;
  }

  .logo-box {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .logo span {
    font-size: 1.35rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .mobile-menu-inner {
    padding: 10px 16px 16px;
  }

  .footer {
    padding: 55px 0 20px;
  }

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

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

  .footer-bottom-links {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo span {
    font-size: 1.5rem;
  }
}