/* ============================================================
   ZEALTHIX.AI  COMPONENTS
   components.css: buttons, cards, badges, forms, stats, terminal,
   page-hero, CTA strip, lead form, feature items, product cards
   ============================================================ */

/* == BUTTONS == */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: var(--r); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(109,24,221,0.35);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109,24,221,0.45);
}

.btn-yellow {
  background: #E8C91F;
  color: #1E1140;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(232,201,31,0.35);
  font-weight: 700;
}
.btn-yellow:hover {
  background: #f0d428;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,201,31,0.45);
}

.btn-secondary {
  background: #fff;
  color: var(--deep);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--light-purple);
  border-color: rgba(109,24,221,0.3);
  color: var(--purple);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--deep);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(232,201,31,0.3);
}
.btn-gold:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,201,31,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--light-purple);
  border-color: rgba(109,24,221,0.3);
}

.btn-white {
  background: #fff;
  color: var(--deep);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.65);
}

.btn-dark {
  background: var(--deep);
  color: #fff;
  border-color: transparent;
}
.btn-dark:hover {
  background: #2D1B69;
  transform: translateY(-2px);
}

/* == CARDS == */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all var(--t-slow);
}
.card-hover:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,24,221,0.22);
  transform: translateY(-4px);
}
.card-dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.card-dark.card-hover:hover { border-color: rgba(255,255,255,0.22); }

/* == BADGES == */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-purple {
  background: rgba(109,24,221,0.09);
  color: var(--purple);
  border: 1px solid rgba(109,24,221,0.18);
}
.badge-gold {
  background: rgba(232,201,31,0.14);
  color: #8A7600;
  border: 1px solid rgba(232,201,31,0.28);
}
.badge-green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.2);
}
.badge-blue {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,0.2);
}
.badge-dark {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
}
.badge-live {
  background: rgba(16,185,129,0.12);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.2);
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

/* == FEATURE ITEMS == */
.feat-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid var(--border-lt);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}
.feat-item:hover {
  background: var(--light-purple);
  border-color: rgba(109,24,221,0.2);
  box-shadow: var(--shadow-md);
}
.feat-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: var(--light-purple);
}
.feat-item h4 { font-size: 15px; margin-bottom: 5px; }
.feat-item p  { font-size: 13.5px; }

/* == STAT BLOCKS == */
.stat-block { text-align: center; }
.stat-num {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.4;
}
.stat-label-dark { color: var(--muted); }

