/* ============================================================
   Viberank Marketing Pages CSS
   擴充 common.css 的基礎，新增行銷頁專用元件樣式
   ============================================================ */

:root {
  --vb-primary: #2563eb;
  --vb-primary-dark: #1d4ed8;
  --vb-accent: #f59e0b;
  --vb-dark: #0f172a;
  --vb-muted: #64748b;
  --vb-light: #f8fafc;
  --vb-border: #e2e8f0;
  --vb-success: #10b981;
  --vb-danger: #ef4444;
  --vb-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --vb-gradient-ai: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
}

body.marketing-body {
  font-family: "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--vb-dark);
  background: #fff;
  line-height: 1.7;
}

/* ---------- Header ---------- */
.vb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--vb-border);
}

.vb-header .vb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.vb-header .vb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--vb-dark);
}

.vb-header .vb-logo img {
  height: 32px;
  width: auto;
}

.vb-header .vb-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vb-header .vb-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vb-header .vb-menu a {
  color: var(--vb-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.vb-header .vb-menu a:hover {
  color: var(--vb-primary);
}

.vb-header .vb-menu a.vb-highlight {
  color: var(--vb-primary);
  font-weight: 600;
}

.vb-header .vb-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.vb-btn-primary {
  background: var(--vb-primary);
  color: #fff;
}
.vb-btn-primary:hover {
  background: var(--vb-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.vb-btn-ghost {
  background: transparent;
  color: var(--vb-dark);
  border-color: var(--vb-border);
}
.vb-btn-ghost:hover {
  border-color: var(--vb-primary);
  color: var(--vb-primary);
}

.vb-btn-gradient {
  background: var(--vb-gradient);
  color: #fff;
  border: none;
}
.vb-btn-gradient:hover {
  opacity: 0.92;
  color: #fff;
  transform: translateY(-1px);
}

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

.vb-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--vb-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 991px) {
  .vb-header .vb-menu,
  .vb-header .vb-cta-group {
    display: none;
  }
  .vb-mobile-toggle {
    display: inline-flex;
  }
  .vb-header.vb-mobile-open .vb-menu,
  .vb-header.vb-mobile-open .vb-cta-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid var(--vb-border);
  }
  .vb-header.vb-mobile-open .vb-nav {
    flex-wrap: wrap;
  }
}

/* ---------- Sections ---------- */
.vb-section {
  padding: 80px 0;
}

.vb-section-sm {
  padding: 48px 0;
}

.vb-section-dark {
  background: var(--vb-dark);
  color: #fff;
}

.vb-section-gradient {
  background: var(--vb-gradient);
  color: #fff;
}

.vb-section-light {
  background: var(--vb-light);
}

/* ---------- Hero ---------- */
.vb-hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vb-hero-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.vb-hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--vb-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.vb-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--vb-dark);
}

.vb-hero .vb-hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--vb-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.vb-hero .vb-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.vb-gradient-text {
  background: var(--vb-gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- AI Logo Bar ---------- */
.vb-ai-logo-bar {
  padding: 32px 0;
  border-top: 1px solid var(--vb-border);
  border-bottom: 1px solid var(--vb-border);
  background: var(--vb-light);
}

.vb-ai-logo-bar .vb-label {
  text-align: center;
  color: var(--vb-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.vb-ai-logo-bar .vb-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.72;
}

.vb-ai-logo-bar .vb-logo-item {
  font-weight: 700;
  font-size: 18px;
  color: var(--vb-muted);
  letter-spacing: 0.01em;
}

/* ---------- Pillar Cards ---------- */
.vb-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.vb-pillar-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--vb-border);
  border-radius: 16px;
  transition: all 0.25s;
}

.vb-pillar-card:hover {
  border-color: var(--vb-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.25);
}

.vb-pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.vb-pillar-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.vb-pillar-card p {
  color: var(--vb-muted);
  margin: 0;
  line-height: 1.65;
}

/* ---------- Feature Row ---------- */
.vb-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.vb-feature-row:nth-child(even) .vb-feature-text {
  order: 2;
}

.vb-feature-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .vb-feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .vb-feature-row:nth-child(even) .vb-feature-text {
    order: 0;
  }
}

.vb-feature-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--vb-gradient-ai);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.vb-feature-row h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.vb-feature-row p {
  color: var(--vb-muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.vb-feature-row ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.vb-feature-row ul li {
  padding-left: 28px;
  margin-bottom: 10px;
  position: relative;
  color: var(--vb-dark);
}

.vb-feature-row ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--vb-success);
  font-weight: 700;
  font-size: 18px;
}

.vb-feature-mock {
  background: var(--vb-light);
  border: 1px solid var(--vb-border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vb-muted);
  font-size: 14px;
}

/* ---------- Section Heading ---------- */
.vb-section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.vb-section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.vb-section-heading p {
  color: var(--vb-muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Pricing ---------- */
.vb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
}

.vb-price-card {
  background: #fff;
  border: 2px solid var(--vb-border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s;
}

.vb-price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.15);
}

