/* Header / Nav - Sticky Header đơn giản */
.site-header { 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(20px); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
  transition: all 0.3s ease;
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 0; 
}

.nav__brand { 
  display: flex; 
  align-items: center; 
}

.nav__logo { 
  display: block; 
  transition: opacity 0.3s ease; 
}

.nav__logo:hover { 
  opacity: 0.8; 
}

.nav__logo img { 
  width: 220px; 
  height: auto; 
}

.nav__menu { 
  display: flex; 
  align-items: center; 
  gap: 40px; 
}

.nav__list { 
  display: flex; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  gap: 32px; 
}

.nav__link { 
  color: var(--text-1); 
  text-decoration: none; 
  font-weight: 500; 
  transition: color 0.3s ease; 
  position: relative; 
}

.nav__link:hover { 
  color: var(--ring); 
}

.nav__link::after { 
  content: ''; 
  position: absolute; 
  bottom: -4px; 
  left: 0; 
  width: 0; 
  height: 2px; 
  background: var(--ring); 
  transition: width 0.3s ease; 
}

.nav__link:hover::after { 
  width: 100%; 
}

.nav__cta { 
  display: flex; 
  align-items: center; 
}

.nav__toggle { 
  display: none; 
  background: none; 
  border: none; 
  color: var(--text-1); 
  cursor: pointer; 
  padding: 8px; 
  border-radius: 6px; 
  transition: background 0.3s ease; 
}

.nav__toggle:hover { 
  background: rgba(255, 255, 255, 0.1); 
}

.nav__toggle .icon { 
  width: 24px; 
  height: 24px; 
}

/* Mobile menu hidden by default */
.nav__menu.is-open .nav__link { /* hook */ }

/* Responsive */
@media (max-width: 768px) {
  .nav__menu { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: rgba(15, 20, 31, 0.98); 
    backdrop-filter: blur(20px); 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 20px; 
    flex-direction: column; 
    gap: 20px; 
  }
  
  .nav__menu.is-open { 
    display: flex; 
  }
  
  .nav__list { 
    flex-direction: column; 
    gap: 16px; 
    width: 100%; 
  }
  
  .nav__link { 
    display: block; 
    padding: 12px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
  }
  
  .nav__link::after { 
    display: none; 
  }
  
  .nav__cta { 
    width: 100%; 
  }
  
  .nav__cta .btn { 
    width: 100%; 
    text-align: center; 
  }
  
  .nav__toggle { 
    display: block; 
  }
}

/* Sections */
.section { padding: var(--space-48) 0; }
.section--alt { background: #0f1320; }
.section__header { text-align: center; margin-bottom: var(--space-24); }
.logo-row { display: grid; grid-auto-flow: column; gap: 24px; justify-content: space-between; align-items: center; opacity: .8; }
@media (max-width: 768px) { .logo-row { grid-auto-flow: row; grid-template-columns: repeat(3,1fr); row-gap: 16px; } }

/* Footer - Updated for new design */
.site-footer { 
  border-top: 1px solid rgba(139, 92, 246, 0.3); 
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.12) 50%, rgba(236, 72, 153, 0.1) 100%); 
  backdrop-filter: blur(25px);
  padding: 60px 0 30px;
  margin-top: 80px;
  box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.1);
}

.footer { 
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 32px; 
  align-items: start; 
  padding: 48px 0; 
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  text-align: left;
}

.footer__brand img { 
  width: 180px; 
  height: auto; 
}

.footer__links {
  list-style: none; 
  display: flex; 
  flex-direction: column;
  gap: 12px; 
  margin: 0; 
  padding: 0; 
  text-align: left;
}

.footer__links a { 
  color: var(--text-2); 
  text-decoration: none; 
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer__links a:hover { 
  color: var(--text-1); 
}

.footer__links li { 
  margin: 0; 
  padding: 0; 
}

.footer__brand p { 
  color: var(--text-2); 
  margin: 0;
  line-height: 1.6;
  max-width: 300px;
  font-size: 14px;
}

.footer__desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer__copyright {
  color: var(--text-2);
  font-size: 13px;
  margin-top: 8px;
}

.footer__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.footer__title {
  color: var(--text-1);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.footer__contact p {
  color: var(--text-2);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.footer__contact a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__contact a:hover {
  color: var(--text-1);
}

.footer__social-title {
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px 0;
}

.social-links {
  display: flex;
  gap: 12px;
}

.footer__social { 
  display: flex; 
  gap: 12px; 
  justify-content: flex-end; 
}

.footer__social .social { 
  display: inline-flex; 
  width: 40px; 
  height: 40px; 
  align-items: center; 
  justify-content: center; 
  border-radius: 8px; 
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer__social .social:hover {
  background: var(--ring);
  color: white;
  transform: translateY(-2px);
}

.footer__social .social svg { 
  width: 20px; 
  height: 20px; 
}

.footer__bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  color: var(--text-2);
  font-size: 13px;
  margin: 0;
}

.footer__bottom strong {
  color: var(--text-1);
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
  
  .footer__brand {
    grid-column: 1 / -1;
  }
  
  .footer__desc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer { 
    grid-template-columns: 1fr; 
    gap: 24px; 
    text-align: left;
  }
  
  .footer__brand { 
    gap: 12px; 
    text-align: left;
  }
  
  .footer__brand img { 
    width: 100px; 
    height: auto; 
  }
  
  .footer__desc {
    font-size: 13px;
    max-width: 100%;
    text-align: left;
  }
  
  .footer__copyright {
    font-size: 12px;
    text-align: left;
  }
  
  .footer__title {
    font-size: 15px;
    text-align: left;
  }
  
  .footer__links {
    text-align: left;
  }
  
  .footer__links a { 
    font-size: 13px; 
    text-align: left;
  }
  
  .footer__contact {
    text-align: left;
  }
  
  .footer__contact p {
    font-size: 12px;
    text-align: left;
  }
  
  .footer__social-title {
    text-align: left;
  }
  
  .footer__social .social { 
    width: 36px; 
    height: 36px; 
  }
  
  .footer__social .social svg { 
    width: 18px; 
    height: 18px; 
  }
  
  .footer__bottom p {
    font-size: 12px;
    text-align: center;
  }
  
  .site-footer { 
    padding: 40px 0 20px; 
  }
}

/* Demo */
.demo__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .demo__grid { grid-template-columns: repeat(2,1fr); } }
.demo__item { background: #0f1320; padding: 12px; border-radius: 16px; border: 1px solid #1d2440; box-shadow: var(--shadow-1); }
.demo__item figcaption { color: var(--text-3); margin-top: 8px; }

/* Final CTA */
.final-cta { padding: var(--space-64) 0; }
.final-cta__box { 
  text-align: center; 
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%); 
  border: 1px solid rgba(139, 92, 246, 0.3); 
  padding: 28px; 
  border-radius: 20px; 
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(10px);
}