/* == TERMINAL BLOCK == */
.terminal {
  background: var(--deep);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  line-height: 1.85;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.terminal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.t-header { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot-r { background: #FF5F57; }
.t-dot-y { background: #FEBC2E; }
.t-dot-g { background: #28C840; }
.t-title { font-size: 11px; color: rgba(255,255,255,0.28); margin-left: 6px; }
.t-line    { color: rgba(255,255,255,0.6); display: block; }
.t-key     { color: #93C5FD; }
.t-val     { color: #6EE7B7; }
.t-str     { color: #FCA5A5; }
.t-comment { color: rgba(255,255,255,0.25); }
.t-agent   { color: #C4B5FD; }
.t-gold    { color: #FDE68A; }
.t-ok      { color: #6EE7B7; }
.t-warn    { color: #FDE68A; }
.t-indent  { padding-left: 18px; }

/* == STEP FLOW == */
.step-flow { display: flex; flex-direction: column; gap: 3px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--light-purple);
  border: 1px solid var(--border-lt);
  transition: all var(--t);
}
.step:hover { border-color: rgba(109,24,221,0.25); box-shadow: var(--shadow-md); }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step h5 { font-size: 14px; margin-bottom: 3px; }
.step p  { font-size: 13px; }

/* == PAGE HERO == */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%,
    rgba(109,24,221,0.08) 0%, transparent 65%);
}
.page-hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(109,24,221,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,24,221,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero > .container { position: relative; z-index: 1; }

/* == CTA STRIP == */
.cta-strip {
  background: var(--grad);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cta-strip > .container { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; margin-bottom: 14px; }
.cta-strip p  { color: rgba(255,255,255,0.68); max-width: 560px; margin: 0 auto 32px; }

/* == LEAD FORM SECTION == */
.lead-form-section {
  background: var(--bg-alt);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.lead-form-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(109,24,221,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.lead-form-section > .container { position: relative; z-index: 1; }

.lead-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.lead-form-wrap h2 { color: var(--deep); text-align: center; margin-bottom: 8px; }
.lead-form-wrap > p { text-align: center; color: var(--muted); margin-bottom: 32px; }

.lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* == DEMO LAYOUT (book-demo partial) == */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}
.demo-info { display: flex; flex-direction: column; align-items: flex-start; }
.demo-info .eyebrow { margin-bottom: 12px; }
.demo-info h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 10px; color: var(--deep); }
.demo-info > p { color: var(--muted); line-height: 1.75; margin-bottom: 32px; }

.demo-contact-options { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.demo-contact-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.demo-contact-option:hover { box-shadow: var(--shadow-md); border-color: var(--purple-lt); }
.demo-option-icon { font-size: 24px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.demo-contact-option h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.demo-contact-option p  { font-size: 0.825rem; color: var(--muted); margin: 0; }
.demo-contact-option a  { font-size: 0.825rem; color: var(--purple); font-weight: 600; text-decoration: none; }
.demo-contact-option a:hover { text-decoration: underline; }

.demo-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.demo-form-card h3 { font-size: 1.45rem; font-weight: 800; color: var(--deep); margin-bottom: 6px; }
.demo-form-card > p { color: var(--muted); font-size: 0.925rem; margin-bottom: 28px; }

@media (max-width: 900px) {
  .demo-layout { grid-template-columns: 1fr; gap: 40px; }
}

.form-field {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-lt);
  background: #fff;
  color: var(--deep);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  outline: none;
}
.form-field::placeholder { color: var(--muted-2); }
.form-field:focus {
  border-color: var(--purple);
  background: var(--light-purple);
  box-shadow: 0 0 0 3px rgba(109,24,221,0.09);
}
.form-field option { color: var(--deep); background: #fff; }
.form-textarea { resize: vertical; min-height: 100px; }

/* == PRODUCT CARDS == */
.prod-card {
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-slow);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,24,221,0.22);
  transform: translateY(-4px);
}
.prod-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.prod-card h4   { font-size: 16px; }
.prod-card p    { font-size: 13.5px; flex: 1; }
.prod-card-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  transition: gap var(--t);
}
.prod-card:hover .prod-card-arrow { gap: 9px; }

/* == METRICS BANNER == */
.metrics-banner {
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px,1fr));
  gap: 24px;
  box-shadow: var(--shadow-md);
}
.metric-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  display: block;
}
.metric-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 500;
  display: block;
}

/* == PARTNER LOGO GRID == */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--r);
  border: 1px solid var(--border-lt);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: all var(--t);
}
.partner-logo:hover { border-color: var(--border); color: var(--deep); box-shadow: var(--shadow); }

/* == TESTIMONIAL CARD == */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.testimonial-quote { font-size: 14.5px; color: var(--text-2); line-height: 1.7; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--deep); }
.testimonial-role { font-size: 12px; color: var(--muted); }

/* == MARQUEE (trust bar) == */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* == TRUST / CUSTOMER BAR == */
.trust-bar {
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  padding: 18px 0 0;
  background: #fff;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.trust-bar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0,0,0,0.9);
  white-space: normal;
  text-align: center;
  padding: 0 16px;
  line-height: 1.6;
}
.trust-bar-inner .marquee-wrap { width: 100%; }
.trust-logo-item {
  display: inline-flex;
  align-items: center;
  padding: 16px 0;
}
.trust-client-logo {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) sepia(0.5) hue-rotate(225deg) saturate(2) opacity(0.82);
  transition: filter 0.3s ease;
}
.trust-client-logo:hover { filter: grayscale(0) sepia(0) opacity(1); }
.trust-text-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-lg);
  background: var(--bg-alt2);
  transition: color 0.2s, border-color 0.2s;
}
.trust-text-logo:hover { color: var(--purple); border-color: var(--border); }
.trust-text-logo-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}

/* == CHECK LIST == */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.check-list li::before {
  content: '✓';
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* == RESPONSIVE == */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .lead-form-wrap { padding: 28px 20px; }
  .metrics-banner { grid-template-columns: repeat(2,1fr); }
}
