/* Ainexo portfolio websites — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  color: #242424;
  background: #faf8f5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }

.ainexo-credit,
.demo-banner {
  background: #1f1f1f;
  color: #666666;
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 16px;
}
.demo-banner a { color: #c89b3c; font-weight: 600; }
.demo-banner strong { color: #e8e2d9; }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e2d9;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 22px; list-style: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { opacity: 0.7; }
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  border: none;
  cursor: pointer;
}
.menu-btn { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

.hero {
  padding: 72px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero p { font-size: 1.08rem; opacity: 0.85; max-width: 560px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { color: #fff; }
.btn-outline { background: transparent; }

section { padding: 56px 0; }
.section-title { text-align: center; font-size: 1.75rem; margin-bottom: 10px; }
.section-sub { text-align: center; color: #64748b; margin-bottom: 36px; max-width: 520px; margin-inline: auto; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e8e2d9;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { color: #64748b; font-size: 0.92rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 14px;
}

/* AI chatbot demo button — matches ainexoai.com widget */
.chatbot-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c89b3c 0%, #9f2d2d 55%, #9f2d2d 100%);
  box-shadow: 0 10px 28px -6px rgba(139, 92, 246, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease;
}
.chatbot-fab:hover {
  transform: scale(1.08);
}
.chatbot-fab img {
  width: 30px;
  height: 30px;
}

footer.site {
  background: #1f1f1f;
  color: #666666;
  padding: 40px 0 24px;
  margin-top: 40px;
  font-size: 0.88rem;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
footer h4 { color: #f1f5f9; margin-bottom: 12px; font-size: 0.95rem; }
footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 16px 24px; border-bottom: 1px solid #e8e2d9;
  }
  .menu-btn { display: block; }
  .grid-3, .grid-2, footer .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
}
