/* ============================================================
   SATAMATH PROPOSAL — DESIGN SYSTEM
   Style: Liquid Glass & Emerald Harmony | Palette: Forest Green + Emerald + Amber Accent
   Typography: Outfit (Display) / Inter (Body)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --color-primary: #C2410C; /* Deep Rust Orange */
  --color-on-primary: #FFFFFF;
  --color-secondary: #475569; /* Slate Gray */
  --color-accent: #EA580C; /* SataMath Primary Orange */
  --color-accent-light: #FDBA74; /* Soft Peach */
  --color-accent-highlight: #D97706; /* Amber Accent */
  --color-background: #FAF8F6; /* Warm White Cream */
  --color-foreground: #1C1917; /* Stone 900 */
  --color-muted: #F5F5F4;
  --color-muted-fg: #78716C;
  --color-border: #E7E5E4;
  --color-destructive: #DC2626;

  /* Phase colors */
  --phase1-color: #EA580C; /* Setup Orange */
  --phase1-bg: #FFF7ED;
  --phase1-border: #FFEDD5;
  --phase2-color: #D97706; /* Vận Hành Amber */
  --phase2-bg: #FEF3C7;
  --phase2-border: #FDE68A;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --section-padding: 6rem 0;
  --container-max: 1200px;
  --container-padding: 0 1.5rem;

  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.76);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 16px;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 4px 18px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 8px 32px rgba(28, 25, 23, 0.08);
  --shadow-xl: 0 16px 48px rgba(28, 25, 23, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-highlight {
  position: relative;
  white-space: nowrap;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15), rgba(253, 186, 116, 0.15));
  border-radius: 4px;
  z-index: -1;
}

.text-muted {
  color: var(--color-muted-fg);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(234, 88, 12, 0.08);
  padding: 0.375rem 1.125rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-tag-warning {
  color: var(--color-accent-highlight);
  background: rgba(234, 88, 12, 0.08);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-secondary);
  line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--color-accent-highlight);
  color: #fff;
  border-color: var(--color-accent-highlight);
}

.btn-orange:hover {
  background: #C2410C;
  border-color: #C2410C;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-accent-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-accent-outline:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  cursor: pointer;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(234, 88, 12, 0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, #FFF5EB 0%, var(--color-background) 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.shape-1 {
  width: 550px;
  height: 550px;
  background: rgba(234, 88, 12, 0.08);
  top: -100px;
  right: -100px;
  animation: floatSlow 20s ease-in-out infinite;
}

.shape-2 {
  width: 450px;
  height: 450px;
  background: rgba(217, 119, 6, 0.08);
  bottom: -50px;
  left: -100px;
  animation: floatSlow 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: rgba(253, 186, 116, 0.06);
  top: 30%;
  left: 50%;
  animation: floatSlow 18s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: rgba(234, 88, 12, 0.08);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-secondary);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  color: var(--color-muted-fg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Audit & Diagnosis ---------- */
.section-pain {
  background: var(--color-background);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pain-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-base);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(234, 88, 12, 0.2);
}

.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pain-icon-red {
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-destructive);
}

.pain-icon-amber {
  background: rgba(217, 119, 6, 0.08);
  color: var(--phase2-color);
}

.pain-icon-blue {
  background: rgba(234, 88, 12, 0.08);
  color: var(--phase1-color);
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  line-height: 1.7;
}

.pain-card ul {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.pain-card li {
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

.pain-card li:last-child {
  margin-bottom: 0;
}

.pain-card li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- Timeline ---------- */
.section-phases {
  background: linear-gradient(180deg, #FFF5EB 0%, var(--color-background) 100%);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--phase1-color), var(--phase2-color));
  opacity: 0.2;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-on-primary);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.timeline-item[data-phase="1"] .timeline-dot { background: var(--phase1-color); }
.timeline-item[data-phase="2"] .timeline-dot { background: var(--phase2-color); }

.timeline-card {
  flex: 1;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(234, 88, 12, 0.15);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.timeline-item[data-phase="1"] .timeline-badge { background: var(--phase1-bg); color: var(--phase1-color); }
.timeline-item[data-phase="2"] .timeline-badge { background: var(--phase2-bg); color: var(--phase2-color); }

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}

.timeline-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(234, 88, 12, 0.03);
  border-radius: var(--radius-sm);
}

.price-label {
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
  font-weight: 600;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--color-primary);
}

.price-note {
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
}

.timeline-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.timeline-link:hover {
  color: var(--color-accent-light);
}

/* ---------- Phase Sections ---------- */
.section-phase {
  padding: 5.5rem 0;
}

.phase-1-bg { background: linear-gradient(180deg, var(--phase1-bg) 0%, var(--color-background) 100%); }
.phase-2-bg { background: linear-gradient(180deg, var(--phase2-bg) 0%, var(--color-background) 100%); }

.phase-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.phase-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--phase1-color);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
}

