/* =============================================
   COMPONENTS — PULSO DIGITAL
   ============================================= */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-apple),
              box-shadow var(--dur-base) var(--ease-apple),
              background var(--dur-fast) var(--ease-apple),
              opacity var(--dur-fast) var(--ease-apple);
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-apple);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(251, 53, 2, 0.3);
}

.btn-primary:hover {
  background: #e02d00;
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: var(--bg-glass-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 18px;
}

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

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--dur-base) var(--ease-apple),
              box-shadow var(--dur-base) var(--ease-apple),
              border-color var(--dur-base) var(--ease-apple);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.12);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---- Section Headers ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: loadingPulse 2s ease infinite;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ---- Icon wrapper ---- */
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-apple),
              box-shadow var(--dur-base) var(--ease-apple);
}

.icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card:hover .icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ---- Custom Cursor ---- */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease-apple),
              height var(--dur-fast) var(--ease-apple),
              opacity var(--dur-fast) var(--ease-apple);
  mix-blend-mode: normal;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(251, 53, 2, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 300ms var(--ease-apple),
              height 300ms var(--ease-apple),
              border-color 300ms var(--ease-apple),
              opacity 200ms var(--ease-apple);
}

body.cursor-hover #cursor { width: 14px; height: 14px; }
body.cursor-hover #cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(251, 53, 2, 0.3);
}

body.cursor-click #cursor { transform: translate(-50%, -50%) scale(0.7); }

@media (hover: none) {
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* ── Mobile component adjustments ── */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl));
    letter-spacing: -0.025em;
  }
  .section-subtitle {
    font-size: var(--text-base);
    max-width: 100%;
  }
  .btn { padding: 13px 22px; }
  .btn-icon { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .section-title { font-size: clamp(var(--text-2xl), 7.5vw, var(--text-3xl)); }
  .section-subtitle { font-size: var(--text-sm); }
  .btn { padding: 12px 18px; font-size: 13px; }
}
