/* Trang chủ — bố cục tham khảo _old/index.html. Mọi class đều có tiền tố home- để không đụng app.css. */

/* ==================== NÚT ==================== */
.home-btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

.home-btn-outline {
  background: var(--bg-white);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.home-btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.home-btn-white {
  background: #fff;
  color: var(--primary-dark);
}

.home-btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ==================== HERO ==================== */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background:
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.25), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(6, 182, 212, 0.15), transparent 40%),
    linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.home-pill {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.12);
}

.home-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin-bottom: 20px;
}

.home-highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-text > p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 32px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.home-hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.home-hero-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.home-hero-stats span {
  font-size: 14px;
  color: var(--text-light);
}

.home-hero-visual {
  position: relative;
}

.home-browser {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(14, 165, 233, 0.22);
  transform: perspective(1200px) rotateY(-6deg);
}

.home-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.home-browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f87171;
}

.home-browser-bar i:nth-child(2) { background: #fbbf24; }
.home-browser-bar i:nth-child(3) { background: #34d399; }

.home-browser-bar span {
  flex: 1;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  color: var(--text-light);
}

.home-browser img {
  display: block;
  width: 100%;
}

.home-float {
  position: absolute;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  animation: home-float 4s ease-in-out infinite;
}

.home-float-1 { top: -18px; right: -10px; }
.home-float-2 { bottom: -22px; left: -20px; animation-delay: 1.5s; }

@keyframes home-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-float { animation: none; }
}

/* ==================== KHỐI CHUNG ==================== */
.home-section {
  padding: 90px 0;
}

.home-section-alt {
  background: var(--bg-light);
}

.home-narrow {
  max-width: 820px;
}

.home-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.home-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-head h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin-bottom: 12px;
}

.home-head p {
  font-size: 17px;
  color: var(--text-light);
}

.home-more {
  text-align: center;
  margin-top: 44px;
}

.home-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
}

.home-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #cffafe);
  font-size: 26px;
}

.home-card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ==================== DỊCH VỤ ==================== */
.home-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.home-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.14);
}

.home-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.home-card p {
  color: var(--text-light);
  font-size: 15px;
}

.home-card-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}

.home-card-cta h3,
.home-card-cta p,
.home-card-cta .home-card-link {
  color: #fff;
}

.home-card-cta .home-icon {
  background: rgba(255, 255, 255, 0.2);
}

/* ==================== QUY TRÌNH ==================== */
.home-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: none;
}

.home-steps li {
  position: relative;
  padding: 30px 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
}

.home-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-light);
}

.home-step-num {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-steps h3 {
  font-size: 19px;
  margin-bottom: 6px;
  color: #0f172a;
}

.home-steps p {
  font-size: 15px;
  color: var(--text-light);
}

/* ==================== GIẢI PHÁP ==================== */
.home-solution-desc {
  font-size: 14px;
  color: var(--text-light);
  margin: -6px 0 18px;
}

.home-section .product-info h3 {
  min-height: 0;
  margin-bottom: 10px;
}

.home-section .product-actions {
  margin: auto 0 0;
}

/* ==================== DỰ ÁN ==================== */
.home-work {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.home-work:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.16);
}

.home-work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  overflow: hidden;
}

.home-work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.home-work:hover .home-work-thumb img {
  transform: scale(1.06);
}

.home-work-thumb span {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.home-work-body {
  padding: 22px 24px 26px;
}

.home-work-body h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 4px;
  color: #0f172a;
}

.home-work-body p:last-child {
  font-size: 14px;
  color: var(--text-light);
}

/* ==================== VÌ SAO CHỌN ==================== */
.home-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.home-why-item {
  text-align: center;
  padding: 10px;
}

.home-why-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #0f172a;
}

.home-why-item p {
  font-size: 15px;
  color: var(--text-light);
}

/* ==================== LỘ TRÌNH HỌC ==================== */
.home-roadmaps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.home-roadmap {
  display: block;
  padding: 26px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.home-roadmap:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.14);
}

.home-roadmap-icon {
  display: block;
  font-size: 34px;
  margin-bottom: 12px;
}

.home-roadmap h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #0f172a;
}

.home-roadmap p {
  font-size: 13px;
  color: var(--text-light);
}

/* ==================== BLOG ==================== */
.home-post {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.home-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.14);
}

.home-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.home-post-cat {
  padding: 2px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--primary-dark);
  font-weight: 600;
}

.home-post h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #0f172a;
}

.home-post p {
  font-size: 14px;
  color: var(--text-light);
}

/* ==================== HỎI ĐÁP ==================== */
.home-faq details {
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.home-faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s;
}

.home-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.home-faq details p {
  padding: 0 22px 18px;
  color: var(--text-light);
}

/* ==================== CTA ==================== */
.home-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.home-cta h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}

.home-cta p {
  font-size: 17px;
  opacity: 0.92;
  margin-bottom: 18px;
}

.home-contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
}

.home-contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.home-contact-list a:hover {
  text-decoration: underline;
}

.home-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .home-hero-text {
    text-align: center;
  }

  .home-hero-text > p {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-actions,
  .home-hero-stats {
    justify-content: center;
  }

  .home-hero-visual {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .home-browser {
    transform: none;
  }

  .home-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-steps,
  .home-why,
  .home-roadmaps {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-steps li::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 60px 0 80px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-hero-text > p {
    font-size: 16px;
  }

  .home-hero-stats {
    gap: 24px;
  }

  .home-hero-stats strong {
    font-size: 22px;
  }

  .home-float-1 { right: 0; }
  .home-float-2 { left: 0; }

  .home-section {
    padding: 64px 0;
  }

  .home-head {
    margin-bottom: 36px;
  }

  .home-head h2 {
    font-size: 28px;
  }

  .home-grid-3,
  .home-steps,
  .home-why,
  .home-roadmaps {
    grid-template-columns: 1fr;
  }

  .home-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-cta-actions {
    width: 100%;
  }

  .home-cta h2 {
    font-size: 28px;
  }
}
