/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --green-bg: #f0fdf4;
  --black: #0a0a0a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --font-head: 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 60px; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; line-height: 1.25; }
h3 { font-size: 18px; font-weight: 700; }
p { color: var(--gray-700); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(34,197,94,0.35); }

.btn-outline {
  background: transparent;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--gray-500); background: var(--gray-100); }

.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.badge svg { width: 14px; height: 14px; }

/* ===== NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--black);
}
.nav-logo svg { width: 32px; height: 32px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu > li { position: relative; }

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-menu a:hover { color: var(--gray-900); background: var(--gray-100); }

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

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label { color: var(--green-dark); }
.hero-title { color: var(--black); margin-bottom: 20px; }
.hero-desc { font-size: 16px; color: var(--gray-500); margin-bottom: 32px; max-width: 440px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}
.hero-feat svg { color: var(--green); flex-shrink: 0; }

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-100);
}
.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.hero-card-title { font-size: 13px; font-weight: 600; color: var(--gray-500); }
.hero-card-action {
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
}

.hero-card-body { display: flex; min-height: 260px; }

.workflow-sidebar {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid var(--gray-100);
  padding: 12px 0;
}
.workflow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--gray-500);
  cursor: pointer;
  transition: background 0.15s;
}
.workflow-step:hover { background: var(--gray-100); }
.workflow-step svg { width: 14px; height: 14px; flex-shrink: 0; }

.workflow-canvas {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 11px;
  width: 100%;
}

.flow-node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  min-width: 100px;
}
.flow-node.start { background: var(--green-light); color: var(--green-dark); border: 1.5px solid var(--green); }
.flow-node.approval { background: #fff; color: var(--gray-700); border: 1.5px solid var(--gray-300); }
.flow-node.manager { background: var(--green); color: #fff; }
.flow-node.hr { background: #fff; color: var(--gray-700); border: 1.5px solid var(--gray-300); }
.flow-node.end { background: var(--green-light); color: var(--green-dark); border: 1.5px solid var(--green); }

.flow-arrow {
  width: 2px;
  height: 20px;
  background: var(--gray-300);
  position: relative;
  margin: 0 auto;
}
.flow-arrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--gray-300);
}

.flow-branch {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}
.flow-branch::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: calc(50% + 8px);
  height: 1px;
  background: var(--gray-300);
}

.hero-badge-float {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: var(--green);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(34,197,94,0.4);
}

.auto-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: white;
  border: 1px solid var(--gray-100);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}

/* ===== TRUST LOGOS ===== */
.trust-section {
  padding: 48px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.trust-label {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-300);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.trust-logo:hover { color: var(--gray-500); }
.trust-logo.eco { font-style: italic; }

/* ===== PROBLEMS SECTION ===== */
.problems-section { padding: 80px 0; }
.problems-section h2 { text-align: center; margin-bottom: 48px; }

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

.problem-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.2s ease;
}
.problem-card:hover { background: var(--white); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.problem-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.problem-icon svg { width: 24px; height: 24px; color: var(--gray-700); }

.problem-card h3 { margin-bottom: 10px; }
.problem-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ===== SOLUTIONS SECTION ===== */
.solutions-section {
  padding: 80px 0;
  background: var(--gray-100);
}
.solutions-header { text-align: center; margin-bottom: 52px; }
.solutions-header h2 { margin-bottom: 0; }

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

.solution-card { padding: 8px; }

.solution-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.solution-icon svg { width: 24px; height: 24px; color: var(--green-dark); }

.solution-card h3 { margin-bottom: 8px; font-size: 16px; }
.solution-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ===== FEATURE SECTION ===== */
.feature-section { padding: 80px 0; }

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  background: var(--green-bg);
  border-radius: 24px;
  padding: 56px;
}

.feature-content { }
.feature-content h2 { margin-bottom: 16px; }
.feature-content > p { font-size: 15px; color: var(--gray-500); margin-bottom: 28px; }

.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.feature-item svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

.feature-visual {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.feature-visual-header {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-100);
}
.feature-visual-header span { width: 10px; height: 10px; border-radius: 50%; }
.feature-visual-header span:nth-child(1) { background: #fc615d; }
.feature-visual-header span:nth-child(2) { background: #fdbc40; }
.feature-visual-header span:nth-child(3) { background: #34c749; }

.feature-flow {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 240px;
  justify-content: center;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { font-size: 15px; color: var(--gray-500); margin-bottom: 32px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0a0a0a;
  color: #9ca3af;
  padding: 52px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Brand */
.footer-brand p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 20px;
  max-width: 240px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
}

/* Override custom logo size */
.footer-logo .custom-logo-link img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo a { display: flex; align-items: center; }

/* Zalo */
.footer-zalo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  transition: border-color .15s;
  max-width: 220px;
}
.footer-zalo:hover { border-color: var(--green); }
.footer-zalo-icon {
  width: 32px;
  height: 32px;
  background: #0068FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.footer-zalo-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}
.footer-zalo-num {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Cols */
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }

/* Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom > span {
  font-size: 12px;
  color: #4b5563;
}
.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #4b5563;
}
.footer-badge svg { color: var(--green); }

/* Responsive */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-badges { justify-content: center; flex-wrap: wrap; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.hero-content > * {
  animation: fadeInUp 0.6s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

.hero-visual { animation: fadeIn 0.8s ease 0.3s both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .problems-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }

  .feature-inner { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }

  .trust-logos { gap: 24px; }
  .trust-logo { font-size: 14px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
