/* ==========================================================================
   Luckywind.vn - Component Styles (Crisp Light Theme by Default)
   Architecture Note: Modular CSS components with clean modern aesthetics.
   ========================================================================== */

/* --- 1. Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background: rgba(7, 11, 20, 0.92);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-bottom-color: var(--border-medium);
}

[data-theme="dark"] .site-header.scrolled {
  background: rgba(7, 11, 20, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.logo-img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: var(--color-primary-light);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* --- 2. Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-full);
  color: var(--color-accent-emerald);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 22px;
  font-weight: 800;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* --- 3. Interactive AI Chat Simulation --- */
.chat-sim-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

[data-theme="dark"] .chat-sim-card {
  background: var(--bg-card);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
}

.chat-sim-header {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .chat-sim-header {
  background: rgba(30, 41, 59, 0.7);
}

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

.agent-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
}

.agent-meta h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.agent-status {
  font-size: 12px;
  color: var(--color-accent-emerald);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.agent-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-accent-emerald);
  border-radius: 50%;
}

.chat-sim-body {
  padding: 20px;
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fafafa;
}

[data-theme="dark"] .chat-sim-body {
  background: transparent;
}

.chat-msg {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.msg-ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .msg-ai {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--border-subtle);
}

.ai-reasoning-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--color-primary-dark);
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-weight: 700;
}

[data-theme="dark"] .ai-reasoning-tag {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.chat-sim-footer {
  padding: 14px 18px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

[data-theme="dark"] .chat-sim-footer {
  background: rgba(15, 23, 42, 0.95);
}

.quick-prompts-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.quick-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.prompt-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.prompt-btn:hover {
  background: rgba(2, 132, 199, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --- 4. Cards & Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.card-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --- 5. Comparison Table --- */
.comparison-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
  background: #f8fafc;
  font-size: 15px;
  font-weight: 700;
}

[data-theme="dark"] .comp-table th {
  background: rgba(30, 41, 59, 0.8);
}

.comp-table td {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.comp-table .highlight-col {
  background: rgba(2, 132, 199, 0.04);
  color: var(--text-primary);
  font-weight: 600;
  border-left: 1px solid rgba(2, 132, 199, 0.15);
  border-right: 1px solid rgba(2, 132, 199, 0.15);
}

/* --- 6. Pricing & Service Package Cards --- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 18px 0 10px 0;
  color: var(--text-primary);
}

.pricing-price span {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 28px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  color: var(--color-accent-emerald);
  flex-shrink: 0;
}

/* --- 7. FAQ Accordion --- */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-item.open {
  border-color: var(--color-primary-light);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  transition: transform var(--transition-normal);
  color: var(--color-primary);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 26px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  padding-bottom: 22px;
}

/* --- 8. Contact & Lead Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .contact-grid {
  background: var(--bg-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

[data-theme="dark"] .form-input, 
[data-theme="dark"] .form-select, 
[data-theme="dark"] .form-textarea {
  background: rgba(15, 23, 42, 0.8);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.15);
}

/* --- 9. Site Footer (Clean Light Theme) --- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px 0;
  color: var(--text-primary);
}

[data-theme="dark"] .site-footer {
  background: #0f172a;
  color: #f8fafc;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--color-primary);
}

.site-footer p {
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  font-weight: 700;
}

[data-theme="dark"] .footer-col h4 {
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-grid, .contact-grid, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: none;
    box-shadow: var(--shadow-md);
  }
  [data-theme="dark"] .nav-menu {
    background: rgba(7, 11, 20, 0.98);
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-grid {
    padding: 32px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
