/* ===== BASE ===== */
:root {
  --primary: #1a3c6e;
  --primary-dark: #122b52;
  --primary-light: #2451a0;
  --line-green: #06c755;
  --line-green-dark: #05a847;
  --accent: #f97316;
  --accent-dark: #ea6c0a;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #f97316;
  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

/* ===== COLORS ===== */
.text-primary-brand { color: var(--primary) !important; }
.text-line-green { color: var(--line-green) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-brand { background-color: var(--primary) !important; }
.bg-line-green { background-color: var(--line-green) !important; }
.bg-light-gray { background-color: var(--bg-light) !important; }

/* ===== BUTTONS ===== */
.btn-line-green {
  background-color: var(--line-green);
  border-color: var(--line-green);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .6rem 1.4rem;
  transition: background .2s, box-shadow .2s;
}
.btn-line-green:hover, .btn-line-green:focus {
  background-color: var(--line-green-dark);
  border-color: var(--line-green-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6,199,85,.35);
}

.btn-primary-brand {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .6rem 1.4rem;
  transition: background .2s, box-shadow .2s;
}
.btn-primary-brand:hover, .btn-primary-brand:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,60,110,.35);
}

.btn-outline-primary-brand {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .55rem 1.35rem;
  transition: all .2s;
}
.btn-outline-primary-brand:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .6rem 1.4rem;
  transition: background .2s;
}
.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-lg-cta {
  padding: .85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

/* ===== NAVBAR ===== */
.sales-navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  box-shadow: var(--shadow-sm);
}
.sales-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none;
  letter-spacing: -.3px;
}
.sales-logo i { font-size: 1.2rem; margin-right: .3rem; }
.sales-navbar .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.sales-navbar .nav-link:hover { color: var(--primary); background: var(--bg-light); }

/* ===== LAYOUT ===== */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--line-green);
  background: rgba(6,199,85,.1);
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f4ff 40%, #fff 100%);
  padding: 5.5rem 0 4rem;
  overflow: hidden;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,60,110,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--line-green);
  background: rgba(6,199,85,.1);
  padding: .3rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}
.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(26,60,110,.07);
  padding: .3rem .85rem;
  border-radius: 100px;
  border: 1px solid rgba(26,60,110,.15);
}

/* ===== DASHBOARD MOCKUP ===== */
.dashboard-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(26,60,110,.18);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mockup-header {
  background: var(--primary);
  padding: .75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-title {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 600;
  margin-left: .5rem;
}
.mockup-body { padding: 1.2rem; }
.mockup-stat-card {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  border: 1px solid var(--border);
}
.mockup-stat-label { font-size: .75rem; color: var(--text-muted); margin-bottom: .25rem; }
.mockup-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.mockup-stat-badge {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .4rem;
  border-radius: 100px;
}

.mockup-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  margin-bottom: .35rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: .8rem;
}
.mockup-status {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 100px;
}
.status-pending { background: #fef3c7; color: #d97706; }
.status-confirmed { background: #d1fae5; color: #059669; }
.status-shipped { background: #dbeafe; color: #2563eb; }
.status-paid { background: #f3e8ff; color: #7c3aed; }

/* ===== PAIN POINTS ===== */
.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.pain-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pain-icon {
  width: 48px; height: 48px;
  background: rgba(249,115,22,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--accent);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(26,60,110,.2);
}
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(26,60,110,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

/* ===== INDUSTRY CARDS ===== */
.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  text-decoration: none;
  color: var(--text-dark);
  transition: all .2s;
  display: block;
}
.industry-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text-dark);
}
.industry-card:hover .industry-arrow { transform: translateX(4px); }
.industry-emoji { font-size: 2rem; margin-bottom: .75rem; }
.industry-arrow { transition: transform .2s; color: var(--primary); }

/* ===== PROCESS STEPS ===== */
.process-timeline { position: relative; }
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.process-step-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}
.process-step-content { flex: 1; padding-bottom: 2rem; }
.process-connector {
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--border) 100%);
}

/* Desktop horizontal timeline */
@media (min-width: 768px) {
  .process-timeline-h { display: flex; align-items: flex-start; gap: 0; }
  .process-step-h {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
  }
  .process-step-h::after {
    content: '';
    position: absolute;
    top: 23px; right: -1px;
    width: 2px; height: 100%;
    background: var(--border);
  }
  .process-step-h:last-child::after { display: none; }
  .process-step-num-h {
    width: 48px; height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
  }
}

