/* ═══════════════════════════════════════════════════════════════
   COMPONENTS.CSS — Reusable UI components
   Buttons, cards, labels, section headings, panels, etc.
═══════════════════════════════════════════════════════════════ */

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--t-base);
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
}

/* Sizes */
.btn-sm  { padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: var(--radius-md); }
.btn-md  { padding: 0.75rem 1.5rem; font-size: 0.9375rem; border-radius: var(--radius-md); }
.btn-lg  { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* Primary */
.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 28px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: #fff;
  box-shadow: 0 0 36px var(--primary-glow-strong);
}

/* Secondary */
.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Outline */
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-glow);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover { color: var(--text-primary); }

/* Disabled */
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Label / Badge Tag ─────────────────────────────────────────── */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 184, 75, 0.22);
  color: var(--accent);
  background-color: var(--accent-glow);
  white-space: nowrap;
}

/* Primary variant (blue) */
.label-tag-primary {
  border-color: rgba(14, 165, 233, 0.25);
  color: var(--primary-light);
  background-color: var(--primary-glow);
}

/* ── Card ──────────────────────────────────────────────────────── */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-base), background-color var(--t-base), box-shadow var(--t-base);
}

.card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.card-xl {
  border-radius: var(--radius-xl);
}

.card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow), 0 16px 48px rgba(14, 165, 233, 0.12);
}

/* ── Section Heading ───────────────────────────────────────────── */
.section-heading {
  text-align: center;
}

.section-heading .label-tag {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-heading p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
  text-wrap: balance;
}

/* ── Gradient Text ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ── Status dot (live pulse) ───────────────────────────────────── */
.status-live {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 211, 165, 0.4);
  animation: pulse-ring 1.8s ease-out infinite;
  flex-shrink: 0;
}

/* ── Divider ───────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-strong) 50%, transparent 100%);
}

/* ── Glow effects ──────────────────────────────────────────────── */
.glow-primary { box-shadow: 0 0 40px var(--primary-glow-strong); }
.glow-accent  { box-shadow: 0 0 40px var(--accent-glow); }

/* ── Capability item ───────────────────────────────────────────── */
.capability-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.capability-item .icon {
  font-size: 0.875rem;
}

/* ── Process step ──────────────────────────────────────────────── */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.process-step-number {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-family: monospace;
  margin-bottom: 0.75rem;
}

.process-step-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Stat box ──────────────────────────────────────────────────── */
.stat-box {
  text-align: center;
  padding: 1.25rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── Result metric box ─────────────────────────────────────────── */
.result-box {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.result-value {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.result-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.3;
  text-transform: none;
}

/* ── Panel header row ──────────────────────────────────────────── */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-surface);
}

/* ── Offer tier card ───────────────────────────────────────────── */
.offer-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.offer-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow), 0 20px 60px rgba(14, 165, 233, 0.12);
}

.offer-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.offer-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background-color: var(--primary-glow-strong);
  color: var(--primary-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.offer-badge-gold {
  background-color: var(--accent-glow);
  color: var(--accent-light);
  border-color: rgba(232, 184, 75, 0.25);
}

.offer-tier-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.offer-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.offer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.offer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.offer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.25rem;
}

.offer-includes-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.offer-includes {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  margin-bottom: 1.75rem;
}

.offer-include-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.offer-check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── Industry card ─────────────────────────────────────────────── */
.industry-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--t-base), background-color var(--t-base), box-shadow var(--t-base);
  text-decoration: none;
}

.industry-card:hover {
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.08);
}

.industry-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.industry-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.industry-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.industry-automations {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.industry-automation-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.industry-automation-tag::before {
  content: '→';
  color: var(--primary);
  font-size: 0.65rem;
}

/* ── Alert / note block ────────────────────────────────────────── */
.note-block {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  background-color: var(--primary-glow);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Form elements ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: 0.9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  cursor: pointer;
}