.phase-number-2 { color: var(--phase2-color); }

.tag-phase1 { background: rgba(13, 148, 136, 0.08); color: var(--phase1-color); }
.tag-phase2 { background: rgba(217, 119, 6, 0.08); color: var(--phase2-color); }

/* ---------- Deliverables Grid ---------- */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.deliverable-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
}

.deliverable-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(234, 88, 12, 0.15);
}

.deliverable-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  opacity: 0.06;
  color: var(--color-primary);
}

.deliverable-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(234, 88, 12, 0.08);
  color: var(--phase1-color);
}

.deliverable-icon.icon-amber {
  background: rgba(217, 119, 6, 0.08);
  color: var(--phase2-color);
}

.deliverable-card h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}

.deliverable-card p {
  font-size: 0.9125rem;
  color: var(--color-secondary);
  line-height: 1.7;
}

/* ---------- Pricing Cards ---------- */
.pricing-card {
  max-width: 680px;
  margin: 0 auto 4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

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

.phase1-pricing {
  border-top: 4px solid var(--phase1-color);
}

.phase2-pricing {
  border-top: 4px solid var(--phase2-color);
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-weight: 500;
}

.price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 2rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.price-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0.25rem;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-muted-fg);
}

.pricing-breakdown {
  margin-bottom: 2rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--color-border);
}

.price-row:last-child {
  border-bottom: none;
}

.price-row-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.price-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.price-dot.service { background: var(--phase1-color); }
.price-dot.ads { background: var(--phase2-color); }
.price-dot.bonus { background: var(--color-accent-highlight); }

.price-row-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
}

.price-row-value span {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted-fg);
}

.pricing-includes {
  margin-bottom: 2rem;
}

.pricing-includes li {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.pricing-includes li svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 4px;
}

.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(234, 88, 12, 0.03);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--color-muted-fg);
  line-height: 1.6;
}

.pricing-note svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.pricing-note-highlight {
  background: rgba(234, 88, 12, 0.03);
  border: 1px dashed rgba(234, 88, 12, 0.2);
}

.pricing-note-highlight svg {
  color: var(--color-accent-highlight);
}

/* ---------- Benefits Row ---------- */
.benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--color-border);
}

.benefit-item {
  text-align: left;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.08);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-icon.icon-phase1 {
  background: rgba(234, 88, 12, 0.08);
  color: var(--phase1-color);
}

.benefit-icon.icon-phase2 {
  background: rgba(217, 119, 6, 0.08);
  color: var(--phase2-color);
}

.benefit-item h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.6;
}

/* ---------- Pricing Tables (Standard Program) ---------- */
.section-price-table {
  background: var(--color-background);
}

.pricing-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.program-card {
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.program-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(234, 88, 12, 0.15);
}

.program-card.offline {
  border-top: 5px solid var(--color-primary);
}

.program-card.online {
  border-top: 5px solid var(--color-accent);
}

.program-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.program-card.offline .program-badge { background: rgba(194, 65, 12, 0.08); color: var(--color-primary); }
.program-card.online .program-badge { background: rgba(234, 88, 12, 0.08); color: var(--color-accent); }