/* ===== PRICING CARDS ===== */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,.12);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: .25rem .7rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}
.pricing-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: .92rem;
}
.pricing-check i { color: var(--line-green); margin-top: .2rem; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-button {
  width: 100%;
  background: #fff;
  border: none;
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background .2s;
}
.faq-button:hover { background: var(--bg-light); }
.faq-button[aria-expanded="true"] { color: var(--primary); background: rgba(26,60,110,.04); }
.faq-button .faq-icon { flex-shrink: 0; transition: transform .3s; }
.faq-button[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0 1.5rem 1.1rem;
  font-size: .94rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== FINAL CTA ===== */
.final-cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  padding: 5rem 0;
}

/* ===== COMPARISON ===== */
.compare-table th { background: var(--bg-light); font-weight: 700; }
.compare-check { color: var(--line-green); font-size: 1.2rem; }
.compare-cross { color: #ef4444; font-size: 1.2rem; }
.compare-partial { color: var(--accent); font-size: 1.2rem; }

@media (max-width: 767px) {
  .compare-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
  }
  .compare-item-label { font-weight: 600; color: var(--text-dark); margin-bottom: .4rem; }
  .compare-row { display: flex; justify-content: space-between; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
  .compare-row:last-child { border-bottom: none; }
  .compare-col-label { color: var(--text-muted); font-size: .8rem; }
}

/* ===== SOLUTION SECTION ===== */
.before-after-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
}
.before-card {
  background: #fff5f5;
  border: 1px solid #fecaca;
}
.after-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.ba-list li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: .95rem;
}
.ba-list li:last-child { border-bottom: none; }

/* ===== FLOW STEPS (Desktop) ===== */
.flow-step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.4rem;
  padding: 0 .5rem;
}

/* ===== FLOW TIMELINE (Mobile) ===== */
.flow-timeline-v {
  position: relative;
  padding-left: 0;
}
.flow-tl-track {
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 30%, var(--border) 100%);
  z-index: 0;
}
.flow-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .9rem;
  position: relative;
  z-index: 1;
}
.flow-tl-item:last-child { margin-bottom: 0; }
.flow-tl-dot {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.flow-tl-dot.is-emoji {
  font-size: 1rem;
  background: var(--bg-light);
  box-shadow: 0 0 0 2px var(--border);
}
.flow-tl-body {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 38px;
}
.flow-tl-step {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--line-green);
  margin-bottom: .15rem;
}
.flow-tl-title {
  font-size: .93rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

/* ===== BENEFIT CARD ===== */
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}
.benefit-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

/* ===== LEAD FORM ===== */
.lead-form-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  padding: .65rem 1rem;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,.12);
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--text-dark); }

/* ===== MOBILE STICKY CTA ===== */
#mobileSticyCta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  padding: .75rem 1rem;
  gap: .75rem;
}
#mobileSticyCta .btn { flex: 1; font-size: .9rem; padding: .65rem; }

@media (min-width: 992px) {
  #mobileSticyCta { display: none !important; }
}

body { padding-bottom: 0; }
@media (max-width: 991px) {
  body { padding-bottom: 72px; }
}

/* ===== FOOTER ===== */
.sales-footer {
  background: #0f1f3d;
  color: #94a3b8;
}
.sales-footer .text-muted {
  color: #94a3b8 !important;
}
.sales-footer hr {
  border-color: #2a4a7f !important;
  opacity: 1;
}
.sales-footer .col-md-6.text-muted,
.sales-footer .col-md-6.text-md-end.text-muted {
  color: #6e8aaa !important;
}
.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: #e2e8f0; }
.sales-footer-hr {
  border: none;
  border-top: 1px solid #2a4a7f;
  margin: 0;
}
.footer-copyright {
  color: #6e8aaa;
}

/* ===== TRUST SECTION ===== */
.trust-bar {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-item i { color: var(--line-green); }

/* ===== ALERT / SUCCESS ===== */
.alert-success-custom {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}
.alert-error-custom {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

/* ===== UTILITIES ===== */
.fw-black { font-weight: 900 !important; }
.rounded-brand { border-radius: var(--radius) !important; }
.rounded-brand-lg { border-radius: var(--radius-lg) !important; }
.shadow-brand { box-shadow: var(--shadow) !important; }
.shadow-brand-lg { box-shadow: var(--shadow-lg) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-section { padding: 3.5rem 0 3rem; }
  .hero-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .section-pad { padding: 3.5rem 0; }
  .lead-form-wrapper { padding: 1.75rem; }
}

@media (max-width: 767px) {
  .hero-section { padding: 2.5rem 0 2rem; }
  .section-pad { padding: 2.5rem 0; }
  .section-title { font-size: 1.5rem; }
  .pricing-card { padding: 1.5rem; }
  .process-step-h { text-align: left; padding: 0; }
  .final-cta-section { padding: 3rem 0; }
  .lead-form-wrapper { padding: 1.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .faq-button { padding: 1rem 1.1rem; font-size: .9rem; }
}

@media (max-width: 575px) {
  .hero-trust-tags .hero-tag { font-size: .75rem; }
  .btn-lg-cta { width: 100%; margin-bottom: .5rem; }
}
