/* ============================================
   SYNAPSE CIRCUITS - Components
   ============================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

/* Primary button */
.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(40, 212, 232, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary / outline button */
.btn-secondary {
  background: transparent;
  color: var(--color-accent-cyan);
  border: 1.5px solid rgba(40, 212, 232, 0.4);
}

.btn-secondary:hover {
  background: rgba(40, 212, 232, 0.08);
  border-color: var(--color-accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-sm);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Light button (for dark backgrounds) */
.btn-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Small button */
.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--fs-xs);
}

/* Button icon */
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 114, 137, 0.2);
}

/* Card icon */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background: var(--theme-card-icon-bg);
  color: var(--theme-card-icon-color);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-h3);
}

.card p {
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
}

/* Dark card */
.card-dark {
  background: rgba(10, 114, 137, 0.05);
  border: 1px solid var(--color-border-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-dark:hover {
  border-color: rgba(40, 212, 232, 0.25);
  box-shadow: var(--shadow-glow-sm);
  background: rgba(10, 114, 137, 0.08);
}

.card-dark h3 {
  color: var(--color-text-white);
}

.card-dark p {
  color: var(--color-text-light);
}

.card-dark .card-icon {
  background: linear-gradient(135deg, rgba(40, 212, 232, 0.15) 0%, rgba(10, 114, 137, 0.1) 100%);
  color: var(--color-accent-cyan);
}

/* Card with top accent */
.card-accent {
  border-top: 3px solid var(--theme-card-accent-border);
}

.card-accent:hover {
  border-top-color: var(--color-accent-cyan);
}

/* ── Pricing card ── */
.pricing-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 114, 137, 0.3);
}

.pricing-card.featured {
  border: 2px solid var(--theme-pricing-featured-border);
  background: var(--theme-pricing-featured-bg);
  box-shadow: var(--theme-shadow-glow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.375rem 1.25rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--theme-pricing-label-color);
  margin-bottom: var(--space-sm);
}

.pricing-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--theme-text);
  margin-bottom: var(--space-sm);
}

.pricing-desc {
  font-size: var(--fs-small);
  color: var(--theme-text-muted);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--theme-text);
  margin-bottom: var(--space-xs);
}

.pricing-price span {
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  color: var(--theme-text-muted);
}

.pricing-period {
  font-size: var(--fs-small);
  color: var(--theme-text-muted);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--theme-border);
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--theme-text-muted);
  padding: var(--space-sm) 0;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--theme-checkmark-svg) center / contain no-repeat;
  margin-top: 2px;
}

/* ── Badge / tag ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.875rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-full);
  background: var(--theme-badge-bg);
  color: var(--theme-badge-color);
  border: 1px solid var(--theme-badge-border);
}

.badge-dark {
  background: rgba(40, 212, 232, 0.1);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(40, 212, 232, 0.15);
}

/* ── Trust strip ── */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  font-size: var(--fs-small);
  color: var(--theme-text-muted);
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
  transition: all var(--transition-slow);
}

.trust-strip.dark {
  border-color: var(--color-border-dark);
  color: var(--color-text-light);
}

.trust-strip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--theme-dot-color);
  flex-shrink: 0;
}

/* ── Process / Timeline ── */
.process-step {
  display: flex;
  gap: var(--space-xl);
  position: relative;
}

.process-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  background: var(--gradient-primary);
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-glow-sm);
}

.process-step-content {
  padding-bottom: var(--space-2xl);
}

.process-step-content h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-h3);
}

.process-step-content p {
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
}

/* Vertical connector line */
.process-steps {
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 23px;
  width: 2px;
  height: calc(100% - 48px);
  background: linear-gradient(to bottom, var(--color-primary), rgba(40, 212, 232, 0.2));
  border-radius: 1px;
}

/* ── Stat block ── */
.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--theme-text-muted);
}

/* ── Form elements ── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--theme-text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--fs-body);
  color: var(--theme-text);
  background: var(--theme-input-bg);
  border: 1.5px solid var(--theme-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

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

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

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

.form-hint {
  font-size: var(--fs-xs);
  color: var(--theme-text-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: var(--fs-xs);
  color: #e74c3c;
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: #e74c3c;
}

.form-group.error .form-error {
  display: block;
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--theme-border);
  border: none;
}

.divider-dark {
  background: var(--color-border-dark);
}

/* ── Node dot decorative ── */
.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 12px rgba(40, 212, 232, 0.5);
  display: inline-block;
}

.node-dot-sm {
  width: 5px;
  height: 5px;
}

.node-dot-lg {
  width: 12px;
  height: 12px;
}