.program-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.program-meta {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

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

.sata-table th, .sata-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.sata-table th {
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(234, 88, 12, 0.02);
}

.sata-table tr:last-child td {
  border-bottom: none;
}

.sata-table td strong {
  color: var(--color-primary);
  font-weight: 700;
}

.sata-table td del {
  color: var(--color-muted-fg);
  font-size: 0.8125rem;
}

.table-badge-discount {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: rgba(234, 88, 12, 0.08);
  color: var(--color-accent-highlight);
}

.sata-table th:nth-child(2),
.sata-table td:nth-child(2),
.sata-table th:nth-child(3),
.sata-table td:nth-child(3) {
  white-space: nowrap;
}

.sata-table th:nth-child(3),
.sata-table td:nth-child(3) {
  text-align: right;
}

.pricing-summary-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sales-notes-box {
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.sales-notes-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sales-notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sales-note-item {
  background: rgba(234, 88, 12, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.875rem;
}

.sales-note-item h5 {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.sales-note-item p {
  color: var(--color-muted-fg);
  line-height: 1.5;
}

/* ---------- Zalo Chat Template ---------- */
.zalo-preview-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 4rem auto 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.zalo-header {
  background: #0068FF; /* Zalo Blue */
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zalo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #0068FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
}

.zalo-user-info h4 {
  font-size: 0.9375rem;
  font-weight: 700;
}

.zalo-user-info span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.zalo-body {
  background: #F4F5F7;
  padding: 1.5rem;
}

.zalo-message {
  background: #fff;
  border-radius: 0 16px 16px 16px;
  padding: 1.25rem;
  max-width: 90%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #333;
}

.zalo-message p {
  margin-bottom: 0.75rem;
}

.zalo-message p:last-child {
  margin-bottom: 0;
}

.zalo-time {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-foreground); /* Stone 900 */
  color: #fff;
  padding: 4rem 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.footer p {
  opacity: 0.75;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-info {
  flex: 1.2;
  min-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.footer-contact {
  flex: 1.8;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-contact-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-contact {
    align-items: center;
    width: 100%;
  }
  .footer-contact-links {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 440px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .pain-grid, .deliverables-grid, .benefits-row, .sales-notes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-tables-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-summary-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-background); /* Solid background to prevent overlap */
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ---------- Scroll Reveal Base ---------- */
.pain-card, .timeline-item, .deliverable-card, .pricing-card, .benefit-item, .program-card, .sales-note-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pain-card.visible, .timeline-item.visible, .deliverable-card.visible, .pricing-card.visible, .benefit-item.visible, .program-card.visible, .sales-note-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile Responsiveness Enhancements (max-width: 768px) ---------- */
@media (max-width: 768px) {
  /* Hide vertical dividers and stack stats on mobile */
  .stat-divider {
    display: none;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .sales-notes-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Prevent single-word line wraps on mobile by reducing massive horizontal paddings */
  .section {
    padding: 3.5rem 0;
  }
  
  .pain-card {
    padding: 1.5rem;
  }
  
  .deliverable-card {
    padding: 1.25rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  .program-card {
    padding: 1.5rem !important;
  }
  
  .comparison-row > div {
    padding: 1.25rem !important;
  }
  
  .comparison-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Timeline responsive stacking to prevent card from being pushed to the side */
  .timeline {
    padding: 1.5rem 0;
  }
  .timeline-line {
    display: none; /* Hide vertical line on mobile */
  }
  .timeline-item {
    flex-direction: column; /* Stack circle and card vertically */
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
  .timeline-dot {
    display: none; /* Hide circular number on mobile to prevent squeezing and redundancy */
  }
  .timeline-card {
    width: 100%;
    padding: 1.25rem;
  }
  .timeline-price {
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }
  .price-value {
    font-size: 1.05rem;
  }
  
  /* Responsive Table styling for mobile - transforms rigid tables to cards */
  .sata-table, 
  .sata-table thead, 
  .sata-table tbody, 
  .sata-table tr, 
  .sata-table th, 
  .sata-table td {
    display: block;
    width: 100%;
  }
  .sata-table thead {
    display: none;
  }
  .sata-table tr {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  .sata-table td {
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px dashed var(--color-border);
    text-align: left !important;
    white-space: normal !important;
  }
  .sata-table td:last-child {
    border-bottom: none;
  }
  .sata-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
  }
}