.vb-price-card.vb-popular {
  border-color: var(--vb-accent);
}

.vb-price-card.vb-featured {
  border-color: transparent;
  background: var(--vb-gradient-ai);
  color: #fff;
}

.vb-price-card.vb-featured .vb-price-muted,
.vb-price-card.vb-featured .vb-price-includes li {
  color: rgba(255, 255, 255, 0.85);
}

.vb-price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--vb-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.vb-price-card.vb-featured .vb-price-badge {
  background: #fff;
  color: var(--vb-primary-dark);
}

.vb-price-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.vb-price-muted {
  color: var(--vb-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.vb-price-amount {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.vb-price-amount .vb-price-unit {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.75;
}

.vb-price-sub {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 28px;
}

.vb-price-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.vb-price-includes li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 15px;
}

.vb-price-card.vb-featured .vb-price-includes li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.vb-price-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--vb-success);
  font-weight: 700;
}

.vb-price-card.vb-featured .vb-price-includes li::before {
  color: #fff;
}

.vb-price-includes li.vb-strong {
  font-weight: 700;
}

.vb-price-card .vb-btn {
  width: 100%;
}

/* ---------- Timeline ---------- */
.vb-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.vb-timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--vb-primary), var(--vb-border));
}

.vb-timeline-item {
  position: relative;
  padding-left: 72px;
  padding-bottom: 48px;
}

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

.vb-timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--vb-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border: 4px solid #fff;
}

.vb-timeline-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.vb-timeline-item p {
  color: var(--vb-muted);
  margin-bottom: 8px;
}

.vb-timeline-item .vb-time-hint {
  font-size: 13px;
  color: var(--vb-primary);
  font-weight: 600;
}

/* ---------- Compare Table ---------- */
.vb-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.vb-compare-box {
  border: 1px solid var(--vb-border);
  border-radius: 16px;
  padding: 24px;
}

.vb-compare-box.vb-bad {
  background: #fef2f2;
  border-color: #fecaca;
}

.vb-compare-box.vb-good {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.vb-compare-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.vb-compare-box.vb-bad h4 {
  color: #b91c1c;
}

.vb-compare-box.vb-good h4 {
  color: #15803d;
}

.vb-compare-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vb-compare-box ul li {
  padding: 6px 0;
  font-size: 15px;
}

@media (max-width: 640px) {
  .vb-compare {
    grid-template-columns: 1fr;
  }
}

/* ---------- Guarantee Banner ---------- */
.vb-guarantee {
  background: var(--vb-dark);
  color: #fff;
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
  background-image: radial-gradient(
    circle at 20% 50%,
    rgba(37, 99, 235, 0.2) 0%,
    transparent 50%
  );
}

.vb-guarantee h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.vb-guarantee p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Stats ---------- */
.vb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.vb-stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--vb-gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.vb-stat-label {
  color: var(--vb-muted);
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.vb-faq-item {
  border-bottom: 1px solid var(--vb-border);
  padding: 24px 0;
}

.vb-faq-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--vb-dark);
}

.vb-faq-item p {
  color: var(--vb-muted);
  margin: 0;
  line-height: 1.7;
}

/* ---------- Form ---------- */
.vb-form {
  background: #fff;
  border: 1px solid var(--vb-border);
  border-radius: 16px;
  padding: 36px;
}

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

.vb-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--vb-dark);
}

.vb-form-group label .vb-required {
  color: var(--vb-danger);
  margin-left: 4px;
}

.vb-form-group input,
.vb-form-group textarea,
.vb-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--vb-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.vb-form-group input:focus,
.vb-form-group textarea:focus,
.vb-form-group select:focus {
  outline: none;
  border-color: var(--vb-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vb-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.vb-form-error {
  color: var(--vb-danger);
  font-size: 13px;
  margin-top: 6px;
}

.vb-alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.vb-footer {
  background: var(--vb-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}

.vb-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.vb-footer a:hover {
  color: #fff;
}

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

.vb-footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}

.vb-footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 16px;
}

.vb-footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.vb-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vb-footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
}

.vb-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .vb-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .vb-footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- CTA Banner ---------- */
.vb-cta-banner {
  background: var(--vb-gradient-ai);
  padding: 72px 32px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  margin: 0 auto;
  max-width: 1100px;
}

.vb-cta-banner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.vb-cta-banner p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 32px;
}

.vb-cta-banner .vb-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.vb-cta-banner .vb-btn-gradient {
  background: #fff;
  color: var(--vb-primary-dark);
}

.vb-cta-banner .vb-btn-gradient:hover {
  background: rgba(255, 255, 255, 0.92);
}

.vb-cta-banner .vb-btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.vb-cta-banner .vb-btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Utility ---------- */
.vb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.vb-text-center {
  text-align: center;
}

.vb-mt-lg {
  margin-top: 48px;
}

.vb-mb-lg {
  margin-bottom: 48px;
}
